# Ghostlight 1.0 intent ## Promise Ghostlight lets an MCP client state a browser job simply. Ghostlight performs the internal browser steps, applies one authority snapshot, and returns one truthful terminal result. The browser is the user's visible, existing, authenticated Chromium browser. Ghostlight does not create a hidden browsing world or ask a model to reproduce browser orchestration. Ghostlight governs only work requested through its executor. Human browsing produces no Ghostlight activity, policy response, or automatic tab ownership (ADR-0164). Ghostlight 1.0 supports Windows and x86_64 glibc-based desktop Linux. Linux requires a native Chrome, Edge, Brave, or Chromium package for browser native messaging. Snap and Flatpak browser packages are detected but unsupported. Runtime behavior, installers, packages, launchers, continuous integration, and release evidence use only Windows and that declared Linux surface. ## User jobs Ghostlight supports these distinct jobs: 1. See the tabs Ghostlight controls. 2. Bring an exact controlled tab and its window into view. 3. Open a URL in a selected or newly controlled tab. 4. Navigate an exact controlled tab to a URL, through history, or by reloading it. 5. Close an exact controlled tab. 6. Read useful bounded text from the full composed page, including open shadow trees and embedded frames, or from one target; optionally prefer an article when explicitly requested. 7. Inspect page structure and actionable controls, including open shadow trees. 8. Find semantic targets and receive short-lived opaque handles. 9. Capture a viewport, page, target, or magnified current-view region and receive a short-lived view handle that can drive coordinate actions or another region capture. 10. Activate a semantic target or a point in a current captured view. 11. Scroll the page or reveal a semantic target. 12. Set the visible tab zoom. 13. Hover a semantic target or a point in a current captured view. 14. Fill a group of form controls, including credentials when explicitly authorized by the user. 15. Type text through browser input events, including user-authorized credential input. 16. Send an explicit keyboard action. 17. Drag one semantic target to another. 18. Upload explicitly named, bounded local files to an ordinary file control. 19. Run an explicit bounded page script and return its serializable result. 20. Wait for an explicit observable condition. 21. Run a short batch of ordinary tool calls through browser_flow. 22. Resolve a visible browser dialog. These jobs are separate when their intent, required inputs, safety, or result facts differ. Internal browser commands are combined when a person experiences them as one job. ## Delight - The shortest common call contains only the user's intent. - Ghostlight safely chooses a workspace and tab when there is one obvious choice. - Navigation waits briefly for useful readiness and reports the committed landing. - Results say what happened, what is ready, and whether replay is safe. - Failures include at most two contextual recovery actions written by Ghostlight. - Stale tab and target errors explain how to obtain current handles. - Lower-capability models can succeed without knowing Chromium, CDP, transport, policy, settlement, or process details. - The toolbar always explains whether Ghostlight is connected, active, paused, waiting for the user, or ended. - Ghostlight-created tabs remain visibly grouped by workspace. A child tab opened by a controlled page joins the same workspace when ownership is unambiguous. - Visual feedback follows the active document without leaking page content or becoming required for successful work. Page feedback contains no buttons or focusable controls and never intercepts human pointer or keyboard input. Interactive runtime control belongs in the Ghostlight window. - The tray opens a calm workbench that answers what is running, what happened, whether Ghostlight is healthy, which controls apply, and where it is connected, without turning setup into a CLI archaeology exercise. - Once Ghostlight and its browser extension are installed, Ghostlight needs no separate startup ritual. Launching an MCP client or Chromium demand-starts the local service when it is absent, except that a person's Quit holds: a browser restart does not bring Ghostlight back, and the next agent request, a command that needs it, or a person does. - Whatever started Ghostlight, the service brings up the shell whenever the desktop can show it, and the shell draws the tray. When an agent started Ghostlight, only the icon appears; a Start-menu launch, `ghostlight open`, a watcher's Continue and the tray's Open always show the window. The icon shows the band's state, and its tooltip names that state, counts the connections and says when no browser is connected. Closing the window leaves the icon, and the first time one notice says so. Windows restores its existing view; Linux reconstructs its disposable view because Wayland cannot report or unset minimization. - Install is one journey in three steps, This computer, Your browser and Your agent, and every surface that shows it shows the same three. An interactive install prints the version, where Ghostlight lives, which agents have it and one Next line, and opens the Ghostlight window on its setup view. While setup is incomplete the window opens on that view, whether the install, the tray's Open or the extension's Open Ghostlight asked for it. The view lists the browsers installed on this computer and acts on them: Add opens the store listing in that browser, Open finishes a browser that already holds the extension, and a computer with no supported browser is offered Get Google Chrome. A watcher in a browser tab sees the ordinary workbench. Skip for now goes to At a glance, and the tray brings setup back until it is done. - The extension finds Ghostlight absent only at its first connection, and then opens its own bundled setup page once; an install that started with the service shows the window instead and opens no browser page. The first agent request that reaches a browser and succeeds completes setup: the view shows Ready, then At a glance, and the next start opens on the workbench. Until then, while no browser profile holds the extension, an agent's browser call that finds no browser connected says in its own answer where the extension comes from, and opens no window. Reduced motion shows every state with the same words at the same moments and no animation. - Every Linux install has an Applications entry. It runs the shell, which starts the service when none runs and shows the window. A tray is never the only route to the workbench. - Six destinations and one global search reach every workbench surface and user-visible record: At a glance, Integrations, Status, Policy, Settings, and About. At a glance is where the window opens; it carries the current action in full and the recent ones beneath it, so a glance is enough. - ADR-0126 Decision 9 made the landing destination At a glance, leading with whether Ghostlight is ready, connected, working, paused, recovering, or in need of attention, with the action queue beneath that answer and no sixth destination added then; Settings (ADR-0199) is the sixth, holds controls only and duplicates no status summary. The reference-experience epic's S6 delivered it, and `language/readiness.rs` owns the answer. - The header never reads Ready while configured policy refuses all work. When authority fails closed it reads Policy not valid, in the attention tone, and points to the Policy page. It uses the same validity governance enforces, so the header, the Status authority card, and the Policy tab agree. A failed reload that keeps the last valid policy in force is not failing closed; Status warns about it instead. - The header never reads Ready with a promise the policy breaks. When the policy turns off the channel of every connected agent, or every channel, it reads Turned off, in the held tone like a pause, and says whose policy turned off which work. While another channel can still work it stays Ready and says which agents are turned off. Policy, the Status rules check and the tray say the same, from the switches the executor checks per request. ## Desktop workbench experience The workbench is the orchestrator's local-human presentation surface. It is part of the same installed product, drawn by the shell in its own process, while remaining a separate presentation and application context. The service serves with no display. It brings up the shell, which draws the window and the tray, whenever a display is reachable, and says why when there is no window. A desktop session without a tray retains `ghostlight open` and the Applications entry as interaction routes. - At a glance is where the work becomes visible. The current action stands in full with its elapsed time running. When the next one starts, that action settles and drops into a newest-first queue beneath it, so a person can watch a session unfold and scroll back through what already happened. While nothing is running, the last completed action stays on screen rather than an empty panel. Plural MCP sessions and browser instances appear beside it. - Each queued action name toggles an inline panel with the same details as the current action. Mouse and keyboard activation work alike; incoming activity preserves open details and focus. - The record beneath the current action is bounded, local, newest first, and content-minimized. By default an action keeps the bounded visible name of the element it actually used, such as `Clicked the "Save" button`; governance can remove target names without making the action vague. - At a glance can clear completed actions from the current view without deleting the local audit. Running work remains visible, and a fresh desktop process can reconstruct history from audit. - Integrations checks, connects, and disconnects Ghostlight's owned registration for explicitly supported MCP clients. `Set up everything` connects or updates every detected target Ghostlight can change safely in one pass. It never installs a third-party product or overwrites a foreign entry. A separate confirmed per-target Fix may replace one parseable foreign entry under Ghostlight's own key, after showing what was found and making a backup. It never exposes a generic file editor or command runner. Historical Windsurf and its current Devin successor remain separate configuration targets under one product identity. - Status explains service, browser, and authority state, tests native notifications, and applies the explicit end-session intent through the same governance owner used by browser and MCP flows. - Policy names `browser.startup` as `Auto-open browser on request`. When it is on and no browser is connected, Ghostlight starts the browser the person uses with it: the only installed one, or the one that last connected; when a session's own browser has closed, Ghostlight starts that browser again, even while another browser is connected. With several installed and none remembered, and whenever the setting is off, Ghostlight does not launch a browser; a refused browser call tells the model to ask the person to open any eligible installed browser it names, with the Ghostlight extension installed. - Pause, resume, and start-session apply from the persistent header before At a glance and match the tray, so taking the wheel has one affordance rather than several. They are the authority's own state, so they stay available whenever the authority answers, with or without a connected browser. A workbench that loses the authority disables them until it reaches it again. The confirmation, owned by `language/control.rs`, states only that state. It never claims or denies browser delivery, because publication to adapters has no receipt. - A pause prevents the next browser effect by refusing it at the existing final boundary. It does not suspend an invocation or hold a client's request open, because a human-scale pause outlives MCP request timeouts and would compete with the ADR-0113 deadline. The refusal is non-terminal and says so; stop is terminal and says that. ADR-0126 Decisions 4 through 6 fix both directives and keep the four-member state vocabulary, with the wording delivered by the epic's S5. - Important blocked facts may produce quiet, deduplicated OS notifications. Routine successful work does not. - The orchestrator publishes sequenced changes, so the surface shows work as it happens instead of sampling for it. A surface that misses a change resynchronizes from a snapshot rather than guessing. - `ghostlight doctor` reads the same readiness word and detail from an already-running authority. The read is authenticated and content-free, and never starts Ghostlight or creates a session. - Closing destroys the workbench window without ending browser service. Linux Open reconstructs the disposable WebView on every request; Windows reconstructs after close, renderer failure, or reload. Both restore state from the orchestrator. - The original Ghostlight artwork, motion character, and reduced-motion behavior remain product identity across extension and desktop surfaces. The desktop carries Ghostlight's published teal accent and night-garden ground, while the in-page renderer keeps the sky signal users are already trained on. The amendment to ADR-0102 records why the two differ. ## Extension experience The unpacked extension is a complete local product surface, not an invisible relay fixture. - Its manifest preserves the established `Ghostlight in Browser` name, description, icon set, toolbar title, options page, and take-the-wheel keyboard command. Its permissions remain limited to mechanisms used by 1.0. - Its installation identity persists across service-worker suspension, browser restart, and extension reload. The pinned development key preserves the established unpacked extension id. - The toolbar popup says in one word whether Ghostlight is Ready, Paused, Session ended, Not connected or Update needed, who is browsing, and offers Pause agents with the take-the-wheel key cap, End session, and a path to Settings. Paused and Session ended show the held lantern, as the tray and the window do, so neither looks like Ready. While connected, a quiet Open Ghostlight link asks Ghostlight to show its window. When Ghostlight does not answer it says to open Ghostlight on this computer and where it is, or offers the setup page. - The options page uses the Ghostlight kit, keeps the effects-on and captions-off defaults, shows the connection in the popup's words with a setup button when Ghostlight does not answer and the same quiet Open Ghostlight link while connected, holds the diagnostic toggle, and keeps a default-on local choice to preserve controlled tabs. It owns only adapter-local presentation, diagnostics, and physical safety preferences. Authority and policy never move into the extension. - Controlled tabs use one browser-wide blue exact-title group named with the ghost emoji (U+1F47B) and the agent that opened the session as the Ghostlight window names it: the ghost and `Claude Code`, `Command line`, or `Unknown agent` for an opener nothing names. New work reuses that group wherever the user placed it. When no Ghostlight group exists, the adapter creates a dedicated normal browser window instead of inserting work into the user's active window. Moves between windows preserve ownership. An opener never makes a tab Ghostlight's: child tabs and popups stay the person's (ADR-0164). A plain open reuses only a tab Ghostlight opened and a released session of the same agent left open, and never a tab the person opened (ADR-0196 Decision 9, ADR-0203 Decision 9). A tab preserve-tabs keeps after its session ends leaves the group, so Chromium deletes the idle group instead of saving it, and a reuse puts the tab back in its client's group (ADR-0201). - Presentation preserves Ghostlight's luminous sky-blue visual language: controlled-tab border, phantom cursor, target and field treatments, click ripple, drag trail, scroll cue, read scan, action signatures, screenshot frame, denial, and optional captions. It survives document replacement and clears terminal state. The contract includes the established `#38bdf8` sky accent, `#eaf6ff` ink, `#0c0f14` governance chrome, layered omnidirectional glow, spring entrance curve, ease-out exits, and reduced-motion variants. Timing is identity too: the cursor glides for 150 ms, scope breathes over four seconds, a click ripple lasts 620 ms, the read scan lasts 1450 ms, the navigation pill lasts 1600 ms, and a guardrail receipt remains readable for five seconds. Reduced motion removes the receipt animation without hiding its text. - A blocked close is described as a protective outcome, not a generic failure. Policy and the browser-local preserve-tabs setting receive distinct fixed Ghostlight-authored copy. The relevant tab remains visible evidence, manual closure remains available, and background notices wait for that tab to become visible rather than stealing focus. - Established Ghostlight artwork is preserved byte-for-byte in the repository. Clean-room rules apply to implementation, not product identity. ## Safety and truth - No configured policy leaves HTTP(S) browser work open, including localhost, loopback, and link-local destinations. Host restrictions belong to policy. - Configured schema-4 grants admit complete independent RAWX sets; every authority tier can only tighten them. A call's own arguments change neither: `restrict_hosts` and `restrict_capabilities` are refused. - Started work uses one immutable configured authority snapshot. Tool calls do not author policy. - Ownership, leases, runtime controls, and landing authority are checked at their final boundary. - Model-driven tab closure occurs only when the immutable service authority and the browser's local preserve-tabs choice both permit it. Neither gate can expand the other, and local human tab closure remains available. - Every committed landing is governed before its content or readiness is accepted. - Managed authority with no valid initial source or cache fails closed. Later source failure keeps verified last-known-good. - Fill and typing requests default to refusing credential input with guidance for that call. `user_authorized_credentials: true` acknowledges the user's explicit instruction and permits credential input under the same policy and human controls. Prior conversation authorization is sufficient; no approval round trip or session hold is created. The acknowledgement is caller supplied, not independently verified proof. Values never enter audit, diagnostics, or presentation. - Local file upload reads only paths explicitly supplied for that invocation, enforces count and byte bounds before browser dispatch, and never records paths, names, or contents in audit. - Script execution is explicit `execute` authority. Its source and result are bounded and never enter audit or presentation. - Screenshot coordinates are accepted only with a current opaque view handle. A document commit, changed viewport, changed zoom, or superseding screenshot makes unsafe coordinate state stale. - Cancellation, disconnects, holds, partial effects, and uncertain effects are terminal truths, not hidden retries or fabricated success. - Unknown, partial, committed, or otherwise unsafe effects never recommend replay. - Audit records contain identifiers, policy attribution, governed host, and bounded measurements, never full URLs, arbitrary page content, field values, screenshots, selectors, or dialog text. - Presentation is content-free. Presentation failure cannot grant authority or change a result. - Ghostlight never contacts a vendor service. Managed HTTPS fetch is opt-in and goes only to the administrator-configured organization source. ## Exclusions - No hidden or headless browser. - No secret storage, independent verification of user intent, content inspection, or DLP. - No vendor-, model-, or client-specific language. - No remote multi-tenant service. - No generic workflow engine, actor framework, event bus, CQRS split, or event store. - No telemetry, activation service, update check, audit upload, or network call unrelated to the requested visible-browser work or administrator-configured managed-policy fetch. ## Product terms - **Invocation:** one model-requested unit of work with one terminal outcome. - **Workspace:** one admitted MCP session and its controlled Chromium tabs. - **Tab handle:** an opaque stable handle for a controlled tab. - **Target handle:** an opaque handle tied to one tab document generation. - **View handle:** an opaque handle tied to one tab document generation and captured viewport transform. - **Authority snapshot:** the immutable effective permission for one invocation. - **Landing:** the final committed document observed after navigation. - **Hold:** a state that prevents further effects until runtime authority permits them. ## Explicit user control (ADR-0185) Repeated denials do not pause a session. Credential-input guidance applies only to the current request and does not prevent later permitted work. Ghostlight enforces configured authority and explicit human controls without regulating how often an agent asks. Human Pause and Stop keep their final dispatch checks. Resuming human-paused work permits new requests and never replays prior actions.