LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtOct 16, 2026, 2:56 PM
updatedAtOct 16, 2026, 4:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/19810
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 16, 2026, 4:08 PM

Scene 5's second take reaches no stack-return claim on main on CI

neo-opus-vega
neo-opus-vega commented on Oct 16, 2026, 2:56 PM

Context

Three independent heads, the same assertion, the same empty snapshot, both attempts each, all on the e2e-brain (10/10) shard of E2E (Brain-gated tier), the shard that runs WorkstationFiveBeatNL.spec.mjs:

head run change under test outcome
dev 557202189b 38822396661 (2026-10-15 23:14Z) dev itself red, both attempts
PR #19797 8c44c196ab 38891469368 attempt 1 dock/workstation (the returned vessel's close) red both attempts; green on the rerun
PR #19805 ccf9d337f6 38901747613 attempt 1 grid-only red both attempts (Ada's sighting, 12:47Z); green on the rerun

Scene 5 passes 4/4 locally at 78affdecae (M5 Max, headless). The grid-only head says the diff is not the variable. Two defect-notes (Vega 11:34Z, Ada 12:47Z); this is the promotion on the independent second occurrence (ticket-create §1e).

Sweeps: live latest-20 open issues in neomjs/neo at 2026-10-16T12:53Z — no equivalent; keyword: #18215 (closed 2026-09-08, the sibling shape: a poll that could not see the state it waited for), #17844 (the dock NL whitebox battery against the external Brain runtime), #19655 (Ada: run the Workstation Neural Link tier in hosted CI, the lane this shard belongs to); A2A in-flight claims, last 60 min — none on this surface; Memory Core: the 2026-09-16 record on #16358 (vessel/popup witnesses running 17 passes then 4 consecutive failures, "something changes and stays changed") and the 2026-07-26 record of scene 5 green in one run; own assignments — none overlapping.

The Problem

The observed operation is executeStackReturnStep in the second take of scene 5: the whole-stack return from workstation-vessel:metrics (holding metrics and commits) to main. The source drag arms (mousedown and two moves on the tab handle); then up to 180 synthetic moves aim at main's return node, and after each one readCrossWindowGestureSnapshot is read; it never reports ready. At the timeout the cancellation proof carries only the last snapshot:

claimCount 0 · engaged false · preview null · rendered null · indicators null · winnerStableId null · targetWorkspaceId workstation-main

Main's participation target never engaged and no claim ever reached the vessel's pointer-claim arbiter. The first take of the same run passes the identical step. The second take boots with navigate: false, so it differs from the first only in what the first left behind: the first vessel was closed by retireReturnedVessel after main adopted the stack, and the owner registry released the departed items.

What the evidence does not say is why. The CI trace holds no page console (Playwright's own log entries only), and the proof names the symptom, not main's state. Hypotheses, marked as such and not yet distinguished: main's participation.target or dragCoordinator.activeTargetZone is not re-armed after the first return; a retained owner record for metrics (the late-binding class named in VesselWorkspace#commitCrossWindowTransfer) makes the second vessel skip its connect-first stage so its coordinator publishes no claims; or the return node's rect / main's innerRect is stale after the first take's FLIP on a two-core runner, so the cursor never enters main's hit zone.

The Architectural Reality

  • The loop and its proof: apps/workstation/tour/NativeGestureDriver.mjs:746–815 (remoteSnapshot loop, cancelTearOutGesture, the error text at :813).
  • The snapshot: apps/workstation/view/CrossWindowGestureSnapshot.mjs:62–130; ready requires claimCount === 1, engaged, the winner's stableId, and preview, rendered and indicator ids agreeing.
  • The spec: test/playwright/e2e/workstation/WorkstationFiveBeatNL.spec.mjs:2964 (scene 5); the assertion at :3173 prints sourceArm, closeReceipt, phaseOrder, remoteSnapshot, sourceItemIds, sourceWindowGone, transfer.
  • What the first take leaves behind: apps/workstation/view/VesselWorkspace.mjs commitCrossWindowTransfer → retireReturnedVessel → nativeWindows.recordOwner(me.id, itemId, null).
  • Design authority: not applicable; a test fails, no existing behaviour is called wrong.

The Fix

This ticket is the instrumentation leaf, one PR (re-scoped 2026-10-16 13:4xZ; it was filed as two leaves, which is not one-PR-resolvable):

Instrument the proof (no behaviour change). When the claim loop times out, the proof carries main's side as well: whether participation exists and its target; the coordinator's activeTargetZone, its pointer-claim arbiter (claimCount, token, winner) and its native hover / arbiter window ids; the source zone's arming state; the return node id and the rect the cursor aimed at; both windows' innerRect; this source's native ownership records (owned, connections, pending retirements). The reads belong to CrossWindowGestureSnapshot (the mixin that already reads participation, coordinator and arbiter for ready), reported on an unready read only, so a passing receipt stays as it was; the driver's proof adds the aimed node and rect. The spec already prints the proof in its assertion message, so the next CI red carries its cause.

Follow-up (its own ticket, filed from the evidence)

The fix. The first CI red that carries this proof names the cause and its run id on a new ticket; the fix PR resolves that ticket. Its acceptance: the class of failure (second take, claimCount 0) does not recur across the next dev runs of the shard, compared by run id, not by a count delta.

Acceptance Criteria

  • An unready pointer read of readCrossWindowGestureSnapshot carries the fields above as claimSurfaces; a unit case with a coordinator that never claims names main's participation state, the arbiter's state and both windows' rects; a ready read carries no such field.
  • Scene 5's failure message prints that proof (the snapshot is already in the assertion message), so a CI red is diagnosable from the log alone.

Out of Scope

Re-running past the red; moving scene 5 out of CI; the hosted-CI lane itself (#19655); the headed native scenes (2 and 4) unless the proof names them.

Avoided Traps

  • Fixing from a hypothesis: three heads share one empty snapshot; the proof must name main's state first — the #18215 lesson, where the poll could not see the state it waited for.
  • A count-delta acceptance in a flaky environment is a false-positive generator; compare run ids.
  • Calling it "mine" from a ten-line diff: the grid-only head is the control.

Related

#18215 (sibling shape), #19655 (hosted CI for the tier), #19778 / #19797 (the first PR hit), #19805 (the grid PR hit), #16358 (vessel witness run-to-run variance).

Origin Session ID: 761378eb-870d-4066-a052-b7708e0bec3a Retrieval Hint: "scene 5 second take stack-return claim claimCount 0 CI"

Vega (Fable 5.1, Claude Code) 🌿

tobiu referenced in commit c7bcbe6 - "feat(workstation): a timed-out stack return names the claim surfaces it crossed (#19810) (#19812) on Oct 16, 2026, 4:08 PM
tobiu closed this issue on Oct 16, 2026, 4:08 PM