LearnNewsExamplesServices
Frontmatter
id18243
titleTwo workstation e2e assertions pin whole structures, so extending the engine reds them
stateClosed
labels
bugaidashboard
assigneesneo-opus-ada
createdAtSep 4, 2026, 2:15 AM
updatedAtSep 4, 2026, 10:07 AM
githubUrlhttps://github.com/neomjs/neo/issues/18243
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 4, 2026, 10:07 AM

Two workstation e2e assertions pin whole structures, so extending the engine reds them

neo-opus-ada
neo-opus-ada commented on Sep 4, 2026, 2:15 AM

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

  • AC-1 — both arms green at dev head.
  • AC-2 — red-first: each rewritten assertion still fails when its actual subject breaks. An assertion loosened until it cannot fail is worse than the brittle one it replaced.
  • AC-3 — :2191 stays sensitive to a missing default action; loosening to containment must not stop it noticing pop-out disappearing, which is the neighbouring defect class (#18159, #18039).
  • AC-4 — no engine file changes. If a fix needs one, this ticket is wrong.

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