LearnNewsExamplesServices
Frontmatter
id19815
titleA timed-out stack return carries the coordinator's claim-pass record
stateClosed
labels
bugaitesting
assigneesneo-opus-vega
createdAtOct 16, 2026, 4:50 PM
updatedAtOct 16, 2026, 5:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/19815
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 16, 2026, 5:32 PM

A timed-out stack return carries the coordinator's claim-pass record

Closed Backlog/active-chunk-9 bugaitesting
neo-opus-vega
neo-opus-vega commented on Oct 16, 2026, 4:50 PM

Context

The first CI red carrying #19812's proof: Emmy's grid-only PR #19804 at d7c1a645c6, run 38914922511 job 117019879144, 2026-10-16 14:23Z — scene 5's second take, both attempts (tests 13 and 14 of the e2e-brain (10/10) shard), the shape #19810 recorded on three heads. The toolbar diff touches no Workstation file; Emmy's triage DM (14:28Z) keeps the toolbar goal and leaves the causal fix here.

What the proof says, both attempts identical up to window ids:

  • participation: affordances true, target neo-crosswindow-drag-target-2 in main — main's target exists, the second instance of this page life.
  • coordinator: activeTargetZoneId null; the pointer arbiter live, token gesture-4, claimCount 0, no winner; nativeArbiterWindowIds holds the source vessel's window only; nativeHoverWindowIds [].
  • sourceZone: neo-dock-tab-sortzone-13, dockGroupNodeId workstation-vessel-tabs:metrics, stackDragActive true, dragProxy true — the source drag armed.
  • windows: main innerRect {x 10, y 10, 1280×800}; source {x 1383, y 938, 320×240}.
  • owners: owned [metrics → tearout-metrics], connections [], pendingRetirements [].

Against #19810's three hypotheses: main's participation and target are present (not "never re-armed"); the registry reads as a committed vessel's normal state (owned, connection consumed) — but a record retained from the first take would read the same, because owned[] omits the record's windowId; main's innerRect is sane, and the node and rect the cursor aimed at never reached the log: the driver's proof carries aimed (#19812) while scene 5's assertion message prints a fixed field list without it.

The Problem

The pointer path resolves its claim in DragCoordinator#resolveClaimedTarget, and every pass records its own decision on the coordinator's ring: recordClaimResolution pushes {outcome: 'group-absent' | 'claimed' | 'no-claim', candidates: [{windowId, skipped: 'source-or-excluded' | 'ownership' | 'no-stable-identity' | 'no-accepts-handler'} | {windowId, stableTargetId, innerResolved, intersects, accepts}], sourceOwnershipId, groupSize, retiredStableIds, gestureToken} into claimTrace (limit 40), the token stamped at decision time. That record is the one surface that separates the causes the snapshot leaves standing — main's zone absent from the group, refused by ownership admission, outside its innerRect, or refusing the window-local hit-test — and it is the one surface the unready proof does not carry. It is exposed through the coordinator's toJSON() for the Neural Link's drag-state route, which CI never calls.

The Architectural Reality

  • apps/workstation/view/CrossWindowGestureSnapshot.mjs:129 attaches claimSurfaces to an unready read; describeClaimSurfaces (:151–192) already holds the live arbiter (pointerClaimArbiter, or nativeClaimArbiters.get(nativeWindowId)); owned at :188 maps {itemId, windowName} only.
  • src/manager/DragCoordinator.mjs:823–937 resolveClaimedTarget; :959 recordClaimResolution(entry, gestureToken) — its JSDoc: the ring spans gestures, so a reader filters by the entry's own token, never the token live at serialization; :170 claimTrace, :179 claimTraceLimit.
  • test/playwright/e2e/workstation/WorkstationFiveBeatNL.spec.mjs:3165–3173 — scene 5's return assertion message (sourceArm, closeReceipt, phaseOrder, remoteSnapshot, sourceItemIds, sourceWindowGone, transfer).
  • apps/workstation/tour/NativeGestureDriver.mjs:814 — proof.aimed (#19812).
  • test/playwright/unit/apps/workstation/Workspace.spec.mjs:359–420 — the unready/ready claimSurfaces case.
  • Design authority: not applicable — diagnostics only; no behaviour is called wrong.

The Fix

Instrumentation, no behaviour change, one PR:

  1. describeClaimSurfaces adds claimTrace: the coordinator's entries whose gestureToken equals the live arbiter's token, newest last, at most the last 3, deep-cloned (plain ids, strings and booleans — the entries hold no zone references). null when there is no coordinator or no live arbiter.
  2. owners.owned[] entries carry windowId: entry?.windowId ?? null, so a record retained from an earlier take (a window that no longer exists) is distinguishable from the current vessel's.
  3. Scene 5's assertion message adds aimed: returnResult.proof?.aimed.
  4. The unit case at :359 extends: a coordinator whose claimTrace holds entries of two tokens → only the live token's ride, bounded to 3, newest last; owned[].windowId; a ready read still carries no claimSurfaces.

Follow-up

The fix, filed from the first red that carries this record: the named conjunct, its run id, the repair.

Acceptance Criteria

  • An unready pointer read's claimSurfaces.claimTrace carries only the live gesture's claim-pass records (token match), at most 3, newest last, each candidate with its reason; claimSurfaces.owners.owned[].windowId is present; a ready read is unchanged — one unit case.
  • Scene 5's failure message prints aimed beside remoteSnapshot.
  • Post-merge: the next red of the shard names the refusing conjunct from the log alone, by run id.

Out of Scope

The behaviour fix; rerunning past reds; scenes 2 and 4; the hosted-CI lane (#19655); changing claimTraceLimit; a Neural Link call from the spec on failure (CI runs the spec, not the tools).

Avoided Traps

  • Fixing from the snapshot: four causes survive it; the resolver's own record is cheaper than a fifth hypothesis — #18215's lesson, the poll that could not see the state it waited for.
  • Printing the whole ring: forty entries across gestures bury the live one; the token filter and the bound keep the proof readable.
  • Reading the token live at serialization — the entry's stamped token is the attribution (recordClaimResolution JSDoc).

Related

#19810 (the first instrumentation leaf, closed by #19812), #19804 (the red), #19655 (hosted CI for the tier), #18215 (sibling shape), #19797 / #19805 (earlier hits).

Live latest-open sweep: latest 20 open issues in neomjs/neo at 2026-10-16T14:47:50Z — no equivalent (nearest #19655, the tier's hosted-CI lane). A2A in-flight claims, last 40 min — none on this surface; Emmy's 14:28Z DM keeps the causal fix here. MC sweep: three queries on the symptom (second take, claim never reaches main, proof does not say why) — 17 results, my own #19810 records and peers' checkpoints, no prior decision found. Own-assignment sweep: 3 open (#17918, #17416, #16212), none overlapping.

Origin Session ID: 761378eb-870d-4066-a052-b7708e0bec3a (the #19810 investigation) Retrieval Hint: "scene 5 stack return claim pass record gestureToken proof"

Vega (Fable 5.1, Claude Code) 🌿

tobiu referenced in commit 24ed0be - "feat(workstation): a timed-out stack return carries the coordinator's claim-pass record (#19815) (#19817) on Oct 16, 2026, 5:32 PM
tobiu closed this issue on Oct 16, 2026, 5:32 PM