Skip to content

fix(server): report headless prompt acceptance honestly - #4950

Merged
yomgui merged 4 commits into
devfrom
fix/headless-session-create-visibility
Sep 17, 2026
Merged

yomgui merged 4 commits into
devfrom
fix/headless-session-create-visibility

Conversation

@yomgui

@yomgui yomgui commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

Headless session.create now returns accepted:true only after model preflight and engine HTTP acceptance, replacing the misleading started:true receipt. Failures retain accepted siblings, indexed issues and known session IDs; discovery and writes have bounded deadlines, and diagnostic text is redacted and capped. The merge preserves model aliases, atomic model preflight, and session-scoped model repicking.

This does not fix delayed sidebar visibility: renderer subscriptions remain limited to the selected workspace, leaving the cross-workspace visibility root cause open; follow-up ownership is pending. It does not prove inference starts or succeeds, and it makes no client UI change. No user-visible change; server receipt only.

The original receipt confused successful asynchronous HTTP admission with execution. Create now uses one accepted:true receipt shape, consistent with send semantics; the separate legacy headless SDK field is not renamed. HTTP 204 remains a valid prompt-admission response. An unavailable model can still fail after admission, so callers must inspect observed session activity and transcripts. See the RCA for the deliberately separate sidebar investigation.

Contract and scope

  • Explicit model/alias choices resolve for the whole batch before writes. Missing catalog host, unavailable choices or ambiguity fail closed.
  • Per-phase bounds: workspace discovery 7 seconds (headers and body), catalog/reload 7 seconds each, create/prompt 10 seconds each. These are not a single whole-call deadline.
  • HTTP rejection or timeout never reports an accepted entry. Timeout is uncertain admission; inspect retained IDs before retrying. There is no automatic retry.
  • Partial failure results and effects survive the shared affordance schema. Error text uses the existing shared response redactor before a 400-character cap.
  • No renderer/sidebar changes. Affordance documentation and headless SDK comments clarify admission versus execution.

Final-head verification

Head: e0b2bd66c7f32faa2dabbb124c621679f01eebfc. Signed merge of dev 27647d2b5, then a signed review-repair commit; no rewritten history.

Assertion-by-assertion evidence: 45 passing testkit runs / 84 recorded assertion entries, plus separately retained negative and failed attempts. Explicit local lane.

Command Result
bun test apps/server/src/opencode-plugins/openwork-extensions-preview.test.ts apps/server/src/opencode-plugins/openwork-provider-adapters.test.ts 125 passed, 0 failed, 0 skipped
pnpm evals:pr specs/session-create-acceptance.test.ts 6 passed, 0 failed, 0 skipped
pnpm evals:pr specs/session-model-aliases.test.ts 1 passed
pnpm evals:pr specs/session-model-repick.test.ts 26 passed
pnpm evals:pr specs/session-model-removal-sync.test.ts 7 passed
pnpm evals:pr specs/session-archive-deadline.test.ts 1 passed
pnpm evals:pr specs/session-archive-mailbox.test.ts 1 passed
pnpm evals:pr specs/session-archive-transport.test.ts 1 passed
pnpm evals:pr specs/agent-ui-context-via-server.test.ts 1 passed
pnpm evals:e2e session-model-repick --local --engine v1 --surface electron Initial failure; unchanged repeat 1 passed — qualification below
pnpm --filter openwork-server test src/opencode-proxy.e2e.test.ts -t "desktop-owned recovery survives a server restart|acknowledges proxied session commands" 2 passed, 0 failed; 21 filtered
pnpm typecheck / pnpm evals:typecheck Both exit 0; evals checked 486 files

Revert-fails on this head: temporarily restoring only runtime started:true makes acceptance proof exit 1 (5 passed, 1 failed, 0 skipped); restoring accepted:true makes it exit 0 (6 passed, 0 failed, 0 skipped). No temporary mutation remains.

Qualifications

The first isolated Electron repick run timed out at the repick heading after reload; the unchanged repeat passed. Its cause is unresolved, not proven pre-existing. This is retained in the evidence rather than represented as an unqualified first-run pass. The scoped server regression proof passed; blanket all-attempts/visual verification remains incomplete. Four supplemental images are unvalidated and not used for the server verdict.

Evidence is published as sanitized assertion text because the private review-store credential is unavailable. No hosted screenshot or downloadable raw-artifact links are claimed; repository-relative run directories identify local source receipts.

pnpm --dir evals lint:layers exits 54 on the branch and clean dev b1823e85de06dd27e9d93ae44db081810ba0bd03, with the same 54 violation lines, zero warnings and 23 known violations ignored. These violations are outside this PR's changed files. Module/dependency totals differ; only the failure signatures match.

CI and remarks

Gate at final head Status / evidence
Required / core / build / classify / workflow authoring Passed
Warden execution and security clearance Passed; final-head approval
Warden SARIF aggregation Neutral: one non-blocking medium spec-provenance remark, disposition below
CodeQL actions / JavaScript-TypeScript / Python Passed; 0 open PR alerts
i18n Passed
Generated SDK / API contract Passed / Passed
EE builds / Helm validation Passed
Mintlify spellcheck and deployment / Vercel previews Passed
Review decision / unresolved threads APPROVED / 0

All remarks accounted for: fixed both touched-document spelling annotations. The Warden request for a {accepted:true} prompt-proxy envelope is not applicable: the engine contract is empty 204, which the proxy preserves; /command has the separate JSON envelope. The real-proxy test and 2 focused boundary tests verify this distinction. See the human-grade review comment for source links and disposition. Security, confidentiality and desktop/Den review scans found no blocking issues.

Separate repository/integration hygiene: 11 final-head workflow annotations concern Node 20 actions forced onto Node 24 (pnpm setup, artifact upload, Docker actions and Helm setup); none are PR-file warnings. Cloudflare Pages failed on the preceding head as a non-required external preview integration; it is not a required gate and was not pursued. Skipped optional jobs are not reported as passed.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 17, 2026 3:34am UTC
openwork-den Ignored Ignored Preview Sep 17, 2026 3:34am UTC
openwork-diagnostics Ignored Ignored Preview Sep 17, 2026 3:34am UTC
openwork-landing Ignored Ignored Preview Sep 17, 2026 3:34am UTC

@yomgui

yomgui commented Sep 12, 2026 •

Copy link
Copy Markdown
Member Author

Head-matching test evidence — textual publication

Commit: e0b2bd66c7f32faa2dabbb124c621679f01eebfc

Selected recorded results: 45 passing testkit runs; 84 passing recorded assertion entries; 0 failed recorded assertion entries in that selection. Each selected run has its own section below, with every recorded claim and supporting evidence. Duplicate assertion captions are retained as distinct numbered entries, matching their source order. These are recorded evidence entries, not a count of every low-level expect() call.

Overall verification: Incomplete, not an unqualified green. The earlier Electron attempt failed; an unchanged-head repeat passed, but the initial failure's cause remains unresolved and is not classified as pre-existing. The intentional acceptance red control is reported separately below and is excluded from the selected passing results.

No screenshots or hosted artifacts: the private review-store credential is unavailable. This is the explicitly authorized textual fallback, updating the existing evidence comment only. No Blob route was retried, no public Blob store was substituted, and no hosted evidence links are claimed. Four supplemental Electron images remain unvalidated and are not attached; no visual verdict is asserted. Assertions are the primary proof. No new user-visible UI diff is claimed by this publication. Sidebar visibility remains unproven by the acceptance witness.

Source directories below are repository-relative; the record is test-run.json inside each directory. They identify local source evidence, not downloadable GitHub files. Raw logs, private paths, credentials, and generated session identities are omitted. Log-backed evidence is summarized with its recorded command/result counts; the Electron identity assertion is summarized without private paths. Original source records are unchanged. All selected and separately reported runs carry the commit above and engine v1. Repro commands are for a checkout of that commit; publication did not rerun tests. Electron was recorded in isolated local desktop mode; other listed tests use their PR-lane witnesses.

Test 01 — Passed — session.create bounds stalled workspace discovery headers without writes

Source: evals/results/test-runs/2026-09-17T03-28-44-964Z-session-create-bounds-stalled-workspace-discovery-headers-without-writes
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — Workspace discovery headers has a bounded failure before mutation. The real HTTP witness stalled headers; creation returned a structured workspaceId failure in 7004ms. Exactly one GET reached the server, with no catalog, create, prompt, reload, navigation, or retry.

Test 02 — Passed — session.create bounds stalled workspace discovery body without writes

Source: evals/results/test-runs/2026-09-17T03-28-51-994Z-session-create-bounds-stalled-workspace-discovery-body-without-writes
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — Workspace discovery body has a bounded failure before mutation. The real HTTP witness stalled body; creation returned a structured workspaceId failure in 7004ms. Exactly one GET reached the server, with no catalog, create, prompt, reload, navigation, or retry.

Test 03 — Passed — session.create redacts and bounds discovery failures while retaining provider reasons

Source: evals/results/test-runs/2026-09-17T03-28-59-020Z-session-create-redacts-and-bounds-discovery-failures-while-retaining-provider-re
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — discovery failure receipts preserve useful reasons without synthetic credentials. Top-level and nested provider messages passed through the shared response redactor before the 400-character cap. Root errors, indexed issues, and partial failures retained the authorization reason and recovery identity without API keys, passwords, or bearer credentials; no retries occurred.

Test 04 — Passed — session.create redacts and bounds create failures while retaining provider reasons

Source: evals/results/test-runs/2026-09-17T03-28-59-052Z-session-create-redacts-and-bounds-create-failures-while-retaining-provider-reaso
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — create failure receipts preserve useful reasons without synthetic credentials. Top-level and nested provider messages passed through the shared response redactor before the 400-character cap. Root errors, indexed issues, and partial failures retained the authorization reason and recovery identity without API keys, passwords, or bearer credentials; no retries occurred.

Test 05 — Passed — session.create redacts and bounds prompt failures while retaining provider reasons

Source: evals/results/test-runs/2026-09-17T03-28-59-076Z-session-create-redacts-and-bounds-prompt-failures-while-retaining-provider-reaso
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — prompt failure receipts preserve useful reasons without synthetic credentials. Top-level and nested provider messages passed through the shared response redactor before the 400-character cap. Root errors, indexed issues, and partial failures retained the authorization reason and recovery identity without API keys, passwords, or bearer credentials; no retries occurred.

Test 06 — Passed — session.create reports asynchronous acceptance, preserves rejected session IDs, and never claims inference started

Source: evals/results/test-runs/2026-09-17T03-28-59-100Z-session-create-reports-asynchronous-acceptance-preserves-rejected-session-ids-an
Repro: pnpm evals:pr specs/session-create-acceptance.test.ts

  • PASS A1 — Real OpenWork server preserves acceptance versus execution and partial failure recovery IDs. The rejecting-engine witness received exactly three creates and three prompts through the real server proxy. HTTP rejection surfaced its indexed issue and created ID; both 204 responses reported accepted without started. session.read found one pinned, idle, user-only session and one sibling reply. No automatic retry occurred.
  • PASS A2 — Preflight fails closed, stalled HTTP acceptance is bounded, and partial receipts survive the public schema. Without a renderer catalog there were zero writes. The connected catalog was read without navigation. A held prompt returned within 15 seconds with its known session ID and no acceptance claim; a rejected create had no ID or prompt. No retry, open, focus, or UI mutation occurred; the witness rejected best-effort reloads. Sidebar visibility is not proven.

Test 07 — Passed — session model aliases preserve workspace scope, canonical bindings, and safe read projections

Source: evals/results/test-runs/2026-09-17T03-29-11-374Z-session-model-aliases-preserve-workspace-scope-canonical-bindings-and-safe-read-
Repro: pnpm evals:pr specs/session-model-aliases.test.ts

  • PASS A1 — Catalog discovery is workspace-scoped and read-only. The non-caller workspace returned its three connected models and fallback name; disconnected models, caller catalog reads, writes, and missing-workspace fallback were absent.
  • PASS A2 — Named model resolution binds creation and first prompt consistently. Exact HTTP payloads contained opaque canonical ids and requested effort, not picker labels; the result included both human names and no other workspace was touched.
  • PASS A3 — Named model resolution binds creation and first prompt consistently. Exact HTTP payloads contained opaque canonical ids and requested effort, not picker labels; the result included both human names and no other workspace was touched.
  • PASS A4 — Qualified override and inherited batch model stay independent. Two sessions used different canonical providers and models on both writes; the override did not inherit high effort or send literal default, and returned variant null with alternate provider labels.
  • PASS A5 — Reject ambiguous alias atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A6 — Reject ambiguous displayName atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A7 — Reject missing name atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A8 — Reject removed opaque id atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A9 — Reject disconnected provider atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A10 — Reject selector without model atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A11 — Reject id without provider atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A12 — Reject mixed selectors atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A13 — Reject alias with ids atomically across the batch. The public tool returned an actionable failure; the valid first item also produced zero creates, prompts, UI reloads, or session mutations.
  • PASS A14 — Discovery is not permanent authorization for a removed model. A previously listed opaque id was removed before creation; creation reread the catalog and rejected it with zero writes instead of using cached discovery.
  • PASS A15 — Fail closed for missing host. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A16 — Fail closed for malformed envelope. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A17 — Fail closed for wrong affordance. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A18 — Fail closed for mismatched workspace. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A19 — Fail closed for unavailable projection. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A20 — Fail closed for policy denial. The caller workspace differed from the exact host query workspace; raw connected models were not consulted and no session, prompt or navigation occurred.
  • PASS A21 — Decorations never replace binding ids. Returned bindings and available list projections selected by ids, retained effort and returned canonical labels without an available field in the binding.
  • PASS A22 — Read labels decorate rather than migrate persisted model bindings. Normal and summary reads returned current labels; removed ids and effort survived verbatim without substitute labels, unbound stayed null, and no model record or other workspace was written.
  • PASS A23 — Catalog failure is not an invented model or authorization to create. Session metadata remained readable with ids and effort only; discovery failed explicitly and named creation failed before all writes.
  • PASS A24 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A25 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A26 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A27 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A28 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A29 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A30 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A31 — Latest assistant error is allowlisted and never sticky after success. An error-only latest assistant surfaced a safe code/message despite an older readable success; raw provider detail and unknown names never escaped in either read mode, and later success cleared lastError without writes.
  • PASS A32 — Windowed reads do not claim errors outside loaded history. A one-message tail omitted the earlier error, a two-message tail exposed it, and a from-start read inspected full history despite returning only the first readable message; no raw detail or writes escaped.
  • PASS A33 — Renderer inventory labels are scoped decorations, not model migration. Identical opaque ids received different workspace labels; scoping excluded other sessions, missing catalogs preserved ids, stale bindings stayed stale, and input records did not mutate.

Test 08 — Passed — repick previews effective bindings, saves only confirmed scope, and preserves engine/default identities

Source: evals/results/test-runs/2026-09-17T03-29-13-218Z-repick-previews-effective-bindings-saves-only-confirmed-scope-and-preserves-engi
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — This-session and opt-in all-session scope use effective local-first bindings. Dry-run wrote nothing; one and three choices persisted atomically with variants. Archives, other workspace, unrelated override, engine records and defaults were unchanged.

Test 09 — Passed — headless stale sends write zero prompts; an explicit repick applies canonical ids and variant on next send

Source: evals/results/test-runs/2026-09-17T03-29-13-256Z-headless-stale-sends-write-zero-prompts-an-explicit-repick-applies-canonical-ids
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Stale headless send is rejected before prompt writes. The real facade rejected missing model, host, catalog and mismatched identities with model_unavailable; only the two explicit sends after local repick wrote canonical model/effort payloads and returned accepted:true.

Test 10 — Passed — invalid targets, changed previews and unavailable replacements cannot partially save

Source: evals/results/test-runs/2026-09-17T03-29-13-320Z-invalid-targets-changed-previews-and-unavailable-replacements-cannot-partially-s
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Invalid repicks cannot partially save. Archived targets, unavailable replacements, missing workspaces and changed preview sets all rejected; neither local storage nor engine writes occurred.

Test 11 — Passed — bulk mutations fail closed without confirmation while dry-runs remain read-only

Source: evals/results/test-runs/2026-09-17T03-29-13-339Z-bulk-mutations-fail-closed-without-confirmation-while-dry-runs-remain-read-only
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Bulk writes require the exact confirmed preview set. Missing confirmation rejected in both the action and facade; empty, duplicate and extra ids rejected without persistence. Dry-run required no confirmation, and the confirmed set saved regardless of order.

Test 12 — Passed — bulk repick rejects a source restored to the current catalog after preview

Source: evals/results/test-runs/2026-09-17T03-29-13-361Z-bulk-repick-rejects-a-source-restored-to-the-current-catalog-after-preview
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Bulk repick is limited to an unavailable exact source model. Restoring the source's provider/model ids under a different label after preview blocked both fresh preview and confirmed mutation; no local or engine writes occurred.

Test 13 — Passed — bulk matching uses exact provider and model ids, not labels

Source: evals/results/test-runs/2026-09-17T03-29-13-381Z-bulk-matching-uses-exact-provider-and-model-ids-not-labels
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Other providers' matching model ids do not widen or block the confirmed scope. An available model with the same id and label but another provider did not block replacement of the removed source; its session and all engine records stayed untouched.

Test 14 — Passed — healthy fresh sessions preserve model-free sending, never substituting defaults for stale bindings

Source: evals/results/test-runs/2026-09-17T03-29-13-400Z-healthy-fresh-sessions-preserve-model-free-sending-never-substituting-defaults-f
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Fresh sessions retain model-free sending without rescuing stale bindings. The fresh session received one accepted prompt with no model or variant fields; the stale bound session returned model_unavailable and added no prompt write.

Test 15 — Passed — exact workspace repick bypasses unrelated offline inventories and rejects foreign targets

Source: evals/results/test-runs/2026-09-17T03-29-13-428Z-exact-workspace-repick-bypasses-unrelated-offline-inventories-and-rejects-foreig
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Exact workspace repick isolates unavailable and foreign workspaces. The scoped repick saved locally while the other inventory was offline and read only its target session; attempting a foreign target rejected without another storage write.

Test 16 — Passed — catalog waits cannot race an archive, hold or newer local selection into a repick

Source: evals/results/test-runs/2026-09-17T03-29-13-450Z-catalog-waits-cannot-race-an-archive-hold-or-newer-local-selection-into-a-repick
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Repick waits cannot overwrite archive state or a newer local choice. Each suspended catalog lookup was raced with an archive, hold or newer repick; all rejected without an additional save, the newer high-effort choice survived, and no engine writes occurred.

Test 17 — Passed — exhausted queued repicks reject before reads even when args claim a fresh timestamp

Source: evals/results/test-runs/2026-09-17T03-29-13-468Z-exhausted-queued-repicks-reject-before-reads-even-when-args-claim-a-fresh-timest
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Queued request age is charged before model handlers read or mutate. At exactly 4s, after mailbox expiry and after a long queue, single and bulk repicks rejected before all reads. Fresh timestamps in user args could not reset the deadline; local and engine state remained unchanged.

Test 18 — Passed — invalid and future internal timestamps fail closed for single and bulk repicks

Source: evals/results/test-runs/2026-09-17T03-29-13-488Z-invalid-and-future-internal-timestamps-fail-closed-for-single-and-bulk-repicks
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Invalid timestamps never grant a fresh model mutation budget. Non-finite, non-positive, fractional and future timestamps rejected before reads in both handlers with zero local or engine writes.

Test 19 — Passed — near-expiry queued repicks time out on the remaining budget and late reads cannot save

Source: evals/results/test-runs/2026-09-17T03-29-13-510Z-near-expiry-queued-repicks-time-out-on-the-remaining-budget-and-late-reads-canno
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Near-expiry queued repicks have only their remaining 100ms. All single/bulk catalog, directory, target and authoritative status reads stayed pending at 99ms and rejected at 100ms. Releasing abandoned reads after the mailbox deadline caused no local persistence or engine writes.

Test 20 — Passed — queued repicks keep a monotonic remaining budget across wall-clock rollback

Source: evals/results/test-runs/2026-09-17T03-29-13-536Z-queued-repicks-keep-a-monotonic-remaining-budget-across-wall-clock-rollback
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Queued remaining time stays monotonic after handler entry. With 100ms remaining and timers unfired, the final read at 100ms rejected despite a one-minute wall-clock rollback; the 99ms control saved successfully for both handlers. No engine writes occurred.

Test 21 — Passed — direct repick handlers retain their four-second bound and abandoned reads never save later

Source: evals/results/test-runs/2026-09-17T03-29-13-558Z-direct-repick-handlers-retain-their-four-second-bound-and-abandoned-reads-never-
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Repick deadlines prevent post-timeout local mutations. Single and bulk catalog, directory, target and authoritative status reads all rejected at four seconds before the five-second mailbox; releasing every abandoned read afterward produced no local or engine writes.

Test 22 — Passed — repick uses one absolute budget and checks elapsed time even before timers run

Source: evals/results/test-runs/2026-09-17T03-29-13-579Z-repick-uses-one-absolute-budget-and-checks-elapsed-time-even-before-timers-run
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Repick checks the absolute deadline after awaited reads. Three individually short reads consumed 4.5 seconds of the injected monotonic clock without firing a timer; both single and bulk repicks rejected with no persistence or engine writes.

Test 23 — Passed — activity starting during the final read prevents single and atomic bulk repicks

Source: evals/results/test-runs/2026-09-17T03-29-13-598Z-activity-starting-during-the-final-read-prevents-single-and-atomic-bulk-repicks
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Final-read activity prevents any repick persistence. Local activity began inside the final authoritative status read. Single and bulk repicks both refused; idle bulk peers, local storage and engine state remained untouched.

Test 24 — Passed — authoritative busy and retry states reject repicks even when local activity is empty

Source: evals/results/test-runs/2026-09-17T03-29-13-617Z-authoritative-busy-and-retry-states-reject-repicks-even-when-local-activity-is-e
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Authoritative engine activity vetoes stale-cache repicks. Busy and retry engine responses rejected single/bulk previews and confirmations with empty local activity. Idle peers, local persistence and engine records were untouched; only the target workspace's status was read.

Test 25 — Passed — unreadable and malformed authoritative statuses cannot authorize any local model save

Source: evals/results/test-runs/2026-09-17T03-29-13-637Z-unreadable-and-malformed-authoritative-statuses-cannot-authorize-any-local-model
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Status verification fails closed. Transport rejection, missing response/data, partial HTTP success, errors, and malformed maps (including unrelated entries) all prevented single and atomic bulk saves without engine mutations.

Test 26 — Passed — authoritative idle and omitted-idle maps permit local-only single and bulk repicks

Source: evals/results/test-runs/2026-09-17T03-29-13-659Z-authoritative-idle-and-omitted-idle-maps-permit-local-only-single-and-bulk-repic
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Exact 200 valid idle maps allow local-only persistence. Explicit idle and omitted-idle maps allowed both handlers with one atomic local write each; unrelated engine activity did not veto the target. Status was the final awaited read, and no engine record changed.

Test 27 — Passed — status waits recheck local holds and selections before single and bulk persistence

Source: evals/results/test-runs/2026-09-17T03-29-13-678Z-status-waits-recheck-local-holds-and-selections-before-single-and-bulk-persisten
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Status waits cannot overwrite local state changes. While the final authoritative read waited, a hold, newer target choice or newly matching bulk peer appeared. Each handler rejected without additional persistence and preserved the newer choice; no engine writes occurred.

Test 28 — Passed — confirmed pending choices survive ordinary selections beyond the old 200-entry cap

Source: evals/results/test-runs/2026-09-17T03-29-13-699Z-confirmed-pending-choices-survive-ordinary-selections-beyond-the-old-200-entry-c
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Pending choices survive ordinary selection churn. After 250 additional selections, every confirmed choice retained its object identity and persisted model/variant; no engine writes occurred.

Test 29 — Passed — queue catalog checks use renderer identity, not a remote runtime's colliding workspace id

Source: evals/results/test-runs/2026-09-17T03-29-13-723Z-queue-catalog-checks-use-renderer-identity-not-a-remote-runtime-s-colliding-work
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Queued model preflight uses renderer workspace identity. The query used rem_fixture and returned the replacement; missing renderer identity made no query, and a response bearing the colliding runtime workspace id was rejected.

Test 30 — Passed — effective picker selection and slash commands honor engine binding, local repick and effort

Source: evals/results/test-runs/2026-09-17T03-29-13-741Z-effective-picker-selection-and-slash-commands-honor-engine-binding-local-repick-
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Picker precedence and slash commands preserve selected model and effort. Engine binding won over the default until local repick; the observed command HTTP payload carried replacement ids and low effort. Missing bindings used the fallback, and null effort produced explicit default rather than retaining old effort.

Test 31 — Passed — canonical workspace aliases allow single and bulk repick but never admit neighboring directories

Source: evals/results/test-runs/2026-09-17T03-29-13-759Z-canonical-workspace-aliases-allow-single-and-bulk-repick-but-never-admit-neighbo
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Repick ownership is exact against the engine's canonical workspace directory. A different registered path produced a two-session preview and successful single/bulk local saves; archives, another workspace, nested paths and prefix neighbors were excluded. Missing canonical ownership failed closed.

Test 32 — Passed — same-id effort changes and bulk selections publish model/variant atomically

Source: evals/results/test-runs/2026-09-17T03-29-13-778Z-same-id-effort-changes-and-bulk-selections-publish-model-variant-atomically
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Same-id effort edits and bulk repicks publish atomically. Explicit effort edits changed high to low and then null; an omitted effort preserved the same choice. Bulk repick emitted exactly one store update containing both target model/variant pairs and no engine writes.

Test 33 — Passed — suggested replacements prefer the same provider family then available workspace default, never silently picking another model

Source: evals/results/test-runs/2026-09-17T03-29-13-796Z-suggested-replacements-prefer-the-same-provider-family-then-available-workspace-
Repro: pnpm evals:pr specs/session-model-repick.test.ts

  • PASS A1 — Replacement suggestions preserve provider preference and availability. Same-provider and same-family candidates outranked the workspace default; an available default was used only without a family match. An unavailable default or empty catalog returned null rather than an unrelated model, and schema parsing preserved the replacement id.

Test 34 — Passed — provider/model removal impact is local, informational and retryable: none

Source: evals/results/test-runs/2026-09-17T03-29-15-290Z-provider-model-removal-impact-is-local-informational-and-retryable-none
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 35 — Passed — provider/model removal impact is local, informational and retryable: after_config

Source: evals/results/test-runs/2026-09-17T03-29-15-335Z-provider-model-removal-impact-is-local-informational-and-retryable-after-config
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 36 — Passed — provider/model removal impact is local, informational and retryable: inventory

Source: evals/results/test-runs/2026-09-17T03-29-15-361Z-provider-model-removal-impact-is-local-informational-and-retryable-inventory
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 37 — Passed — provider/model removal impact is local, informational and retryable: restart

Source: evals/results/test-runs/2026-09-17T03-29-15-389Z-provider-model-removal-impact-is-local-informational-and-retryable-restart
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 38 — Passed — provider/model removal impact is local, informational and retryable: canonical_alias

Source: evals/results/test-runs/2026-09-17T03-29-15-410Z-provider-model-removal-impact-is-local-informational-and-retryable-canonical-ali
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 39 — Passed — provider/model removal impact is local, informational and retryable: path

Source: evals/results/test-runs/2026-09-17T03-29-15-431Z-provider-model-removal-impact-is-local-informational-and-retryable-path
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Cloud removal emits scoped unarchived affected sessions, not a migration. A real sync pass removed one model and one provider against in-memory config witnesses; only engine GETs occurred, restored archive=0 was included, archived/other-model records were excluded, workspace sets were separate and no bindings changed.

Test 40 — Passed — removal delta ignores additions, names and unrelated identities

Source: evals/results/test-runs/2026-09-17T03-29-15-452Z-removal-delta-ignores-additions-names-and-unrelated-identities
Repro: pnpm evals:pr specs/session-model-removal-sync.test.ts

  • PASS A1 — Removal deltas distinguish retired identities from catalog edits. Adding a model or renaming an existing model produced no removals. Removing old produced exactly its provider/model identity and original labels, excluding the retained keep model.

Test 41 — Passed — archive deadlines settle stalled reads and uncertain writes, preserve caller cancellation, and retain pin and working-session contracts

Source: evals/results/test-runs/2026-09-17T03-29-16-715Z-archive-deadlines-settle-stalled-reads-and-uncertain-writes-preserve-caller-canc
Repro: pnpm evals:pr specs/session-archive-deadline.test.ts

  • PASS A1 — Bounded preflight never sends a late PATCH; uncertain PATCH is not reported as cancellation; holds and busy state recover; caller signals and pin state survive. Sanitized log summary: bun test --isolate tests/session-archive-agent-contract.test.tsx tests/opencode-stream-timeout.test.ts tests/opencode-session-native.test.ts tests/session-management-store.test.ts exited 0; 126 tests passed, 0 failed, 946 expect calls across four files, 26.04s. The wrapper recorded this assertion as passed. Storage-unavailable warnings existed in the recorded output; raw log text is intentionally omitted.

Test 42 — Passed — mailbox registration expires after a poll gap, independently of pin or engine work; a fresh poll restores it

Source: evals/results/test-runs/2026-09-17T03-29-43-999Z-mailbox-registration-expires-after-a-poll-gap-independently-of-pin-or-engine-wor
Repro: pnpm evals:pr specs/session-archive-mailbox.test.ts

  • PASS A1 — Registration is recent-poll liveness, not OS window existence. 5s receipt timeout; late reply rejected; connected through 20,000ms, false at 20,001ms; session.read rejected before enqueue; fresh pending poll restores successful request/reply without engine or pin state.

Test 43 — Passed — finite archive and permission IPC preserve scoped requests, cancellation, no retries and external trust boundaries

Source: evals/results/test-runs/2026-09-17T03-29-45-245Z-finite-archive-and-permission-ipc-preserve-scoped-requests-cancellation-no-retri
Repro: pnpm evals:pr specs/session-archive-transport.test.ts

  • PASS A1 — Archive and permission transport retain safety and external networking policy. Sanitized log summary: node --test --test-concurrency=1 apps/desktop/electron/finite-http-fetch.test.mjs apps/desktop/electron/no-bare-external-fetch.test.mjs exited 0; 9 tests passed, 0 failed, 0 cancelled, 0 skipped, 0 todo. Recorded checks covered authenticated finite loopback GET/PATCH without retry; once/always/reject permission replies; permission/allowlisted cancellation admission; held-header and held-body permission cancellation; unchanged Chromium trust policy for remote, lookalike-loopback and HTTPS requests; redirect rejection; caller cancellation reason through body consumption; and the no-unmarked-bare-fetch source guard.
  • PASS A2 — Archive and permission transport retain safety and external networking policy. Sanitized log summary: bun test --isolate tests/opencode-archive-transport.test.ts tests/opencode-stream-timeout.test.ts exited 0; 50 tests passed, 0 failed, 255 expect calls across two files, 20.07s. The wrapper recorded this assertion as passed; raw logs are omitted.

Test 44 — Passed — the in-app agent reads renderer context through openwork-server and gets an explicit result without a window

Source: evals/results/test-runs/2026-09-17T03-30-06-740Z-the-in-app-agent-reads-renderer-context-through-openwork-server-and-gets-an-expl
Repro: pnpm evals:pr specs/agent-ui-context-via-server.test.ts

  • PASS A1 — Without a polling OpenWork window, the agent receives the server's explicit no-window result and still completes its turn. openwork_context returned context=null and ui.error="No OpenWork window is connected to this server. Open the OpenWork app or its web tab and try again."; the model's reply was "MOCK OK".
  • PASS A2 — A renderer window's split layout crosses openwork-server into the agent tool result and the model's follow-up request. The fake window handled one context request; the transcript and provider tool result both contained secondarySessionId=ses_right, and the turn replied "MOCK OK".
  • PASS A3 — Viewer tokens cannot control the UI, claim pending requests, or forge replies. Unauthenticated calls returned 401, viewer control requests returned 403, viewer poll and forged replies returned 403, invalid kinds returned 400, collaborator and owner rebind_model requests were admitted unchanged while unauthenticated/viewer rebind requests were rejected, collaborator replies survived the relay, a second poll was empty, and duplicate replies returned 404.

Test 45 — Passed on repeat; initial failure unresolved — unavailable composer repick defaults to this session, previews all, and saves only confirmed local scope without sending

Source: evals/results/test-runs/2026-09-17T03-31-58-928Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only
Repro: pnpm evals:e2e session-model-repick --local --engine v1

  • PASS A1 — Isolated engine session identities are readable. Sanitized structured evidence: five distinct session identities were read; four belonged to the current isolated workspace and one to a different isolated workspace. Canonical directory identities distinguished the workspaces. Generated IDs and absolute paths are omitted.
  • PASS A2 — Choosing a real replacement option does not send or persist it. The real Models combobox displayed the clicked option and This session only was the sole checked scope. Every local override, default, engine session and transcript stayed unchanged, and the target draft remained intact before confirmation.
  • PASS A3 — Single-session repick is explicit and device-local. The real composer preview listed only two matching unarchived sessions. Confirming the default scope changed only the target override; the draft, engine sessions, transcripts and defaults remained unchanged after reload.
  • PASS A4 — All-scope repick excludes archived, unrelated-model and other-workspace sessions. Explicit all-scope confirmation changed both matching sessions (target and peer) in one UI action. Every engine session and transcript stayed identical; archived, unrelated-model and other-workspace local overrides and defaults were preserved, with no prompt sent.

The repeat records outcome: passed and four passed assertion entries. It also records four supplemental PNG artifacts (02, 04, 05, 06) with ok: null and no visual judgments; its aggregate artifact summary.ok is false. Those images are unvalidated, not failed or passed visual evidence, and are not published. This passing repeat does not resolve the initial failed attempt below.

Separately reported failures — excluded from the 45-run / 84-assertion passing selection

Control R1 — Failed intentionally — session.create reports asynchronous acceptance, preserves rejected session IDs, and never claims inference started

Source: evals/results/test-runs/2026-09-17T03-28-25-142Z-session-create-reports-asynchronous-acceptance-preserves-rejected-session-ids-an
Repro test command: pnpm evals:pr specs/session-create-acceptance.test.ts (reproduces the suite on the final head; the intentional red-control intervention is not encoded in this run record and is not invented here).

Recorded outcome: Failed. Failure: expected [ undefined, undefined ] to deeply equal [ true, true ]. This individual failed acceptance run has zero recorded assertion artifacts, not five passing assertions. The orchestrator identifies it as an intentional red control and reports the earlier six-test suite as five tests passed / one failed; the final six passing suite tests are individually represented as Tests 01–06 above, with seven recorded assertion entries in total. The failure is retained as a negative control, not counted as current passing behavior.

Prior E1 — Failed, cause unresolved — unavailable composer repick defaults to this session, previews all, and saves only confirmed local scope without sending

Source: evals/results/test-runs/2026-09-17T03-30-21-356Z-unavailable-composer-repick-defaults-to-this-session-previews-all-and-saves-only
Repro: pnpm evals:e2e session-model-repick --local --engine v1

Recorded outcome: Failed, despite one earlier passing assertion artifact. Sanitized failure: a 30,000ms wait for the unavailable-model heading timed out; the last captured matching heading had visible: false. Raw screen dumps, routes, identities and logs are omitted. The failure occurred during the opening/preview step, before the remaining repick assertions were recorded. Its cause is unresolved; this is not labeled pre-existing and an unchanged-head passing repeat is not proof of a fix.

  • Prior passing assertion E1.A1 — Isolated engine session identities are readable. Sanitized structured evidence: five distinct engine session identities were read, four in the current isolated workspace and one in another isolated workspace. This single passing assertion does not turn the failed run green and is excluded from the 84 selected assertions.

Publication scope and remaining limitations

  • 45 selected passing run sections / 84 recorded passing assertion entries are visible above; two earlier failed runs are separately retained. Across these 47 specifically reported runs: 45 outcomes passed, two outcomes failed, and 85 recorded passing assertion entries (84 selected plus one from the failed Electron attempt). Failures occurred outside recorded assertion artifacts, so a zero failed-artifact count must not hide failed run outcomes.
  • Acceptance's six passing tests are distinct from its seven recorded assertions. Wrapper subtest counts (126, 9 and 50) are not added to the testkit run or assertion totals and are not claimed as disjoint coverage.
  • No hosted artifacts or screenshots are available in this publication because the private store credential is unavailable. No visual verdict; four supplemental images remain unvalidated. Acceptance sidebar visibility and the initial Electron failure cause remain open.
  • This comment publishes recorded evidence only. It is not a human-review sign-off, merge recommendation, PR-body edit, ready-state change, or CI-wide verdict.

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 1. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (103711 ms), confidentiality-review (139621 ms), spec-provenance-review (207391 ms), desktop-den-sync-review (141684 ms).

Blockers

  • None.

Advisories

  • LQ3-48T · medium · spec-provenance-review · evals/specs/session-create-acceptance.test.ts:173

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 4
  • Distinct heads in retained window: 3
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 4/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 12, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (4a1b6d6c4311a8279f64600c202859194a4fd9c8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@mintlify

mintlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Sep 17, 2026, 3:35 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1dfbefb
Status:🚫  Build failed.

View logs

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1dfbefb32cc50ca62cd367818700cff782dc8f9f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui
yomgui marked this pull request as ready for review September 17, 2026 03:20
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 17, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (1dfbefb32cc50ca62cd367818700cff782dc8f9f). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (e0b2bd66c7f32faa2dabbb124c621679f01eebfc). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 17, 2026

Copy link
Copy Markdown
Member Author

Human-grade review (agent-assisted)

Reviewed e0b2bd6, including all 11 files in the effective diff against merged dev 27647d2b5 and the original PR commits. Recommendation: approve the scoped server fix; no remaining merge-blocking source defect identified. This is an agent-assisted source review, not a claim of independent human approval or unqualified runtime certification.

Checklist

  • Explicit model/alias selections resolve atomically before any writes; canonical bindings and set/rebind-model behavior remain intact.
  • accepted:true is emitted only after successful engine asynchronous HTTP acceptance. It is not evidence of inference startup, completion, or sidebar visibility. Rejection and timeout never enter the accepted list.
  • Structured failures retain accepted siblings, indexed issues, known recovery session IDs and effects through the public affordance schema. No automatic retry.
  • Discovery is bounded to 7 seconds including body reads; catalog/reload each retain 7-second limits; create/prompt each have 10-second limits. These are per-phase deadlines, not a 10-second whole-call promise.
  • UI creation is a separate unchanged path. No user-visible change; server receipt only. Sidebar subscription changes remain withheld.
  • The affordance description, shared failure schema and headless SDK comments now distinguish HTTP admission from execution.
  • Negative witnesses cover model-preflight rejection, HTTP rejection, partial success, idle user-only acceptance, uncertain timeout, stalled discovery headers/body and synthetic credential redaction.

Review findings addressed

  1. Closed the unbounded workspace-discovery gap before creation; structured discovery failure occurs before writes.
  2. Reused the existing shared response redactor before the 400-character diagnostic cap; retained useful provider reasons and recovery IDs. Pattern-based redaction mitigates known formats, not every conceivable sensitive representation.
  3. Corrected immediate-start SDK wording and the RCA's historical sidebar-readiness condition. Rephrased both Mintlify spelling warnings; final validation passes.

Warden remark disposition

Spec-provenance review reports that the fixture should verify a proxy {accepted:true} envelope. Not applicable to this endpoint contract. The fixture models the upstream engine while exercising the real OpenWork proxy. The pinned OpenCode SDK declares /session/{sessionID}/prompt_async success as empty HTTP 204, “Prompt accepted.” The proxy preserves it; {ok:true, accepted:true} is generated for /command, not /prompt_async. The extension constructs its own receipt after admission. Requiring a JSON envelope here would reject valid 204 responses.

Existing boundary tests were run at this head: pnpm --filter openwork-server test src/opencode-proxy.e2e.test.ts -t "desktop-owned recovery survives a server restart|acknowledges proxied session commands" — exit 0, 2 passed, 0 failed, 21 filtered, 16 expectations. They assert prompt HTTP 204 and the separate command envelope respectively. See proxy behavior, prompt test, and command test. No code change warranted for this remark. There are no review threads to resolve and no open PR code-scanning alerts.

Verification qualifications

Final-head evidence contains 45 passing testkit runs/84 recorded assertion entries, the intentional receipt red control, and the earlier failed Electron attempt. The original 170 passing test total plus the 2 boundary tests above is 172 passing tests across successful runs, not a claim that every attempt passed. Root and evals typechecks passed.

The initial Electron repick attempt timed out after reload; the unchanged repeat passed. Its cause remains unresolved, not proven pre-existing. There is no UI diff or identified causal regression, so it does not block the scoped server source-review recommendation. Four supplemental images remain unvalidated; no visual verdict is claimed. Stalled create/catalog/reload phases do not have dedicated new fault-injection cases, though their deadlines are present.

pnpm --dir evals lint:layers exits 54 on both the reviewed branch before the scoped repair and clean dev b1823e85de06dd27e9d93ae44db081810ba0bd03: all 54 violation lines match exactly, zero warnings, 23 known violations ignored. First matching violation is worlds-use-seed-layer: worlds/sidebar-brand.ts -> @openwork/testkit. These are repository baseline violations, not this PR's files. Workflow Node 20 action-deprecation annotations are separate repository CI hygiene.

@yomgui
yomgui merged commit ae4b8d2 into dev Sep 17, 2026
41 checks passed
@yomgui
yomgui deleted the fix/headless-session-create-visibility branch September 17, 2026 03:46
benjaminshafii pushed a commit that referenced this pull request Sep 17, 2026

This branch was successfully deployed

5 active (4 outdated) deployments
staging - packages/docs — e0b2bd66 Deployed Sep 17, 2026 by mintlify[bot]
Preview – openwork-den — 1dfbefb3 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-landing — 1dfbefb3 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-app — 1dfbefb3 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-diagnostics — 1dfbefb3 Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant