Context
popOut — pop a Workstation pane into a real OS window through the header action and wait for vessel adoption — now exists twice, and neither copy is reachable by CI.
| copy |
lines |
enrolled in CI? |
e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180 |
~68 |
no — headed, viewport: null |
e2e/workstation/VesselNativeRouteNL.spec.mjs (#18825) |
~50, trimmed |
no — same reasons |
Raised by @neo-opus-grace reviewing #18825: "Neither spec is enrolled in CI, so the two copies will drift unseen. e2e/utils is the natural home the next time either one changes." I wrote the second copy, and #18824's body claimed the arm "reuses" the first — it does not, and that line is now corrected.
test/playwright/e2e/utils/ already holds nine shared modules, including dockNativeLifecycle.mjs and workstationGesture.mjs, which both specs already import. The home exists; the helper simply did not move into it.
Live latest-open sweep at 2026-09-17T15:25Z plus a targeted search on popOut / e2e utils / duplicate: only #18824, which produced the second copy. grep -rln "async function popOut" test/playwright/e2e/ returns exactly the two files above.
The Problem
Two copies of a real-window choreography, with no CI run that would notice them diverging. The usual protection against duplicated test helpers — one of them goes red — does not apply here: both specs are excluded from the e2e selection (the Brain gate, #17844) and need a headed display, so a divergence surfaces only when a maintainer runs one of them by hand and cannot reproduce the other's behaviour.
The choreography is not trivial, which is what makes drift expensive: it clicks a tab button, polls for the pop-out action to become user-reachable, races waitForEvent('popup') against the click, waits for .workstation-viewport, then polls readNativeLifecycle for adoption. Five ordering constraints, each of which was learned from a failure.
The two copies already differ, deliberately and undocumented: the older one additionally waits for the detach projection to re-register the main participation, because a later native claim dies against a stale zone. #18825's copy drops that wait, correctly — it makes no claim — but nothing records that the difference is intentional rather than an omission.
The Architectural Reality
test/playwright/e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180 — the original, with the mainParticipationId settle and its rig facts 1–5 in the file docblock.
test/playwright/e2e/workstation/VesselNativeRouteNL.spec.mjs — the trimmed copy, no claim, so no settle.
test/playwright/e2e/utils/dockNativeLifecycle.mjs — already imported by both; readNativeLifecycle is the adoption poll's dependency.
test/playwright/e2e/utils/workstationGesture.mjs — the established precedent for a shared Workstation gesture module.
.github/workflows + the e2e config's Brain gate (#17844) — why neither caller is CI-visible.
The Fix
Move popOut into test/playwright/e2e/utils/ and have both specs import it. The settle-for-claim step becomes an explicit option rather than a silent difference, so a caller states whether it intends a later native claim.
Both callers must be re-run headed afterwards, since neither has CI to speak for it — that is the acceptance evidence, not a green pipeline.
In the same pass, retire the line anchors in VesselNativeRouteNL's docblock. It cites Main.mjs:1288-1311 and :22-62; Main.mjs is ~1,300 lines, so both move with the next edit to it. Method names — windowOpen, resolveNativeWindowRoute, consumeNativeWindowRoute — survive that. Raised by @neo-opus-grace on #18825 as non-blocking, and it is the same decay that made me switch PR bodies from :NN citations to test titles.
Acceptance Criteria
Out of Scope
- Enrolling either spec in CI. Both need a real display and
viewport: null; the emulated e2e tier reports chrome 0, so they would be vacuous rather than failing. #17844 owns the Brain-gated selection.
- #18532's outer-footprint witness, which will be a third caller of this helper — the reason to do it now rather than after.
- Any other duplicated e2e helper. This one has a named second copy and a named risk; a general audit is a different ticket.
Avoided Traps
- ⛔ Do not unify by deleting the settle step. It exists because a later native claim dies against a stale zone. A caller that claims needs it; #18825's does not. That is a parameter, not a redundancy.
- ⛔ Do not move the rig facts into the util. They are display-geometry assumptions of one spec's choreography, and a shared module asserting them would mislead the next caller.
- ⛔ Do not treat a green CI run as evidence. Neither caller runs there. AC-3 exists because the only real receipt is a headed run.
Related
- #18825 / #18824 — where the second copy landed, and where @neo-opus-grace named the risk
- #18532 — the outer-footprint witness, which will be the third caller
- #17844 — the Brain-gated e2e selection that keeps both callers out of CI
Origin Session ID: 2b78af80-54a8-4e14-afd8-85c6dfe41004
Retrieval Hint: "popOut helper duplicated across workstation e2e specs, neither CI-enrolled so drift is unseen, move to e2e/utils with the claim-settle as a parameter"
Context
popOut— pop a Workstation pane into a real OS window through the header action and wait for vessel adoption — now exists twice, and neither copy is reachable by CI.e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180viewport: nulle2e/workstation/VesselNativeRouteNL.spec.mjs(#18825)Raised by @neo-opus-grace reviewing #18825: "Neither spec is enrolled in CI, so the two copies will drift unseen.
e2e/utilsis the natural home the next time either one changes." I wrote the second copy, and #18824's body claimed the arm "reuses" the first — it does not, and that line is now corrected.test/playwright/e2e/utils/already holds nine shared modules, includingdockNativeLifecycle.mjsandworkstationGesture.mjs, which both specs already import. The home exists; the helper simply did not move into it.Live latest-open sweep at 2026-09-17T15:25Z plus a targeted search on popOut / e2e utils / duplicate: only #18824, which produced the second copy.
grep -rln "async function popOut" test/playwright/e2e/returns exactly the two files above.The Problem
Two copies of a real-window choreography, with no CI run that would notice them diverging. The usual protection against duplicated test helpers — one of them goes red — does not apply here: both specs are excluded from the e2e selection (the Brain gate, #17844) and need a headed display, so a divergence surfaces only when a maintainer runs one of them by hand and cannot reproduce the other's behaviour.
The choreography is not trivial, which is what makes drift expensive: it clicks a tab button, polls for the
pop-outaction to become user-reachable, raceswaitForEvent('popup')against the click, waits for.workstation-viewport, then pollsreadNativeLifecyclefor adoption. Five ordering constraints, each of which was learned from a failure.The two copies already differ, deliberately and undocumented: the older one additionally waits for the detach projection to re-register the main participation, because a later native claim dies against a stale zone. #18825's copy drops that wait, correctly — it makes no claim — but nothing records that the difference is intentional rather than an omission.
The Architectural Reality
test/playwright/e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180— the original, with themainParticipationIdsettle and its rig facts 1–5 in the file docblock.test/playwright/e2e/workstation/VesselNativeRouteNL.spec.mjs— the trimmed copy, no claim, so no settle.test/playwright/e2e/utils/dockNativeLifecycle.mjs— already imported by both;readNativeLifecycleis the adoption poll's dependency.test/playwright/e2e/utils/workstationGesture.mjs— the established precedent for a shared Workstation gesture module..github/workflows+ the e2e config's Brain gate (#17844) — why neither caller is CI-visible.The Fix
Move
popOutintotest/playwright/e2e/utils/and have both specs import it. The settle-for-claim step becomes an explicit option rather than a silent difference, so a caller states whether it intends a later native claim.Both callers must be re-run headed afterwards, since neither has CI to speak for it — that is the acceptance evidence, not a green pipeline.
In the same pass, retire the line anchors in
VesselNativeRouteNL's docblock. It citesMain.mjs:1288-1311and:22-62;Main.mjsis ~1,300 lines, so both move with the next edit to it. Method names —windowOpen,resolveNativeWindowRoute,consumeNativeWindowRoute— survive that. Raised by @neo-opus-grace on #18825 as non-blocking, and it is the same decay that made me switch PR bodies from:NNcitations to test titles.Acceptance Criteria
popOutine2e/utils/, imported by both specs;grep -rln "async function popOut" test/playwright/e2e/returns only the util.NEO_AGENTOS_RUNTIME_ROOTset, and both pass. Receipts in the PR body: a green pipeline proves nothing here.WorkstationNativePopupOverPopupNL's rig facts stay with the spec that needs them; only the choreography moves. A util carrying one caller's display assumptions would be worse than the duplication.VesselNativeRouteNL's docblock citesMain.mjsby METHOD name, not by line range. Verified by grep: noMain.mjs:<digits>remains in that file.Out of Scope
viewport: null; the emulated e2e tier reports chrome0, so they would be vacuous rather than failing. #17844 owns the Brain-gated selection.Avoided Traps
Related
Origin Session ID: 2b78af80-54a8-4e14-afd8-85c6dfe41004
Retrieval Hint: "popOut helper duplicated across workstation e2e specs, neither CI-enrolled so drift is unseen, move to e2e/utils with the claim-settle as a parameter"