LearnNewsExamplesServices
Frontmatter
id18824
titleA torn-out vessel''s native control route has no witness, and a correct null on main reads as a defect
stateClosed
labels
bugaitestingdashboard
assigneesneo-opus-vega
createdAtSep 17, 2026, 4:47 PM
updatedAtSep 17, 2026, 7:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/18824
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 17, 2026, 7:12 PM

A torn-out vessel's native control route has no witness, and a correct null on main reads as a defect

Closed v13.2.0/archive-v13-2-0-chunk-21 bugaitestingdashboard
neo-opus-vega
neo-opus-vega commented on Sep 17, 2026, 4:47 PM

Context

A torn-out vessel's native control route — the record that lets the engine move, resize, focus and close a real OS window — has no test anywhere in the tree. Its absence is not theoretical: it blocked #18532 for three days, across three probes, twice because the person reading it (me) could not tell a correct null from a defect.

Measured 2026-09-17, headed, viewport: null, real display, one real pop-out of commits through the header action, three runs:

read value
nativeRouteTtl 5000 ms
click → adopted 199 / 297 / 199 ms
popup hasOpener / openerMain true / true
session token after boot consumed
main window nativeRoute null
popped-out vessel nativeRoute full record, all four capabilities true
manager.Window entry for the vessel identical record

The asymmetry is the point and it is correct behaviour: main has no opener, so it can mint no route for itself; a vessel's route is minted by its opener at Main.mjs:1288-1311 and consumed once by the popup at Main.mjs:22-62. Nothing says so in a test, so nativeRoute: false on a main-window read looks exactly like a broken pop-out.

Live latest-open sweep at 2026-09-17T13:30Z over the latest 20 open issues, plus a targeted search on nativeRoute / vessel / popup capabilities across all states: only #18532, which this serves. A2A: no claim. Own-assignment sweep: no overlap.

The Problem

resolveAdmissions reads the target's nativeRoute to grant targetHasHandle, and NativeVesselTransaction.parkVessel refuses the whole park on !admissions.targetFocus.granted. So this record is the precondition for every native vessel operation — park, re-show, transfer, close — and it is unobserved.

Three failure modes it leaves open, all silent:

  1. A regression in minting or consuming produces no error. consumeNativeWindowRoute returns null on five separate conditions; resolveNativeWindowRoute has an early return and a bare catch. The popup then caches null at module scope (Main.mjs:10, :23) with no retry, for that window's lifetime.
  2. A capability silently narrowing. capabilities is computed per-window from typeof win.moveTo === 'function' and friends. If one turns false, parks stop working and nothing names why.
  3. The main/popup asymmetry gets read as a defect, which is exactly what happened on #18532 — and cost three probes before a deliberate side-by-side read settled it.

The Architectural Reality

  • src/Main.mjs:10 — let nativeWindowRoute; at module scope, the once-per-window cache.
  • src/Main.mjs:22-62 — resolveNativeWindowRoute, reading the opener-planted token from the popup's own sessionStorage and consuming it through the opener.
  • src/Main.mjs:337 — resolved inside getWindowData(), on connect.
  • src/Main.mjs:748-778 — consumeNativeWindowRoute, which computes capabilities and registers the handle.
  • src/dashboard/dock/Workspace.mjs:974 — the pop-out calling Neo.Main.windowOpen, the minting entry point.
  • src/dashboard/dock/window/NativeVesselTransaction.mjs:69-70 — where the route is read back for admissions.
  • test/playwright/e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180 — the popOut helper this arm copies (corrected: it is a trimmed duplicate, not a reuse — neither spec is CI-enrolled, so the two will drift unseen; e2e/utils is the home, tracked separately). Its rig facts 1–3 are why the spec needs viewport: null.

The Fix

One e2e arm beside the existing workstation specs: pop out a vessel through the real header action and assert the route the engine will rely on.

  • the vessel's manager.Window entry carries a nativeRoute with close, focus, position and resize all true
  • the main window's entry carries nativeRoute: null — the same read, opposite expectation, which is what makes the first assertion mean something rather than "some window somewhere has a route"

No product change.

Acceptance Criteria

  • AC-1 — a popped-out vessel's manager.Window entry has a nativeRoute whose four capabilities are all true, read from the app worker, which is the surface resolveAdmissions consults.
  • AC-2 — the main window's entry has nativeRoute: null in the same run. This is the control: it is what a correct absence looks like, and the pair is what distinguishes it from a broken pop-out.
  • AC-3 — the arm drives the real header pop-out action, never Main.windowOpen directly. Calling the minting entry point directly would assert that minting works while skipping the path that has to reach it.
  • AC-4 — headed and viewport: null, stated in the spec with the reason: an emulated viewport reports chrome 0 and places real windows off a screen the page believes is smaller.
  • AC-5 — the arm names, in its own docblock, that a null on main is correct, so the next reader of a nativeRoute: false does not repeat #18532's three probes.

Out of Scope

  • #18532's outer-footprint witness. This is its precondition, not a partial delivery of it — AC-1/AC-2 there are about park/re-show geometry and are untouched.
  • Any change to minting, consuming, or the TTL. Measured at 199–297 ms against a 5000 ms budget, so the TTL is not in play; if that ever inverts it is a product ticket, not this one.
  • CI enrolment. This needs a real display and viewport: null; the e2e tier emulates the viewport, so the arm would be vacuous there. It is a headed maintainer instrument and the spec says so.

Avoided Traps

  • ⛔ Do not assert only that a route exists. Main's null is the control; without it the arm passes on any run where any window happens to have one.
  • ⛔ Do not read nativeRoute as a boolean. It is a record or null, and coercing it is precisely the misreading that produced #18532's phantom blocker — "all three windows reported nativeRoute: false" was a main-window null generalised over popups.
  • ⛔ Do not mint the route directly from the test. AC-3: that asserts the mechanism while skipping the pop-out that must reach it.

Related

  • #18532 — the witness this unblocks; its four measured preconditions are the map
  • #18515 — the frame = rect − chrome repair whose e2e witness #18532 exists to build
  • #17844 — the Brain-gated e2e selection, which excludes 88 of 116 spec files when NEO_AGENTOS_RUNTIME_ROOT is unset; this arm is in that set

Origin Session ID: 2b78af80-54a8-4e14-afd8-85c6dfe41004

Retrieval Hint: "popped-out vessel nativeRoute capabilities witness, main window null is correct, precondition for native vessel park admissions"

tobiu referenced in commit 79df068 - "test(workstation): a torn-out vessel's native control route gets a witness (#18824) (#18825) on Sep 17, 2026, 7:12 PM
tobiu closed this issue on Sep 17, 2026, 7:12 PM