II.
OrchestrationPrimitive JSON
Structured · liveorch-primitive:workspace-cleanup
Workspace Cleanup json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "orch-primitive:workspace-cleanup",
"_kind": "OrchestrationPrimitive",
"_file": "agent-stack/interaction-primitives/orchestration-primitives.yaml",
"_cluster": "agent-stack",
"attributes": {
"displayName": "Workspace Cleanup",
"description": "Clean up a completed or abandoned task workspace. The primitive deletes\ntemporary branches, removes worktree directories, stops containers, and\nreleases any resources held by the workspace. Triggered automatically\nwhen a task reaches a terminal state or when the orchestrator detects\norphaned workspaces during reconciliation.\n",
"orchestrationKind": "workspace-lifecycle",
"trigger": "on-state-change"
},
"outgoingEdges": [
{
"from": "orch-primitive:workspace-cleanup",
"to": "layer:13-orchestration",
"kind": "realizes",
"attributes": {}
},
{
"from": "orch-primitive:workspace-cleanup",
"to": "topic:agent-run-lifecycle",
"kind": "orch_applies_to",
"attributes": {}
}
],
"incomingEdges": [
{
"from": "agent-core-impl:symphony.core@current",
"to": "orch-primitive:workspace-cleanup",
"kind": "supports_orchestration_primitive",
"attributes": {}
},
{
"from": "orch-primitive:pr-creation",
"to": "orch-primitive:workspace-cleanup",
"kind": "orch_triggers",
"attributes": {}
},
{
"from": "orch-primitive:rollback",
"to": "orch-primitive:workspace-cleanup",
"kind": "orch_triggers",
"attributes": {}
},
{
"from": "orch-primitive:auto-merge",
"to": "orch-primitive:workspace-cleanup",
"kind": "orch_triggers",
"attributes": {}
}
]
}