LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtSep 4, 2026, 4:03 PM
updatedAtSep 4, 2026, 5:50 PM
githubUrlhttps://github.com/neomjs/neo/issues/18283
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 4, 2026, 5:50 PM

DockReloadActionNL asserts the retired delegation-only reload contract

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

Context

Found while running the dock Neural Link journeys for PR #18279 (Resolves #18274): test/playwright/e2e/dashboard/DockReloadActionNL.spec.mjs:72 is red at dev@205bc52f8a with the branch stashed — a control run, so the failure is independent of that PR. The reviewer asked for a durable owner instead of a broadcast defect-note; this is it.

Live latest-open sweep: checked the latest 20 open issues at 2026-09-04T14:03Z; no equivalent (#18275 is the lazy pane's double construction, #18215 the menu spawn re-arm flake). A2A claim sweep over the last 30 messages: no claim on this arm.

The Problem

The arm's third product truth polls for getActionItem('reload').hidden === true after focusing the Swarm pane, which implements no dockReload():

Error: a pane without the contract hides the reload action

It never becomes true. The reload action is visible for every pane now, by design.

The Architectural Reality

  • The spec and the example were written for the delegation-only reload (6568e93ac8, 2026-08-31, #17974): "availability is the contract, not the flag".
  • One day later ce0634b62c (#17996) amended the rule in Workspace#syncDockReloadAction: hidden = typeof carrier !== 'function' && !this.hasDockRecreateFallback() — a pane without the contract keeps the action when a recreate path is wired.
  • At the current head the recreate path is wired by default: Workspace#hasDockRecreateFallback() answers true (src/dashboard/dock/Workspace.mjs:4046–4048) and the base resolveFreshPane resolves through resolvePane. So for a resolved active item hidden is false unless the HOST opts out.
  • hasDockRecreateFallback is that opt-out, not a vestige: its docblock says "Override to false to declare this host serves no recreate", and test/playwright/unit/dashboard/DockRecreateCandidate.spec.mjs:587–615 witnesses all three states (declared refusal → hidden; engine default → visible; host factory → visible). Body corrected 2026-09-04 14:40Z by the author — the first version called the predicate "a predicate that cannot answer false" and prescribed deleting it; the unit arm falsified that before any code moved.
  • Three durable comments still describe the retired rule: syncDockReloadAction's docblock ("hidden while … the active card does not carry the dockReload() contract"), the dock example's enableDockReloadAction comment ("delegation-only … stays hidden on every pane that does not"), and the spec's own header.

Separate observation, not inferred as the cause: the arm was green when written and turned red with the engine change; nothing in the spec changed.

The Fix

  • Rewrite the arm's third product truth to the current contract: a pane without dockReload() keeps the visible reload action, and clicking it runs the engine's recreate — witnessed as the Swarm pane's instance id changing while the committed document stays byte-identical (the same "commits nothing" check the arm already performs for delegation). The spec header names both paths.
  • Truth-sync the three comments above to the amended rule: hidden only while no active item resolves or while neither path can serve it; the predicate is the host's opt-out and the engine's default wires a recreate.
  • No behaviour change; hasDockRecreateFallback stays as the documented opt-out.
  • Do not reopen #17948, #17966 or #17996; they had PRs.

Acceptance Criteria

  • AC-1 — DockReloadActionNL.spec.mjs is green at the dev head with the Brain runtime bound, and its third product truth asserts the visible action plus a witnessed recreate (new pane instance id, document unchanged) for a pane without the contract.
  • AC-2 — the docblocks of syncDockReloadAction and hasDockRecreateFallback, the dock example's enableDockReloadAction comment and the spec header describe the amended rule; no durable comment still says the action hides for a pane without the contract.
  • AC-3 — DockRecreateCandidate, DockWorkspace and the component DockReload suites stay green, including the opt-out arm at DockRecreateCandidate.spec.mjs:587.

Out of Scope

  • The recreate transaction itself (resolveFreshPane / recreateDockPane) and its ADR amendment.
  • The Workstation's override of the item-only refresh (#18208).

Avoided Traps

  • Making the engine hide the action again to satisfy the arm. The visible action is the amended contract; the arm is what moved out from under it.
  • Deleting hasDockRecreateFallback as a vestige. It is the host's opt-out and its docblock says so; the three-state unit arm at DockRecreateCandidate.spec.mjs:587–615 (declared refusal → hidden, engine default → visible, host factory → visible) is what falsified this ticket's first prescription.

Related

  • PR #18279 / #18274 — where the red was measured, with the control run.
  • #17948 / #17974 — delegation-only reload, the contract the arm asserts.
  • #17996 — the recreate amendment that changed the rule.
  • #17966 — the engine-owned recreate default.

Origin Session ID: 4384828f-2650-4d28-b650-fac55eebec59

Retrieval Hint: DockReloadActionNL red pane without contract hides reload hasDockRecreateFallback always true delegation-only retired

tobiu referenced in commit 6be3197 - "test(dock): the reload journey witnesses the engine recreate for a pane without the contract (#18283) (#18287) on Sep 4, 2026, 5:50 PM
tobiu closed this issue on Sep 4, 2026, 5:50 PM