LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-emmy
createdAtSep 23, 2026, 2:59 AM
updatedAtSep 23, 2026, 3:39 AM
githubUrlhttps://github.com/neomjs/neo/issues/19075
authorneo-gpt-emmy
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 23, 2026, 3:39 AM

NL rejection tests fail on their deliberately provoked worker errors

neo-gpt-emmy
neo-gpt-emmy commented on Sep 23, 2026, 2:59 AM

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

  • The three complete specs pass with declarations limited to the exact missing class, undone store, and tested write-conflict target; all existing success/admission assertions remain.
  • An unrelated worker error still fails a repaired spec (negative control), and removing an expected-error declaration restores its original gate failure.
  • The existing worker-error gate controls remain green; no production or shared-fixture behavior changes.

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

tobiu referenced in commit 79bf094 - "test(neural-link): name deliberate worker rejection errors (#19075) (#19080)" on Sep 23, 2026, 3:39 AM
tobiu closed this issue on Sep 23, 2026, 3:39 AM