LearnNewsExamplesServices
Frontmatter
id19553
titleThe deferred-first-document dock arm reads ownership mid-swap
stateClosed
labels
bugaitestingdashboard
assigneesneo-opus-ada
createdAtOct 10, 2026, 4:18 PM
updatedAtOct 10, 2026, 4:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/19553
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 10, 2026, 4:31 PM

The deferred-first-document dock arm reads ownership mid-swap

Closed v13.2.0/archive-v13-2-0-chunk-24 bugaitestingdashboard
neo-opus-ada
neo-opus-ada commented on Oct 10, 2026, 4:18 PM

Context

Grace captured this as a defect-note on 2026-10-10 at 14:03Z. DockOperationsNL › "a deferred first document cannot poison the SharedWorker mount or later edge resizes" failed 2 of 10 runs on dev 6c1e478f9d, with worker ownership holding two edge-zone root shells for root: one mounted, one mounted: false.

I reproduced it independently on dev 453915f332. A local probe, never committed, re-read ownership every 250 ms for up to 5 s after the arm's own read:

  • Of 70 runs, 6 read two shells. In each of the 6, the bootstrap shell (neo-container-1, mounted) sat beside the real document's shell (neo-container-3, mounted: false), and verifyComponentConsistency read consistent: false.
  • All 6 settled by the next 250 ms tick, leaving one shell: the real one, mounted. A consistency read after the settle returned true, and the arm's later edge-resize steps passed.

The Problem

The arm reads ownership and consistency once, after two gates. Both gates pass before the projection's shell swap finishes. The worker commits the deferred document (five items) first, and at that moment the DOM still holds exactly one root shell, the bootstrap one. About 9% of runs read in that window and fail, even though the engine settles a moment later.

The Architectural Reality

  • test/playwright/e2e/dashboard/DockOperationsNL.spec.mjs, in that arm: a topology poll and a DOM count gate, then a single findInstances({parentId}) plus verifyComponentConsistency read.
  • The fixture is test/playwright/component/apps/dock-first-mount/app.mjs: a DeferredDockWorkspace with a bootstrap document, whose real document commits before the first mount.
  • Design authority: #17888, the defect this arm guards, defines the poison as permanent: "the workspace comes up wrong and stays wrong … the old shell never left … Not self-healing". A swap that completes within 250 ms is not that defect.

The Fix

The fix is test-only. Poll worker ownership, bounded at about 5 s, until it holds exactly one mounted edge-zone root shell for root, and only then read verifyComponentConsistency. A second shell that never leaves, #17888's poison, still fails the arm when the poll times out. No engine change.

Acceptance Criteria

  • The arm reads consistency only after worker ownership holds one mounted root shell. The wait is bounded, so a shell that never leaves still fails it.
  • The arm passes 40/40 alone under --repeat-each=40 at the PR head. The same loop read 6 of 70 runs mid-swap on dev.

Out of Scope

The engine's order of commit before projection. It settles within 250 ms, and the arm's guarantee does not need it changed.

Related

Live latest-open sweep: checked the latest 20 open neo issues at 2026-10-10T14:18:31Z, plus a search for the arm's title; no equivalent found. A2A claims in the last 60 minutes: only my own lane-intent. Memory Core sweep: no prior decision on this arm. Own assignments: no overlap.

Retrieval Hint: "DockOperationsNL deferred first document root shell mid-swap settle gate"

Origin Session ID: c8bc6416-bf17-4e1c-9183-0ce0d7aeed48

tobiu referenced in commit d722727 - "test(dashboard): the deferred-first-document arm waits for one mounted root shell before reading consistency (#19553) (#19554) on Oct 10, 2026, 4:31 PM
tobiu closed this issue on Oct 10, 2026, 4:31 PM