Repository navigation
fix(server): report headless prompt acceptance honestly - #4950
Conversation
Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Head-matching test evidence — textual publicationCommit: 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 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 01 — Passed — session.create bounds stalled workspace discovery headers without writesSource:
Test 02 — Passed — session.create bounds stalled workspace discovery body without writesSource:
Test 03 — Passed — session.create redacts and bounds discovery failures while retaining provider reasonsSource:
Test 04 — Passed — session.create redacts and bounds create failures while retaining provider reasonsSource:
Test 05 — Passed — session.create redacts and bounds prompt failures while retaining provider reasonsSource:
Test 06 — Passed — session.create reports asynchronous acceptance, preserves rejected session IDs, and never claims inference startedSource:
Test 07 — Passed — session model aliases preserve workspace scope, canonical bindings, and safe read projectionsSource:
Test 08 — Passed — repick previews effective bindings, saves only confirmed scope, and preserves engine/default identitiesSource:
Test 09 — Passed — headless stale sends write zero prompts; an explicit repick applies canonical ids and variant on next sendSource:
Test 10 — Passed — invalid targets, changed previews and unavailable replacements cannot partially saveSource:
Test 11 — Passed — bulk mutations fail closed without confirmation while dry-runs remain read-onlySource:
Test 12 — Passed — bulk repick rejects a source restored to the current catalog after previewSource:
Test 13 — Passed — bulk matching uses exact provider and model ids, not labelsSource:
Test 14 — Passed — healthy fresh sessions preserve model-free sending, never substituting defaults for stale bindingsSource:
Test 15 — Passed — exact workspace repick bypasses unrelated offline inventories and rejects foreign targetsSource:
Test 16 — Passed — catalog waits cannot race an archive, hold or newer local selection into a repickSource:
Test 17 — Passed — exhausted queued repicks reject before reads even when args claim a fresh timestampSource:
Test 18 — Passed — invalid and future internal timestamps fail closed for single and bulk repicksSource:
Test 19 — Passed — near-expiry queued repicks time out on the remaining budget and late reads cannot saveSource:
Test 20 — Passed — queued repicks keep a monotonic remaining budget across wall-clock rollbackSource:
Test 21 — Passed — direct repick handlers retain their four-second bound and abandoned reads never save laterSource:
Test 22 — Passed — repick uses one absolute budget and checks elapsed time even before timers runSource:
Test 23 — Passed — activity starting during the final read prevents single and atomic bulk repicksSource:
Test 24 — Passed — authoritative busy and retry states reject repicks even when local activity is emptySource:
Test 25 — Passed — unreadable and malformed authoritative statuses cannot authorize any local model saveSource:
Test 26 — Passed — authoritative idle and omitted-idle maps permit local-only single and bulk repicksSource:
Test 27 — Passed — status waits recheck local holds and selections before single and bulk persistenceSource:
Test 28 — Passed — confirmed pending choices survive ordinary selections beyond the old 200-entry capSource:
Test 29 — Passed — queue catalog checks use renderer identity, not a remote runtime's colliding workspace idSource:
Test 30 — Passed — effective picker selection and slash commands honor engine binding, local repick and effortSource:
Test 31 — Passed — canonical workspace aliases allow single and bulk repick but never admit neighboring directoriesSource:
Test 32 — Passed — same-id effort changes and bulk selections publish model/variant atomicallySource:
Test 33 — Passed — suggested replacements prefer the same provider family then available workspace default, never silently picking another modelSource:
Test 34 — Passed — provider/model removal impact is local, informational and retryable: noneSource:
Test 35 — Passed — provider/model removal impact is local, informational and retryable: after_configSource:
Test 36 — Passed — provider/model removal impact is local, informational and retryable: inventorySource:
Test 37 — Passed — provider/model removal impact is local, informational and retryable: restartSource:
Test 38 — Passed — provider/model removal impact is local, informational and retryable: canonical_aliasSource:
Test 39 — Passed — provider/model removal impact is local, informational and retryable: pathSource:
Test 40 — Passed — removal delta ignores additions, names and unrelated identitiesSource:
Test 41 — Passed — archive deadlines settle stalled reads and uncertain writes, preserve caller cancellation, and retain pin and working-session contractsSource:
Test 42 — Passed — mailbox registration expires after a poll gap, independently of pin or engine work; a fresh poll restores itSource:
Test 43 — Passed — finite archive and permission IPC preserve scoped requests, cancellation, no retries and external trust boundariesSource:
Test 44 — Passed — the in-app agent reads renderer context through openwork-server and gets an explicit result without a windowSource:
Test 45 — Passed on repeat; initial failure unresolved — unavailable composer repick defaults to this session, previews all, and saves only confirmed local scope without sendingSource:
The repeat records Separately reported failures — excluded from the 45-run / 84-assertion passing selectionControl R1 — Failed intentionally — session.create reports asynchronous acceptance, preserves rejected session IDs, and never claims inference startedSource: Recorded outcome: Failed. Failure: Prior E1 — Failed, cause unresolved — unavailable composer repick defaults to this session, previews all, and saves only confirmed local scope without sendingSource: 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
Publication scope and remaining limitations
|
Warden review summary — ClearNative 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
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
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
Signed-off-by: Guillaume Loret <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
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
Human-grade review (agent-assisted)Reviewed e0b2bd6, including all 11 files in the effective diff against merged dev Checklist
Review findings addressed
Warden remark dispositionSpec-provenance review reports that the fixture should verify a proxy Existing boundary tests were run at this head: Verification qualificationsFinal-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.
|
Headless
session.createnow returnsaccepted:trueonly after model preflight and engine HTTP acceptance, replacing the misleadingstarted:truereceipt. 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:truereceipt 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
Final-head verification
Head:
e0b2bd66c7f32faa2dabbb124c621679f01eebfc. Signed merge of dev27647d2b5, 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.
bun test apps/server/src/opencode-plugins/openwork-extensions-preview.test.ts apps/server/src/opencode-plugins/openwork-provider-adapters.test.tspnpm evals:pr specs/session-create-acceptance.test.tspnpm evals:pr specs/session-model-aliases.test.tspnpm evals:pr specs/session-model-repick.test.tspnpm evals:pr specs/session-model-removal-sync.test.tspnpm evals:pr specs/session-archive-deadline.test.tspnpm evals:pr specs/session-archive-mailbox.test.tspnpm evals:pr specs/session-archive-transport.test.tspnpm evals:pr specs/agent-ui-context-via-server.test.tspnpm evals:e2e session-model-repick --local --engine v1 --surface electronpnpm --filter openwork-server test src/opencode-proxy.e2e.test.ts -t "desktop-owned recovery survives a server restart|acknowledges proxied session commands"pnpm typecheck/pnpm evals:typecheckRevert-fails on this head: temporarily restoring only runtime
started:truemakes acceptance proof exit 1 (5 passed, 1 failed, 0 skipped); restoringaccepted:truemakes 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:layersexits 54 on the branch and clean devb1823e85de06dd27e9d93ae44db081810ba0bd03, 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
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;/commandhas 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.