Skip to content

Latest commit

 

History

History
986 lines (819 loc) · 63.8 KB

testing.md

File metadata and controls

986 lines (819 loc) · 63.8 KB

Testing and validation

Use Node 24.x and pnpm 10.34.9. The local application never imports test fixtures.

pnpm install --frozen-lockfile
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm exec playwright install chromium
pnpm test:browser
pnpm validate:local --with-browser

Automated suites

tests/local-cli-discovery.test.ts covers passive PATH lookup, canonical aliases, duplicates, non-executable/missing files, symlink loops, bounded/ambiguous discovery, unknown authentication, and default setup refusal before writes. CLI fixtures and credential sentinels are synthetic; provider descriptors retain their prior capabilities. The optional separate-login provisioning fixture never executes a provider. Use pnpm terminal:discover for metadata-only local preflight; real authentication and two-agent execution remain outside these checks. See existing CLI integration.

The previously validated observer baseline used the built-in Node runner through tsx, with 25 cases. Core/Analytics development may add cases; use current command output for current counts and results, rather than treating this baseline as a fresh run:

Suite Cases Purpose
normalizer 7 Validated source shapes, inherited history, lifecycle evidence, communication labels, credential redaction, invalid usage
store 6 Cumulative accounting, restart, permissions, rollback, stale state, retention, notification preferences
observer 3 Partial UTF-8/JSONL, malformed and oversized records, truncation/rotation/replay, symlink rejection, source preservation, watcher delivery
API 4 Origin/authentication/input/static boundaries, ordered WebSocket replay/live delivery, unauthorized rejection
locales 1 Both interface catalogs have matching keys
service/runtime 4 Private runtime configuration, credential exclusion, XML escaping, invalid input and unmanaged destination preservation

pnpm test:browser runs three Chromium checks against a separate, explicitly synthetic temporary source:

  1. Desktop rendering, language persistence, escaped results, manual association and sound preference activation.
  2. 390px responsive layout and workspace navigation without document overflow.
  3. New source records appended outside the app update the page and token total without reload; notification history is created once and retained after reload. A stubbed browser permission denial is reported honestly.

The browser harness uses port 4318 and refuses to reuse an existing server. It removes its source/database/state files on exit. Screenshots under /tmp/orqst-*.png contain labeled synthetic activity only; traces stay in gitignored test-results/. Browser tests require a prior dashboard build.

Service and runtime safety

tests/service.test.ts adds four cases: private-runtime/loopback configuration with unrelated secret exclusion, XML path escaping, invalid configuration rejection before writes, and preservation of an unmanaged runtime destination. These are filesystem/plan checks and do not install a real launch agent in CI.

Explicit native Codex acceptance

pnpm validate:live is an opt-in developer acceptance command. With an already caught-up local ORQST, Chromium, and an authenticated Codex CLI, it creates a disposable file/workspace, invokes a separate native Codex read-only task, and observes it through the ordinary ORQST API/WebSocket and browser. It checks discovery, a tool call/result, completion, actual final text, notification policy, and cumulative tokens against Codex's own source file.

The command uses real provider usage and leaves Codex's normal native session history intact. It removes its disposable task directory. It never fabricates protocol events or inserts activity into SQLite and is not called by the app, pnpm test, browser fixtures, or CI. The application remains an observer without agent-control endpoints.

Actual local data

pnpm validate:local selects up to eight recent real Codex JSONL files below 5 MiB and copies them to a private temporary directory. It computes expected totals independently from thread-scoped cumulative records and compares the imported totals. It then checks duplicate scans, a closed/reopened database, source-prefix integrity and cleanup. Only aggregate counts are printed.

--with-browser additionally launches the compiled bridge in a child process against disposable copies, opens Chromium, verifies session count and session-detail events, and shuts down the process. It does not capture real-data screenshots or publish conversations. Run pnpm build and install Chromium first.

This does not test the complete session archive or prove every Codex release compatible. Real source data must never be committed. Synthetic fixtures must remain explicitly labeled and confined to tests.

Evidence and limits

See Validation status for the public summary. Local acceptance reports and agent working documents are excluded from version control. GitHub Actions runs lint, types, tests, build and Chromium; hosted CI has not yet been observed.

Not established by these checks: actual OS notification delivery, audible playback on the owner's device, real provider failure/input-request records, multi-gigabyte backfill latency, continuous soak behavior, other browsers, Linux/Windows/WSL. The follow-up managed-service check also verified browser reconnection without reload after a real service restart. Arbitrary network interruptions still need further testing.

Incremental delivery and integration

The synthetic PTY guide documents the separately invoked pnpm accept:terminal-pty --authorize-synthetic-pty mechanics check. It uses no real agent or user history and is excluded from automatic tests/build/runtime. Its macOS/arm64 Node-host evidence does not validate an interactive product terminal.

  1. Inspect the repository, applicable instructions, README, roadmap and ADRs before each change. Maintain requirement coverage against implementation evidence; existing/partial/absent does not mean accepted.
  2. Select a bounded backlog outcome with dependencies, risks, tests and acceptance from ROADMAP. Record product/security decisions as ADR additions; preserve earlier plans, audits and benchmark evidence.
  3. Implement authorized non-destructive increments using current versions/patterns. Run lint, typecheck, tests and build; fix regressions and report any failed or skipped check. Ingestion changes also require pnpm validate:local; relevant UI changes require browser checks. Keep fixtures synthetic and source data private.
  4. At integration, review Core/Bridge ownership and Analytics migration/accounting together, v1 compatibility, replay, shutdown/startup, source preservation, retention, model changes/unknown models, period baselines, unavailable data and export privacy. Update actual API/schema docs only when implementations and tests establish them.
  5. Update public changelog/status and commit only the scoped product change after relevant checks. Do not version local plans, agent reports, captured content or generated output. List exact commands, outcomes and limitations in the delivery.

Development is already authorized; repeating a blanket phase-approval gate is not required. Product decisions, destructive actions, credentials, external costs and ungranted permissions still need an explicit decision. Do not run token-consuming live acceptance/benchmarks or install/restart the owner's service as incidental validation. A synthetic green suite does not prove real-provider/Desktop acceptance.

The Core/Bridge extraction and Analytics library integration on 2026-11-02 passed pnpm lint, pnpm typecheck, pnpm test (57 cases including nested cases), pnpm build, pnpm test:browser (3 Chromium cases), and pnpm validate:local --with-browser (8 bounded real-session copies). Replay/restart, source prefixes and cumulative totals were preserved. No service restart or paid live benchmark was performed. Analytics model attribution has synthetic tests only; the real-source validation checks observer/built-Bridge compatibility.

The Analytics acceptance cases are required before claiming the complete screen. The global Desktop MVP also needs real-machine terminal/model selection, native notification, Markdown save and filtered model usage evidence without Bridge regression. No 1.0 announcement before owner acceptance.

Browser Analytics integration

The bounded aggregate route and first ranking view passed pnpm lint, pnpm typecheck, pnpm test (64 Node cases), pnpm build and pnpm test:browser (11 Chromium cases). Tests include strict query/auth/privacy/admission boundaries, calendar/DST filters, races, empty/null/zero/error states, escaping, mobile layout and both locales. Most new UI cases intercept clearly synthetic summaries; one unmocked integration writes two synthetic session files only inside the disposable browser source root, then reconciles ranking/shares through the actual observer, Store and HTTP route. Native histories and the installed database are not test fixtures.

After clarifying the capacity message, locale parity, build and the affected error/unmocked browser cases passed again. No paid provider call or real multi-model benchmark was run. Real multi-model ranking, large-history performance, time series, exports and qualified task comparisons remain outside this acceptance.

Worker Analytics queries

pnpm test runs the TypeScript worker directly using the existing tsx development loader; no build, new dependency or installed database is required. Fixtures use clearly synthetic events and disposable file-backed SQLite WAL stores, because an isolated worker cannot read a connection-local :memory: database. The synchronous local inspection library still supports in-memory stores.

pnpm build emits both dist/bridge.mjs and dist/analytics-worker.mjs. Deploy both together; production workers do not load tsx or source TypeScript. Test bundle execution only with disposable storage and synthetic sources, using an unused loopback port. Do not restart the installed service as part of tests.

Worker checks cover history beyond the old synchronous API budgets, aggregate parity, cumulative/source priority/cache/replay semantics, scopes, unknown models, retention, concurrent ingestion, cancellation, timeout, concurrency rejection and read-only/schema preservation. Browser checks cover localized worker errors and retry without stale/partial totals. These checks do not establish arbitrary archive latency, long-running load, real-provider multi-model acceptance or the Desktop MVP. The watchdog responds with timeout independently of cleanup, and success requires confirmed cleanup before the deadline. A delayed-termination fake verifies that no late success is accepted, the slot stays busy, and shutdown still awaits cleanup. Native SQL and OS/event-loop scheduling may delay termination or the watchdog callback; the deadline is not a hard real-time guarantee.

For concurrent browser runs, use a free ORQST_BROWSER_PORT; the production port 4317 is rejected. See isolated browser test ports.

The worker increment was checked with Node 24/pnpm 10: lint, typecheck, 80 Node cases, build and 13 Chromium cases passed. The 310-session/approximately-57000-event archive case uses synthetic SQLite data. A separate production-bundle smoke started node dist/bridge.mjs, exercised the authenticated endpoint and its colocated worker with 310 synthetic sessions/1240 events, reconciled 31000 reported tokens (12400 cached, a subset of input), preserved schema 1 and exited cleanly. Disposable storage and non-production loopback ports were used; the installed service and native histories were not test targets. These are bounded synthetic checks, not real-provider or arbitrary-archive acceptance.

Durable metric evidence upgrade

Use Node 24/pnpm 10 and disposable databases only. pnpm test includes synthetic schema-1 upgrade/backfill, failed migration/rollback/reopen, transactional ingestion, retention before/after upgrade, deterministic replay/mirrors, conflicting/missing models, canonical totals/cache and worker parity/budget/cleanup regressions. These fixtures do not prove real-provider comparative rankings or installed-service upgrade. Run pnpm lint, pnpm typecheck, pnpm test, pnpm build, then ORQST_BROWSER_PORT=4320 pnpm test:browser only if that port is free. Never stop an unrelated listener. pnpm validate:local reads bounded native sources into disposable storage; it makes no provider calls and prints aggregates, not content.

Production/service paths still build dist/bridge.mjs and colocated dist/analytics-worker.mjs; development workers register tsx internally. Tests must exercise source workers without a prebuild and the built bridge separately. No service install/restart is part of this increment. The owner integrates schema 2 only after review and a SQLite-aware backup including WAL. An older writer refuses schema 2; test recovery against a disposable backup rather than downgrading installed storage. Backfill time/disk and unbounded-on-disk metric growth remain operational limits despite bounded query budgets. See data model.

The durable-evidence increment was checked on macOS with Node 24.22.2 and pnpm 10.34.9: lint, types, 90 Node cases, build and 13 Chromium cases passed. Bounded local validation used 8 real source copies/8 sessions in disposable storage: replay and restart were stable, cumulative totals reconciled, source prefixes were unchanged, and built Bridge/browser smoke passed, including the production Analytics worker route. No installed database migration, service restart, provider call or real-model comparative acceptance was performed.

Local lifecycle and artifact-reference contracts

tests/lifecycle.test.ts verifies strict version/identity/provenance validation, independent historical session/turn/task/process semantics, exact retained sequence selection, detail expiry and content exclusion. tests/lifecycle-qa.test.ts provides independent adversarial coverage in a separate file. These use synthetic in-memory and disposable file-backed Store/Core fixtures; they do not read native session files or touch installed state. The existing API/WS and browser suites remain the compatibility checks. Build and built-bundle checks apply even though no new dashboard feature or transport is added. Ingestion code is unchanged, so this increment does not require a new real-source validate:local run. Native artifacts, current source availability and process/task outcomes remain unvalidated and unimplemented.

Minimal macOS Desktop observer

On 2026-11-02, the first Electron checkout client passed pnpm lint, pnpm typecheck, pnpm test (109 cases including six independent Desktop policy cases), pnpm build, ORQST_BROWSER_PORT=4320 pnpm test:browser (13 cases) and pnpm test:desktop. The private development toolchain was Node24.22.2/pnpm10.34.9; the real Electron45.2.1 window reported Chromium156.0.8078.75, bundled Node24.22.1 and module ABI150 on macOS26.3/arm64. Independent QA also reran the native smoke. No Bridge/SQLite native-addon compatibility is inferred from this runtime: the client imports neither Core nor database.

tests/desktop-policy.test.ts covers bounded port and URL containment; tests/desktop-qa.test.ts independently checks policy negatives, source hardening, the single narrow Artifacts preload/IPC boundary, absence of generic filesystem/ shell/control methods, and dependency ownership. This test evolved from the initial no-preload shell assertions when native saving was deliberately introduced; see the native save contract. scripts/smoke-desktop.ts uses Playwright _electron with real Chromium, a real Bridge and only disposable synthetic sessions/storage/profile on an ephemeral port. It verifies Node globals absent, denied new windows/notifications, native-session HttpOnly/Strict cookies, online UI, Bridge restart and dashboard reconnect, native window close/reopen, initial Bridge offline fallback/retry and Bridge survival after quitting Desktop. Captures live in a disposable output directory (or ORQST_DESKTOP_SMOKE_OUTPUT when explicitly set). The app menu uses native roles; fallback text follows OS locale, while the existing dashboard retains its own language preference. Setup and limits are in Desktop development.

The installed Bridge/service/database and native provider sessions were not used, restarted or migrated. No provider call, global installation, release or paid signing was performed. Ingestion is unchanged; validate:local was not rerun for this slice. This does not validate a packaged/signed .app, other macOS versions/Intel, Windows/Linux, native notifications/tray, long-running soak or the complete Desktop MVP.

macOS tray/native alert mechanism

The next 2026-11-02 increment adds tests/desktop-monitor.test.ts for baseline, reconnect/replay, category/source/status/identity gates, minimized notification content, strict snapshot projection, bounded HTTP input and validated session hashes. tests/desktop-monitor-qa.test.ts independently covers cursor rollback replay, burst limits and the single-instance guard. No installed data is used.

The extended disposable Electron smoke captures actual Tray menus and Notification objects through test-only Playwright main-process instrumentation. It intercepts native show, so assertions cover the mechanism rather than real macOS banner delivery. It checks opt-in, unread updates/read history, silent minimal content, session click, fixed failure status, minimized restoration and monitoring with the window closed, plus the earlier isolation/authentication/reconnect/quit checks. Chromium adds a current versus missing session-hash case. Real visual delivery, signed ORQST identity, Notification Center and OS permission/Focus acceptance remain pending; see Desktop limits.

This increment passed pnpm lint, pnpm typecheck, pnpm test (118 cases), pnpm build, ORQST_BROWSER_PORT=4339 pnpm test:browser (14 cases) and pnpm test:desktop on the same Electron45.2.1/arm64 runtime. The smoke also launches another real Electron process against the same canonical temporary profile, proving single-instance restore of a minimized window and reopen after window close. It never addresses the owner profile or installed Bridge. Ingestion remains unchanged; pnpm validate:local was not rerun. Visual OS delivery remains outside these results.

Manual Artifacts first slice

tests/artifacts.test.ts covers strict extraction identity/version/source matching, read-only Core behavior, the unchanged reference_only projection, unsupported messages, UTF-8 byte limits, retention gaps, authenticated HTTP protections and inert block parsing. tests/artifacts-qa.test.ts adds independent contract, multibyte, retention, renderer boundary and unwired-transport cases, all using synthetic disposable data.

tests/browser/artifacts.spec.ts exercises the actual session-to-panel flow, immutable source versus draft, limited hostile-content preview, real browser clipboard writes, denied clipboard reporting, oversized draft rejection, explicit accessible textarea label, focus restoration after changing tabs, pt-BR and narrow layout. Missing/malformed responses are tested separately from the unmocked successful extraction path. To avoid concurrent Playwright output collisions, use a dedicated output directory for each validation run:

ORQST_BROWSER_PORT=49578 pnpm test:browser --output=/tmp/orqst-artifacts-browser

Choose a free nonproduction port for your machine; the fixture refuses production port 4317 and never reuses an existing listener. The extended pnpm test:desktop uses only its own ephemeral Bridge/data/profile and exercises real Electron source/preview/edit and clipboard result reporting under unchanged denied permissions. On the validation machine, the Electron write was denied and the UI reported failure; successful native clipboard copy is not claimed. Browser permission-granted clipboard success is tested separately. No privileged clipboard fallback is shipped. Smoke captures remain ignored generated output.

This slice changes no ingestion reader or adapter; pnpm validate:local was not rerun. No installed service/database/user profile is part of these tests. At this extraction-only stage, save destination grants, overwrite/cancel and external editor checks belonged to the pending file-contract slice (subsequently implemented/tested below), not this panel delivery. See Artifacts behavior and limits.

Native Markdown save increment

pnpm test includes disposable synthetic Desktop Artifacts tests for strict original/ draft contracts, UTF-8 limits, hostile inert text, cancel/save, explicit replacement, symlinks/hardlinks, target/parent/content changes, replay, revocation, concurrency and sender/frame/session/origin checks. No real session files are used or modified. pnpm test:desktop exercises real sandboxed preload/IPC, authenticated extraction and file writes with a temporary Bridge/profile/destinations. Native chooser responses, replacement answers and editor dispatch are intercepted only in the temporary main process; native visuals and an actual external editor are not accepted by this smoke. It preserves the owner client, independent Bridge and installed service/storage. Browser fixtures must use a free ORQST_BROWSER_PORT and separate Playwright --output directory to avoid colliding with another local run.

Confirmed Live Metrics

Synthetic Store/API QA covers canonical evidence, normalized zero versus absence, metric time independent of other activity, mirror priority/ties, identity conflicts, historical workspace association, byte/window admission, retention and replay. Browser checks use isolated synthetic sessions and independent output directories, exercising header/Artifacts sharing, actual event updates, offline/stale/missing values, races, locales and mobile layout. Use a free ORQST_BROWSER_PORT and --output unique to the invocation. Checks prove synthetic behavior, not provider billing or arbitrary-archive latency. Installed service/Desktop/storage are never acceptance fixtures. See metric limits.

The confirmed-update cue suite (tests/browser/live-metrics-updates.spec.ts) controls synthetic metric responses and the browser clock to check baseline/replay/unchanged reads, exact changed fields, cue expiry, unavailable recovery, pt-BR, reduced motion and a newly opened silent Artifacts panel. The unmocked live-metrics.spec.ts appends a second synthetic token record to verify that both already open views highlight only the changed fields while retaining source occurrence time. These checks do not establish native screen-reader delivery or real-provider billing. Ingestion is unchanged; no validate:local, live provider run or installed-service restart is needed for this UI slice.

The temporary session alert suite (tests/browser/token-threshold.spec.ts) exercises an unmocked synthetic observer-to-header/Artifacts threshold crossing (cache is not added), exact equality, safe integer validation, explicit apply/clear, unchanged captured totals/time, unavailable/pending/failure recovery, stable announcement, memory cleanup, pt-BR, keyboard and reduced-motion mobile layout. It uses disposable sessions/storage only, without provider calls or installed service/client changes. Independent token-threshold-qa.spec.ts checks explicit safe-integer admission, session reset, offline recovery and the single settled header announcement. Run it with the same isolated browser port/output policy above. These are automated browser checks, not native screen-reader or complete Desktop acceptance.

Browser aggregate Analytics export

Use synthetic reports and disposable observer storage/profiles. The export QA suites cover private-field exclusion, reversible hostile text, literal formula guards, null/zero/unidentified versus literal model labels, strict caps, large integer digits, streamed byte admission, current-filter/cursor/connection eligibility and Desktop unavailability. The existing unmocked Analytics browser test also downloads a report from the real synthetic observer -> worker -> API path.

pnpm exec tsx --test tests/model-export-qa.test.ts
# Confirm this example port is free first; use unique --output for each invocation.
ORQST_BROWSER_PORT=49373 pnpm test:browser tests/browser/model-analytics.spec.ts tests/browser/model-export-qa.spec.ts --output=/tmp/orqst-export-example
pnpm test:desktop

The Electron smoke uses its own temporary Bridge/profile/storage and real preload/IPC for native Analytics save. It intercepts destination/replacement dialogs, exercises CSV/Markdown new writes, cancellation, overwrite refusal/approval, wrong-extension refusal and ranking revocation during a pending dialog. Artifacts checks remain in the same smoke. This establishes mechanisms and synthetic writes, not native visual acceptance. Set ORQST_DESKTOP_SMOKE_OUTPUT to an exclusive temporary output directory; otherwise screenshots are discarded with the temporary profile. Serializer/browser checks do not establish real Excel/LibreOffice import or real-provider multi-model accounting. No ingestion changed, so this increment does not require validate:local or a live provider run. See contract and privacy limits.

Native aggregate Analytics export

Run pnpm exec tsx --test tests/desktop-export-qa.test.ts for independent synthetic privacy/injection, integrity/freshness, sender/file/overwrite and Artifacts regression checks. pnpm test:desktop adds the explicit disposable Electron mechanism smoke; never point it at the installed Bridge or the owner's profile. The browser capability integration is synthetic; it checks acknowledgment, consumed status, refresh and both locales without claiming IPC authority. Use a free exclusive ORQST_BROWSER_PORT and --output for browser checks. Browser screenshots now follow that output directory. No ingestion changes require real local session validation in this increment.

Recorded native increment checks — 2026-11-02

The final implementation passed pnpm lint, pnpm typecheck, pnpm test (202/202, including 15 independent native-export QA cases), and pnpm build. Before the last consumed-reading correction, the full Chromium suite passed 38/38. The final affected native capability/consumption/locale checks passed 3/3 against the rebuilt bundle; independent QA then confirmed the complete 39/39 Chromium suite on the final UI tree. All browser invocations used their own port/state/output.

The final pnpm test:desktop smoke passed on macOS arm64 with Electron45.2.1, Chromium156.0.8078.75 and Node24.22.1. Real preload/IPC, session-authenticated aggregate revalidation and synthetic filesystem writes ran; destination/overwrite dialogs, notification delivery and external application dispatch were intercepted. This is mechanism evidence, not native visual or real Excel/LibreOffice import acceptance. QA includes context changes during choose and overwrite confirmation, consumed UUIDs, late context generations, sender/file integrity and critical Artifacts regressions. No installed service/client/profile/database/session was used or restarted. There were no ingestion changes, so validate:local and live provider tests were not run.

Confirmed threshold distance and flame — 2026-11-02

This UI-only increment passed pnpm lint, pnpm typecheck, pnpm build and pnpm exec tsx --test tests/locales.test.ts tests/live-metrics.test.ts tests/live-metrics-qa.test.ts (21 cases). The affected browser suites passed 10 Chromium cases on disposable port 4356 with an isolated output directory:

ORQST_BROWSER_PORT=4356 pnpm exec playwright test tests/browser/token-threshold.spec.ts tests/browser/token-threshold-qa.spec.ts --output=/tmp/orqst-token-alert-distance-554

Coverage includes an unmocked synthetic observer-to-session/Artifacts transition from below to equal to above the threshold, cache subset handling, exact zero and safe-integer extremes, unavailable/pending/failure/offline recovery, one stable polite announcer, English/Portuguese formatting, mobile keyboard use and static presentation with either motion preference. This does not validate native visual delivery or real provider usage. The full Node/browser suites, Electron smoke and validate:local were not rerun: ingestion, persistence, API, IPC and native grants are unchanged. No installed service, database, client or source sessions were changed or restarted.

Artifact draft comparison and restoration

tests/browser/artifact-draft.spec.ts checks the real synthetic extraction-to-panel flow: exact original/draft comparison, whitespace and empty edits, original/provenance preservation, confirmation/cancellation, rejected oversized UTF-8 edits, exact restored clipboard text and no reextraction. It covers pt-BR, keyboard focus/Escape and narrow layout. A synthetic native capability verifies save/restore mutual exclusion and that comparison remains independent of save success; delayed clipboard success/failure cannot restore obsolete feedback after reset. These capability stubs do not validate native IPC, file writing or dialog delivery.

Run with an exclusive disposable port/output:

ORQST_BROWSER_PORT=4358 pnpm exec playwright test tests/browser/artifact-draft.spec.ts tests/browser/artifacts.spec.ts tests/browser/live-metrics.spec.ts tests/browser/token-threshold-qa.spec.ts --output=/tmp/orqst-artifact-draft-example

The existing Artifacts and shared metrics/threshold suites verify that restoration preserves source/preview behavior and the single metrics announcer. Ingestion, persistence, transport and native grants are unchanged; validate:local, live provider acceptance and Electron smoke are unnecessary for this UI-only increment. No installed service, database, client or observed source session is used or restarted.

The increment passed pnpm lint, pnpm typecheck, pnpm test (222 Node cases), pnpm build and the 14 Chromium cases above on isolated port 4358 with Node24.22.2 and pnpm10.34.9. Initial worktree dependency-resolution failures were resolved by an offline frozen-lockfile install; initial browser failures led to preserving the single metrics announcer and correcting an innerText/textContent assertion. Final affected browser checks passed after those fixes. Build emitted the nonblocking >500-kB chunk warning. Full browser/real-provider/native visual acceptance was not repeated.

Artifact explicit-close protection

The draft browser suite also exercises changed/empty/whitespace edits through both explicit close controls, immediate unchanged/restored closing, cancellation and focus return, confirmed close/reextraction, pt-BR mobile modal bounds and keyboard containment. The existing synthetic Desktop save capability checks that pending native saving blocks details closing and a successful save does not suppress draft confirmation. These use a disposable synthetic observer/API/dashboard; no real session, database, service or native dialog is required. At that increment, browser window close, reload, session/view navigation and crash recovery were outside the bounded guard; the navigation extension below covers the renderer paths and browser-controlled reload warning. Native Electron visual acceptance is not established by Chromium or the mocked save capability.

Observed usage evolution

tests/analytics-evolution.test.ts covers worker/library reconciliation, mixed models, unidentified/unbounded contributions, measured zero versus null, half-open periods, scopes, replay, compact retention and deterministic coarsening across long gaps. tests/analytics-api.test.ts additionally checks the new route's authentication, strict query, unchanged aggregate shape and content-minimized projection. tests/browser/model-evolution.spec.ts uses the disposable source/observer/API path for filtered bars/table, both locales and mobile layout; it also rejects mismatched and late readings. Run after building, on an isolated ORQST_BROWSER_PORT as usual. These are synthetic checks; real-provider temporal attribution, arbitrary-history latency and native visual acceptance remain pending. Ingestion is unchanged, so this increment does not require another local-source or token-consuming live validation.

The evolution delivery's first full Chromium run was 85/89. After fixing the new scenario's fixture expectations/authenticated request context, both new cases passed in focused runs. In that full run, three existing threshold assertions expected the harness's original 120 tokens after model-analytics.spec.ts had appended a 190-token snapshot. All three passed when selected together in an isolated harness. The mutating Analytics refresh test now writes a dedicated synthetic source/session, preserving the baseline's 120-token reading. A regression run selected that test and all three affected cases in the same harness, passing 4/4 with their exact assertions unchanged. Reproduce the interaction check with:

ORQST_BROWSER_PORT=4387 pnpm test:browser tests/browser/model-analytics.spec.ts tests/browser/token-threshold.spec.ts tests/browser/token-threshold-qa.spec.ts --grep 'analytics refresh follows|explicit integer validation|threshold is memory-only|offline and stale'

The complete suite was not rerun; its earlier 85/89 result is retained above. Previously valid Node/build/lint checks and focused evolution cases were reused; only the fixture correction and the affected sequence needed additional validation.

Navigation and existing-data screens

After building, run the shell and threshold cases together on an exclusive port:

ORQST_BROWSER_PORT=4395 pnpm test:browser tests/browser/shell-navigation.spec.ts tests/browser/token-threshold.spec.ts tests/browser/token-threshold-qa.spec.ts --output=/tmp/orqst-shell-check

The new shell cases exercise scope/layout/filter persistence, browser history, Cmd/Ctrl+K search and keyboard focus, observed adapter capabilities, en-US/pt-BR, modal Escape, notification filtering/source navigation, viewport containment and compact metrics with confirmed/stale/unavailable readings. The badge must reuse one inspector query, show exact input/output/cache/total and never use missing summary usage as zero. Screenshots use synthetic data at desktop/laptop/mobile widths and remain generated output. No installed listener, storage or provider session is used.

The live-update case in dashboard.spec.ts uses a dedicated synthetic source and session. It advances that session from 120 to 170 tokens and verifies aggregate totals of 240 then 290, leaving the shared baseline at 120 for threshold cases. Run the dashboard and threshold files together to catch shared-fixture regressions; keep the exact token assertions. The Electron smoke explicitly returns to /overview after Analytics because the root URL restores the persisted view. Legacy /#overview remains an accepted alias. See the screen matrix for remaining product and manual/native acceptance gaps.

Reading accessibility preferences

After building, select the Settings/reading cases and the existing source/preview regression on an exclusive port:

ORQST_BROWSER_PORT=4389 pnpm test:browser tests/browser/settings.spec.ts tests/browser/reading-preferences.spec.ts tests/browser/artifacts.spec.ts --grep 'Settings|appearance|comfortable|reading|retained text|manual source'

Reading cases cover old three-field preferences, allowlisted choices, same-origin sync, storage denial/offline operation, keyboard selection and reset focus. They measure computed text sizes, exercise maximum interface/content sizes and comfortable spacing at 1440/1280/390/320px, and check exact original/draft clipboard content and inert Markdown. Code typography and source/metric distinction remain intentional. Screenshots are disposable synthetic output, including pt-BR reset at 320px. These checks do not establish other-browser, screen-reader or native Desktop visual acceptance. Ingestion, native IPC, installed services and source data are unchanged; local/live provider validation and another Electron smoke are not required here.

This increment passed lint/typecheck, the three targeted appearance/locale Node cases, full build and the 12 selected Chromium cases on the b92c971 baseline. Initial new-test attempts failed on label-text selectors and headless native-select key assumptions; role-based selectors and explicit focus traversal resolved them. A reading-editor specificity issue and cramped 320px Settings fields were corrected before the final build/browser run. The existing bundle-size warning remains. The earlier 252 Node / 97 Chromium / Electron validation was preserved rather than repeated. The entire Node/browser suites and Electron smoke were not rerun for this presentation-only increment.

Artifact navigation protection

tests/browser/artifact-navigation.spec.ts extends the synthetic extraction workflow with exact changed-draft preservation, current view/session/workspace no-ops, confirmed session/workspace/view transitions, Search/notification modal handoff, source-linked hashes, Back/Forward cancellation, pending-save blocking without replay, browser reload cancellation and restored-handler removal. It checks no draft content enters local/session storage, preserves inert text and exercises pt-BR focus trapping and 320px containment at maximum reading sizes. Native save capability stubs test renderer behavior only; no real native dialog or file write is claimed.

ORQST_BROWSER_PORT=44970 pnpm exec playwright test tests/browser/artifact-navigation.spec.ts tests/browser/artifact-draft.spec.ts tests/browser/artifacts.spec.ts tests/browser/shell-navigation.spec.ts --output=/tmp/orqst-artifact-navigation-check

Use an exclusive nonproduction port/output. The fixture owns disposable synthetic storage and never uses the installed Bridge, Desktop profile or source sessions. Browser beforeunload delivery depends on browser policy; native close/quit and native document loads are explicitly excluded. Real-provider, other-browser, manual screen-reader and native visual acceptance remain separate. Ingestion/API/IPC and native grants are unchanged, so validate:local, live provider tests and an Electron smoke are not required for this renderer-only increment.

The final focused run passed all 19 draft/navigation Chromium cases with Node24.22.2 and pnpm10.34.9, after build. Lint, typecheck and all 254 Node cases passed; the build retains its existing chunk-size warning. Initial attempts exposed test selector and cancelled-reload wait assumptions, a focus-recovery race and overlapping save-status announcements; the final tests retain exact-text and keyboard checks after correction. The final synthetic screenshot was inspected at maximum reading sizes in pt-BR/320px. No other-browser, manual screen-reader or native visual acceptance is claimed.

The full Chromium run also passed 119/119 on isolated port 44976. It began before final modal centering and save-status consolidation; those refinements passed the 19-case draft/navigation rerun on port 44978 against the rebuilt final bundle. Both use exclusive output/state and synthetic data. The full browser suite was not repeated again after those scoped refinements.

Dashboard light and system themes

tests/browser/theme-preferences.spec.ts exercises the real shared renderer with isolated synthetic observations. It covers dark-default migration, explicit themes, live system appearance changes without rewriting the stored selection, reload and cross-tab synchronization, malformed/removed storage, offline storage denial and localized controls. Keyboard checks cover select traversal, visible focus and Cancel-first reset/discard dialogs. Native select choice automation uses Playwright's portable selectOption; manual OS keyboard-menu acceptance remains separate.

The suite resolves actual CSS tokens, including color-mix, to check the light palette at both contrast levels: normal/semantic text at least 4.5:1 on the three opaque layers and used soft fills; focus/control boundaries at least 3:1; primary labels on default/hover fills. This is bounded palette evidence, not a complete WCAG audit. Layout checks cover all five views at 1440/1280/390/320px with maximum reading sizes and comfortable spacing, plus an extracted source/draft/discard workflow at 320px. Synthetic screenshots include standard-light Overview, higher-contrast Analytics/Settings and the 320px draft-discard modal; inspect them before integration.

pnpm lint
pnpm typecheck
pnpm test
pnpm build
ORQST_BROWSER_PORT=4575 pnpm exec playwright test --output=/tmp/orqst-theme-check

Use an exclusive nonproduction port/output; the browser fixture owns disposable sources/database/profile state. No installed services, real sessions or Desktop profiles are changed. Ingestion, APIs, WebSocket/IPC and native grants are unchanged; validate:local, provider acceptance and Electron smoke were not run for this presentation-only increment. Native menus, file dialogs, alerts and menu-bar artwork retain their existing policy. Native visual, other-browser and manual screen-reader acceptance remain pending.

This increment passed lint, typecheck, all 255 Node cases, build and the full 125-case Chromium suite on isolated port 4575 with Node 24.22.2/pnpm 10.34.9. The final light-mode screenshots were inspected. Early test iterations corrected native-select automation and ambiguous/exact-label selectors; the final run retains cross-tab, focus, exact draft text, real Analytics readiness and containment checks. The existing Vite chunk-size warning remains; no native visual or release acceptance is implied.

Configurable Overview panels

tests/overview-preferences.test.ts covers bounded/allowlisted layout parsing, partial preference compatibility and nonmutating reorder boundaries. tests/browser/overview-layout.spec.ts exercises actual DOM order and visibility, wide-primary/single/all-hidden layouts, keyboard row moves and focus restoration, scoped defaults, reload, malformed/removed storage, cross-tab synchronization and offline/storage-denied use. It preserves exact active Artifact draft text/provenance and the existing navigation guard. Layout storage contains only panel identifiers, never source content. Hiding a panel changes presentation, not notification policy.

The shared renderer keeps summary, session search/filter/list and details outside the configurable panels. There are no new APIs, WebSocket/IPC contracts, migrations, dependencies or ingestion changes. Live/provider tests, validate:local and another Electron smoke are not required for this presentation-only increment. The installed service, Desktop profile, database and source sessions must remain untouched.

pnpm lint
pnpm typecheck
pnpm test
pnpm build
ORQST_BROWSER_PORT=4591 pnpm exec playwright test \
  tests/browser/overview-layout.spec.ts tests/browser/path-navigation.spec.ts \
  tests/browser/brand-assets.spec.ts \
  tests/browser/dashboard.spec.ts tests/browser/shell-navigation.spec.ts \
  tests/browser/settings.spec.ts tests/browser/reading-preferences.spec.ts \
  tests/browser/theme-preferences.spec.ts tests/browser/artifact-navigation.spec.ts \
  tests/browser/artifact-draft.spec.ts tests/browser/artifacts.spec.ts \
  --output=/tmp/orqst-overview-check

Use an exclusive port/output; the fixture owns temporary synthetic sources/storage. Generated screenshots cover 1440/1280/390/320px with maximum reading sizes, comfortable spacing and light/higher-contrast appearance, including pt-BR mobile. Default-dark behavior and the existing theme/contrast/reading suites remain covered. Inspect images for wrapping, internal scrolling, reachable recovery controls, visible focus and consistent reading order. Other-browser, native Desktop visual and manual screen-reader acceptance remain pending; no full WCAG or release claim is made.

The Overview increment started after 39eaf4d. After preserving concurrent brand and experimental native-boundary work plus clean routes through f0ef4eb, lint, typecheck, all 282 Node cases, full build and the 69 selected Chromium cases passed on isolated port 4591 (Node 24.22.2/pnpm 10.34.9). Before that last rebase, the broader 132-case Chromium suite passed on port 4589. It was not repeated wholesale after the final rebase; the final selection covers every changed UI/catalog area, including brand assets, Overview, Settings, reading, themes, clean-path/legacy/history navigation and Artifact drafts. New Overview cases use the canonical view/session URLs. The locale merge retains every incoming key/value and appends only overviewLayout in both languages.

The receiving-tab check confirms layout synchronization does not echo writes; the all-hidden recovery case verifies focus returns to the header when its original trigger disappears. Synthetic desktop and pt-BR/320px screenshots were inspected. Early new-test iterations corrected translated-label/native-tab assumptions and an invalid expectation that unchanged defaults must rewrite storage. The existing Vite chunk-size warning remains. No installed services or source data were changed by this increment, and no native/provider or release acceptance is implied.

Workspace pinning

The workspace directory supports local profile pins, pinned-first directory/sidebar ordering, a pinned-only filter composed with search and a scoped Unpin all action. tests/workspace-pins.test.ts covers malformed/oversized input, exact bounded IDs, deduplication/capacity and stable priority without mutating or fabricating records.

Run the browser checks after pnpm build:

pnpm test:browser tests/browser/workspace-pins.spec.ts tests/browser/shell-navigation.spec.ts tests/browser/path-navigation.spec.ts tests/browser/artifact-navigation.spec.ts tests/browser/overview-layout.spec.ts

The eight new synthetic Chromium cases passed on 2026-11-03. They cover keyboard pressed state/focus during reordering and filtered removal, grid/list and route/reload persistence, active-scope preservation, cross-tab synchronization without echo writes, missing identities, malformed/removal recovery, read/write storage denial, offline edits without API mutations, capacity/clear recovery, exact draft preservation and existing discard confirmation after a cross-tab pin update. pt-BR captures cover dark and light themes at 320/1440px with maximum reading sizes/comfortable spacing. Manual screen-reader, other-browser and native Desktop visual acceptance remain pending. No API, ingestion, database, session-source or terminal behavior changed; real-source ingestion and native-provider acceptance were not repeated for this UI increment. All browser data lives in the disposable synthetic fixture.

Explicit native Terminal transport acceptance

pnpm accept:terminal-native --authorize-synthetic-pty builds and opens an isolated Electron application with a disposable profile and a separate Node 24 host for the fixed synthetic PTY. It is excluded from automatic test/build/CI and executes no provider or credential. The macOS/arm64 path checks real preload/IPC/session/network isolation, cancellation/start, attach/read, exact leased paste, blur revocation, confirmed stop/exit and permanent reload revocation. Dialog responses are intercepted; this does not accept a real human/modal gesture or provider behavior. See reproduction, lifetime and remaining gates.

After incorporating the concurrent native Terminal changes through 8fbe7cd, the combined tree passed pnpm lint, pnpm typecheck, pnpm test (289 cases), pnpm build and the five-suite Chromium command above (43 cases). The existing Vite bundle-size warning remains. This validates compatibility of the shared renderer increment; it does not repeat native Terminal/provider acceptance or approve a release. No installed service was restarted and no push was performed.

Embedded managed Terminal

See setup and limits. The explicit opt-in command pnpm accept:managed-terminal --authorize-synthetic-pty compiles a disposable native fixture and exercises the real ORQST Desktop/xterm, isolated preload, independent Node Core/journal and PTY. It uses an empty disposable observer and fake authentication; it never launches Codex or reads real credentials, configuration or sessions. Native confirmations are intercepted, so this is not genuine human-modal/accessibility or provider acceptance. Normal test/CI commands do not run this native acceptance.

Artifact source-library validation — 2026-11-03

The source-library increment was rebased onto the concurrent Terminal recovery baseline (1a66514), preserving its implementation and public records. On Node 24.22.2/pnpm 10.34.9, the combined checkout passed pnpm lint, pnpm typecheck, pnpm test (303 cases), pnpm build and the following focused Chromium run on isolated port 4601 (40 cases):

ORQST_BROWSER_PORT=4601 pnpm test:browser tests/browser/artifact-library.spec.ts tests/browser/artifacts.spec.ts tests/browser/artifact-navigation.spec.ts tests/browser/path-navigation.spec.ts tests/browser/shell-navigation.spec.ts

Coverage includes real extraction from the synthetic retained-message fixture, exact selection/retention failures, loaded-text search, older pages, observation/source caps, current workspace and exact session scope, obsolete requests, malformed responses, offline recovery, draft confirmation, six direct/legacy routes and Back/Forward. Dark/light pt-BR screenshots cover 1440/1280/390/320px with maximum reading sizes and comfortable spacing; desktop and narrow images were visually inspected. The build retains the existing chunk-size advisory above 500 kB; no bundling policy was weakened.

An initial static Node assertion still expected the admission predicate in App.tsx; it now checks the shared helper used there, with additional runtime negative cases. Initial browser cases also exposed mismatched test labels and a fragile lookup of the wrapped session selector; it now has an explicit localized accessible label. No ingestion code changed, so pnpm validate:local was not run. The complete Chromium suite, native Desktop/assistive-technology acceptance, other browsers and real-provider history were not revalidated by this increment. No installed service, user database, provider process or source session was changed, and no push/restart was performed. Full-archive search, saved-file/draft indexing, automatic extraction and durable draft recovery remain outside this delivery.

First observation guide — 2026-11-03

This UI-only increment starts after f4ed5f6 and preserves the separate experimental Terminal work. With isolated Node 24.22.2/pnpm 10.34.9 it passed pnpm lint, pnpm typecheck, pnpm test (303 cases), pnpm build and 45 Chromium cases on isolated port 4613, using the selection in the browser guide.

The seven new synthetic cases cover snapshot diagnostic values/time, unavailable versus zero, global history in an empty selected workspace, automatic fact updates, stale snapshot failures/recovery, offline entry, no mutation requests/progress storage, modal keyboard/focus, palette handoff, canonical routes/history and exact Artifact draft cancellation/confirmed navigation. Neighboring Settings, shell, Artifact guards, routes and brand checks also pass. Dark/light screenshots cover 1440/1280/390/320px at maximum reading sizes, comfortable spacing and reduced motion; desktop and pt-BR/light 320px images were visually inspected.

Initial guide tests exposed native Tab boundary behavior, which is now explicitly contained. Palette return focus correctly restores its original field; a test also needed an exact language label. An intermediate repeat coincided with a rebuild removing served assets and returned dashboard_not_built in an existing Settings case. The final 45-case run used the completed, unchanged build and passed without retries. The existing Vite chunk-size advisory remains; no check was weakened.

No ingestion, API, native contract or dependency changed, so pnpm validate:local, live-provider and Desktop smoke checks were not repeated. Full Chromium, other browsers, manual screen-reader and native visual acceptance remain pending. There was no installed service restart, push, user database/source change or provider execution. CLI discovery, authentication/installation checks, saved onboarding progress and the broader first-run workflow remain outside this delivery.

Terminal and communication integration — 2026-11-03

The integrated observer/embedded Terminal/communication tree at eecf345, including communication QA fix 7d48643 and the separate global documentation commit, passed pnpm lint, pnpm typecheck, all 330 Node cases and pnpm build with Node 24.22.2 and pnpm 10.34.9. The communication subset also passed independently (23 cases). The existing Vite chunk-size advisory remains.

The structured runtime feature 517dd63 and pre-dispatch fix c7187ab were then reviewed and approved by independent QA before fast-forward integration. The runtime contributor ran lint, typecheck, all 353 Node cases and full build on that exact source tree. The integrator repeated only the 46 communication/runtime cases after integration, all passing, plus global documentation formatting, local links and git diff --check. The already-valid global suites were not repeated on identical source. Runtime evidence includes synthetic structured transports and two disposable Node IPC hosts; the real provider-owning host was build-checked, not executed.

An initial local typecheck failed because the checkout lacked the two xterm package links already declared in the lockfile. pnpm install --frozen-lockfile --ignore-scripts restored them; the repeated check passed without source changes or lockfile edits. No real source/provider validation, native consent, Electron smoke or browser suite was repeated for this library/documentation integration. Ingestion is unchanged; validate:local was not run under the instruction to avoid real data. Installed services, Desktop processes, observer storage and external sessions were preserved; there was no restart or credential/provider access. Publication follows the owner authorization and a separate audit of every pending commit; it does not activate managed providers or update the installed application.

Publication history

Before first publication of these increments, pending local history was reconstructed from the existing remote base to remove development-agent ownership notes from every snapshot. Source code, tests, authored messages and author/committer metadata were preserved. Earlier validation hashes identify the original local snapshots; they are not extra published references. The backup and obsolete local references are excluded from publication. The source-equivalent global checks and focused tests above remain valid; documentation formatting and the entire outgoing history were reviewed again after reconstruction.

Dashboard visual integration — 2026-11-03

The visual contributor validated the exact frontend/test content with lint, typecheck, 331 Node cases and build. The complete Chromium run passed 169/173: four observation-guide fixtures assumed one session despite other suites retaining additional synthetic sessions. The follow-up commit scopes those fixture readings without weakening assertions; dashboard plus guide retesting passed 11/11. The visual matrix passed 6/6, and brand/system/alpha and dark/light contrast checks passed. No single all-green 173-case run is claimed. The integrator compared the applied files with that delivered tree, repeated the three pinned asset cases and checked global documentation formatting/links. Independent runtime source was preserved.

Evidence is Chromium/synthetic at 320/390/768/1440 in both languages and palettes. Native Desktop, Safari/Firefox and manual screen-reader acceptance remain unvalidated. The existing Vite bundle advisory remains. Publication does not itself replace the installed static bundle; that separately authorized action is coordinated with the visual contributor, without a Bridge/Desktop restart or schema migration.

Scoped native delegation integration — 2026-11-03

The runtime contributor checked the exact delivered delta with lint, typecheck, 366 Node cases, build and diff checks; independent QA approved the opt-in library. The integrator applied only that new commit onto the sanitized/published lineage, compared all eight delivered files and repeated the 36 structured-runtime cases with Node 24.22.2, all passing. Global suites were not repeated on unchanged frontend and source-equivalent validated modules. Public documentation formatting, local links and outgoing-history checks were performed separately.

Synthetic evidence covers separately signed root plans, immutable exact task/target, one-call/deadline limits, B-result scope/hash, A's native tool receipt, replay/negative cases, oversized serialized result as bounded failure and missing real-acceptance flags rejected before filesystem/provider access. Two labeled Node IPC hosts remain synthetic transport evidence. No installed provider, real login, credential access or paid inference occurred. The prepared real acceptance was not executed.

The private native protocol shapes remain unvalidated against an installed binary; 128 retained root plans/panes have no reclamation, and uncertain ownership/tasks retain capacity. Protocol/permission loss can leave the live process under its previously authorized 30-minute lifetime. Cost allowance is advisory, without an enforced spending cap. These limits and the separate owner-authorized acceptance are described in the developer contract.

Two-agent acceptance preparation follow-up — 2026-11-03

The explicit developer script now independently checks the actual scoped worker marker as well as A's final receipt. A already knows the marker; a correct root answer after a wrong B answer must not pass. Synthetic tests cover missing, wrong and duplicate worker results, a wrong root result and bounded prompt expansion. The authorization regression removes each of the three required flags in turn and verifies refusal before accessing a nonexistent synthetic path or launching Codex.

Offline inspection of a native Codex CLI 0.162.1 used only version/help and app-server generate-ts --experimental in new empty private homes. Its emitted types agree with the narrow dynamic-tool declarations/call/response/completion and thread/model fields used here. This is static declaration evidence, not a live handshake, account entitlement or A-to-B-to-A acceptance. Generated declarations, binary paths/hashes and new slot manifests remain local and are not published. No login, credential inspection, app-server listener, provider or inference was run.

The public acceptance guide now distinguishes API price arithmetic from subscription usage, advisory spending allowance from enforced caps, and prompt restrictions from native same-user isolation. Actual billing, model/account availability and runtime compatibility still require separately authorized verification. Ingestion is unchanged; real-source validation, browser/native UI and provider acceptance are not part of this preparation.

Validation for this change used Node 24.22.2/pnpm 10.34.9: lint, typecheck, 369 Node tests (including 38 focused acceptance/runtime cases) and build passed. The build retains the existing Vite chunk-size advisory. validate:local, browser tests, Desktop smoke and the real acceptance command were not run.

Structured initialization transport fixtures

tests/codex-native-initialize.test.ts builds the production structured host and a small, independently written native fake app-server on macOS arm64. It uses empty disposable native homes, no credentials, no provider executable, no network and no subprocess descendants. The fake rejects inference and records only its four allowlisted handshake/preparation method names. Run with Node 24/pnpm 10:

pnpm exec tsx --test tests/codex-native-initialize.test.ts

The compatible scenario exercises actual child pipes and Node IPC, a startup notification spanning 32 KiB host slices, fragmented UTF-8, CRLF, interleaved notifications and the native initialization response fields. It verifies requested dynamic-tool support remains unobserved and no turn is submitted. Its signed stop requires the exact owned signal-only exit, with matching durable lifecycle evidence.

Three separate fakes produce the same request_timeout / initialize diagnostic: one never reads stdin, one writes the response without its newline, and one emits only a notification. A Content-Length header instead produces invalid_message; a correlated RPC error produces native_request_rejected, without retaining its secret sentinel. The silence scenarios therefore establish diagnostic ambiguity, not a cause for a historical native timeout. The documented stdio protocol is JSONL, with the JSON-RPC version header omitted; initialization is acknowledged by initialized only after its response. See the official app-server protocol.

Each fake has a 12-second independent self-exit bound. Lost transports receive no signals or PID adoption; the test waits for the fake's real durable exit and keeps the runtime ownership_lost rather than retroactively claiming owned cleanup. Disposable state is retained when an exit is not confirmed. These fixtures take about 30 seconds because they exercise the actual eight-second request deadlines. They do not inspect, reconcile, delete or reuse prior real acceptance state, prove descendant cleanup for a provider, or establish installed Codex compatibility.

The startup counter contract describes the added fixed-size metadata, fake-only privacy/limit/cleanup tests and sample-lag limits. No real-provider acceptance follows from those counters.

Live native Terminal manifest selection

After pnpm build, the explicit disposable Electron integration is:

pnpm accept:terminal-selection --authorize-synthetic-review

It uses its own synthetic Bridge, empty source directory, profile, reservation and blocked OpenCode review manifest. Only a temporary test bundle substitutes Node's hash for the provider hash; that executable is never dispatched as a provider. Native focus and file/review dialog answers are intercepted. The test exercises the actual application menu, memory-only review, cancellation, blur/navigation invalidation, drift/re-review and opening the blocked view without Core/journal creation, preserving the synthetic old reservation. It removes only its own root. It also injects a second-window load failure in a second disposable lifetime of the same profile and checks partial-window cleanup, preserved files/reservation and the fixed initialization latch. This proves wiring/preservation, not actual native-modal visibility, focus, login, inference-free startup, provider readiness or billing. Normal tests/CI do not run this explicit Electron command. See the flow and limits.

tests/terminal-selection.test.ts and tests/opencode-profile.test.ts cover strict files/permissions/identity, ordered complete review, oversize refusal, invisible format controls, cancellation/expiry/concurrency, source/inode/blocker drift, one-time initialization and same-provider selection with disposable fixtures.