--- name: rho-studio-layout description: Change and recover the person-visible Studio layout without changing project work. --- # Rho Studio layout Studio layout is shared metadata. It controls which views are open and how they are arranged. It does not edit files, start a session, rerun work or create a second copy of a document buffer. 1. Read the current composition with `composition.read` before changing it. Keep its `compositionId` and `version` as the condition for the next write. 2. Use one conditional `composition.apply` for the smallest layout change. Use `composition.put` only when the owner contract explicitly calls for a full layout snapshot. Keep every existing node that the person did not ask to move, and use stable view and group IDs from the composition you read. 3. A view is a composition leaf. Keep its component, version, props and exact bindings together. For a runtime plugin view, read `extension.describe` and retain its package digest in `rho.extension.html` props. 4. `view.close` closes one view. `composition.delete` removes one Studio layout and keeps its history. Neither operation deletes the project folder, documents, resources, conversations or a running session. Use `composition.undo` to recover a retained layout when its current version allows it. 5. A successful layout reply acknowledges metadata. It does not prove that the browser has painted the view. When the task depends on what the person can see, read the current composition and use the browser's visible state. 6. If a write is stale, read again and retry the same intended change against the new version. Keep the original `changeId` only when recovering that exact request after a lost acknowledgement. 7. Treat a protected view, an active conversation layout and an unavailable component as conditions to report. Preserve the retained layout reference and its uncertainty while the person decides what to do. The Graph is a derived browser view of recorded work. It has no Agent operation or Skill in this version, so do not claim that a graph node was read or changed through Studio layout operations.