Context
The three intentional-error rows in #17844 were independently reproduced together on dev@633585423d2d7e8a33fd131ed265e199f110b5e2: CreateInstance, DisconnectReleaseNL, and MultiWriterNL all reached their semantic assertions, then failed the automatic worker-error gate. The run completed in 5s with 3 failed tests.
The Problem
The tests deliberately exercise rejection, but never declare its worker-console counterpart. CreateInstance logs both Class Neo.missing.DoesNotExist does not exist and Store not found: <the just-undone store>. The write-guard tests log the intended overlapping-write conflict, including transient conflict responses while disconnect cleanup is pending. These are exactly the requests whose rejection the tests assert; unmatched errors must remain failures.
The Architectural Reality
src/ai/Client.mjs#onSocketMessage logs an App Worker error before sending a JSON-RPC rejection. test/playwright/fixtures.mjs#workerErrors provides expect(RegExp) for specifically named errors and rejects every other captured worker/page error. The existing core/WorkerErrorGate.spec.mjs proves named errors pass and unnamed errors fail. The module-bearing create config is rejected in the service wrapper before reaching the App Worker and needs no worker-error declaration.
The Fix
Use the existing workerErrors fixture in the three existing specs. Match the complete tested error category and exact runtime target, with literal IDs escaped in regexes. Retain and tighten semantic assertions so a wrong denial cause cannot become a pass. Keep sibling-write admission, post-disconnect eventual admission, create/undo behavior and the global error gate unchanged.
Acceptance Criteria
Out of Scope
WriteGuard policy, Client error logging, general error suppression, other battery failures, new test helpers or public APIs.
Avoided Traps
Do not waive the whole Neo.ai.Client error category or accept any returned RPC error. A write denied for a different reason or target must still fail. Disconnect cleanup is asynchronous: preserve the existing bounded admission poll rather than assuming socket close has synchronously released the lock.
Related
#17844. Decision Record impact: none. Structure map/structural pre-flight: N/A, three existing Engine test files only.
Sweeps immediately before filing: latest20open Engine issues plus targeted all-state searches for the three spec names; only the umbrella exists. Recent12 A2A messages contain no claim on this class; Grace retains the umbrella. MC problem-framed query found no matching repair decision. Two current own Engine assignments are unrelated. Root independently reproduced the three rows after the subagent's source audit; the live run added the omitted undone-store case.
Origin Session ID: 9e4f2c84-9ea2-4bb3-ac93-19237406cae9
Retrieval Hint: NL expected worker error missing class undone store write conflict guard
Context
The three intentional-error rows in #17844 were independently reproduced together on
dev@633585423d2d7e8a33fd131ed265e199f110b5e2:CreateInstance,DisconnectReleaseNL, andMultiWriterNLall reached their semantic assertions, then failed the automatic worker-error gate. The run completed in 5s with 3 failed tests.The Problem
The tests deliberately exercise rejection, but never declare its worker-console counterpart.
CreateInstancelogs bothClass Neo.missing.DoesNotExist does not existandStore not found: <the just-undone store>. The write-guard tests log the intended overlapping-write conflict, including transient conflict responses while disconnect cleanup is pending. These are exactly the requests whose rejection the tests assert; unmatched errors must remain failures.The Architectural Reality
src/ai/Client.mjs#onSocketMessagelogs an App Worker error before sending a JSON-RPC rejection.test/playwright/fixtures.mjs#workerErrorsprovidesexpect(RegExp)for specifically named errors and rejects every other captured worker/page error. The existingcore/WorkerErrorGate.spec.mjsproves named errors pass and unnamed errors fail. The module-bearing create config is rejected in the service wrapper before reaching the App Worker and needs no worker-error declaration.The Fix
Use the existing
workerErrorsfixture in the three existing specs. Match the complete tested error category and exact runtime target, with literal IDs escaped in regexes. Retain and tighten semantic assertions so a wrong denial cause cannot become a pass. Keep sibling-write admission, post-disconnect eventual admission, create/undo behavior and the global error gate unchanged.Acceptance Criteria
Out of Scope
WriteGuard policy, Client error logging, general error suppression, other battery failures, new test helpers or public APIs.
Avoided Traps
Do not waive the whole
Neo.ai.Clienterror category or accept any returned RPC error. A write denied for a different reason or target must still fail. Disconnect cleanup is asynchronous: preserve the existing bounded admission poll rather than assuming socket close has synchronously released the lock.Related
#17844. Decision Record impact: none. Structure map/structural pre-flight: N/A, three existing Engine test files only.
Sweeps immediately before filing: latest20open Engine issues plus targeted all-state searches for the three spec names; only the umbrella exists. Recent12 A2A messages contain no claim on this class; Grace retains the umbrella. MC problem-framed query found no matching repair decision. Two current own Engine assignments are unrelated. Root independently reproduced the three rows after the subagent's source audit; the live run added the omitted undone-store case.
Origin Session ID: 9e4f2c84-9ea2-4bb3-ac93-19237406cae9 Retrieval Hint: NL expected worker error missing class undone store write conflict guard