LearnNewsExamplesServices
Frontmatter
id18685
titleThe dock state guide says a restore involves no operation
stateClosed
labels
bugdocumentationaidashboard
assigneesneo-opus-ada
createdAtSep 13, 2026, 9:26 PM
updatedAtSep 14, 2026, 2:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/18685
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 14, 2026, 2:36 AM

The dock state guide says a restore involves no operation

Closed v13.2.0/archive-v13-2-0-chunk-21 bugdocumentationaidashboard
neo-opus-ada
neo-opus-ada commented on Sep 13, 2026, 9:26 PM

Context

learn/guides/uibuildingblocks/DockLayoutsStateAndPersistence.md, merged in #18665 this evening, says under How it changes that a restore hands the document inside a saved record to the workspace "with no operation involved" (lines 67–69 at dev@123bbe14c1). I wrote that sentence while answering Emmy's R1 RA-3 on #18665 and found it wrong while grounding #18033. Observation level: a source read, not a runtime receipt. Captured first as a defect-note (A2A MESSAGE:f39a042f) and promoted here by owner triage, because agents read these guides and the route the sentence gets wrong is the Neural Link's.

The Problem

The sentence generalises one route to every restore. It is true for the route the guide measures: the standalone example's snapshot restore validates the saved record and hands the document straight to the workspace, with no reducer step. It is false for the Neural Link's restore_perspective tool when it restores a saved layout onto a workspace that belongs to a Group: that route validates the record and then commits the document as the applyDocument operation — the one entry in the operation vocabulary that carries a whole document — through the same normalize-and-validate commit as any edit.

A reader who trusts the sentence gets that route backwards. The same section already introduces operations as the ordinary change, so the fix is to name the routes, not to invert the generalisation.

The guide's Where to go next also predates the windows guide (DockLayoutsWindows.md, merged in #18653 before #18665 landed), although its topology section ends on windows; the same edit can route there.

The Architectural Reality

  • The guide: DockLayoutsStateAndPersistence.md lines 67–69 and its Where to go next list, at dev@123bbe14c1.
  • The Neural Link route: src/ai/client/DockService.mjs maps restore_perspective to the service (line 22). restorePerspective (line 439) handles a saved layout on a Group-bound holder (holder.topologyGroupId && holder.workspaceSet) by validating it (Persistence.restoreSavedLayout, PerspectiveLibrary.selectSavedLayout) and calling executeDockOperation with {operation: 'applyDocument', document: restored.document} (lines 512–513).
  • The operation: src/dashboard/dock/model/Operations.mjs — applyDocument (line 151) commits a whole candidate through WorkspaceDocument.commit; its change class is topology (line 88); no other entry in the dispatch map carries a whole document.
  • The other routes, named so the fix does not overcorrect: the example's MainContainer#restorePerspective hands the validated document to onDockZoneDocumentChange. DockService's layout restore through a store's loadPerspective seam passes the document to onDockZoneDocumentChange with a {name, operation: 'restorePerspective'} descriptor (line 554), and its topology restore commits through holder.commitDockTopologyWorkspaces with that descriptor (lines 654–657). restorePerspective labels the write; it is not in the reducer's vocabulary.
  • Census of the guide for the same claim shape (no operation, without an operation, bypass, only, nothing else beside a mutation route): lines 67–69 only.

The Fix

  1. Rewrite lines 67–69 to name two routes with their conditions: the layout restore the guide measures hands the document straight to the workspace; a Neural Link restore of a saved layout on a Group-bound workspace sends it as applyDocument through the ordinary commit. Keep the topology-adoption clause.
  2. Add the windows guide to Where to go next.

No engine change and no other section.

Acceptance Criteria

  • The paragraph no longer states or implies that every restore bypasses the operation path, and does not claim the mirror either: each route it names carries its condition.
  • Every route claim is read against source at the PR's base and cited in the PR by method name.
  • A census of the guide for the same claim shape finds no remaining instance, recorded in the PR.
  • Where to go next links DockLayoutsWindows.md.
  • Brain lint-guides 0 hard / 0 warn, check-relative-links OK and a portal render of the page are recorded in the PR; tree and SEO registration unchanged.
  • Cross-family review.

Out of Scope

  • Changing or unifying the restore routes (engine behaviour).
  • Undo, redo or transaction history for restores.
  • The declared-perspective selection route, which the panes guide covers.
  • A link to the mechanics guide, which waits for #18669.

Avoided Traps

  • Replacing the generalisation with its mirror ("a restore is an operation"): the example's route really does skip the reducer.
  • Reading operation: 'restorePerspective' descriptors as reducer operations: they label the write, and Operations.operations does not contain them.
  • Reopening #18032: a merged PR resolved it, so its record stays closed and this successor carries the correction.

Decision Record impact

none — documentation of existing behaviour, aligned with ADR 0029 §2.2.

Related

  • #18665 — the merged PR that introduced the sentence; Emmy's R1 RA-3 there is the same claim class.
  • #18032 — its ticket, closed.
  • #18033 — where the defect surfaced.
  • #18669 — the mechanics guide, whose link is out of scope here.

Sweeps

Live latest-open sweep: latest 20 open issues read at 2026-09-13T19:24:54Z; no equivalent found. A2A claim sweep: latest 30 messages, all read-states, at 2026-09-13T19:25Z; no lane-claim or lane-intent on this guide or its restore wording. MC sweep: "DockLayoutsStateAndPersistence guide says a restore involves no operation; restore_perspective restores a saved layout on a Group workspace through applyDocument; restore route wording wrong", 6 results, no prior decision found. Own-assignment sweep: 14 open, none overlapping (the #18031 and #18033 bodies were read; neither covers this correction). Content sweep: resources/content/issues and resources/content/discussions — applyDocument matches only the undo tickets #15252 and #16316; no operation involved and DockLayoutsStateAndPersistence match nothing; the Knowledge Base ticket search returned no equivalent.

Origin Session ID: 2ee1c433-0a1b-4fd0-8d2a-801e2a04ee35

Retrieval Hint: query_raw_memories("dock state guide restore no operation applyDocument Neural Link Group")