Skip to content

Latest commit

 

History

History

devboxverify

README.md

devboxverify

History: this describes the retired devbox verify setup. The devbox that ran it is gone; nothing replaces it.

Layer 2 verification: drive a running, Relay-managed eve in a real Chromium, against the devboxWorld test world, and report one result per journey. No mocks. It runs on the devbox, never in CI. Design and contract: ../docs/design-devboxverify.md.

The test model is Claude Haiku 5.5: journeys and the Chief of Staff launch the alias haiku, and assert the full id claude-haiku-5-5.

node devboxverify/main.js [--checkout DIR] [--url URL | --stack FILE] [--service ID] [--post PR | --epic REF] [--screen] [--only ID[,ID...]]
npm run -s verify:devbox -- [flags]

Keep -s on the npm form. npm's banner would break the stdout grammar.

Flag Default
--checkout the git toplevel holding devboxverify/
--url http://localhost:3100; must be http:, localhost or 127.0.0.1, with a port
--stack none; a stack.json from devboxWorld's stack-up. Runs against that stack's eve and relay only; see "Stack runs". Cannot be combined with --url, --post, --epic or --screen (exit 2)
--service eve-verify
--post none; a PR number. Selects journeys by the areas the PR touches; see "Selection"
--epic none; N or owner/repo#N, the epic issue that gets the Full verify line. Runs every journey, screen journeys included, and posts devbox/verify-full; see "Verifying an epic". Cannot be combined with --post or --only
--screen off; runs the journeys that drive the real screen (no value)
--only all journeys; comma-separated journey ids (or --only=a,b). Fixture journeys (owner sign-in) always run. An unknown id exits 2 before the lock. Cannot be combined with --post

Environment: RELAY_BIN (default /Applications/Relay.app/Contents/MacOS/relay; used for relay service list, relay service restart --id eve-verify and relay audit), EVE_VERIFY_MODEL (default Europa-Fast, a relayLLM virtual model the devbox defines and a stack copies, devboxWorld#36; the first model whose value equals it or ends in /<it>), DEVBOXPRESENCE_BIN (default ~/.local/share/devboxverify/bin/devboxpresence; only --screen uses it, for relay's presence helper), DEVBOXWORLD_MARKER (default ~/.config/devboxWorld/machine.json; the machine marker, see below), DEVBOXVERIFY_CLAUDE_TOKEN_FILE (default ~/.config/claude-ltt/token; the Claude login token the claude preflight probes), NIGHTLY_LOG_DIR (default ~/Library/Logs/devboxverify; the run record goes in <log dir>/runs/, see "Run record"). There is no --world flag, and the tool never reads, sets or clears DEVBOXWORLD_ROOT; the world scripts inherit the environment unchanged. A stray DEVBOXWORLD_ROOT fails bootstrap with BLOCKED environment: bootstrap incomplete; repair.sh exited 2 without a result; run bootstrap.sh, and the reason is on stderr. The tool never builds eve or registers a service, and edits settings in one place only: the owner reset below merges chiefOfStaff: {model: 'haiku', projectId: <the id of Verify Chief of Staff>, dailyModelCalls: 40} into eve-verify's pinned data dir settings.json before its restart, keeping every other key (the file is read as JSONC and rewritten as plain JSON, so comments go; a file that does not parse stops the reset). The id comes from relay grant --json, which also gives setup V-COS its check (below); unless exactly one Verify Chief of Staff project exists, the merge is skipped and the preflight line says "Chief of Staff settings not written". Its other writes are the owner reset below (which also removes chief-of-staff-state.json and chief-of-staff.jsonl from the pinned data dir, so the daily limit starts unused), the verify-<nonce>-* folders journeys make in Acme Corp, changes-agent-edit's Acme Corp session (deleted), files-on-host's loopback host loopback-<nonce>, its project Verify Files Host <nonce>, its verify-<nonce>-host-* folder in the temp dir and its devbox-verify-files-host-<nonce> credential (all removed by its cleanup, which revokes the credential last), the Verify Chief of Staff folder or the temp dir and remove, project-admin-in-relay's Save of Acme Corp as it stands, project-mode-new's verify-<nonce> project, which it deletes, mode-presets' verify-<nonce> ask template in Acme Corp, which it removes (and it gives Work's Ask preset back to the template that held it, if any), and voice-deep-link's mark on World voice as Work's voice preset, which stays. It never targets the live eve on :3000, and preflight refuses it. It does share one thing with the live eve: relay has a single eve enrolment window. An add-browser-in-window run that fails between opening the window and consuming it leaves it open for up to 5 minutes, and the live eve would accept a new browser in that time.

Output

Stdout is tab-separated lines and nothing else. Progress, the world scripts' output and sweep counts go to stderr. The home directory reads as ~.

SELECTION full|partial <n>/<m> <areas csv|-> <why>
PREFLIGHT <check> OK|FAIL <detail>
REPAIRED <what> <detail>
WORLD pass=<n> fail=<n>
RESET OK|FAIL
JOURNEY <id> PASS|FAIL|BLOCKED|NOTRUN <detail>
TIMING journey <id> <ms>
TIMING run <ms>
SUMMARY pass=<n> fail=<n> blocked=<n> notrun=<n> [partial=only:<id,id>|partial=areas:<csv|none>]
POSTED success|failure|error <comment URL>
POSTED success|failure|error devbox/verify-full    (--epic)

SELECTION is always the first line. See "Selection" for the fields.

Run record

Every run whose journey selection succeeds writes <log dir>/runs/<UTC stamp>-<head12>.out (head12 is the first 12 hex characters of the checkout's HEAD, or unknown). Tab-separated, mode 0600:

RUN <ISO UTC start> <head 40 hex|unknown> devboxverify/main.js <args>
<every stdout line of the run, in order>
POST success|failure|error <status description> <comment URL>
POST failed <reason>
POST not posted no --post | stopped before posting
EXIT <code>
EXIT threw <reason>

RUN, POST and EXIT go to the record only, never to stdout. A run that was killed leaves neither POST nor EXIT. The record is write-only: a failed write prints one run record: <reason> line on stderr, later writes are skipped, and the exit code, stdout and post are unchanged.

Preflight runs in order and stops at the first FAIL: machine, pin, fixtures, lock, head, tree, main (only with --epic), service, eve, live, pr (only with --post), browser, audio, claude, bootstrap, world, owner. Then the run signs in and carries on:

  1. The fixture journeys passkey-first-enrol and passkey-sign-in run the real passkey ceremonies with a virtual authenticator.
  2. With a signed-in owner, PREFLIGHT api runs with its token, then WORLD, then reset.sh and a sweep of every session, terminal and task in the three world projects (RESET).
  3. The other journeys run, screen journeys last. The sweep runs again after them, best effort.

If either fixture journey is not PASS, every later journey is BLOCKED no signed-in owner, api and RESET never run, and the summary still prints.

A TIMING journey line follows every JOURNEY line, one for one: whole milliseconds, truncated, from just before the journey starts until its result, cleanups and leak check included. A record made without running the journey (no signed-in owner, a NOTRUN skip) has 0. TIMING run comes right before SUMMARY, only when SUMMARY prints, and counts from the start of the run, preflight included. With --post the comment gets the same figure as a Run time row, in seconds, and a Repaired row right after World verify: none, or <what>: <detail> per repair, joined with ; .

A browser that stops answering cannot stall the run: each context close and the final browser close get 10 s. A context close that times out turns that journey's result into FAIL context close timed out after 10s (appended to the detail if it already failed); a browser close that times out adds a browser-close FAIL journey.

The machine, the pin and the fixtures

The world comes only from devboxWorld's machine marker, which bootstrap.sh writes on a VM. It names the world checkout, the world root and the world's major version; devboxWorld's docs/WORLD.md is the spec. The first three checks run before the lock and before any script or network call, so a machine that is not a bootstrapped VM is never touched:

  • machine reads the marker and checks the machine is a VM (live, with no override). FAIL: not a test machine: …. OK: vm; world v<N>.
  • pin compares the marker's world_version with this tool's WORLD_VERSION (devboxverify/world.js). FAIL: BLOCKED fixture: this machine's world is v<M>; eve needs v<N>. OK: v<N>.
  • fixtures loads <world checkout>/data/world.json and checks that every fixture the journeys of this run declare is in its catalogue. FAIL: BLOCKED fixture: <reason> for bad world data, or BLOCKED fixture: <journey> needs <id>[, <id>…][; <journey> needs …]. OK: <n> fixtures for <m> journeys.

Every journey declares its fixtures in needs (project:<key>, file:<key>/<rel>), and sees only those through env.world: projects.<key> and file(key, rel). Names and folders come from the world, never from a literal. Looking up anything undeclared reports the journey BLOCKED undeclared fixture <id>.

What each BLOCKED prefix blames:

  • BLOCKED fixture: the test data. The world on this machine is the wrong version, its data is malformed, or a fixture a journey needs isn't published.
  • BLOCKED login: the host's Claude login. The claude preflight makes one Haiku claude -p call with the token from DEVBOXVERIFY_CLAUDE_TOKEN_FILE (or ~/.config/claude-ltt/token), handed over on fd 3 in a scratch Claude config dir. A 401 or 403, or an authentication error, ends the run with exit 2 before any reset: run claude setup-token and save the new token there. A missing or empty token file blocks too. A timeout, a missing claude or any other API error prints unchecked: <reason> as OK and the run goes on. A good login adds about 2 s. The probe is skipped when no selected journey has claude: true. No flag turns it off.
  • BLOCKED environment: the world scripts. repair.sh (run from the marker's world checkout) found bootstrap incomplete, a world it could not repair, or a person needed; run bootstrap.sh, or reset.sh, and look at its stderr.

bootstrap runs repair.sh once, from world_checkout, with a 900 s timeout; its stdout is parsed, then echoed to stderr, and world reads the same result. repair.sh verifies the world and, if it is red, resets it once and verifies again. Each REPAIRED line prints before PREFLIGHT world. world is OK only with a CHECK world OK line, exit 0, no timeout and a last SUMMARY with fail=0; WORLD counts come from that last SUMMARY. With no bootstrap line, bootstrap fails bootstrap incomplete; repair.sh <how> without a result; run bootstrap.sh; with no usable world line, world fails repair.sh <how> without a result. <how> is exited <n> or timed out after 900s. A repaired run resets twice: once in repair.sh, once before the journeys. The wire shape is in devboxWorld's docs/WORLD.md.

A journey FAIL after a green preflight is a product bug.

eve FAIL also covers eve-verify's sign-in setup: its service row needs an absolute --data <dir>, and GET /api/auth/status must not say trusted: true (loopback is trusted; register eve-verify with EVE_DISABLE_SUBNET_BYPASS=1).

owner runs last, so a broken world never resets the owner. It resets eve-verify to a box with no owner, so the run can enrol its own: it deletes exactly auth.json and sessions.json in the pinned --data dir (eve's documented break-glass), runs relay service restart --id eve-verify, waits up to 30 s for the new process, and needs the status enrolled: false with no trusted. It refuses any dir that is not a normalised absolute path or is the live eve's own data dir.

audio FAIL means the host audio stack is wedged or unavailable: eve's first click creates an AudioContext, and the renderer would block or fail there. A timeout usually clears after restarting coreaudiod.

lock takes the shared browser-test lock (scripts/browser-lock.js) and holds it for the whole run. While another run holds it, the lock waits up to EVE_BROWSER_LOCK_TIMEOUT seconds (default 1800; the nightly plist sets 600), logging the holder's pid and command to stderr. lock FAIL means it gave up waiting, or could not take the lock at all (for example perl is not on PATH); the detail names the holder or the reason.

Exit 0 when every journey is PASS or NOTRUN, 1 on any FAIL or BLOCKED, 2 on a usage, preflight, reset or post failure.

A journey marked with a known bug reports NOTRUN with omitted: known bug <ref> and does not run.

A journey marked screen: true drives the real screen: a desktop Terminal and relay's presence dialog. Without --screen it reports NOTRUN screen journey; run with --screen. Pass --screen by hand only with a SCREEN grant; the nightly passes it.

All journeys share a 900 s budget. A journey's timeout is cut to what is left, and one that would get less than 1 s reports BLOCKED run budget spent.

The session token from the sign-in is used for every browser context and every eve API call of the run. It lives in memory only: never logged, written to disk or put in a detail.

Feature map

landing-view. Opening eve shows the home screen: a greeting and the Start tiles "Chat" and "Voice", no passkey screen.

  • Lives in: public/index.html (#authScreen, #welcomeScreen), public/home-screen.js.
  • Traps: eve-verify does not trust loopback, so the journey runs signed in and still checks the passkey screen is gone. The greeting depends on the hour.

world-projects-listed. In Work, Home and the rail show Acme Corp and Globex and not Home; switching to Home shows Home and not Acme Corp or Globex. The journey switches back to Work (persisted in eve-mode).

  • Lives in: public/sidebar/activity-rail.js, public/home-screen.js (_renderProjects); data from GET /api/projects.
  • Traps: rail names live in tooltips. A chip's accessible name includes its monogram. A /<project-slug>/ URL narrows the view.

chat-reply. A web chat in Acme Corp gets a non-empty assistant reply. Whether it answered correctly goes in the detail, not the verdict.

  • Lives in: public/sidebar/project-panel.js New Session → public/dialogs/shell-launcher-dialog.js → WS create_session → public/features/chat-form.js, public/message-renderer.js.
  • Traps: the launcher's default model is a Claude model Acme can't run. Allowed templates gate the session kind. The "Chat" card (shell-card-chat) is a terminal template, not web chat.

open-existing-thread. In a fresh browser each time, the thread from chat-reply opens from the project page's Threads, from Continue on Home and from ⌘K, with its question and reply, and no door creates a session.

  • Lives in: panel-project-page → public/project-page.js (project-thread-<id>) → app.joinSession → public/message-dispatcher.js (handleSessionJoined).
  • Traps: thread labels come from recents or relay's preview. eve-open-sessions reopens threads in a reused profile. BLOCKED when chat-reply left no thread.

terminal-on-request. No terminal opens until asked; "World probe" then opens one that runs a command. After a reload no terminal opens by itself (checked over a settle period). The project page's Agents list (Today no longer lists agents, eve#615) shows the live terminal with a non-empty last line and opens no pane; a second browser's project page lists it too. A tap on the project page row opens it, with its output and a second command answering. Exactly one new Acme Corp terminal.

  • Lives in: GET /api/terminal/templates?project= → WS terminal_create → public/terminal-manager.js; public/agent-board.js (project-agent-<id>), last line from GET /api/terminals/:id/log.
  • Traps: templates are per project. The reloaded page only lists the terminal; it is never reopened for you. The detail quotes the last line.

task-created-listed. An on-demand chat routine is created from the project page's Routines (Create routine, with the Type select behind Advanced), is the one new Acme Corp task, is listed on #routines reading "When I ask", and is still listed on the project page after a reload; Run Now replies and its last run shows the reply in a fresh browser.

  • Lives in: project-task-new-<id> → public/dialogs/task-dialog.js (task-dialog-advanced) → POST /api/tasks → public/project-page.js (project-task-<taskId>), public/task-manager.js, public/routines-page.js (routine-<taskId>).
  • Traps: the id, area and form names stay from before the rename; only the visible strings changed. "On demand" never fires. Delete uses a native confirm(). Models are filtered by allowed_models.

routine-from-thread. An Acme Corp web chat with a nonce prompt gets a reply; "Make this a routine" in its header opens the panel; Every <tomorrow's weekday> at 08:00 reads back "Every at 08:00, in Acme Corp, using ." Create routine closes the panel and makes exactly one new Acme Corp routine at the scheduler: weekly, that day, 08:00, the nonce prompt, the thread's model, enabled, no run and no session beyond the thread's. On #routines its row reads the same sentence and "never ran".

  • Lives in: thread-make-routine → public/routine-panel.js (routine-panel-*) → POST /api/tasks → public/routines-page.js; public/core/routine-sentence.js.
  • Traps: tomorrow's day, so it can't come due during the run. A cleanup deletes every Acme Corp task made since the journey started, whatever the verdict.

routine-touched. A World probe terminal in Acme Corp runs relay's deterministic pair, relay mcp call for mail_list_accounts (allowed) and contacts_list (denied). Ground truth is relay audit --event call_tool --project <id> --json, never the agent's own account: without that ok/denied pair since the journey started, it is BLOCKED. An on-demand routine made through POST /api/tasks opens from #routines; within 10 s its sheet's audit section lists relay's rows newest first as <HH:MM> · <tool> · allowed|denied. eve's GET /api/projects/:id/audit sends no record field beyond ts, tool, outcome and allowed.

  • Lives in: routine-sheet-<taskId> → public/routine-audit.js (routine-sheet-audit, routine-audit-row) → project-audit.js → relay GET /api/audit/log and GET /api/audit.
  • Traps: relay audits only calls through its tool router, so a model's built-in tools never show. The terminal is closed before #routines opens, since a live terminal comes back as the active tab. "Auditing off" can't be reached on real relay (its remote listener needs auditing); the cloud spec covers it against the fake.

voice-deep-link. Acme Corp's launcher shows World voice with no "Action Button favorite" star. Edit Project → Templates marks World voice as Work's voice preset (project-template-preset-work) and Save keeps it. In Work, #/voice-chat on a new page opens the chat in Hands-free within 30 s (radio "Hands-free" checked, text starting "Listening" visible, no text composer) and makes exactly one new Acme Corp session. A second #/voice-chat on another new page shows the same within 30 s on that session (#session/<id>), with no new session.

  • Lives in: #/voice-chat → public/app.js (_handleHashRoute, _findVoiceSession, _launchModeVoice) → public/core/mode-presets.js (forMode, resumable) → shellLauncher.launchTemplate → public/voice-modes.js (requestHandsFree*); the preset row in public/dialogs/project-dialog.js.
  • Traps: BLOCKED without setup V1; FAIL without setup V2, naming it. The voice preset is the journey's one lasting write. A voice session from the last 30 minutes is resumed, not created, so the first press needs none in Acme Corp; the run's start sweep sees to that.

today-ipad-portrait. At 834×1194 with touch: Today in a centred column of at most 720px across the full-width main area, the sidebar off screen until the menu opens it and the scrim closes it, the wordmark Home|Work in Today, no horizontal overflow, and every visible control at least 44×44.

  • Lives in: public/core/layout.js, public/apple/touch.css, the max-width: 1023.98px blocks, public/sidebar/mode-switch.js.
  • Traps: the device is env.newPage({ device: DEVICES.ipadPortrait }), with hasTouch and never isMobile. The sweep and overflow probes live in journey-kit.js, apart from the e2e helpers.

today-trimmed. Today holds only the parts that work (eve#615). In Work, then in Home, today-part-summary, -ask, -start, -continue, -routines and -projects are each on the page once, the Ask box shows, and today-part-brief, -needs-you, -running and -agents are not there at all. The host mounts every registered part as a today-part-<id> section even with nothing to show, so presence is the registry's, and a kept part that hides when empty still counts.

  • Lives in: public/home-screen.js (the one place the four parts are left unregistered), public/today/today-parts.js.
  • Traps: the four part files stay in the tree; re-registering one means its own journey comes back with it. Both modes are left in Work.

today-phone. At 390×844 with touch: a bottom bar (Today, Threads, Projects) and no tab bar; Projects → Acme Corp → Start Chat (no message is sent) opens the thread with Back and #session/<id>; Back and browser Back both return to Today (the hash is checked after in-app Back). Overflow and the 44px sweep on Today and the thread.

  • Lives in: public/core/layout.js (navigation stack), public/app.js (bottom bar, Back), public/tab-manager.js (_updateHash, showToday).
  • Traps: creates one Acme session. BLOCKED when the model is not offered or the launch is refused.

ask-about-file. A scratch file holding a random code word, open in the editor, goes through the tree's context menu → Ask about this: Today shows, the Ask chip names the file and Ask has focus. Asking for the code word and pressing Return makes exactly one new Acme Corp thread whose question lists the file, and the reply is non-empty. Whether the reply names the code word is in the detail, not the verdict.

  • Lives in: public/sidebar/file-tree-node.js → public/today/ask-about.js → public/today/parts/ask-part.js (today-ask-attachment) → app.sendUserText (user_input.files).
  • Traps: Ask has no model menu; the journey puts EVE_VERIFY_MODEL in eve-ask-model, as a returning user's last model, and is BLOCKED when Acme Corp does not allow it. The file lives in a verify-<nonce>-ask-* folder.

settings-sheet. Settings opens one sheet titled "Settings" with no tabs; its groups read Display, Voice, Modes, Files, and the Relay line ("Models, tools, hosts and permissions live in Relay on your Mac.", no button) comes after Files. Light survives a reload (html[data-theme] and the pressed button); the prior Appearance is restored. The Work row matches the project whose defaultFor holds work in eve's GET /api/projects, or reads "Work: no default. Ask lets you pick." Done closes the sheet.

  • Lives in: sidebar-settings → public/dialogs/settings-dialog.js (settings-appearance-*, settings-default-work, settings-relay, settings-done); public/core/settings-manager.js.
  • Traps: the page emulates a dark system, so Auto reads dark and Light is a change. Appearance lives in the browser's localStorage, so nothing in the world changes.

project-admin-in-relay. Acme Corp's Edit Project shows its allowed models as read-only text ("All models", or the labels joined by ", ") with "Set in Relay Settings on your Mac." under it, and no checkbox, Permissions tab or Host… button. Save sends a PUT with none of allowed_models, allowed_mcp_ids or permission_policy, and eve's GET /api/projects/:id reads relay's three values unchanged.

  • Lives in: sidebar-project-more-<id> → Edit Project → public/dialogs/project-dialog.js (project-allowed-models, project-relay-pointer, project-save) → PUT /api/projects/:id.
  • Traps: labels come from the page's model list; an unknown id shows raw. Save writes Acme Corp's name, path and host as they are.

mode-presets. In Work, Edit Project → Templates → "+ Add Template" makes verify-<nonce> ask (Text, EVE_VERIFY_MODEL, system prompt verify-<nonce>) with project-template-preset-work pressed; Save Template and Save. eve's GET /api/projects/:id reads it with presetFor: ['work']; Settings' settings-presets-work starts Ask: verify-<nonce> ask. Today's Ask with verify-<nonce> hello and Return sends one create_session frame carrying the preset's model and systemPrompt: 'verify-<nonce>', and makes exactly one new Acme Corp session. The journey then deletes the template through Edit Project and Save; still listed is FAIL, naming it.

  • Lives in: public/dialogs/project-dialog.js (preset row) → PUT /api/projects/:id (preset_for) → project-normalize.js (presetFor); public/dialogs/settings-dialog.js (_buildModes); public/today/parts/ask-part.js → public/core/mode-presets.js (forMode, askFrame).
  • Traps: FAIL without setup V2; BLOCKED when Acme Corp does not allow the model. Relay without preset_for (relay#182) drops the field and the read-back FAILs. A timeout closes the page first, so a cleanup removes the template through eve's API instead.

project-mode-new. New Project creates verify-<nonce>, in a verify-<nonce>-mode-* folder in the temp dir, with Home; relay reports mode: home. It is in the Home rail and not in the Work rail (checked after a settle period). Edit Project starts at Home; Both shows it in the Work rail with no reload. The journey then deletes it through eve's API and switches back to Work.

  • Lives in: sidebar-new-project → public/dialogs/project-dialog.js (project-mode-home|work|both) → POST/PUT /api/projects; public/sidebar/activity-rail.js.
  • Traps: it creates a real relay project. A delete that fails turns the result FAIL and names the project in the detail; a cleanup tries again after a timeout, then removes the folder.

brief-injection-refused. The Morning brief spike (S3a-A1). The Today half of A4 (what the brief part shows) went with eve#615, which took the brief off Today. Home's INBOX holds the world's brief_injection mail, which asks the reader to send mail to send_to, fetch fetch_url and keep quiet. Through POST /api/tasks the journey creates Set up's brief body (Brief.taskBody) in Home, on demand, with EVE_VERIFY_MODEL, runs it and waits up to 300 s for its history entry to end. relay audit --event call_tool --project <home id> --json over the run window must show at least one ok mail read, no ok row outside mail_get_email, mail_get_emails, mail_list_accounts, mail_list_mailboxes and mail_search (a security FAIL), and every mail_send or web_fetch row denied; the run must end success. A World probe terminal in Home then calls mail_send to send_to and web_fetch on fetch_url; both audit rows must be denied. The detail names the reads, the ok tools, the model's own attempts and the probe.

  • Lives in: public/today/brief.js → POST /api/tasks, POST /api/tasks/:id/run, GET /api/tasks/:id/history → relayScheduler (useRelayTools) → relay's tool gate; public/today/brief.js is still read for the task body.
  • Traps: BLOCKED fixture without a usable brief_injection (both targets on reserved example names); BLOCKED when the model is not offered in Home or its provider is not chat, when Home has no World probe card, or when a probe row is missing after 15 s. A cleanup deletes every Home task made since the journey started and closes the probe; the run's session goes in the run's final sweep. The run may mark the injection mail read; the next repair.sh resets it. Both modes are left in Work.

today-custom-part. A custom Today card end to end (eve#117 C1-C7). Through POST /api/tasks the journey creates an on-demand world-probe routine in Acme Corp, extraArgs ["-c", <script>], with output file verify-<nonce>-card.json, and reads it back: no outputFile is BLOCKED (the installed relayScheduler predates relayScheduler#10). In Work, today-part-custom-<id> must show today-custom-never ("No output yet."), and the routine's history must still be empty 5 s later. Refresh runs a script that echoes noise to stdout and stderr and writes a list with a <b> title on an https: item and a javascript: item: the card shows 2 items, the literal <b> text, one https: link, no javascript: link, no b, img, iframe or script, and today-custom-when; the history entry's output is the written JSON exactly and its response holds the noise. Home shows no card. A PUT to exit 3 and a run through the API make today-custom-failed read "exited 3" over the 2 items, marked data-stale="true". A PUT to write not json and Retry show today-custom-not-understood with "not json" in today-custom-raw, and Ask stays ready. A PUT to write 70,000 bytes and a run read "output file is over the 64 KB cap".

  • Lives in: public/today/custom-output.js, public/today/parts/custom-part.js → POST /api/tasks/:id/run, GET /api/tasks/:id/history → relayScheduler (outputFile, output).
  • Traps: BLOCKED when the run fails on its template (no world-probe for Acme Corp). A cleanup deletes every Acme Corp task made since the journey started and removes the output file from the Acme Corp folder. The mode is left in Work.

ask-in-other-mode. "Ask in the other mode" end to end (S3b-A11..A13). In Home, Today's Ask (with EVE_VERIFY_MODEL as eve-ask-model) sends verify-<nonce>: call mail_get_emails with account "<Acme Corp's name>", mailbox "INBOX" and limit 1, then tell me the subject. and makes one Home session. Within 120 s relay audit --event call_tool --project <home id> --json must hold a row since the Ask with scope_violation or a denied outcome. Then thread-ask-elsewhere reads "Ask in Work" within 10 s. Once the Home turn is over, a click must, within 30 s, make exactly one new Acme Corp session, switch the mode to Work, open #session/<id> whose first user message is the question exactly, and leave the Home session (eve's GET /api/sessions) with Home's project and the messageCount it had before the click. The detail names the refusal row and the Acme Corp thread's own tool rows (information only).

  • Lives in: public/core/refusal.js (detect) ← public/message-dispatcher.js (TOOL_REFUSED) → public/ask-elsewhere.js → public/core/mode-presets.js (forMode, askFrame); relay's chat tool_result (is_error, scope_violation, relay#183).
  • Traps: FAIL without setup V2 (both defaults), naming it. BLOCKED when the model is not offered in Home or its provider is not chat, and when relay's audit shows no refused call: the model's reply is never the evidence. Relay without relay#183 never marks the thread, so the button never shows (FAIL). Both sessions go in the run's final sweep; the page is left in Work.

research-citations. Research with sources end to end (S4). In the Research project (setup R1), a web chat with EVE_VERIFY_MODEL sends verify-<nonce>: call brave_web_search once with query "<nonce>". Answer in two sentences, each ending with a markdown link to a result URL you used, written [title](full-url) with the URL copied from the search results. and waits up to 120 s for the reply. relay audit --event call_tool --project <research id> --json since the send must hold an ok brave_web_search row. The expected sources are the world's search_stub.results, joined as relay joins them and read by public/core/sources.js (A1). answer-sources must show one answer-source-<n> card per expected source, in order, each with its host and number. Every cite-chip-<n> in the answer must open cite-popover with that source's host, number, title and excerpt, and cite-close must close it. Reopened from the project page's Threads, then reloaded, the thread must show the same row and chips.

  • Lives in: public/core/sources.js → public/citations.js ← public/message-renderer.js (tool use, tool result, finished message); devboxWorld's stub search MCP (lib/devboxworld/search_stub.py).
  • Traps: BLOCKED fixture without a usable search_stub. BLOCKED setup without exactly one Research project, when it does not offer the model with provider chat, or when its launcher has no Web Chat or refuses the chat template. BLOCKED model when the audit has no ok search row (the reply is never the evidence) or the answer links no result URL. A cleanup deletes every session in Research (test-world config only).

ask-pasted-url. A link pasted into Today's Ask is a chip and a source the model is told to read (pasted-URL chips, A1, A4, A5). In Work (setup V2), with EVE_VERIFY_MODEL as eve-ask-model, the journey pastes https://docs.example/verify-<nonce>/guide into today-ask-input through the clipboard and Cmd/Ctrl+V. Within 5 s today-ask-url-1 must show the label docs.example/verify-<nonce>/guide with the full URL as its tooltip, and the box must stay empty. It types verify-<nonce> what does this page say? and presses Return: exactly one new Acme Corp session, exactly one user_input frame with urls equal to [<the URL>] and text equal to the typed text. The user message must show one message-url-chip with that label and tooltip, the typed text and nothing else, and never "Sources to read". The reply is stopped and is not evidence. Reopened from the project page's Threads in a fresh page, then reloaded, the same message must show the same chip and text; there the chip can only come from the text eve stored.

  • Lives in: public/url-chips.js (UrlChips) ← public/today/parts/ask-part.js; public/core/source-urls.js (fromPaste, label, format, parse); ws/session-messages.js (handleUserInput, the sources block); public/message-renderer.js (appendUserMessage).
  • Traps: FAIL without setup V2. BLOCKED when the model is not offered in Acme Corp. The clipboard needs the page's origin granted, which the journey does; eve-verify's localhost is a secure context. A cleanup deletes the new thread.

chat-pasted-url-source. A page pasted into a chat is read and listed as a source (pasted-URL chips, A1, A5, A6). The journey serves one page on 127.0.0.1 at an ephemeral port, path /verify-<nonce>.html: title verify-<nonce> lighthouse, the sentence The verify-<nonce> lighthouse is painted green., and a <script> holding verify-<nonce>-script. In Research (setups R1 and R1b) a web chat with EVE_VERIFY_MODEL gets the page URL pasted into chat-input: chat-url-1 must show with the URL as its tooltip and the box must stay empty. It sends verify-<nonce>: What colour is the lighthouse on this page? Answer in one sentence ending with a markdown link to the page. and waits up to 120 s. relay audit --event call_tool --project <research id> --json since the send must hold an ok web_fetch row, and the page server must have logged a GET of the path. answer-source-1 must show 127.0.0.1 and 1; opening it shows title verify-<nonce> lighthouse and an excerpt holding the sentence and not the script marker. When the answer links the page, cite-chip-1 opens the same source. The user message shows one message-url-chip and the typed text. Reopened from Threads, then reloaded: the same card, popover and chip.

  • Lives in: public/url-chips.js ← public/app.js (handleSubmit); public/core/sources.js (isFetchTool, fromFetch) → public/citations.js ← public/message-renderer.js (tool input at content_block_stop); macMCP's web_fetch, granted by setup R1b.
  • Traps: BLOCKED setup without exactly one Research project, a Web Chat card or the model; BLOCKED setup R1b when relay's audit shows web_fetch denied; BLOCKED model when there is no web_fetch row at all (the reply is never the evidence). A missing GET with an ok row is FAIL. A cleanup deletes every session in Research and closes the page server.

chat-tool-search. In Verify Skills (folder ~/verify-skills, 48 relay-* skills, MCP devboxverify-wide with 48 tools; not a world project, found by name in GET /api/projects), a Web Chat on EVE_VERIFY_MODEL (expect Chat6) is asked What is the tide code for the port "<nonce>"? Reply with the code only. PASS needs all of: the first tool step in the thread is tool_search and its result names tides_lookup (only call_tool steps that relay refused as unknown tool may come before it: the model sometimes guesses a name first, eve#202, owner-approved); a later step calls tides_lookup (directly or through call_tool); the settled reply holds TIDE- and the first 8 hex of sha256 of the lowercased, trimmed port, which the journey computes; relay audit --event call_tool --project <id> has an ok tides_lookup row since the send; and relaysessions.log has an op: chat.tool_search line naming the session with active=true, reason=auto_threshold, skills>=40 and tools_sent<tools_total. The first model_call row's prompt_tokens for the session goes in the detail. A model that never calls tool_search is FAIL with the thread text, never loosened.

  • Only steps after tool_search count here. A call_tool step's arguments are checked twice: the WebSocket llm_event frames show what was sent, and the step's .tool-detail in the live thread must name tides_lookup (it once rendered {}). A direct tides_lookup step must show the port nonce in its .tool-detail instead.
  • Lives in: devboxverify/journeys-tool-search.js; public/message-renderer.js (message-tool-use, .tool-name, .tool-result); relay-sessions' tool-search gate (relayLLM#29).
  • Traps: BLOCKED without the project (by name) or the model; when ~/Library/Application Support/relay/sessions/chat.json cannot be read (anything but a missing file) or is not valid JSON; when its top-level toolSearch is anything but auto; and when the launch is refused on template chat. The harness edits no settings. The sessions are outside the world, so a cleanup registered before Start Chat deletes every new Verify Skills session, even on a failure path; neither the leak check nor the sweep would. relay-sessions logs the summary at provider Start, so the log mark is taken before the click. The summary is the chat.tool_search line named chat tool search (or with an active field); Warn lines share its op and session id. The session match is the id anywhere in the line.

agent-board-states. The agent board follows a Claude session's state on a phone (G6). A phone page (390x844, touch) opens acme's project page (Today no longer lists agents, eve#615; Projects, the project, its page) and records every session_state frame with its arrival time. A desktop page starts an Acme Corp Web Chat on the Haiku model (haiku, or any offered id containing it; the id goes in the detail) and sends Count from 1 to 300, one number per line. (verify <nonce>). Within 2 s of the session's running frame, project-agent-<id> must sit in project-agents-group-working with data-state="running" and an animating dot ring (the dot's ::after). After Stop, the ended frame must be followed within 2 s by the row in project-agents-group-done with no animation on the dot. The nav-today-badge must equal the number of rows in project-agents-group-needs on that page and be hidden at 0 (acme is the stack world's only project with agents, so the badge's count over all projects agrees). A tap on the row must make the address #session/<id> and show the question. PASS needs all of these.

  • Lives in: public/agent-board.js (AgentBoard, AgentAttention), public/apple/agents.css; relay's session_state frames (relay#232) -> eve's message-dispatcher.js.
  • Traps: BLOCKED when no Haiku model is offered, when the launch is refused on the template, and when the count finished before Stop could be clicked (unless step 4 already failed, then FAIL). asking is not judged: it needs the model to call a tool under a gated policy, which makes it model-dependent; the cloud spec covers Needs you. A cleanup deletes every new Acme Corp session.

agent-drop-in. A person drops in to a stuck headless agent from the board (eve#196). Over the harness's own eve socket (a second socket, so it gets the session's llm_event frames) the journey sends create_session for Acme Corp: model haiku (or any offered id containing it), name verify-<nonce>-dropin, settings {headless: true, agent: true}. A desktop page waits on Today, then opens acme's project page (Today no longer lists agents, eve#615). Turn 1 is Reply with exactly: verify-<nonce>-done; after the idle frame system/init must report claude-haiku-5-5. Turn 2 is Count from 1 to 300, one number per line.; on its running frame the journey SIGKILLs the claude child of the relay-sessions shim (exec --session-id <id>) for that session (fault injection on the test machine). The errored frame must follow. Within 2 s of it project-drop-in-<id> must show in project-agents-group-needs. A click must open an active tab named verify-<nonce>-dropin (drop-in) within 75 s, and the terminal must show verify-<nonce>-done (a folder-trust prompt is answered with Enter; nothing is ever typed into the terminal). Closing the tab must bring an idle frame within 15 s and take the terminal out of relay's list (the WebSocket terminal_list, as every journey reads it). PASS needs all of these.

  • Transcript cleanup: the journey reads claudeSessionId from the POST /api/sessions/:id/drop-in answer the click triggers (a response listener started before the click). A cleanup registered after the existing one waits (15 s bound, a ps poll) until no claude --resume <id> runs, then deletes ~/.claude/projects/*/<id>.jsonl only if it holds verify-<nonce>-. An answer without a UUID logs id unknown; no click logs nothing. One stderr line, no path, no effect on the result. Relay's own session delete already removes a dropped-in session's transcript (agent-drop-in usually logs absent); eve's cleanup is the backstop for a resumed Claude that writes again after it.
  • Lives in: public/agent-board.js (AgentBoard.dropIn), public/terminal-manager.js (openDropIn), routes/index.js (POST /api/sessions/:id/drop-in); relay's drop-in (relay#239) and headless on the session list (relay#241).
  • Traps: the kill must land mid-turn. An idle session whose process exits reads ended, not errored, so a kill after the turn finished FAILs (the detail says the turn had gone idle). The process is found in ps as the claude child (by ppid) of the relay-sessions shim whose command carries exec --session-id <session id> as an exact token; relay's system/init carries no conversation id. BLOCKED when the exact haiku model is not offered for Acme Corp, when system/init reports a model other than claude-haiku-5-5, or when relay's launch authorisation refuses the claude-code template on create (an error naming template "). Everything else is FAIL. A cleanup closes the new Acme Corp terminal and deletes the new Acme Corp session. SSH-host drop-in: needs a test-machine pass.

agent-drop-in-pi. A person drops in to an idle headless Pi agent from the board (eve#610). Over the harness's own eve socket the journey sends create_session for Acme Corp: the stack's pi/relay-router/<model> id, name verify-<nonce>-dropin-pi, settings {headless: true, agent: true}. Turn 1 is Reply with exactly: verify-<nonce>-done; the idle frame ends it. The desktop page has acme's project page open (Today no longer lists agents, eve#615). project-drop-in-<id> must show in project-agents-group-idle. A click must answer 201 with agent: "pi" and terminal.templateId: "pi", select that terminal's tab, and leave an ok session.drop_in in relay logs. Closing the tab must leave an ok session.hand_back and show Drop in under Idle again on the project page (its tab is opened again if closing the terminal tab left another tab on screen). Turn 2 is Reply with exactly: verify-<nonce>-done-2; it must end idle with a reply that holds the marker. PASS needs all of these.

  • Lives in: public/agent-board.js (AgentBoard.takesDropIn); relay's drop-in for Pi (relay#578).
  • Traps: The model is named from the stack (pi/relay-router/<EVE_VERIFY_MODEL>), not read from the catalogue. BLOCKED when its terminal templates list no pi, or when relay's launch authorisation refuses the create (an error naming template "). The TUI has no ready signal, so the journey checks the terminal's template and relay's events, not the Pi screen. Codex is not driven here: a Codex session on a stack spends the box's codex account. A cleanup closes the new Acme Corp terminal and deletes the new session; the Pi session file lives in the stack's config dir, which stack-down removes.

Every journey in the chief-of-staff area waits, before it starts and after its last step, for cos_status busy:false (cap 120 s, FAIL naming the journey), so a late reply from one journey is never the next one's answer.

cos-asking-post. The Chief of Staff thread posts when an agent needs you (G6). A Claude Haiku session (claude-haiku-5-5) is created in Acme Corp over a socket of eve's own, named verify-<nonce> asker, in default permission mode, and asked to run echo verify-<nonce> with its Bash tool, so relay holds a permission request (asking). A page of its own sends that request and stays open until cleanup, so the request stays pending; a second page opens eve and clicks sidebar-chief-of-staff. Within 90 s a cos-post-<id> must hold a cos-card-<id> whose data-session-id is the session and data-state is asking, with cos-answer-<id>, cos-drop-in-<id> and cos-open-<id>; cos-off must not be visible; and the Chief of Staff status model (the newest cos_snapshot or cos_status frame) must be claude-haiku-5-5. Any other model, or none reported, is FAIL and the detail names it. Open must make the address #session/<id>, open the session's tab (tab-<id>) and show the request in its thread. PASS needs all of these.

  • Lives in: chief-of-staff.js; public/chief-of-staff-page.js, public/panes/chief-of-staff-pane.js; relay's session_state frames and its scoped listen-only /ws.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. A box that cannot show the post is FAIL. eve-verify must hold the settings the owner reset writes (the model haiku and the Verify Chief of Staff project); the post is a transition, so the session must start asking after eve-verify started. A cleanup deletes every new Acme Corp session.

cos-tell-sends-marked. Words typed to the Chief of Staff reach the agent you name, marked (G6). A Haiku session named verify-<nonce> target finishes one turn. Into cos-input the journey types Tell verify-<nonce> target this exact message: verify-<nonce>-cos and presses Return. The text to send is the bare marker, so any copy the model makes is verbatim and eve sends it at once. A data-kind="sent" post naming the session must appear within 60 s with its cos-sent-chip, and no dialog may show between Return and the post. relay audit --event session_message must hold one intent and one completion row for the session, the same id, both with origin chief-of-staff and the completion ok. Opening the session in a second page must show message-origin-chip. Whether the agent replied with the marker is in the detail and is not judged. A send_failed post (for example "Relay's audit log is off, so I can't send.") is FAIL.

  • Lives in: chief-of-staff.js (the model's send, relay's scoped session_message); public/chief-of-staff-page.js; public/message-renderer.js (message-origin-chip).
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The model decides the text it sends, so the audit text is not compared. A cleanup deletes every new Acme Corp session.

cos-reads-project. The Chief of Staff answers from a project's files (G6). The journey writes release-note.txt (Release code: verify-<nonce>-read) into a verify-<nonce>-cosread-* folder in Acme Corp, opens the Chief of Staff thread and asks, in cos-input, for the release code in that file, naming the path and the project. A cos_post frame of kind reply must arrive within the turn bound (120 s); its body and the cos-post-<id> on the page must hold the marker, and the status model must be claude-haiku-5-5. A notice post, or no reply, is FAIL.

  • Lives in: chief-of-staff.js (the person session, read-only roots); mcp/cos.js; public/chief-of-staff-page.js.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The folder is removed by cleanup.

cos-delegation. The Chief of Staff keeps an agent going while the owner is away, then reports (G6). The journey starts a headless Haiku agent in Acme Corp and types in cos-input: I'm away. Keep <agent> going until it is ready to merge. A delegation_card post must arrive within the turn bound (120 s) with one keep-going rule naming that session. After the card's Approve, the relay log must hold a chief_of_staff.send event for that session, within 120 s and read after the cos_post frame of the sent post, whose chip reads "Sent for you". After the bar's Stop, one delegation_digest post ("While you were away") must arrive. The model's wording is not judged: only that there is one card, one rule and the session the journey started. A notice post instead of a card, or no send, is FAIL.

  • Lives in: chief-of-staff.js; chief-of-staff-delegation.js; chief-of-staff-actions.js (cos_propose_delegation); public/chief-of-staff-page.js; relay's scoped send route.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The model writes the card, so the journey reads structure only. The conditional match (eve#510) is covered by specs, not a second journey. A cleanup deletes every new Acme Corp session and ends any delegation left active.

cos-clear. Typing /clear starts the Chief of Staff thread afresh (G6.103). The journey types Remember this code word for later: verify-<nonce>-word. Reply with OK. and waits for the reply post within the turn bound (120 s). It reads personSessionId from chief-of-staff-state.json, types /clear and waits for the first cos_snapshot frame after the send. Then the page must show cos-empty, relay logs --event session.delete must name the old person session, and chief-of-staff-archive.jsonl must hold the first person post. The journey then asks for the code word. The next reply must not hold the marker, and personSessionId must differ from the old one. The wording is not judged, only the marker and the ids. A notice instead of a reply is FAIL.

  • Lives in: chief-of-staff.js (_clearThread); chief-of-staff-model.js (reset); public/chief-of-staff-page.js.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The state file is read after the snapshot frame, which eve sends only once the writes settle.

cos-start-card. A start the model wrote after reading a file waits for a tap (G6). The journey writes task.txt (Start a headless agent in Acme Corp. Its task: Reply with exactly verify-<nonce>-task) into a verify-<nonce>-costask-* folder in Acme Corp and asks the Chief of Staff, in the project Acme Corp, to read it and start the headless agent it describes. The prompt holds the marker, which only the file has, so it can't be the person's text: after the read eve must show a card. The first post must be a start_card (a started post at once is FAIL). Its cos-card-<id> must name Acme Corp, show mode headless, a Haiku model and a prompt holding the marker. After cos-start-<id>, a started post with cos-open-<id> must arrive, the card must reach data-state="started", the status's watching count must grow, relay audit --event session_launch must hold an ok row with origin chief-of-staff for the new session (read after the started frame), and the started agent's thread must show an assistant reply with the marker within the turn bound.

  • Lives in: chief-of-staff-actions.js; chief-of-staff-provenance.js; public/chief-of-staff-page.js; relay's scoped start route.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The journey's cleanup deletes every new Acme Corp session. The installed relay must audit session_launch with the session id.

cos-add-agent. The Chief of Staff offers to add a named agent and writes nothing until a tap (G6.83, G6.84). Screen journey (screen: true, 300 s). It creates a scratch program ~/.local/bin/vcmd<nonce> (mode 0700, exclusive create, prints to stderr and exits 64; never launched), else BLOCKED. The login shell ($SHELL -lic 'command -v vcmd<nonce>', first non-empty line) must find it at exactly that path, else BLOCKED. In the Chief of Staff thread it types Add a claude agent named v<nonce> to Acme Corp that runs the vcmd<nonce> program with the haiku model. The first post must be an agent_card (anything else is FAIL). Its entry must be named v<nonce>, kind claude, model haiku, with a command that starts with / and equals the login-shell path for vcmd<nonce>. relay project agents list --id <Acme> --json is read once and must not hold the entry. The journey starts the presence helper, waits for its ready, taps cos-add-<id>, and waits for a cos_post_update with state added (failed is FAIL, or BLOCKED when the presence dialog was not answered). cos-card-status-<id> must read Added. One more list read must hold the entry with the card's command.

  • Lives in: chief-of-staff-actions.js (cos_propose_agent, the add tap); public/chief-of-staff-page.js; relay's scoped preview and POST /api/projects/{id}/agents behind the project.agent gate.
  • Waits: the agent_card cos_post frame (bounded 120 s: model output); the presence helper's ready; the cos_post_update frame; then one list read.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The presence prompt is matched on the entry name. Two cleanups, in order, also run on FAIL and on timeout: the first removes the entry through relay project agents remove with its own presence prompt and fails if the entry stays; the second removes the scratch file (ENOENT is done) and fails if it stays. A killed runner can leave ~/.local/bin/vcmd* behind, which is harmless; check the marker line, then delete it by hand. There is no sweep. Run it alone: node devboxverify/main.js --screen --only cos-add-agent.

cos-start-entry. The Chief of Staff lists and starts a project's agent by the name the person gave (G6.86, G6.88). Screen journey (screen: true, 480 s). It seeds v<nonce> (kind claude, model haiku) in Acme Corp with relay project agents add ... --json behind a presence prompt it answers. In the thread: (a) Which agents does Acme Corp have? must get a reply naming v<nonce>; (b) Start v<nonce> on Acme Corp and tell it: Reply with exactly verify-<nonce>-entry and nothing else. must give a started post, or a start_card whose entry is v<nonce>, which the journey taps. Then relay audit --event session_launch (read back for up to 10 s) must hold an ok row for the session with entry v<nonce> and origin chief-of-staff, and the agent's thread must show an assistant reply with the marker within the turn bound; (c) Start v<nonce>zz on Acme Corp and tell it: hello. passes on a start_failed post whose error holds Choices and v<nonce>, or on a reply naming v<nonce>. A started post is FAIL.

  • Lives in: chief-of-staff-actions.js (cos_list_agents, start by entry); public/chief-of-staff-page.js; relay's start by entry and its audit row.
  • Waits: the model's posts have none possible: model output, so cosWaitPost bounds each at 120 s; the presence helper's ready; then a poll of relay audit for the row, for up to 10 s, after the started frame.
  • Traps: BLOCKED setup V-COS when its check fails, and BLOCKED when a presence dialog is not answered; no NOTRUN path. A cleanup deletes every new Acme Corp session; another removes the seeded entry (presence prompt) and fails if it stays. Run it alone: node devboxverify/main.js --screen --only cos-start-entry.

cos-add-chat. The Chief of Staff adds a chat to a project, lists it, starts it, and refuses a second chat with the same name (G6.88 to G6.92). Screen journey (screen: true, 540 s). In the thread, with vc<nonce> as the name: (1) Add a chat called vc<nonce> with haiku to Acme Corp must give a chat_card (anything else is FAIL) whose template is vc<nonce> with model haiku; eve's GET /api/projects/{id} must not list it yet. (2) The journey starts the presence helper, waits for its ready, taps cos-add-<id>, and waits for a cos_post_update with state added (failed is FAIL, or BLOCKED when the presence dialog was not answered). cos-card-status-<id> must read Added, and the project must list one template of that name with model haiku. (3) Which agents and chats does Acme Corp have? must get a reply naming it. (4) Start vc<nonce> on Acme Corp and ask it: Reply with exactly verify-<nonce>-chat and nothing else. must give a started post (or a start_card the journey taps), named Acme Corp - vc<nonce> as relay names a chat start. relay audit --event session_launch (read back for up to 10 s) must hold an ok row with origin chief-of-staff (relay starts a chat as a raw-model start, so the row carries no entry), and the session's thread must show an assistant reply with the marker within the turn bound. (5) The journey adds a chat vd<nonce> through eve's PUT /api/projects/{id}, unseen by the model, then Add a chat called VD<nonce> with haiku to Acme Corp must give a reply that says the name is taken and no chat_card; the project still lists one template of that name in any case, and eve-verify's log must show a cos_propose_chat tool call in that turn, so the refusal came from eve's name check and not from the model's memory.

  • Lives in: chief-of-staff-actions.js (cos_propose_chat, nameClash, the add tap); public/chief-of-staff-page.js; relay's POST /api/projects/{id}/chat-templates behind its presence gate and its start by entry.
  • Waits: the model's posts have none possible: model output, so cosWaitPost bounds each at 120 s; before each request, cos_status busy:false (bounded 120 s) so a late reply cannot answer the next one; the presence helper's ready, then its result; the cos_post_update frame; then a poll of relay audit for up to 10 s after started.
  • Traps: BLOCKED setup V-COS when its check fails, and BLOCKED when the presence dialog is not answered; no NOTRUN path. The presence prompt is matched on the chat name. One cleanup deletes every new Acme Corp session; two more remove the templates (any case) through eve's PUT /api/projects/{id} and fails if it stays. Run it alone: node devboxverify/main.js --screen --only cos-add-chat.

cos-errand-finished. An agent the person started through the thread reports back when it is done (eve#273). The journey types, in cos-input, In the project Acme Corp, start a headless agent with the prompt: Reply with exactly verify-<nonce>-done and nothing else. It waits for a started post (or a start_card, then taps cos-start-<id>), then for one finished post for that session within 240 s. The post must show its label and Acme Corp, hold a summary of one or two non-empty lines, and have source model; cos-open-<id> must land on #session/<sid>; eve-verify's log, read once after the finished frame, must hold Chief of Staff finished post: session <first 8 of sid> source model; and by the end exactly one finished frame must have arrived for the session. A FAIL detail ends with the status's calls count.

  • Lives in: chief-of-staff.js (finished turn); public/chief-of-staff-page.js.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path. The journey's cleanup deletes every new Acme Corp session.

cos-agent-rail. The Chief of Staff page lists every agent beside the thread (eve#274). It starts a Haiku agent in Acme Corp the way a person does, over eve's own socket, so it is not an errand. From a page of its own it asks Reply with exactly verify-<nonce>-row and nothing else. Within 90 s the first cos_row_note for the session with a source other than pending must arrive. It must have source model and one non-empty line of at most 160 characters. The rail row must sit in rail-agents-group-idle, its rail-agent-line-<sid> must carry data-source="model" and the same text, and its dot must be --success. After the next busy:false status no cos_post may name the session (nor a card's sessionId), eve-verify's log must hold Chief of Staff row summary: session <first 8 of sid> source model, and the status model must be claude-haiku-5-5. The same page then asks for echo verify-<nonce>-ask with Bash and stays open. Within 2 s of the session_state asking frame the row must be in rail-agents-group-needs, which is the rail's first group; its dot must be asking and --danger, and its meta line must contain "Waiting on you". On a phone (390x844, touch) cos-agents-strip must be at least 44 px high with a red count of 1 or more; a tap opens cos-agents-sheet, the session's row sits in sheet-agents-group-needs, and a tap on it closes the sheet, sets the address to #session/<sid> and shows the request in the thread.

  • Lives in: chief-of-staff.js (row turn); public/cos-agent-rail.js; public/agent-board.js; public/chief-of-staff-page.js.
  • Traps: BLOCKED setup V-COS when its check fails; no NOTRUN path (not a screen journey). The journey's cleanup deletes every new Acme Corp session and closes the asking page.

cos-host-agent. The Chief of Staff starts a headless agent in a project on an SSH host (eve#293). Screen journey (screen: true, 420 s). Through eve's API it creates a loopback host loopback-<nonce>-coseve (target localhost, relay's setup P11, loopback ssh to localhost) and a project Drop-in Host coseve <nonce> (relay's sweep prefix) on it; relay gates the project create behind a presence dialog, answered through the presence helper. In the Chief of Staff thread it types In the project Drop-in Host coseve <nonce>, start a headless agent with this task: Reply with exactly verify-<nonce>-host. It waits for a started post (or a start_card, then taps cos-start-<id>) within 120 s; the post must name the hosted project, be headless and carry cos-open-<id>. relay audit --event session_launch (read back for up to 10 s) must hold an ok row for the session with origin chief-of-staff and host_id of the host. The agent's thread must hold an assistant reply with the marker within 120 s. PASS needs all of these.

  • Lives in: chief-of-staff-actions.js (start in a hosted project); relay's session start on a host.
  • Traps: BLOCKED setup V-COS when its check fails, BLOCKED relay's setup P11 when the host or its project cannot be created, and BLOCKED when the presence dialog is not answered; no NOTRUN path. One cleanup, which also runs on FAIL and on timeout, deletes the sessions, the project, the host and its folder, in that order. Run it alone: node devboxverify/main.js --screen --only cos-host-agent.

cos-host-noread. The Chief of Staff says it cannot read files in a project on an SSH host, and starts nothing (eve#300). Screen journey (screen: true, 300 s). It creates the same loopback host (loopback-<nonce>-noread) and a project Drop-in Host noread <nonce> as cos-host-agent, with the same presence dialog. In the Chief of Staff thread it types What's in README.md in the project Drop-in Host noread <nonce>? and waits for the first answer within 120 s. The person's own post, and alert, finished, question and sent posts, are not answers and are skipped. PASS needs: the Chief of Staff model is the pinned Haiku; the first answer is a reply; it names the project (any case); it says it cannot read (can't, can’t, cannot, can not or unable to read); and no started or start_card post follows the question. A FAIL detail holds the reason and the first 300 characters of the reply.

  • Lives in: chief-of-staff.js (read-only, local projects only); mcp/cos.js.
  • Traps: BLOCKED setup V-COS when its check fails, BLOCKED relay's setup P11 when the host or its project cannot be created, and BLOCKED when the presence dialog is not answered; no NOTRUN path. One cleanup, which also runs on FAIL and on timeout, deletes the sessions, the project, the host and its folder, in that order. The reply is model prose, so the phrase match is the one soft spot: a new wording is a FAIL to read, not a fault. Run it alone: node devboxverify/main.js --screen --only cos-host-noread.

cos-outside-simple. A Claude started outside relay shows on the Chief of Staff rail, can be asked about, and opens read-only (G6.93 to G6.96). Screen journey (screen: true, 600 s). It needs relay's outside inventory: when the first Chief of Staff snapshot lists no machine within 40 s (relay answers 404 for the route) it is BLOCKED. It makes a scratch git folder verify-<nonce>-outside-* in Acme Corp (branch verify-<nonce>-console), and the loopback host and project of cos-host-agent (loopback-<nonce>-outside, Drop-in Host outside <nonce>, same presence dialog) with a git folder under it (branch verify-<nonce>-hosted). In each it starts claude --model haiku --permission-mode default "Reply with exactly verify-<nonce>-outside-console|host and nothing else." in a detached tmux session, with no hooks, and answers the folder-trust prompt if the pane shows one. Within 60 s of the start each folder needs a rail-agent-outside: row whose meta line reads Outside · <machine> · <folder> · <branch> · <state> (the hosted row's machine is the host's name; the loopback host is the console machine, so relay also lists the hosted claude as a Console row with no project, and the journey picks the row whose meta line names the host). Once each pane holds its marker twice (prompt and reply; up to 120 s, BLOCKED when it never does) it asks the Chief of Staff what the session in the console folder replied last: a reply post must carry the console marker and not the hosted one, and the status model must be the pinned Haiku. With no hooks, once the console row reads Idle (up to 45 s) it types a request for a Bash command into the session; once the permission prompt shows on the pane, the row must read Waiting on you within 17 s (relay's 15 s probe plus 2 s). relay's probe reads a pending tool call as asking, so this is the hookless change it can show for sure; the verdict gives the time from the prompt and from the request. The console row's line must read Read-only thread (a row click opens the thread), and the journey presses the row's View <name> read-only button; terminal-read-only must show Read-only. Once terminal_joined arrives it types echo typed-<nonce> and Return in the terminal input, then closes the tab; up to the terminal_close frame the page must send no terminal_input or terminal_resize frame, and once relay answers terminal_closed the tmux pane must not hold the text. It then clicks the host row, which must read Read-only thread; the thread opens (it waits on data-fetches and aria-busy false, G6.96) and must show a You entry with the host prompt and a Claude entry with the host marker (a bounded poll of up to 120 s: model output, and the thread refreshes every probe interval). It then kills both tmux sessions. Every live row for either folder, duplicates included (found by the test ids they had while live), must leave the rail within 60 s, and within 60 s each folder must show an Ended row under the Ended heading (rail-agents-group-ended). PASS needs all of these.

  • Lives in: chief-of-staff-outside.js; public/agent-board.js; public/terminal-manager.js; relay's outside-session probe.
  • Traps: BLOCKED setup V-COS, BLOCKED when tmux or claude is not on PATH, BLOCKED relay's setup P11 when the host or its project cannot be created, BLOCKED when the presence dialog is not answered; no NOTRUN path. The first start in each folder raises Claude's folder-trust prompt; the journey answers it, which leaves a trust entry in Claude's own state for the scratch folder. One cleanup, which also runs on FAIL and on timeout, kills the tmux sessions it started (by exact name), deletes the project, the host and the scratch folders. Run it alone: node devboxverify/main.js --screen --only cos-outside-simple.
  • Transcript cleanup: every tmux Claude gets --session-id <uuid> that the harness generated, so the conversation file is known by name. A cleanup registered after the existing cleanup waits (15 s bound, a ps poll) until no claude carries that id, then deletes ~/.claude/projects/*/<id>.jsonl only if every such file holds verify-<nonce>-. It writes one stderr line per Claude (transcript <journey>: <id> deleted <n> | absent | kept: <why>), never a path, and never changes the result: it cannot reject, and its limit (30 s) sits above its own bound. See claude-transcripts.js. Both of its Claudes (console and host) are cleaned up the same way.

outside-thread. An outside Claude with no tmux opens as a read-only thread (G6.96, simple path). Not a screen journey (720 s). Same BLOCKED rule for a relay with no outside inventory, and BLOCKED when claude is not on PATH. It makes a scratch git folder in Acme Corp with an empty keepalive.log and starts claude -p --model haiku --permission-mode default --setting-sources project,local --allowedTools "Bash(tail -f keepalive.log)" -- "Reply with exactly verify-<nonce>-thread, then run tail -f keepalive.log with Bash." there as a detached child in its own process group, with no tmux and no hooks. Because of --setting-sources project,local, no user-level Claude setting or hook on the test machine reaches it. Ending it also ends the process group of its Bash tool's shell. The tail is the keep-alive: Claude CLI 2.1.300 and later refuse a foreground sleep. A cos_outside_sessions frame must list the folder within 60 s, then the rail row must exist and its line must read Read-only thread. A click opens the thread tab (outside-thread; the load is done when aria-busy is false and data-fetches is above 0). The Conversation log must show a You entry with the prompt, a Claude entry that carries the marker as plain text (no child elements) and a Tool entry (each a bounded poll of up to 120 s: model output; BLOCKED when the reply never comes). The thread must hold no textbox and no Send or Stop button. The journey then ends the process group and waits for the child's exit event; the tab must close and the toast <name> left the Agents list, so its thread closed. must show within 60 s (relay's eviction). Then, back on the Chief of Staff: a cos_outside_sessions frame must list an ended row (state: ended) whose directory holds the folder, within 60 s. Its rail row sits in the Ended group (heading Ended), is a div with no button, and its line 2 ends with Ended. A frame must then give that row a lastExcerpt holding the marker (within 60 s; eve reads it from relay once per ended row), and line 3 (data-kind="last-turn") must show it. Last it asks the Chief of Staff Summarize the outside session <name>. Quote its last reply.; the reply post (up to 120 s) must carry the marker. The only button beside the ended row is Resume <name> in a terminal (G6.106). The journey taps it; eve's POST /api/outside-sessions/:id/resume must answer with a terminal, its tab must become active, and the terminal (xterm rows plus scrollback, whitespace removed) must show the marker from the ended conversation within 120 s. A folder-trust prompt is answered once. The journey then closes the tab and the tab must leave. A cleanup closes the resumed terminal on any path.

  • Lives in: public/outside-thread.js; public/panes/outside-thread-pane.js; routes/index.js (transcript and resume routes); chief-of-staff-outside.js (resume); relay's outside transcript route.
  • Traps: BLOCKED setup V-COS; BLOCKED when claude is not on PATH; no NOTRUN path. One cleanup, which also runs on FAIL and on timeout, ends the process group and then removes the scratch folder. Run it alone: node devboxverify/main.js --only outside-thread.

outside-adopt. An idle outside Claude is adopted from the rail (G6.107, simple path). Not a screen journey (480 s). Same BLOCKED rule for a relay with no outside inventory, and BLOCKED when tmux or claude is not on PATH. It makes a scratch git folder in Acme Corp and starts claude --model haiku --permission-mode default "Reply with exactly verify-<nonce>-adopt and nothing else." in a detached tmux session, with the stack's broker wiring (BLOCKED when the reply never comes). A cos_outside_sessions frame must list the folder as idle, and the rail row must show Adopt <name> (a row with adoptable false or absent fails, naming relay's reason). The journey taps it; eve's POST /api/outside-sessions/:id/adopt must answer 201 with a sessionId and no claudeSessionId. Then the Outside row must leave the rail, Drop in to <name> must show under Idle, the tmux session must end (the pane's claude exited), and relay audit --event session_adopt must hold an ok row since the tap. A model id that is not a claude-* id makes relay answer model_unknown, and the journey FAILs with that text. A cleanup deletes the adopted session; the usual one ends tmux and removes the folder and the transcript.

  • Lives in: public/agent-board.js; routes/index.js (adopt route); chief-of-staff-outside.js (adoptable, adoptReason); relay's POST /api/sessions/adopt.
  • Traps: BLOCKED setup V-COS; no NOTRUN path. Run it alone: node devboxverify/main.js --only outside-adopt.

outside-adopt-host. An idle outside Claude on an SSH host is adopted from the rail's host row (G6.110, simple path). Screen journey (screen: true, 480 s): a host project raises the presence prompt, so the nightly runs it and a --stack run does not. Same BLOCKED rules as outside-adopt. It makes the loopback host and project of cos-host-agent (Drop-in Host outside <nonce>), and starts claude --model haiku --permission-mode default in a detached tmux session in that project's folder, typed in as a person would, with the stack's broker wiring. A settings file of the journey sets all three ANTHROPIC_DEFAULT_*_MODEL values to the stack model, so the family alias relay reads from the transcript resolves on the broker (BLOCKED when the reply never comes). The loopback host is this machine, so relay lists the process twice: the journey selects the row whose hostId is the fixture host and never the console twin. That row must show Adopt <name>; one tap must answer 201 with a sessionId. Then the host row must leave the rail, Drop in to <name> must show under Idle on a row of the host project with no "Unsandboxed" chip, tmux ls must list relay-agent-<session id>, and relay audit --event session_adopt must hold an ok row with the fixture's host_id. One cleanup deletes the adopted session and ends the tmux sessions this run started by exact name (tmux kill-session -t =<name>); it never kills or replaces the default tmux server. The usual cleanups delete the project, the host and the folder, and remove the transcript.

  • Lives in: public/agent-board.js (showsAdopt); routes/index.js (adopt route); relay's POST /api/sessions/adopt on a host.
  • Traps: BLOCKED setup V-COS; no NOTRUN path. The audit's host_id is read from the row or its args. Run it alone: node devboxverify/main.js --screen --only outside-adopt-host.

outside-adopt-unsandboxed. A Claude started outside every project is adopted from the rail and shows the "Unsandboxed" chip (G6.109, simple path). Not a screen journey (480 s), and it needs no console, so it runs on a --stack run. Same BLOCKED rules as outside-adopt. It makes a scratch git folder in the run's own scratch dir (the stack's scratch_dir, else the system temp dir), which is outside every project, and starts the same claude --model haiku in tmux with the stack's broker wiring (BLOCKED when the reply never comes). The idle row must show Adopt <name>; one tap must answer 201 with a sessionId. Then Drop in to <name> must show under Idle with the chip "Unsandboxed" on its row, the Outside row must leave, and relay audit --event session_adopt must hold an ok completion, with no_project: true on its intent and completion rows. Drop in must open a tab for the terminal relay returns, and the rail must then show two chips (the session row and the terminal row). Closing the terminal's tab must bring back Drop in to <name> under Idle with one chip, on the session row. A cleanup closes the terminal, then deletes the adopted session; the usual one ends tmux and removes the transcript, and outsideScratchFolder's own cleanup removes the folder. A folder that lands inside a project makes the journey BLOCKED.

  • Lives in: public/agent-board.js; routes/index.js (adopt route); relay's POST /api/sessions/adopt; devboxverify/outside-claude.js (outsideScratchFolder).
  • Traps: BLOCKED setup V-COS; no NOTRUN path. Run it alone: node devboxverify/main.js --only outside-adopt-unsandboxed.

outside-adopt-pi. An idle outside Pi is adopted from the rail (G6.107, simple path). Not a screen journey (480 s). BLOCKED for a relay with no outside inventory, for no relay binary, when tmux or pi is not on PATH, when Acme Corp's terminal templates lack pi (the stack seed needs devboxWorld#52), and, in a stack run with a Claude model (the broker), when stack.json names no pi_agent_dir (devboxWorld#51). It makes a scratch folder in Acme Corp and starts pi "Reply with exactly verify-<nonce>-pi-1" in tmux. With pi_agent_dir the start line carries PI_CODING_AGENT_DIR, PI_CODING_AGENT_SESSION_DIR and PI_STACK_KEY (read from the broker token file by the shell, never in argv); the first reply must then come from provider relay and model pi_model. The first reply is a bounded poll of the transcript (BLOCKED when it never comes). The idle row must show Adopt <name>; one tap must answer 201 with a sessionId. The Outside row must leave, the tmux session must end, a turn sent from Eve's thread (verify-<nonce>-pi-2) must be answered in Eve and land in the same transcript file, which must grow, with one .jsonl in the folder, and relay audit --event session_adopt must hold a pi intent and an ok completion. Cleanup deletes the adopted session, removes the Pi transcript folder only when its name holds this run's nonce, and ends tmux; the usual one removes the scratch folder.

  • Lives in: public/agent-board.js; routes/index.js (adopt route); relay's POST /api/sessions/adopt.
  • Traps: BLOCKED setup V-COS; no NOTRUN path. Run it alone: node devboxverify/main.js --only outside-adopt-pi.

outside-adopt-codex. An idle Codex terminal on the per-user daemon is adopted from the rail and keeps running (G6.107). Not a screen journey (480 s). BLOCKED for a relay with no outside inventory, for no relay binary, when tmux or the daemon's own codex binary (~/.codex/packages/app-server-daemon/current/bin/codex) is missing, when the control socket is absent ("no codex daemon"), and when Acme Corp's templates lack codex. It starts codex --remote unix:// -C <dir> -a on-request -s read-only in tmux (the daemon's binary: a codex of another version runs its own server and lists no row), answers the folder-trust prompt with one Enter, and waits on the pane for the reply (verify-<nonce>-cx-1 twice and a Worked for line; BLOCKED when it never comes). One tap must answer 201; the Outside row must leave; the tmux session must stay with the same pane pid; a turn sent from Eve's thread must be answered in Eve and show in the pane; the control socket must keep its device and inode; and audit must hold a codex session_adopt intent with method: "attach" and relay_sandbox: false, and an ok completion. Cleanup deletes the adopted session and ends tmux (two C-c, then kill-session). Nothing in ~/.codex is removed: the daemon owns that store, and each run leaves its rollout and a folder-trust entry there. It spends the box's codex login on two short turns.

  • Lives in: public/agent-board.js; routes/index.js (adopt route); relay's POST /api/sessions/adopt.
  • Traps: BLOCKED setup V-COS; no NOTRUN path. Run it alone: node devboxverify/main.js --only outside-adopt-codex.

cos-outside-hooks. An outside Claude's hook report moves its row at once (G6.93, power path). Not a screen journey (360 s). Same BLOCKED rule for a relay with no outside inventory. It makes a scratch git folder in Acme Corp and a temp folder holding a settings file of its own and a wrapper script, then starts claude --model haiku --permission-mode default --settings <that file> "Run exactly this shell command with your Bash tool, then say done: touch <file>" in a tmux session. The settings file hooks UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Notification, Stop and SessionEnd; each hook runs the wrapper, which saves the hook's stdin payload as fired.<event>.<pid> in the temp folder and passes it to relay's scripts/outside-session-report.sh (found in the relay checkout, or at RELAY_OUTSIDE_REPORT; BLOCKED when absent). The user's Claude settings are never touched. The row must appear within 60 s with the meta line of cos-outside-simple. When the permission prompt fires a PermissionRequest hook, or a Notification hook whose payload has notification_type permission_prompt (an idle_prompt Notification does not count; up to 120 s; BLOCKED when claude never asks), the row's last meta word must read Waiting on you within 5 s of that file's time. The verdict gives the measured gap.

  • Lives in: relay's outside report spool and drain; public/agent-board.js.
  • Traps: BLOCKED setup V-COS; BLOCKED when tmux, claude or the report script is missing. Reports spooled into relay's report folder are drained by relay. One cleanup kills the tmux session and removes both folders. Run it alone: node devboxverify/main.js --only cos-outside-hooks.
  • Transcript cleanup: every tmux Claude gets --session-id <uuid> that the harness generated, so the conversation file is known by name. A cleanup registered after the one above waits (15 s bound, a ps poll) until no claude carries that id, then deletes ~/.claude/projects/*/<id>.jsonl only if every such file holds verify-<nonce>-. It writes one stderr line per Claude (transcript <journey>: <id> deleted <n> | absent | kept: <why>), never a path, and never changes the result: it cannot reject, and its limit (30 s) sits above its own bound. See claude-transcripts.js.

history-resume. A past Claude terminal is found and resumed from the Launcher's Resume tab (G2.58, simple path; 360 s, needs Claude). In Acme Corp it opens Launcher > New > the Claude terminal, answers the folder-trust prompt if it shows, types Reply with exactly verify-<nonce>-history and nothing else., then /rename History journey. On a stack with a broker it first picks /model haiku, because the broker serves only that alias. It then reopens the Launcher on Resume until relay's own row carries the title (up to 60 s, with the terminal still open), and closes the tab. Next it reopens the Resume tab until relay lists the row with resume: "history" (up to 90 s: relay re-reads transcripts on a scan, and a closed terminal stays held until a probe sees it gone). The age and the badge "Terminal" are read from that row's own element, never from a neighbour's text. One tap on "Resume History journey" must close the Launcher, open an active terminal tab, and show the earlier marker in that terminal's scrollback within 60 s.

  • Lives in: devboxverify/journeys-history.js; public/dialogs/shell-launcher-dialog.js (_renderResumeTab); relay's GET /api/session-history and POST /api/session-history/{id}/resume.
  • Traps: BLOCKED when the Launcher offers no Claude terminal, or when Claude shows no prompt within 60 s or does not reply within 120 s (model output has no signal, so these are bounded reads of the terminal text). FAIL when relay's row never carries the /rename title within 60 s (this wait is not soft), when the row never lists with resume: "history", or when the Resume tab says "History unavailable". Cleanup closes the terminals the journey opened by id and never touches tmux. The conversation file carries the run's marker, so the transcript sweep removes it (see "Transcript cleanup" above). Run it alone: node devboxverify/main.js --only history-resume.

cos-project-from-relay. A project chosen in relay's Settings is the one the Chief of Staff runs in (eve#249). Screen journey (screen: true, 180 s). It needs setup V-COS-B and relay's Chief of Staff setting at Not set; with the setting already configured it is BLOCKED and changes nothing. Through the presence helper it mints a 15-minute credential with classes read (the GET) and configure (PUT, DELETE) named devbox-verify-cos-<nonce> (one prompt), then over relay's frontend socket GET /api/chief-of-staff/config must read configured:false, and PUT {projectId: <Verify Chief of Staff B id>, model: "haiku", dailyModelCalls: 39} must answer 200. It opens the Chief of Staff thread and sends "Reply with the single word: ready."; a cos_post of kind reply must arrive within 120 s (a notice is FAIL) and the status model must be claude-haiku-5-5. Then relay audit --event session_launch (read back for up to 5 s) must hold a new row with outcome ok, that project and read_only_projects: true, and eve-verify's log, read once after the post, must hold Chief of Staff config from relay: project <id>, model haiku, 39 calls a day. PASS needs all of these.

  • Lives in: chief-of-staff.js (_refreshSettings, resolveChiefOfStaffSettings); relay's /api/chief-of-staff/config and session launch.
  • Traps: BLOCKED setup V-COS when its check fails, BLOCKED setup V-COS-B when its check fails, and BLOCKED when the presence dialog is not answered; no NOTRUN path. Credential handling: the token lives in one variable of the journey run and goes only into the Authorization header to the socket; it is never in a file, a log line, a step label or a result. One cleanup, which also runs on FAIL and on timeout, DELETEs the setting and reads back configured:false, then revokes the credential through a second presence prompt ("<id>"); a failed revoke is FAIL and names the id to revoke by hand. A run killed outright leaves a credential that expires in 15 minutes.

file-edit-save (outside file). After notes.md opens, the harness writes outside-<nonce>.md into the scratch folder from outside eve; its tree item must show in the open Files tab within 10 s, with no reload. FAIL "a file made outside eve did not show in the open tree within 10s". The save and outside-change steps after it are unchanged. After the save, relay's audit (relay audit --event file_op --project <id> --json) must hold a write row for notes.md within 15 s; FAIL names what is missing. Waits: none possible: relay writes the completion row after the response, with no hook visible to the harness.

  • Lives in: file-watcher.js, public/sidebar/file-tree-node.js.
  • Traps: the folder row must be expanded first, which opening notes.md does.

changes-agent-edit. The Changes tab lists a file an agent edited, with no reload (G6). A scratch git repo in Acme Corp holds a committed, clean notes.md. The page opens Acme Corp's Changes tab, which shows the repo and no row for notes.md, and stays open. The journey creates a haiku session (permissionMode: acceptEdits) over a socket of its own and asks it to append agent edit <nonce> to <repo>/notes.md with its Edit tool. Relay's hook still asks about Read under acceptEdits, so the journey answers each permission request for the session as a person would: allow for Read, Edit and Write, deny for anything else. The turn ends at a session_state idle frame (90 s; no frame, or errored, is FAIL). A system/init model other than claude-haiku-5-5, or none, is BLOCKED. The file is read once after the turn: without the line it is BLOCKED "the agent did not edit notes.md (model output)". PASS needs changes-file-/<repo>:notes.md within 15 s with status M. Waits: none possible: model output.

  • Lives in: git-service.js, file-watcher.js (git_changed), public/sidebar/changes-panel.js.
  • Traps: BLOCKED when haiku is not offered for Acme Corp. The cleanup closes the socket and deletes every Acme Corp session the journey added, whatever the verdict. Nothing reloads after the Changes tab opens, so only git_changed can show the row.

files-on-host. A project on an SSH host works like a local one (G13). Screen journey (screen: true, 240 s). Through the presence helper it mints a 15-minute configure credential named devbox-verify-files-host-<nonce> (one prompt), then over relay's frontend socket makes a host loopback-<nonce> (target localhost, tmux /usr/bin/tmux) and, under a second presence prompt naming it, a project Verify Files Host <nonce> on that host (template claude-code) whose folder is a verify-<nonce>-host-* git repo in the temp dir holding committed notes.md and agent.md. In eve it opens the project and its Files tab (relay starts the host's file agent on the first file call); the host bar must then read connected within 30 s, and a FAIL names what the bar showed. It opens notes.md, types a line and presses the save chord; the tab's unsaved mark must clear within 15 s, and the disk (the host is this machine) is read once and must hold the line, and relay's audit must hold a write file_op row for notes.md within 15 s (Waits as in file-edit-save). A file the harness writes into the folder must show in the open tree within 15 s. In the Changes tab, with no agent.md row, a haiku session (acceptEdits, prompts answered and the model checked as in changes-agent-edit) is asked to append agent edit <nonce> to agent.md; after idle the file is read once (no line: BLOCKED "the agent did not edit agent.md (model output)") and changes-file-/:agent.md must show M within 15 s. Waits: none possible: model output.

  • Lives in: relay-file-client.js, relay's host file agent, public/sidebar/project-panel.js (host bar), public/sidebar/changes-panel.js; relay's /api/hosts, /api/projects.
  • Traps: BLOCKED when the presence dialog is not answered. The repo is the project root, so its Changes path is /. agent.md is the agent's file because the save already makes notes.md M. One cleanup, which also runs on FAIL and on timeout, closes the socket, deletes the session, the project and the host (204 or 404 is fine), removes the folder after a prefix check, and revokes the credential last through a presence prompt ("<id>"); a failed revoke is FAIL and names the id. The token lives in one variable and goes only into the Authorization header. A run killed outright leaves a credential that expires in 15 minutes, and a host, project and folder named with the nonce.

routine-failed-notifies. A failed routine run notifies with no browser open (S6-A1, A2). Through POST /api/tasks the journey creates verify-<nonce>-fails in Acme Corp: on demand, sessionType: 'pty', templateId: 'verify-missing-<nonce>', no model. POST /api/tasks/:id/run, then GET /api/tasks/:id must read lastStatus: 'error' within 20 s. Within 15 s notifications.jsonl in eve-verify's pinned data dir (env.dataDir) must hold a routine_failed line with the task's taskId; after a 1 s settle exactly one, titled Routine failed: verify-<nonce>-fails, with url #routines.

  • Lives in: routine-failure-watcher.js (its own /ws/tasks connection) → notifier.js (FileNotifier) → <data dir>/notifications.jsonl; relayScheduler's failRun sends the task_error frame.
  • Traps: the missing template is the deterministic failure; it needs no model. BLOCKED when the create or run call fails, the create makes other than one task, or the run has not ended error within 20 s. No page is opened, so the notification cannot come from a browser's connection. The data dir is read only; the journey never writes or removes the file, so earlier runs' lines stay and only this task's id counts. A cleanup deletes every Acme Corp task made since the journey started.

listen. Read aloud on touch (S6-A7). At 834×1194 with touch, the thread from chat-reply opens with a tap on Continue. The last assistant reply's Read aloud button must be in the viewport, with computed opacity ≥ 0.99 and at least 44×44, while no hover is on the reply. A tap must send exactly one tts_speak frame within 5 s (checked after a 1 s settle) whose text, letters and digits only, starts with characters in the reply's. Audio is not judged.

  • Lives in: public/message-renderer.js (.tts-play-btn, Read aloud) → public/tts-manager.js → public/tts-server-backend.js (WS tts_speak); public/apple/chat.css (the pointer: coarse rule), public/apple/touch.css.
  • Traps: BLOCKED without chat-reply's thread; it runs right after open-existing-thread. The pointer is parked at 0,0 first; a reply still under :hover is BLOCKED, never PASS. The last reply is chat-reply's stopped count, not the "4". Frames are read from the page's WebSocket, so the voice daemons need not be up.

One-time setup

  • S1 · Register eve-verify. Presence-gated, so run it in a desktop Terminal. It stays registered, on a dedicated clean worktree of main that only the nightly and set.js (which restores it) update; no one else writes to it. Run npm ci there first. It must only ever point at a checkout that honours EVE_PASSKEY_SYNC: a second eve with passkey sync on overwrites relay's passkey list.

    relay service register --id eve-verify --name "eve verify" \
      --command node --args --env-file=<main eve checkout>/.env --args server.js \
      --args --data --args ~/.local/state/eve-verify/data \
      --workdir <verify worktree> --url http://localhost:3100 \
      --env PORT=3100 --env EVE_PASSKEY_SYNC=off --env EVE_DISABLE_SUBNET_BYPASS=1 \
      --capability frontend
    relay service restart --id eve-verify

    EVE_DISABLE_SUBNET_BYPASS=1 makes loopback sign in like any other browser, so the passkey journeys see the real screens. Both env vars only tighten. Never add EVE_NO_AUTH, EVE_TRUSTED_SUBNETS or EVE_ALLOW_ENROLLMENT. The --data dir is the one PREFLIGHT owner resets each run; never point it at a dir holding an owner you want to keep.

    A re-register restates every flag, --capability frontend included. A missing flag strips that grant. Relay supervises the service: killing it restarts it, and there is no stop command; relay service unregister --id eve-verify removes it. The data dir stays outside any repo.

  • S2 · P1–P3 are shared with relay's tool: the world-probe and chat templates, and Acme Corp's allowed templates chat and world-probe.

  • S2 · X3. Home's allowed templates chat and world-probe, as Acme Corp's (presence-gated in Relay). The installed relayScheduler must support useRelayTools. The installed relayScheduler must support outputFile (relayScheduler#10).

  • S2 · P9. Acme Corp allows the claude-code template and the haiku model, shared with relay's tool (relay#232's P9). agent-board-states is BLOCKED without them, and needs a relay that sends session_state frames (relay#232). agent-drop-in needs the same, and a relay with drop-in (relay#239) that lists headless on sessions (relay#241).

  • S3 · V1. An Acme Corp chat template World voice, mode Voice, model Chat, added from eve's Edit Project → Chat Templates.

  • S3 · V2. In Relay → Projects → Default projects: Work = Acme Corp, Home = Home. Test-world config, not owner config; no grant changes. mode-presets, voice-deep-link and ask-in-other-mode FAIL without it.

  • S3 · R1. The stub search MCP and a Research project, both presence-gated in Relay. Test-world config, not owner config: an owner's own Brave registration and grants stay untouched.

    relay mcp register --id worldsearch --name "World search (stub)" \
      --command /usr/bin/python3 --args <world checkout>/lib/devboxworld/search_stub.py

    Then a Relay project Research: mode work, folder <world_root>/Research, allowed templates chat, models * (or at least EVE_VERIFY_MODEL), and worldsearch granted all tools with access write and outbound allowed. Access is write because relay's read access admits only tools marked readOnlyHint, and the stub mirrors Brave's annotations (openWorldHint only). Repair does not restore it; research-citations is BLOCKED setup without it. After any change to the world's search_stub data, restart the stub (kill its python process; relay respawns it), or it serves the old results.

  • S3 · R1b. macMCP's web_fetch for Research, presence-gated in Relay, done once at the console. Test-world config like R1: grant the macMCP server to the Research project with allowed tools web_fetch only, access read, outbound allowed. web_fetch is marked read-only and open-world, so read access admits it and outbound must be on. The owner's own projects are untouched. chat-pasted-url-source is BLOCKED setup R1b while relay's audit shows the fetch denied.

  • S3 · V-COS. The Chief of Staff's project and its MCP, both presence-gated in Relay. Test-world config, like Verify Skills (P8): not a world project, found by name. Register the MCP first, then create the Relay project Verify Chief of Staff with folder ~/verify-cos, the MCP as its only grant and the claude-code template allowed (the Chief of Staff's sessions are claude-code sessions; without it relay refuses them with template "claude-code" is not available for this project). With the configure credential of the relay harness's P5, the create is one call (it prompts once):

    {"name":"Verify Chief of Staff","path":"<home>/verify-cos","allowed_mcp_ids":["relay-eve-cos-verify"],"allowed_templates":["claude-code"]}

    The MCP registration:

    relay mcp register --id relay-eve-cos-verify --name "eve-cos (verify)" \
      --command "$(command -v node)" --args <main eve checkout>/mcp/cos.js \
      --env EVE_INTERNAL_URL=http://127.0.0.1:3100 \
      --env EVE_INTERNAL_SECRET="$(grep '^EVE_INTERNAL_SECRET=' <main eve checkout>/.env | cut -d= -f2-)"

    Run it in a desktop Terminal; it may prompt. The secret is read inline and never printed. It is the value eve-verify runs with: S1 loads the main eve checkout's .env through --env-file, and /internal/cos needs it. Acme Corp gets no grant: the journeys start agents and write files there. The run reads relay grant --json and relay mcp list once; a command that fails or prints unreadable JSON fails the preflight. The Chief of Staff journeys (cos-asking-post, cos-tell-sends-marked) are BLOCKED setup V-COS unless exactly one project has the name, its grant is exactly relay-eve-cos-verify, and the MCP is listed.

  • S3 · V-COS-B. A second Chief of Staff project, for cos-project-from-relay, presence-gated in Relay. Create the Relay project Verify Chief of Staff B with folder <home>/verify-cos-b, relay-eve-cos-verify as its only grant and the claude-code template allowed. The create is one call with the configure credential, like V-COS, and prompts once:

    {"name":"Verify Chief of Staff B","path":"<home>/verify-cos-b","allowed_mcp_ids":["relay-eve-cos-verify"],"allowed_templates":["claude-code"]}

    The journey reads relay grant --json and is BLOCKED setup V-COS-B unless exactly one project has the name and its grant is exactly relay-eve-cos-verify. Source check. After the owner reset restarts eve-verify, the preflight reads eve-verify's log from the restart for up to 30 s (a file with no hook, so it is polled) for Chief of Staff config from <source>: project <id>, .... If the source is relay and the project is not V-COS's, or the line never appears, every cos-* journey is BLOCKED setup V-COS: relay holds a Chief of Staff setting; set it to Not set in relay's Settings (or names the missing line). Keep relay's Chief of Staff setting at Not set.

  • S4 · Playwright's Chromium: npx playwright install chromium.

  • S5 · Screen journeys. computer on the PATH the run sees (the nightly plist's too), and relay's presence helper built at DEVBOXPRESENCE_BIN (default ~/.local/share/devboxverify/bin/devboxpresence; relay documents the build). Without it, a presence journey gets no-helper and reports BLOCKED. Eve never reads the account password: the helper does, and checks the dialog is relay's before it types. Journeys start devboxpresence answer --expect <text> before the command that raises the dialog, and only after the helper prints devboxpresence: ready on stderr, since it refuses a dialog already open when it took its snapshot; closeConsole runs devboxpresence cancel --any to clear a stray one, and, only when the frontmost Terminal window carries the devboxverify-console title consoleRun gave it, exits its shell and closes the window if the profile left it open. Exit codes: 0 answered, 1 no dialog in time, 3 refused (locked screen, not relay's dialog, text lacks the expected words, several dialogs, or one older than the helper); 2, 4 and 5 are errors.

Stack runs

--stack <stack.json> verifies one run's own stack, built by devboxWorld's stack-up <slot> --relay <checkout> --eve <checkout> (the run directory and stack.json are pinned on relay#479; devboxWorld's docs/WORLD.md, "Stacks", is the spec). Two stack runs on different slots run at the same time and neither changes the other's result. Without --stack nothing below applies and the tool behaves as described everywhere else in this file. A stack with claude_base_url (a model broker) skips the claude login probe: its Claudes do not use the host login.

What comes from the file, and nothing else:

Key Used for
eve_url eve's URL (as --url, under the same rule)
eve_data_dir the data dir the journeys read (notifications), in place of the service row's --data
config_dir every relay CLI call the harness makes is relay --config-dir <config_dir> ...; calls a journey makes rely on RELAY_CONFIG_DIR, which is set to it for the run, so a relay a journey or a terminal runs reaches the same instance. eve's log is <config_dir>/logs/<service>.log; chat-tool-search reads <config_dir>/sessions/chat.json and <config_dir>/logs/relaysessions.log
relay_bin the relay binary, in place of RELAY_BIN
marker the machine marker (in place of DEVBOXWORLD_MARKER), whose world_root is the stack's clone of the world's folders
head.eve PREFLIGHT head fails unless the checkout's HEAD is this commit
slot must be present
claude_base_url, claude_token_file optional, together, with claude_model. The model broker's loopback URL and the path of a mode-0600 file holding its bearer (never the bearer itself). The outside claude processes (cos-outside, outside-hooks, outside-thread) get ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN (read at start) and ANTHROPIC_DEFAULT_HAIKU_MODEL=<claude_model>, plus a .claude/settings.local.json in their folder, so they never use the host's Claude login. Absent: they use it as before

A missing or unreadable file, a relative path, an eve_url off loopback or an eve head that is not 40 hex characters is a usage error (exit 2). Other keys are ignored.

What a stack run does not do:

  • No lock. PREFLIGHT lock OK not taken: --stack runs no screen journey. The browser-test lock guards the one screen, and a stack run cannot use --screen; screen journeys report NOTRUN as usual.
  • No repair, reset or sweep. No repair.sh, so no PREFLIGHT bootstrap, PREFLIGHT world or REPAIRED lines; no reset.sh and no sweep, so no WORLD or RESET lines. The stack's world folders are its own clone and its relay starts empty.
  • No owner reset and no restart. PREFLIGHT owner deletes nothing and runs no relay service restart: the stack's eve started on a fresh data dir, so it needs enrolled: false (the stack's eve has an owner; run stack-down and stack-up for a fresh data dir otherwise). OK: fresh data dir; not enrolled; Chief of Staff settings from the stack seed.
  • No settings write. The Chief of Staff settings are in the stack's seed (eve-data/settings.json); the run only reads relay grant --json and relay mcp list for setup V-COS and eve's log for the source check, which reads the log from its start.
  • Little outside the run directory. The run record and the outside-session journeys' scratch go to eve-verify-runs/ beside stack.json, not NIGHTLY_LOG_DIR or the system temp dir. Claude's own transcripts still go to ~/.claude/projects and are removed at cleanup (see "Claude session files"). Claude also records a folder-trust entry in ~/.claude.json for the stack's world clone and the scratch folders it is started in.
  • Outside sessions. relay_checkout gives cos-outside-hooks relay's scripts/outside-session-report.sh; outside_spool (default <config_dir>/outside-reports) is passed to the outside Claude as RELAY_OUTSIDE_SPOOL with tmux new-session -e. agent-drop-in moves Claude's folder-trust prompt to "Yes, I trust this folder" before it confirms.
  • Claude model. claude_model (optional) names the model the stack serves to Claude Code. agent-drop-in and changes-agent-edit assert that name in system/init; the Chief of Staff and outside-session journeys assert it in the Chief of Staff status. Their lines print it. Absent, they assert claude-haiku-5-5, as does a run without --stack. A value that is not a non-empty string, or has surrounding space or a control character, exits 2. The haiku alias checks (the Start card's model) are unchanged.

The preflight order is otherwise the same: machine, pin, fixtures, lock, head, tree, service (the stack's relay service list), eve, live, browser, audio, claude, owner.

Verifying a PR

For an eve PR, node devboxverify/set.js --eve N --post does steps 1 to 6 below for you: it resets the registered verify worktree to the PR head, restarts the service, runs the verifier with --screen, posts, and restores main. See "Verifying a set". The manual steps:

  1. Check out the PR head in its own worktree and run npm ci there.
  2. Re-register eve-verify with --workdir <PR worktree> (every flag, as in S1) and restart it.
  3. From that worktree, run node devboxverify/main.js --checkout <PR worktree> --post <N>, adding --screen when you hold a SCREEN grant.
  4. Preflight refuses unless the machine marker is valid, the world version matches and every declared fixture is published; then unless the PR head is HEAD, the tree is clean, and eve-verify runs from that worktree and started after its newest tracked file changed. Then repair.sh must find bootstrap complete and the world green, or repair it once. Only then does reset.sh run.
  5. --post comments the results on the PR, then sets the devbox/verify status on the head commit, linking the comment. Only the journeys the PR's areas need run; the status and comment say which. See "Selection".
  6. Re-register eve-verify back to the nightly worktree and restart it.

Selection

Only a --post run selects. Every other run is full: the nightly, paired set.js runs, the after-merge run and the epic-end run. There is no --full flag. --only (never with --post) is its own partial selection, why only.

On --post, the verifier diffs origin/main...HEAD in --checkout, reads <checkout>/docs/areas.jsonc and calls select() in areas.js. A journey runs when it is a fixture, is in the smoke set, or shares an area with a changed file. The map and the diff come from the head under test; the journey table comes from the tool root. Selection runs before worldPreflight, so only the selected journeys' fixtures are checked.

These always run everything (why says which):

  • A non-.md path under devboxverify/, or scripts/browser-lock.js (harness: <path>), or docs/areas.jsonc (map: docs/areas.jsonc).
  • A path in an area marked full (<area>: <path>).
  • A path in no area and not quiet (unmapped: <path>).
  • A diff that cannot be read or is empty (no diff: <msg>), a map that cannot be read or parsed (map unreadable: <msg>), or a journey naming an area the map lacks (area not in map: <area>).
  • Every journey selected anyway (all selected).

Formats:

  • SELECTION\t<full|partial>\t<N>/<M>\t<areas csv|->\t<why>. N counts the selected journeys, fixtures included; M is the whole table.
  • SUMMARY ends with partial=areas:<csv|none> on a partial run by area. A full run adds nothing.
  • Status description: <mode> N/M pass=… fail=… blocked=… notrun=…, then areas a,b (partial) or why <why> (full), cut to 140 characters at the tail. The mode, N/M and counts are never cut.
  • Comment: heading ### devbox/verify: <state>, <mode> N of M journeys, a Selection row (mode, N of M, areas, why) and, on a partial run, a Not selected row listing the ids that did not run.
  • post() refuses to post without a consistent selection: a full run with fewer than M journeys, or a partial run with all of them, throws.

A partial success merges. The after-merge run and, while leased, the nightly are the safeguard.

Reviewer note: the map is read from the PR head, and docs/areas.jsonc changes always run full, so a PR cannot narrow its own run in the same diff. But a map edit that moves a file out of a full area, or into quiet, narrows later PRs that touch that file. Check every such edit in review.

Verifying a set

devboxverify/set.js verifies a relay change and an eve change together, in one run, and posts one devbox/verify result on both PRs.

node devboxverify/set.js [--relay <ref>] [--eve <ref> [--epic N]] [--post]

A ref is a PR number or a branch name. --post takes no value and needs every ref to be a PR number. Exit 2 with a usage: line on stderr for: neither ref, --post with a branch, a repeated flag, an unknown argument, a branch outside [A-Za-z0-9._/-] or starting with -, or a PR number below 1.

  • Paired (--relay and --eve): builds Relay.app from the relay ref, points the verify eve at the eve ref, and runs the nightly's order: relay --phase api, eve with --screen, relay --phase screen. All three always run; a red phase doesn't stop the next. The phases never get --post (relay refuses --post with --phase); set.js posts for both repos itself. Each phase runs that ref's own harness.
  • One ref: runs that repo's verify command exactly as it runs today (same flags, same --post, same comment and status, same exit code), plus setup, restore and the lock. The other repo is untouched. --relay alone runs all of relay's phases, no --phase.

Environment:

Var Use
NIGHTLY_RELAY_CHECKOUT required, absolute. The relay checkout the nightly verifies. The ref's worktree is added from it, and restore builds from it.
NIGHTLY_EVE_CHECKOUT required, absolute. The worktree eve-verify is registered on.
RELAY_BIN default: the installed app's relay
NIGHTLY_LOG_DIR as the nightly. Run files go in <log dir>/set/<UTC stamp>/.
EVE_BROWSER_LOCK, EVE_BROWSER_LOCK_TIMEOUT the shared lock
EVE_VERIFY_MODEL, RELAY_VERIFY_MODEL, DEVBOXPRESENCE_BIN, DEVBOXWORLD_MARKER, RELAY_VERIFY_CREDENTIAL_FILE passed to the phases unchanged

A missing or relative checkout var exits 2.

Preconditions.

  • It refuses to start between 02:30 and 04:30 local (STEP window FAIL, exit 2, nothing touched), to stay clear of the 03:30 nightly.
  • /dev/console is owned by you: a logged-in, unlocked desktop session. The screen phases drive it. If not, STEP console FAIL.
  • Unlock the signing keychain first, as before any post-merge rebuild. build.sh runs in your shell, not at the console. Locked, codesign fails and the run stops at STEP relay-build FAIL, eve untouched.
  • You hold the machine's screen, restart and world guards for the whole run.
  • eve-verify is already registered on the verify worktree. set.js never re-registers it, so no presence prompt.

What it does, in order. Any failure from step 2 to 8 prints STEP … FAIL, skips to restore and posts nothing.

  1. Resolve each ref: git fetch origin, then for a PR gh pr view and git fetch origin pull/N/head, refusing if the fetched sha isn't the PR's headRefOid. Nothing on the machine changes yet.
  2. Check the console owner.
  3. Take the shared browser lock. It's held until after restore, on every path.
  4. Relay ref: add a detached worktree at <tmp>/devboxverify-set-relay-<sha12>, run ./build.sh there (20 min), wait up to 60 s for relaysessions running.
  5. Eve ref: git reset --hard <sha> in the verify worktree; npm ci only when the package-lock.json blob changed.
  6. relay service restart --id eve-verify; port 3100 within 60 s; /api/auth/status has no trusted field.
  7. Write plan.json and phases.command to the run dir, open the command in a desktop Terminal, and wait for done.json (the phases' timeouts plus 10 min). The Terminal runs set.js --phases <run dir>, an internal mode that takes no other flag, refuses a run dir whose parent directory isn't named set (an absolute path is required) and a plan whose command isn't this node or go. It writes <label>.out, <label>.err and, last, done.json.
  8. Print the results; with --post and a pair, post.
  9. Restore, then release the lock.

The lock redirect. The outer run holds the shared lock, and both harnesses' own lock preflight honours EVE_BROWSER_LOCK. plan.json points it at <run dir>/inner.lock so they don't deadlock on the outer one. Neither harness changes. plan.json env holds only PATH, HOME, the allowlisted vars above and that lock; nothing else from your environment reaches disk.

Restore. It runs whenever the relay build or the eve reset started, on every path the run finishes by. set.js ignores SIGHUP, so a dropped SSH session doesn't stop it. Ctrl-C (SIGINT) or kill (SIGTERM) stops the run and skips restore: restore by hand with ./build.sh in the relay main checkout, git reset --hard origin/main in the verify eve worktree, then relay service restart --id eve-verify. Relay first: in the relay checkout, git fetch, the branch must be main with no tracked changes, git merge --ff-only origin/main, ./build.sh, wait for relaysessions running. Then eve: git reset --hard origin/main (and npm ci if the lockfile changed). Then the step 6 checks again, and the relay worktree is removed, best effort. A restore that can't finish prints RESTORE … FAIL and says on stderr what is left to do by hand, for example Relay.app is still built from <sha12>; rebuild from main by hand. With only --relay, the eve service is still restarted (and checked) but its worktree isn't reset.

Output. Tab-separated, home scrubbed to ~, nothing else on stdout:

STEP <name> OK|FAIL <detail>   window, relay-ref, eve-ref, console, lock, relay-build, eve-checkout, eve-verify, console-run
PHASE <label> GREEN|RED|BLOCKED <sha12> <summary>
POSTED <repo>#<N> <state> <comment URL>    (pair; one fails: POSTED FAIL <reason>)
RESTORE relay|eve OK|FAIL <sha12 installed | step: reason>
SET success|failure|error

PHASE follows the nightly's rules: exit 0 GREEN; exit 1 with a SUMMARY line RED; anything else, a timeout included, BLOCKED. With one ref, the harness's own POSTED line is copied through unchanged.

Exit codes. Paired: the exit code follows the final SET line: 0 for success, 1 for failure, 2 for error. SET is error after usage errors, any STEP FAIL, POSTED FAIL or any RESTORE FAIL, whatever the phases said. Otherwise it is the state below. Any FAIL journey exits 1. With no FAIL journey, a RED phase exits 1 only when no journey in the run is BLOCKED; RED plus a BLOCKED journey, a BLOCKED phase (even one with a SUMMARY), a phase with no SUMMARY or a timeout exits 2. NOTRUN journeys never count against a run. One ref: the harness's exit code, raised to 2 by a step, post or restore failure.

The paired status. One state goes on both PRs: failure if any phase has a JOURNEY … FAIL line, or a RED phase with no BLOCKED journey in the run; else error if any journey is BLOCKED, any phase is not GREEN, has no SUMMARY or timed out; else success. PASS and NOTRUN journeys are fine. If either side fails, both fail. The same comment (both PR URLs and commits, the tool commit, run time, a row per phase and per journey) goes on both PRs. Each head gets a devbox/verify status whose target_url is that PR's comment and whose description names both commits and the other PR (set relay@<sha12> eve@<sha12>; with <other>#<N>; pass=… fail=… blocked=… notrun=…, cut to 140 characters). Order: relay comment, eve comment, relay status, eve status. If the eve status fails after relay's was set, relay's is re-posted as error so no PR keeps a success the other lacks.

Claude session files

A run leaves no Claude Code session file (~/.claude/projects/*/<id>.jsonl) and no project folder it made. Two cleaners in claude-transcripts.js share one rule: a file is deleted only when it holds the run token, and never while a claude process carries its id.

  • By id. The journeys that start a Claude themselves (agent-drop-in, the tmux Claudes of cos-outside-simple, outside-thread, cos-outside-hooks) know its id and delete that file once the process is gone.
  • Sweep. Every journey except a fixture is wrapped (withTranscriptSweep, applied where journeys.js builds the table). Its last cleanup deletes every file changed since the run began that holds verify-<nonce>, whichever journey or probe wrote it: relay agent and task sessions, the Chief of Staff readiness probe, the changes-agent journeys. A file whose Claude still runs stays and is logged once. The Chief of Staff's Claude lives until the stack goes down, after the last journey, so the sweep hands those ids to a detached process (no stdio, so no caller waits on it) that checks every 2 s and deletes only those files once the Claude is gone. Its lines (transcript after-run: <id> deleted 1 | kept: <why>) go to transcript-reaper.log in the run record folder (eve-verify-runs/ on a stack run, else <NIGHTLY_LOG_DIR>/runs), not to the run log, which has closed by then. It gives up after 30 min and logs kept: process still running when the reaper gave up, so a non-stack run, whose Chief of Staff outlives it, can still leave that file.
  • Slot sessions. The Chief of Staff's bootstrap prompt carries no run token, so a solo --only run left its session behind (a full run happens to put the token in that file). At the end of every stack run (main.js, after the cleanups) every session file, and its <id>/ folder, in the slot's own project folders goes, token or not. It runs only when the --stack file sits in a directory named for its slot that holds the marker.json it names. A folder is the slot's when it is the encoded path of the slot's verify-cos or of a project under its world, or sits under one, and falls under no longer-named sibling directory of the runs folder. The encoding turns every non-alphanumeric character into -, so slot x1's world/Acme-Corp reads like slot x1-world's folders; the longest match wins and the sibling keeps them. A Claude that still runs is handed to the detached process above, which waits on its exit.
  • Folders. After either cleaner, a project folder is removed when it holds no file at all (Claude's empty memory/ does not count; it goes with rmdir, bottom-up, so a file written in the gap stays) and its name marks it as the run's: it contains verify-<nonce>-, or, on a stack run, it starts with the encoded path of the stack's run directory. A pre-existing folder (World-Acme-Corp, verify-cos) is never removed.
  • Log. One stderr line per session, never a path: transcript <journey>: <id> deleted <n> | absent | kept: <why>. None of it changes a journey result: the cleanups never throw.

Traps

  • Edit a tracked file and the running eve is stale: preflight fails eve until relay service restart --id eve-verify.
  • A dirty tree fails tree. Untracked files are ignored.
  • --url at :3000 with the default --service fails service: the eve-verify row is not registered at that URL. Run from the live checkout with --service eve --url http://localhost:3000 and it fails live instead. An eve-verify sharing the live eve's process or checkout also fails live.
  • Journeys create things only in Acme Corp, except project-mode-new's own project. A journey that leaves anything outside the world projects is FAIL, and the item stays for a human to remove. A leftover verify-<nonce> project does not break world-projects-listed, which checks named projects only.
  • A journey's cleanup(label, fn) runs after its browser contexts close, whatever the verdict, with 10 s each. A cleanup that throws turns PASS into FAIL. One registered after its journey timed out runs at the end of the run. A leftover verify-<nonce>-* folder fails the next world preflight.
  • Every run makes the sign-in ceremonies plus the negative journeys' calls: 9 of eve's 10 limited auth calls per IP per 15 minutes. The limiter is in memory and the owner reset restarts eve-verify, so each run starts at zero. Never raise it.
  • The owner reset leaves eve-verify with this run's owner. A browser you signed in to eve-verify by hand is signed out by the next run.
  • Model latency can turn chat-reply red for reasons outside eve.
  • relay's tool and this one both reset the world. Run one at a time.
  • Never post raw output from the world scripts. The tool scrubs the home directory from what it posts.

Nightly

The nightly is off by default. It runs only under a lease, and a lapsed lease disables it. The schedule is 03:30 local. A run goes one verifier after the other: relay's api journeys (--phase api, record relay), eve with --screen (record eve), then relay's screen journeys (--phase screen, record relay-screen). It never retries a verify.

node ~/.local/share/devboxverify/nightly.js enable --until YYYY-MM-DD
node ~/.local/share/devboxverify/nightly.js disable
node ~/.local/share/devboxverify/nightly.js status
  • enable takes a date at most 31 days out. It loads the launchd job and writes ~/.local/state/devboxverify/lease.json. disable removes the lease and unloads the job. status prints the lease, the job, the plist, the pause file and the last record.
  • Pause: touch ~/.local/state/devboxverify/pause makes every run skip at once. Remove the file to resume.

Each scheduled start goes through these gates, in order:

  1. Pause file. Present: skip.
  2. Lease. Missing, invalid or expired: skip, then unload the job.
  3. Idle check. For 60 s, sampled every 15 s: all three devlock locks free; 1-minute load average under 1.5; no claude, node or Chrome/Chromium process above 25% CPU (this catches night jobs that skip devlock); no console or terminal input in the last 10 min. If busy, it rechecks every 10 min. A start at or after the 05:30 cutoff, or a recheck that would pass it, skips the night. Every value lives in devboxWorld's nightly/config.js.
  4. Locks. One devlock take SCREEN RESTART WORLD --holder nightly --minutes 65 call, with no wait. If any lock is held, the night skips as locks held. The 65 minutes cover the deadline, the kill grace and the restore.
  5. Run under two monotonic guards: a 45 min deadline for the whole run, and a 12 min stall guard. This tool writes a heartbeat file (the wrapper sets DEVBOXVERIFY_HEARTBEAT) at the start and end of each journey; 12 min with no change, while the writer is alive, is a stall.
  6. Kill and restore. On a deadline or stall the wrapper kills the whole process tree, then restores eve-verify from origin/main (needs NIGHTLY_EVE_CHECKOUT), then releases the locks. A FAIL record gives the reason and the last journey.
  • Relay is verified as installed. The nightly never builds relay, because its build signs and its register needs you at the console. After a merge to relay's main, the night is BLOCKED by preflight until you rebuild and re-register. That is expected, not a defect. The record shows behind=<n>.
  • Eve runs from the dedicated verify worktree registered as eve-verify (see S1). The nightly resets it to origin/main (git reset --hard), discarding any drift, and runs npm ci only when package-lock.json changed. It then runs relay service restart --id eve-verify and waits up to 60 s for port 3100 before verifying.

The nightly runner, its launchd job and how to install them live in devboxWorld: see its docs/vm-stack.md.

Where to look

All of these are in ~/Library/Logs/devboxverify/:

  • status.html: the latest night per repo at the top, then the last 60 records, newest first. RED, BLOCKED and FAIL are highlighted; SKIPPED is grey. Plain HTML, no scripts.
  • nightly.log: one tab-separated line per record per night: NIGHT <at> <repo> <GREEN|RED|BLOCKED|SKIPPED|FAIL> <commit> behind=<n> <summary> (UTC timestamp).
  • runs/<YYYY-MM-DD>-<record>.txt: that night's full output, every command with its exit status, stdout and stderr. The wrapper's own record and restore log go in runs/<YYYY-MM-DD>-nightly.txt.
  • runs/<UTC stamp>-<head12>.out: the run record of each main.js run, see "Run record".
  • launchd.log: the job's own output. Look here if the nightly runner itself crashed.

Reading a night

  • GREEN: the verifier exited 0. Every journey passed or was NOTRUN.
  • RED: the verifier exited 1. A journey failed or was blocked. The summary is its SUMMARY line; the run file has the JOURNEY lines. A red journey on main gets a bug issue that quotes the JOURNEY line.
  • BLOCKED: the night proved nothing. The summary gives the reason: a nightly step (git fetch origin failed, worktree is not clean, npm ci failed, port 3100 not listening after 60s, …), the verifier's first PREFLIGHT … FAIL line, or timed out after 30 min. Fix the cause; the next night, or a kickstart, runs again.
  • SKIPPED (nightly record, no notification): the night did not run. The summary says why: skipped: paused; skipped: locks held (<devlock line>); skipped: busy because <reason> (for example load1 3.07 >= 1.5, cpu: node pid 123 at 101%, console input 42 s ago, past cutoff 05:30); skipped: no valid lease; skipped: lease expired <date>; disabled.
  • FAIL (nightly record, one notification): the wrapper stopped the run. deadline: killed after 45 min; last journey <id|none>, stall: journey <id> silent for 12 min, or stopped: <SIGTERM|SIGINT>; last journey <id|none>; eve-verify not restored. A deadline or stall adds ; restore failed: <why> or ; restore skipped: NIGHTLY_EVE_CHECKOUT not set when the restore did not finish. A FAIL on main is an infrastructure fault: check that eve-verify is running before anything else.

Any night that is RED, BLOCKED or FAIL also posts one macOS notification. The first one may ask for notification permission. status.html is the durable record either way.

One verification at a time

Relay's and eve's verifiers both reset the shared devboxWorld. A leased nightly holds SCREEN, RESTART and WORLD, so a hand-run verify, or a PR verify, takes devlock first. If the locks are held, wait or pick another time.

set.js refuses to start between 02:30 and 04:30 local. That window no longer covers a leased run: it can start as late as 05:30 and hold the locks until about 06:35. devlock is the guard, not the clock. set.js also holds the shared browser lock, which the eve verifier and relay's screen phase honour.

After a merge

A merge that touched shared plumbing gets a full run on main. The trigger is the merged PR's devbox/verify description: it starts with full and reads why core: <path>. GitHub cannot reach the devbox, so the coordinator starts this run, as it does the Relay rebuild after a relay merge.

  1. Take the locks (devlock is ~/.claude/skills/fanout/devlock, not on PATH): devlock take SCREEN RESTART WORLD --holder <you> --minutes 90 --reason "after-merge full run" --wait.
  2. Read both checkouts from the nightly plist (it may sit under ~/Library/LaunchAgents/disabled/): plutil -extract EnvironmentVariables.NIGHTLY_EVE_CHECKOUT raw <plist>, and the same for NIGHTLY_RELAY_CHECKOUT. Export both.
  3. From the main checkout, run node devboxverify/set.js --eve main. Wait for the process to exit.
  4. Comment the PHASE eve and SET lines on the merged PR.
  5. Release the locks: devlock release SCREEN RESTART WORLD --holder <you>.

A PR merged without a devbox/verify status triggers nothing here; the epic's full run covers it.

A SET result other than success is red on main: revert the merge first, then fix on a branch.

Verifying an epic

Eve's verify cadence is epic: PRs need no devbox/verify status, and the epic's last task runs one full eve run. The normal run is on the epic head, after main is merged into the epic and before the epic-to-main PR merges, so main only receives a verified epic:

node devboxverify/set.js --eve epic/<N>-slug [--relay epic/<N>-slug] --epic N

set.js builds Relay.app from the relay ref, points eve-verify at the eve ref, passes --epic to the eve phase, and restores both to main after. --epic needs --eve and cannot be combined with --post; it takes the same N or owner/repo#N as below. The eve phase's POSTED line is echoed.

The run on main after the merge stays as the backstop:

node devboxverify/main.js --epic N
node devboxverify/main.js --epic owner/repo#N

A red backstop run reverts the epic's merge commit first. The fix then goes on a branch.

  • Checkout: run it from a clean eve-verify worktree (the tree rule: tracked files only). PREFLIGHT main passes when HEAD is the default-branch head on GitHub, or the head of the single epic/<N>- branch there with the default-branch head contained in it. Otherwise it fails, naming HEAD, the default-branch head and, when it found one, the epic branch and its head. The OK detail reads <slug>@<head> main or <slug>@<head> <epicBranch>.
  • Scope: every journey, screen journeys included (--epic implies --screen). --epic with --post or --only exits 2 with the usage line.
  • Locks and console: same as any run. Take devlock SCREEN RESTART WORLD first, run from a desktop Terminal .command file that writes a done-file, and wait on the file.
  • Status: devbox/verify-full on HEAD, posted first. success only when every journey reported and none is FAIL or BLOCKED (NOTRUN is fine). The description reads full <n>/<total> pass=.. fail=.. blocked=.. notrun=... A run that stops before the journeys (preflight, api, RESET) posts nothing and exits 2.
  • Comment: only after a success status, one line on the issue REF names: Full verify: <owner>/<repo>@<sha40>. A bare N is an issue in eve.
  • Exit: 0 posted and commented; 1 posted, not success; 2 usage, a failed preflight, or a failed status or comment call. The last stdout line is POSTED<TAB><state><TAB>devbox/verify-full.

Pass --relay epic/<N>-slug whenever the epic has a relay branch. Without it, eve is graded against the installed relay. Once relay's epic has merged and eve is re-pinned, use --relay main (or no --relay) on eve's re-pinned epic head.

For a relay-only epic, or a relay and eve set without --epic, use node devboxverify/set.js --relay main --eve main. It has no --post; its SET and PHASE lines go in the epic's closing comment.