The Problem
Two arms in test/playwright/e2e/workstation/WorkstationNL.spec.mjs assert whole structures with toEqual, so any intentional extension of what they observe reds them. Both fired today against correct, reviewed engine changes.
| line |
assertion |
the extension that reds it |
:2191 |
.toEqual(['reload', 'pin', 'pop-out', 'maximize', 'close']) — "owns the complete default vector" |
f8432c1ccb (#18185) puts lock in the default engine action set, by design |
:2523 |
placement: {index: 0, tabsNodeId: 'right-bottom-tabs'} inside a whole-object toEqual |
5e67e5e486 (#18165) adds a rebuildable home record to tearOutPlacements — the fix's entire mechanism |
Both failure diffs are Expected − 0 / Received + N. Pure additions, zero removals. Neither engine commit is at fault.
Evidence
Two full workstation e2e runs, same command and env, each with its own server, provenance confirmed via the webpack served from line:
dev @274b63beac 18 failed / 41 passed / 5 skipped (64 arms)
3c432c50f3 (base) 18 failed / 39 passed / 5 skipped (62 arms)
18 → 18 hides the change; per-arm it is 2 fixed and 2 newly red. Culprits found by two git bisect run passes over 3c432c50f3..274b63beac, selecting by test title (line numbers shift across the range), each skipping rather than judging any commit where the expected arm count did not run.
Requires NEO_AGENTOS_RUNTIME_ROOT to be set, or testIgnore silently drops every neuralLink spec and only 8 of 64 arms run.
The Fix
Assert the property under test, not the whole structure.
:2191 — the arm's subject is that the default vector is present and complete for this node, not that it is frozen. Assert containment of the actions the arm depends on, so adding an action to the engine defaults does not red a consumer spec.
:2523 — assert the placement fields the arm is about (index, tabsNodeId), not the whole object.
Acceptance Criteria
Out of Scope
- The 15 arms red at both heads (PaletteBridge ×3, EdgeSplitter, DockPreviewSymmetry, Perspectives, StarvedGeometry, TabDragLabelOverlap, TabOverflowCap, TabRestore, TearOutSourceContinuity,
WorkstationNL ×5). Pre-existing, unattributed, and not this ticket's business.
- Whether
testIgnore should hard-fail instead of silently narrowing the suite.
Avoided Traps
- Reverting or "fixing" either engine commit. Both are correct; the specs forbid them from being correct.
- Loosening to
expect.arrayContaining and calling it done. That can pass on an empty-ish vector; AC-2 and AC-3 exist to stop a repair that cannot fail.
Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea
Retrieval Hint: workstation e2e toEqual whole object over-specified default action vector tearOutPlacements home spec rot bisect
The Problem
Two arms in
test/playwright/e2e/workstation/WorkstationNL.spec.mjsassert whole structures withtoEqual, so any intentional extension of what they observe reds them. Both fired today against correct, reviewed engine changes.:2191.toEqual(['reload', 'pin', 'pop-out', 'maximize', 'close'])— "owns the complete default vector"f8432c1ccb(#18185) putslockin the default engine action set, by design:2523placement: {index: 0, tabsNodeId: 'right-bottom-tabs'}inside a whole-objecttoEqual5e67e5e486(#18165) adds a rebuildablehomerecord totearOutPlacements— the fix's entire mechanismBoth failure diffs are
Expected − 0 / Received + N. Pure additions, zero removals. Neither engine commit is at fault.Evidence
Two full workstation e2e runs, same command and env, each with its own server, provenance confirmed via the webpack
served fromline:18 → 18hides the change; per-arm it is 2 fixed and 2 newly red. Culprits found by twogit bisect runpasses over3c432c50f3..274b63beac, selecting by test title (line numbers shift across the range), each skipping rather than judging any commit where the expected arm count did not run.Requires
NEO_AGENTOS_RUNTIME_ROOTto be set, ortestIgnoresilently drops everyneuralLinkspec and only 8 of 64 arms run.The Fix
Assert the property under test, not the whole structure.
:2191— the arm's subject is that the default vector is present and complete for this node, not that it is frozen. Assert containment of the actions the arm depends on, so adding an action to the engine defaults does not red a consumer spec.:2523— assert theplacementfields the arm is about (index,tabsNodeId), not the whole object.Acceptance Criteria
devhead.:2191stays sensitive to a missing default action; loosening to containment must not stop it noticingpop-outdisappearing, which is the neighbouring defect class (#18159, #18039).Out of Scope
WorkstationNL×5). Pre-existing, unattributed, and not this ticket's business.testIgnoreshould hard-fail instead of silently narrowing the suite.Avoided Traps
expect.arrayContainingand calling it done. That can pass on an empty-ish vector; AC-2 and AC-3 exist to stop a repair that cannot fail.Origin Session ID: 7596538d-5324-419a-b043-95c585d833ea
Retrieval Hint:
workstation e2e toEqual whole object over-specified default action vector tearOutPlacements home spec rot bisect