Context
Independent whole-file WorkstationHeaderStatePopOutNL run at dev@633585423d2d7e8a33fd131ed265e199f110b5e2 reproduces the open #17844 row: after popping out Commits, the pane retains its provider and other header fields, but dock.items.commits.edge remains right instead of null (line124). Popup creation/adoption and the companion default-affordance arm pass.
The Problem
The root provider continues to describe an edge it no longer owns. This is published state, not a popup paint or departure failure. A retained pane still resolves its original provider, so it can observe the obsolete source edge.
The Architectural Reality
VesselWorkspace.onTearOutDocumentChange commits workspaceSet.transfer({operation:'transferItem',...}). Unlike standalone detachItem, Operations.transferItem removes the transferred item from the source catalog. HeaderActionPolicy.publishDocument then publishes only catalog members, and Provider.setDataAtSameLevel recursively merges leaves: omission does not reset an old leaf. The source's prior edge survives.
The Fix
Keep ownership in HeaderActionPolicy.publishDocument: when a previously published item is absent from the new document, explicitly retire its source-edge value to null within the existing batched publication. Preserve the retained item's other fields and the popup's independently owned provider data. Do not change global Provider merge semantics or the transfer executor.
Contract Ledger
| Surface |
Authority |
Required behavior |
Fallback |
Docs |
Evidence |
dock.items.<id>.edge |
This workspace's committed document / findOwningEdge |
Null once this workspace no longer owns the item's edge, including catalog removal during transfer |
Explicit null |
HeaderActionPolicy publication JSDoc |
Real transfer/republication unit control and existing popup NL witness |
| Other header fields/provider hierarchy |
Existing retained-pane contract |
Preserved; each workspace publishes locally |
Existing behavior |
Existing docs |
Popup/parent provider isolation and unchanged flags controls |
Acceptance Criteria
Out of Scope
Pane provider rebinding, item flag synchronization between workspaces, global Provider deletion semantics, virtual row-pool census, departure/VDOM fixes and film-tour work.
Related
#17844. Decision Record impact: none — correct the existing workspace-local derived edge contract.
Sweeps: latest20open Engine issues + all-state HeaderActionPolicy/edge search (closed18306/18307 predecessors only), recent10 A2A messages, ownassignments (19075 is disjoint), MC problem-framed query (no matching prior decision). No competing lane found. No new files; structure map/structural pre-flight N/A. Scope and live falsifier developed with one read-only subagent; root reproduced the browser failure.
Origin Session ID: 9e4f2c84-9ea2-4bb3-ac93-19237406cae9
Context
Independent whole-file
WorkstationHeaderStatePopOutNLrun atdev@633585423d2d7e8a33fd131ed265e199f110b5e2reproduces the open #17844 row: after popping out Commits, the pane retains its provider and other header fields, butdock.items.commits.edgeremainsrightinstead ofnull(line124). Popup creation/adoption and the companion default-affordance arm pass.The Problem
The root provider continues to describe an edge it no longer owns. This is published state, not a popup paint or departure failure. A retained pane still resolves its original provider, so it can observe the obsolete source edge.
The Architectural Reality
VesselWorkspace.onTearOutDocumentChangecommitsworkspaceSet.transfer({operation:'transferItem',...}). Unlike standalonedetachItem,Operations.transferItemremoves the transferred item from the source catalog.HeaderActionPolicy.publishDocumentthen publishes only catalog members, andProvider.setDataAtSameLevelrecursively merges leaves: omission does not reset an old leaf. The source's prioredgesurvives.The Fix
Keep ownership in
HeaderActionPolicy.publishDocument: when a previously published item is absent from the new document, explicitly retire its source-edge value tonullwithin the existing batched publication. Preserve the retained item's other fields and the popup's independently owned provider data. Do not change global Provider merge semantics or the transfer executor.Contract Ledger
dock.items.<id>.edgefindOwningEdgeAcceptance Criteria
WorkstationHeaderStatePopOutNLfile passes on the repaired head.Out of Scope
Pane provider rebinding, item flag synchronization between workspaces, global Provider deletion semantics, virtual row-pool census, departure/VDOM fixes and film-tour work.
Related
#17844. Decision Record impact: none — correct the existing workspace-local derived edge contract.
Sweeps: latest20open Engine issues + all-state HeaderActionPolicy/edge search (closed18306/18307 predecessors only), recent10 A2A messages, ownassignments (19075 is disjoint), MC problem-framed query (no matching prior decision). No competing lane found. No new files; structure map/structural pre-flight N/A. Scope and live falsifier developed with one read-only subagent; root reproduced the browser failure.
Origin Session ID: 9e4f2c84-9ea2-4bb3-ac93-19237406cae9