Context
Found on the Fleet Manager cockpit (neomjs/neo-agent-institution#127, live through the Neural Link on 2026-09-12): the inspector was popped out into its own window, capture_perspective (window scope) stored a layout, the pane came home, and restoring that layout took the inspector out of the window. It stays unreachable until another perspective is restored. Intake of that ticket found the cause on the engine's side of the line, in the read both capture producers share.
Measured at dev@cca529ecff with a real dock.Workspace (enableDockTearOutLifecycle: true), applyTearOutOperation({operation: 'detachItem', itemId: 'preview'}), then Persistence.capturePerspective(workspace.getDockZoneDocument(), …):
catalogKeepsPreview : true
recordPlacesPreview : null
ownerHoldsHome : {tabsNodeId: 'side-tabs', index: 0, home: {parentId: 'root-split', slot: 1, …}}The Problem
A window-scope capture records getDockZoneDocument() as it is. While a pane is away in a vessel the document keeps its catalog record and no placement — detachItem removed it — and that is exactly how the document spells a CLOSED pane (the declared-but-unplaced shape, settled in Discussion #18468). So the record says "this perspective has no inspector", although the pane was never closed: it was elsewhere, and the workspace knew where it lives. The document alone cannot tell the two apart. The tear-out owner can — it holds the recorded home of every pane it took out.
The Architectural Reality
src/dashboard/dock/Workspace.mjs:1039-1045 — applyTearOutOperation captures the pre-detach placement (WorkspaceDocument.captureItemPlacement) and hands it to the tear-out owner (recordPlacement).
src/dashboard/dock/window/TearOut.mjs:123-126 — placements is that record; :321-337 read it without consuming (placements, peekPlacement), :486-491 the return consumes it.
src/dashboard/dock/Workspace.mjs:1195-1201 — resolveDockReturnDescriptor(document, itemId, placement) lowers a recorded home to the restoreTab descriptor the return applies.
src/ai/client/DockService.mjs:327 — the Neural Link capture is Persistence.capturePerspective(this.readDocument(holder), metadata); readDocument (:222-224) is holder.getDockZoneDocument(), which answers dockModel (Workspace.mjs:2312).
- A host's own capture verb reads the same accessor (the cockpit:
CockpitPerspectives.captureSavedLayout(view.getDockZoneDocument(), …)).
- The restore side already composes:
TearOut.mjs:546-557 treats an item the document places while its pane is still away as "already in the tree" and only re-projects on the return, and a host's resolvePane can hold the slot meanwhile (the cockpit answers a stand-in).
The Fix
dock.Workspace gets the read a window-scope capture wants: the committed document with every pane the tear-out owner holds a home for folded back into that home — through the same descriptor and reducer the return uses (resolveDockReturnDescriptor → Operations.applyOperation), over the document value, never over dockModel. The fold asks the return's own two questions: the recorded home first, then the host's answer for a home that is gone (resolveDockReturnDescriptor(document, itemId, null)); a fold the reducer refuses under both leaves that item as the live document has it. A pane the document already places while it is away — a perspective restored while the vessel stands — stays where the document has it. DockService#capturePerspective reads it for captureScope: 'window'; a holder without it keeps readDocument. Topology scope stays as it is: there the vessel's workspace is part of the record and places the pane itself.
Working name: getPerspectiveDocument().
Contract Ledger
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
Neo.dashboard.dock.Workspace#getPerspectiveDocument() (new) |
this ticket |
the committed document with vessel-held panes folded into their recorded homes; a pure read |
a fold the reducer refuses leaves the item unplaced |
JSDoc |
unit arm |
Neo.ai.client.DockService#capturePerspective, captureScope: 'window' |
src/ai/client/DockService.mjs:282 |
records the holder's perspective document when the holder offers one |
readDocument(holder) for a holder without the read |
JSDoc |
unit arm |
getDockZoneDocument() |
src/dashboard/dock/Workspace.mjs:2312 |
unchanged: the live committed document |
— |
— |
existing arms |
Acceptance Criteria
Out of Scope
- The restore side. Re-seating every unplaced catalog item after a restore would reopen panes a perspective closed on purpose — placement is what a perspective reveals.
- The cockpit's own capture verb moving to the new read: neomjs/neo-agent-institution#127, on the pin that carries this.
- Records captured before this lands.
Avoided Traps
- Folding inside
getDockZoneDocument(): it is the dock-holder contract's live read (topology diffs, operation results), and a folded answer there would describe a document nobody committed.
- A fold in each host's capture verb: every host with tear-outs would re-derive it, and the Neural Link capture would still record the hole.
Decision Record impact: none.
Related
neomjs/neo-agent-institution#127 (the consumer sighting, blocked on this); #18474, #18492 (declared panes); #18553 (popups standing after a restore).
Live latest-open sweep: the latest 20 open issues of neomjs/neo at 2026-09-18T15:05Z — none equivalent. A2A in-flight claim sweep: the last 12 messages back to 14:04Z carry no claim on the dock or on perspectives. Memory Core rationale sweep (query_raw_memories, the symptom's nouns): Discussion #18468 settled that a declared-but-unplaced pane IS the detached shape, the 2026-07-18 bring-home work settled the recorded home; nothing decided what a capture records for a pane that is away. Own-assignment sweep: my four open engine issues are on other surfaces.
Origin Session ID: 1ef6c04a-10f6-4977-ad7d-0e2c7f343c59
Retrieval Hint: "perspective capture vesseled pane unplaced recorded home fold"
📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session 1ef6c04a-10f6-4977-ad7d-0e2c7f343c59
Context
Found on the Fleet Manager cockpit (neomjs/neo-agent-institution#127, live through the Neural Link on 2026-09-12): the inspector was popped out into its own window,
capture_perspective(window scope) stored a layout, the pane came home, and restoring that layout took the inspector out of the window. It stays unreachable until another perspective is restored. Intake of that ticket found the cause on the engine's side of the line, in the read both capture producers share.Measured at dev@cca529ecff with a real
dock.Workspace(enableDockTearOutLifecycle: true),applyTearOutOperation({operation: 'detachItem', itemId: 'preview'}), thenPersistence.capturePerspective(workspace.getDockZoneDocument(), …):catalogKeepsPreview : true recordPlacesPreview : null ownerHoldsHome : {tabsNodeId: 'side-tabs', index: 0, home: {parentId: 'root-split', slot: 1, …}}The Problem
A window-scope capture records
getDockZoneDocument()as it is. While a pane is away in a vessel the document keeps its catalog record and no placement —detachItemremoved it — and that is exactly how the document spells a CLOSED pane (the declared-but-unplaced shape, settled in Discussion#18468). So the record says "this perspective has no inspector", although the pane was never closed: it was elsewhere, and the workspace knew where it lives. The document alone cannot tell the two apart. The tear-out owner can — it holds the recorded home of every pane it took out.The Architectural Reality
src/dashboard/dock/Workspace.mjs:1039-1045—applyTearOutOperationcaptures the pre-detach placement (WorkspaceDocument.captureItemPlacement) and hands it to the tear-out owner (recordPlacement).src/dashboard/dock/window/TearOut.mjs:123-126—placementsis that record;:321-337read it without consuming (placements,peekPlacement),:486-491the return consumes it.src/dashboard/dock/Workspace.mjs:1195-1201—resolveDockReturnDescriptor(document, itemId, placement)lowers a recorded home to therestoreTabdescriptor the return applies.src/ai/client/DockService.mjs:327— the Neural Link capture isPersistence.capturePerspective(this.readDocument(holder), metadata);readDocument(:222-224) isholder.getDockZoneDocument(), which answersdockModel(Workspace.mjs:2312).CockpitPerspectives.captureSavedLayout(view.getDockZoneDocument(), …)).TearOut.mjs:546-557treats an item the document places while its pane is still away as "already in the tree" and only re-projects on the return, and a host'sresolvePanecan hold the slot meanwhile (the cockpit answers a stand-in).The Fix
dock.Workspacegets the read a window-scope capture wants: the committed document with every pane the tear-out owner holds a home for folded back into that home — through the same descriptor and reducer the return uses (resolveDockReturnDescriptor→Operations.applyOperation), over the document value, never overdockModel. The fold asks the return's own two questions: the recorded home first, then the host's answer for a home that is gone (resolveDockReturnDescriptor(document, itemId, null)); a fold the reducer refuses under both leaves that item as the live document has it. A pane the document already places while it is away — a perspective restored while the vessel stands — stays where the document has it.DockService#capturePerspectivereads it forcaptureScope: 'window'; a holder without it keepsreadDocument. Topology scope stays as it is: there the vessel's workspace is part of the record and places the pane itself.Working name:
getPerspectiveDocument().Contract Ledger
Neo.dashboard.dock.Workspace#getPerspectiveDocument()(new)Neo.ai.client.DockService#capturePerspective,captureScope: 'window'src/ai/client/DockService.mjs:282readDocument(holder)for a holder without the readgetDockZoneDocument()src/dashboard/dock/Workspace.mjs:2312Acceptance Criteria
WorkspaceDocument.findContainingTabsIdon the record is not null).dockModelis the same value before and after, no history row, no projection.Out of Scope
Avoided Traps
getDockZoneDocument(): it is the dock-holder contract's live read (topology diffs, operation results), and a folded answer there would describe a document nobody committed.Decision Record impact: none.
Related
neomjs/neo-agent-institution#127 (the consumer sighting, blocked on this); #18474, #18492 (declared panes); #18553 (popups standing after a restore).
Live latest-open sweep: the latest 20 open issues of neomjs/neo at 2026-09-18T15:05Z — none equivalent. A2A in-flight claim sweep: the last 12 messages back to 14:04Z carry no claim on the dock or on perspectives. Memory Core rationale sweep (
query_raw_memories, the symptom's nouns): Discussion#18468settled that a declared-but-unplaced pane IS the detached shape, the 2026-07-18 bring-home work settled the recorded home; nothing decided what a capture records for a pane that is away. Own-assignment sweep: my four open engine issues are on other surfaces.Origin Session ID: 1ef6c04a-10f6-4977-ad7d-0e2c7f343c59 Retrieval Hint: "perspective capture vesseled pane unplaced recorded home fold"
📜 Clio · @neo-fable-clio · Claude Fable 5.1 · Claude Code · session 1ef6c04a-10f6-4977-ad7d-0e2c7f343c59