{
  "schemaVersion": 1,
  "title": "Morrows execution lifecycle",
  "source": "Morrows main (morrows-store intake E2E, runtime and completion)",
  "modelType": "code-backed illustrative trace, not a production recording",
  "lanes": {
    "actors": {
      "label": "AGENTS & INTERVIEW",
      "order": 0
    },
    "control": {
      "label": "MORROWS · TASK / RUN",
      "order": 1
    },
    "evidence": {
      "label": "MEMORY & ACCEPTANCE",
      "order": 2
    },
    "rescue": {
      "label": "RECOVERY",
      "order": 3
    }
  },
  "nodes": [
    {
      "id": "human",
      "label": "Human",
      "glyph": "H",
      "lane": "actors",
      "description": "Publishes the request and can answer questions; not an automatic completion approver."
    },
    {
      "id": "collab",
      "label": "Human dialogue",
      "glyph": "↔",
      "lane": "actors",
      "description": "Task-scoped Human/Agent messages, not another agent.",
      "subflow": "intake"
    },
    {
      "id": "agent-a",
      "label": "Agent A",
      "glyph": "A",
      "lane": "actors",
      "description": "Plans and requests operations; the Worker, not the Agent, executes commands."
    },
    {
      "id": "agent-b",
      "label": "Agent B",
      "glyph": "B",
      "lane": "actors",
      "description": "A replacement agent that reads saved milestones and takes a fresh Assignment."
    },
    {
      "id": "task",
      "label": "Task",
      "glyph": "T",
      "lane": "control",
      "description": "The durable goal. Its ID survives changes of Agent, Assignment and Run."
    },
    {
      "id": "assignment",
      "label": "Assignment",
      "glyph": "A",
      "lane": "control",
      "description": "Who is currently responsible for this Task. It can be released and reassigned."
    },
    {
      "id": "run",
      "label": "Run",
      "glyph": "R",
      "lane": "control",
      "description": "One execution attempt; the successor agent gets a new Run without changing the Task."
    },
    {
      "id": "runtime",
      "label": "RuntimeScope",
      "glyph": "◉",
      "lane": "control",
      "description": "Run-specific permission and routing for operations. The Worker actually executes them.",
      "subflow": "runtime"
    },
    {
      "id": "worker",
      "label": "Worker",
      "glyph": "W",
      "lane": "control",
      "description": "The machine that runs shell/file/job operations requested through RuntimeScope."
    },
    {
      "id": "context",
      "label": "Context",
      "glyph": "C",
      "lane": "evidence",
      "description": "Saved constraints and project knowledge read before implementation."
    },
    {
      "id": "milestone",
      "label": "Milestone",
      "glyph": "M",
      "lane": "evidence",
      "description": "Task progress and next-step plan saved for takeover. Not Project Memory.",
      "subflow": "handoff"
    },
    {
      "id": "artifact",
      "label": "Artifact",
      "glyph": "E",
      "lane": "evidence",
      "description": "Task-owned reports or receipts cited as acceptance evidence."
    },
    {
      "id": "completion",
      "label": "Completion",
      "glyph": "✓",
      "lane": "evidence",
      "description": "Morrows validates submitted evidence references and ownership, then commits Task done. It does not run tests.",
      "subflow": "completion"
    },
    {
      "id": "lsm",
      "label": "LSM rescue",
      "glyph": "L",
      "lane": "rescue",
      "description": "Emergency control and diagnosis fallback. Normal Task execution uses morrow-runtime."
    },
    {
      "id": "job-wait",
      "label": "Job wait",
      "glyph": "J",
      "lane": "control",
      "description": "A Run waits for a background job terminal notification. This is not a Worker command log."
    }
  ],
  "edges": [
    {
      "id": "task-assignment",
      "source": "task",
      "target": "assignment",
      "backbone": true
    },
    {
      "id": "assignment-run",
      "source": "assignment",
      "target": "run",
      "backbone": true
    },
    {
      "id": "run-runtime",
      "source": "run",
      "target": "runtime",
      "backbone": true
    },
    {
      "id": "runtime-worker",
      "source": "runtime",
      "target": "worker",
      "backbone": true
    },
    {
      "id": "human-collab",
      "source": "human",
      "target": "collab"
    },
    {
      "id": "collab-agent",
      "source": "collab",
      "target": "agent-a"
    },
    {
      "id": "run-agent",
      "source": "run",
      "target": "agent-a"
    },
    {
      "id": "context-agent",
      "source": "context",
      "target": "agent-a"
    },
    {
      "id": "agent-runtime",
      "source": "agent-a",
      "target": "runtime"
    },
    {
      "id": "run-milestone",
      "source": "run",
      "target": "milestone"
    },
    {
      "id": "run-artifact",
      "source": "run",
      "target": "artifact"
    },
    {
      "id": "run-completion",
      "source": "run",
      "target": "completion"
    },
    {
      "id": "context-completion",
      "source": "context",
      "target": "completion"
    },
    {
      "id": "artifact-completion",
      "source": "artifact",
      "target": "completion"
    },
    {
      "id": "completion-task",
      "source": "completion",
      "target": "task"
    },
    {
      "id": "milestone-agent-b",
      "source": "milestone",
      "target": "agent-b"
    },
    {
      "id": "lsm-runtime",
      "source": "lsm",
      "target": "runtime"
    },
    {
      "id": "human-task",
      "source": "human",
      "target": "task"
    },
    {
      "id": "task-run",
      "source": "task",
      "target": "run"
    },
    {
      "id": "run-job-wait",
      "source": "run",
      "target": "job-wait"
    },
    {
      "id": "runtime-job-wait",
      "source": "runtime",
      "target": "job-wait"
    }
  ],
  "scenarios": {
    "normal": {
      "label": "Normal",
      "steps": [
        {
          "key": "READY",
          "title": "Task is ready",
          "detail": "Open Task; no Assignment or Run yet.",
          "task": "ready",
          "assignment": "—",
          "run": "—",
          "id": "01-ready",
          "transfers": [
            "human-task"
          ],
          "focus": [
            "human",
            "task"
          ],
          "actor": "agent-a",
          "story": {
            "action": "PUBLISH",
            "actor": "Human",
            "headline": "A person reports a broken task list.",
            "why": "The request to fix a stale task list is saved as MOR-1042 before an agent claims it.",
            "changes": [
              {
                "entity": "Task",
                "from": "—",
                "to": "Open"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLAIM",
          "title": "Claim creates Assignment + intake Run",
          "detail": "One transaction: Task→in_progress, Assignment=context_review, Run=running/intake-only.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "02-claim",
          "transfers": [
            "task-assignment",
            "task-run"
          ],
          "focus": [
            "task",
            "assignment",
            "run"
          ],
          "actor": "agent-a",
          "story": {
            "action": "CLAIM",
            "actor": "Agent A",
            "headline": "One claim creates two things.",
            "why": "One transaction creates the owner record and a Run. That Run can read and ask questions, but cannot run commands yet.",
            "changes": [
              {
                "entity": "Task",
                "from": "Open",
                "to": "In progress"
              },
              {
                "entity": "Assignment",
                "from": "—",
                "to": "Context review"
              },
              {
                "entity": "Run",
                "from": "—",
                "to": "Intake only"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTAKE",
          "title": "Read Project Memory + ContextPackage",
          "detail": "task_intake pins the current memory head and context package. Runtime access is still blocked.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "03-intake",
          "transfers": [
            "context-agent"
          ],
          "focus": [
            "context",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "READ",
            "actor": "Agent A",
            "headline": "Read the task before changing anything.",
            "why": "The agent receives project memory and the saved context; runtime commands remain unavailable.",
            "changes": [
              {
                "entity": "Context",
                "from": "Not read",
                "to": "Loaded"
              },
              {
                "entity": "Execution",
                "from": "Locked",
                "to": "Locked"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTERVIEW",
          "title": "Human Interview in Task collaboration",
          "detail": "Agent asks only material unresolved questions; messages persist on the Task.",
          "task": "in_progress",
          "assignment": "human_interview",
          "run": "intake-only",
          "id": "04-interview",
          "transfers": [
            "human-collab",
            "collab-agent"
          ],
          "focus": [
            "human",
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "ASK",
            "actor": "Agent A ↔ Human",
            "headline": "Resolve an unanswered requirement.",
            "why": "The question and reply stay attached to the Task, not only inside one agent chat.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Review",
                "to": "Human interview"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "READY",
          "title": "Interview converges",
          "detail": "task_interview_finalize records understanding + plan; Assignment becomes ready.",
          "task": "in_progress",
          "assignment": "ready",
          "run": "intake-only",
          "id": "05-ready",
          "transfers": [
            "collab-agent"
          ],
          "focus": [
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "DECIDE",
            "actor": "Agent A",
            "headline": "The task is now clear enough to start.",
            "why": "Finalize saves the plan and ends the interview. This does not yet mean the worker executed anything.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Interview",
                "to": "Ready"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "IMPLEMENT",
          "title": "Implementation starts",
          "detail": "Managed launcher resumes the same Run/provider conversation; direct Agents use task_begin_execution.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "06-implement",
          "transfers": [
            "run-agent"
          ],
          "focus": [
            "run",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "UNLOCK",
            "actor": "Morrows",
            "headline": "Implementation is authorized.",
            "why": "The same Run advances from intake to implementation; a managed agent resumes its provider conversation.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Ready",
                "to": "Implementing"
              },
              {
                "entity": "Run",
                "from": "Intake only",
                "to": "Executing"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "RUNTIME",
          "title": "Run gets its RuntimeScope",
          "detail": "RuntimeScope is Run-owned and idempotent (morrows:run:<run_id>); capability is issued only now.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "07-runtime",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "BIND",
            "actor": "Morrows",
            "headline": "Give this Run an execution scope.",
            "why": "Morrows grants this implementing Run permission to execute; the Worker is the machine that actually runs commands.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Unavailable",
                "to": "Run-owned"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "EXECUTE",
          "title": "Agent executes through morrow-runtime",
          "detail": "runtime_call / managed runtime routes shell, job and file work to the bound Worker.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "08-execute",
          "transfers": [
            "agent-runtime",
            "runtime-worker"
          ],
          "focus": [
            "agent-a",
            "runtime",
            "worker"
          ],
          "actor": "agent-a",
          "story": {
            "action": "EXECUTE",
            "actor": "Agent A → Worker",
            "headline": "The Worker applies the sample fix and runs tests.",
            "why": "Agent A requests a code change and a test run; the Worker executes the commands and returns their results.",
            "changes": [
              {
                "entity": "Worker",
                "from": "Idle",
                "to": "Running"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "PERSIST",
          "title": "Persist milestone and evidence",
          "detail": "Milestones/checkpoints preserve progress; Artifacts provide acceptance evidence.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "09-persist",
          "transfers": [
            "run-milestone",
            "run-artifact"
          ],
          "focus": [
            "run",
            "milestone",
            "artifact"
          ],
          "actor": "agent-a",
          "story": {
            "action": "SAVE",
            "actor": "Agent A",
            "headline": "Save the checkpoint and test report.",
            "why": "Milestone records progress and a next-step plan. Artifact holds a reference to the test report for acceptance.",
            "changes": [
              {
                "entity": "Milestone",
                "from": "—",
                "to": "Saved"
              },
              {
                "entity": "Artifact",
                "from": "—",
                "to": "Attached"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "PREFLIGHT",
          "title": "Completion preflight",
          "detail": "run_completion_check validates lifecycle, current context, criteria, evidence refs and memory disposition.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "10-preflight",
          "transfers": [
            "run-completion",
            "context-completion",
            "artifact-completion"
          ],
          "focus": [
            "run",
            "completion",
            "context",
            "artifact"
          ],
          "actor": "agent-a",
          "story": {
            "action": "CHECK",
            "actor": "Morrows",
            "headline": "Check the reported result against the task criteria.",
            "why": "Morrows checks criterion reports, current context, and same-task artifact references—not whether the tests really passed.",
            "changes": [
              {
                "entity": "Completion",
                "from": "Not checked",
                "to": "Preflight"
              }
            ],
            "tone": "review"
          }
        },
        {
          "key": "COMPLETE",
          "title": "Atomic completion",
          "detail": "run_complete marks Run completed, releases Assignment, and sets executor Task=done.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "11-complete",
          "transfers": [
            "completion-task"
          ],
          "focus": [
            "completion",
            "task"
          ],
          "actor": "agent-a",
          "story": {
            "action": "FINISH",
            "actor": "Morrows",
            "headline": "Close the Run and Task atomically.",
            "why": "Morrows rechecks ownership and evidence, then atomically finishes Run, Assignment and Task. RuntimeScope cleanup follows.",
            "changes": [
              {
                "entity": "Task",
                "from": "In progress",
                "to": "Done"
              },
              {
                "entity": "Run",
                "from": "Running",
                "to": "Completed"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLEANUP",
          "title": "Runtime cleanup",
          "detail": "Execution capability/scope is terminalized; durable Task/Run history and provider continuity remain.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "12-cleanup",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "RELEASE",
            "actor": "Morrows",
            "headline": "Execution stops. History stays.",
            "why": "RuntimeScope is terminalized. The Task, Run, checkpoint and evidence remain available.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Run-owned",
                "to": "Closed"
              }
            ],
            "tone": "normal"
          }
        }
      ],
      "headline": "Normal execution",
      "description": "One agent completes the Task. Artifacts and Run history remain afterward.",
      "jumpTo": 10,
      "jumpLabel": "See final result →"
    },
    "handoff": {
      "label": "Handoff",
      "steps": [
        {
          "key": "READY",
          "title": "Task is ready",
          "detail": "Open Task; no Assignment or Run yet.",
          "task": "ready",
          "assignment": "—",
          "run": "—",
          "id": "01-ready",
          "transfers": [
            "human-task"
          ],
          "focus": [
            "human",
            "task"
          ],
          "actor": "agent-a",
          "story": {
            "action": "PUBLISH",
            "actor": "Human",
            "headline": "A person reports a broken task list.",
            "why": "The request to fix a stale task list is saved as MOR-1042 before an agent claims it.",
            "changes": [
              {
                "entity": "Task",
                "from": "—",
                "to": "Open"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLAIM",
          "title": "Claim creates Assignment + intake Run",
          "detail": "One transaction: Task→in_progress, Assignment=context_review, Run=running/intake-only.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "02-claim",
          "transfers": [
            "task-assignment",
            "task-run"
          ],
          "focus": [
            "task",
            "assignment",
            "run"
          ],
          "actor": "agent-a",
          "story": {
            "action": "CLAIM",
            "actor": "Agent A",
            "headline": "One claim creates two things.",
            "why": "One transaction creates the owner record and a Run. That Run can read and ask questions, but cannot run commands yet.",
            "changes": [
              {
                "entity": "Task",
                "from": "Open",
                "to": "In progress"
              },
              {
                "entity": "Assignment",
                "from": "—",
                "to": "Context review"
              },
              {
                "entity": "Run",
                "from": "—",
                "to": "Intake only"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTAKE",
          "title": "Read Project Memory + ContextPackage",
          "detail": "task_intake pins the current memory head and context package. Runtime access is still blocked.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "03-intake",
          "transfers": [
            "context-agent"
          ],
          "focus": [
            "context",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "READ",
            "actor": "Agent A",
            "headline": "Read the task before changing anything.",
            "why": "The agent receives project memory and the saved context; runtime commands remain unavailable.",
            "changes": [
              {
                "entity": "Context",
                "from": "Not read",
                "to": "Loaded"
              },
              {
                "entity": "Execution",
                "from": "Locked",
                "to": "Locked"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTERVIEW",
          "title": "Human Interview in Task collaboration",
          "detail": "Agent asks only material unresolved questions; messages persist on the Task.",
          "task": "in_progress",
          "assignment": "human_interview",
          "run": "intake-only",
          "id": "04-interview",
          "transfers": [
            "human-collab",
            "collab-agent"
          ],
          "focus": [
            "human",
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "ASK",
            "actor": "Agent A ↔ Human",
            "headline": "Resolve an unanswered requirement.",
            "why": "The question and reply stay attached to the Task, not only inside one agent chat.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Review",
                "to": "Human interview"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "READY",
          "title": "Interview converges",
          "detail": "task_interview_finalize records understanding + plan; Assignment becomes ready.",
          "task": "in_progress",
          "assignment": "ready",
          "run": "intake-only",
          "id": "05-ready",
          "transfers": [
            "collab-agent"
          ],
          "focus": [
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "DECIDE",
            "actor": "Agent A",
            "headline": "The task is now clear enough to start.",
            "why": "Finalize saves the plan and ends the interview. This does not yet mean the worker executed anything.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Interview",
                "to": "Ready"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "IMPLEMENT",
          "title": "Implementation starts",
          "detail": "Managed launcher resumes the same Run/provider conversation; direct Agents use task_begin_execution.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "06-implement",
          "transfers": [
            "run-agent"
          ],
          "focus": [
            "run",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "UNLOCK",
            "actor": "Morrows",
            "headline": "Implementation is authorized.",
            "why": "The same Run advances from intake to implementation; a managed agent resumes its provider conversation.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Ready",
                "to": "Implementing"
              },
              {
                "entity": "Run",
                "from": "Intake only",
                "to": "Executing"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "RUNTIME",
          "title": "Run gets its RuntimeScope",
          "detail": "RuntimeScope is Run-owned and idempotent (morrows:run:<run_id>); capability is issued only now.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "07-runtime",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "BIND",
            "actor": "Morrows",
            "headline": "Give this Run an execution scope.",
            "why": "Morrows grants this implementing Run permission to execute; the Worker is the machine that actually runs commands.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Unavailable",
                "to": "Run-owned"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "EXECUTE",
          "title": "Agent executes through morrow-runtime",
          "detail": "runtime_call / managed runtime routes shell, job and file work to the bound Worker.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "08-execute",
          "transfers": [
            "agent-runtime",
            "runtime-worker"
          ],
          "focus": [
            "agent-a",
            "runtime",
            "worker"
          ],
          "actor": "agent-a",
          "story": {
            "action": "EXECUTE",
            "actor": "Agent A → Worker",
            "headline": "The Worker applies the sample fix and runs tests.",
            "why": "Agent A requests a code change and a test run; the Worker executes the commands and returns their results.",
            "changes": [
              {
                "entity": "Worker",
                "from": "Idle",
                "to": "Running"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "PERSIST",
          "title": "Persist milestone and evidence",
          "detail": "Milestones/checkpoints preserve progress; Artifacts provide acceptance evidence.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "09-persist",
          "transfers": [
            "run-milestone",
            "run-artifact"
          ],
          "focus": [
            "run",
            "milestone",
            "artifact"
          ],
          "actor": "agent-a",
          "story": {
            "action": "SAVE",
            "actor": "Agent A",
            "headline": "Save the checkpoint and test report.",
            "why": "Milestone records progress and a next-step plan. Artifact holds a reference to the test report for acceptance.",
            "changes": [
              {
                "entity": "Milestone",
                "from": "—",
                "to": "Saved"
              },
              {
                "entity": "Artifact",
                "from": "—",
                "to": "Attached"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "HANDOFF",
          "title": "Handoff pins the latest milestone",
          "detail": "handoff_create requires the source Run's latest milestone, ends the source Run, and releases its Assignment.",
          "task": "in_progress",
          "assignment": "released",
          "run": "handed_off",
          "id": "10-handoff",
          "transfers": [
            "run-milestone"
          ],
          "focus": [
            "run",
            "milestone"
          ],
          "actor": "agent-a",
          "story": {
            "action": "HAND OFF",
            "actor": "Agent A",
            "headline": "Pass the latest checkpoint, not just a chat.",
            "why": "The handoff ties Agent A’s final progress to the Task so a different agent can pick it up.",
            "changes": [
              {
                "entity": "Run A",
                "from": "Running",
                "to": "Handed off"
              },
              {
                "entity": "Milestone",
                "from": "Saved",
                "to": "Pinned"
              }
            ],
            "tone": "handoff"
          }
        },
        {
          "key": "TERMINALIZE",
          "title": "Predecessor RuntimeScope stops",
          "detail": "A successor claim stays blocked until the predecessor runtime is terminalized and cleanup is confirmed.",
          "task": "in_progress",
          "assignment": "released",
          "run": "handed_off",
          "id": "11-terminalize",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "ISOLATE",
            "actor": "Morrows",
            "headline": "Stop the old Run before another starts.",
            "why": "Morrows prevents overlap by terminalizing the predecessor RuntimeScope before allowing takeover.",
            "changes": [
              {
                "entity": "Runtime A",
                "from": "Active",
                "to": "Stopped"
              }
            ],
            "tone": "handoff"
          }
        },
        {
          "key": "SUCCESSOR",
          "title": "Agent B claims successor execution",
          "detail": "The new executor gets a new Assignment + Run and recovery context from the pinned milestone/handoff.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "run #2",
          "id": "12-successor",
          "transfers": [
            "milestone-agent-b"
          ],
          "focus": [
            "milestone",
            "agent-b",
            "task",
            "assignment",
            "run"
          ],
          "actor": "agent-b",
          "story": {
            "action": "TAKE OVER",
            "actor": "Agent B",
            "headline": "A new owner takes the same Task.",
            "why": "Agent B reads the pinned Milestone and claims the same Task. A new Assignment B and Run B start intake; previous records stay in history.",
            "changes": [
              {
                "entity": "Task",
                "from": "In progress",
                "to": "In progress"
              },
              {
                "entity": "Assignment",
                "from": "A released",
                "to": "B claims"
              },
              {
                "entity": "Run",
                "from": "Run A",
                "to": "Run B"
              }
            ],
            "tone": "handoff"
          }
        },
        {
          "key": "RESUME",
          "title": "Agent B continues execution",
          "detail": "After intake/implementation gates, the successor Run gets its own RuntimeScope and resumes from durable state.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "run #2",
          "id": "13-resume",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-b",
          "story": {
            "action": "RESUME",
            "actor": "Agent B",
            "headline": "Run B starts with its own scope.",
            "why": "The new Run gets its own execution permission and may use the same or a different Worker. The old Run stays in history.",
            "changes": [
              {
                "entity": "Run B",
                "from": "Intake",
                "to": "Executing"
              },
              {
                "entity": "Runtime B",
                "from": "Unavailable",
                "to": "Run-owned"
              }
            ],
            "tone": "handoff"
          }
        },
        {
          "key": "PREFLIGHT",
          "title": "Completion preflight",
          "detail": "run_completion_check validates lifecycle, current context, criteria, evidence refs and memory disposition.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "run #2",
          "id": "14-preflight",
          "transfers": [
            "run-completion",
            "context-completion",
            "artifact-completion"
          ],
          "focus": [
            "run",
            "completion",
            "context",
            "artifact"
          ],
          "actor": "agent-b",
          "story": {
            "action": "CHECK",
            "actor": "Morrows",
            "headline": "Check the reported result against the task criteria.",
            "why": "Morrows checks criterion reports, current context, and same-task artifact references—not whether the tests really passed.",
            "changes": [
              {
                "entity": "Completion",
                "from": "Not checked",
                "to": "Preflight"
              }
            ],
            "tone": "review"
          }
        },
        {
          "key": "COMPLETE",
          "title": "Atomic completion",
          "detail": "run_complete marks Run completed, releases Assignment, and sets executor Task=done.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "15-complete",
          "transfers": [
            "completion-task"
          ],
          "focus": [
            "completion",
            "task"
          ],
          "actor": "agent-b",
          "story": {
            "action": "FINISH",
            "actor": "Morrows",
            "headline": "Close the Run and Task atomically.",
            "why": "Morrows rechecks ownership and evidence, then atomically finishes Run, Assignment and Task. RuntimeScope cleanup follows.",
            "changes": [
              {
                "entity": "Task",
                "from": "In progress",
                "to": "Done"
              },
              {
                "entity": "Run",
                "from": "Running",
                "to": "Completed"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLEANUP",
          "title": "Runtime cleanup",
          "detail": "Execution capability/scope is terminalized; durable Task/Run history and provider continuity remain.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "16-cleanup",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-b",
          "story": {
            "action": "RELEASE",
            "actor": "Morrows",
            "headline": "Execution stops. History stays.",
            "why": "RuntimeScope is terminalized. The Task, Run, checkpoint and evidence remain available.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Run-owned",
                "to": "Closed"
              }
            ],
            "tone": "normal"
          }
        }
      ],
      "headline": "Agent handoff",
      "description": "Task + Milestone stay. Agent B takes a new Assignment, Run, and RuntimeScope.",
      "jumpTo": 9,
      "jumpLabel": "Skip to handoff →"
    },
    "rescue": {
      "label": "Runtime rescue",
      "steps": [
        {
          "key": "READY",
          "title": "Task is ready",
          "detail": "Open Task; no Assignment or Run yet.",
          "task": "ready",
          "assignment": "—",
          "run": "—",
          "id": "01-ready",
          "transfers": [
            "human-task"
          ],
          "focus": [
            "human",
            "task"
          ],
          "actor": "agent-a",
          "story": {
            "action": "PUBLISH",
            "actor": "Human",
            "headline": "A person reports a broken task list.",
            "why": "The request to fix a stale task list is saved as MOR-1042 before an agent claims it.",
            "changes": [
              {
                "entity": "Task",
                "from": "—",
                "to": "Open"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLAIM",
          "title": "Claim creates Assignment + intake Run",
          "detail": "One transaction: Task→in_progress, Assignment=context_review, Run=running/intake-only.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "02-claim",
          "transfers": [
            "task-assignment",
            "task-run"
          ],
          "focus": [
            "task",
            "assignment",
            "run"
          ],
          "actor": "agent-a",
          "story": {
            "action": "CLAIM",
            "actor": "Agent A",
            "headline": "One claim creates two things.",
            "why": "One transaction creates the owner record and a Run. That Run can read and ask questions, but cannot run commands yet.",
            "changes": [
              {
                "entity": "Task",
                "from": "Open",
                "to": "In progress"
              },
              {
                "entity": "Assignment",
                "from": "—",
                "to": "Context review"
              },
              {
                "entity": "Run",
                "from": "—",
                "to": "Intake only"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTAKE",
          "title": "Read Project Memory + ContextPackage",
          "detail": "task_intake pins the current memory head and context package. Runtime access is still blocked.",
          "task": "in_progress",
          "assignment": "context_review",
          "run": "intake-only",
          "id": "03-intake",
          "transfers": [
            "context-agent"
          ],
          "focus": [
            "context",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "READ",
            "actor": "Agent A",
            "headline": "Read the task before changing anything.",
            "why": "The agent receives project memory and the saved context; runtime commands remain unavailable.",
            "changes": [
              {
                "entity": "Context",
                "from": "Not read",
                "to": "Loaded"
              },
              {
                "entity": "Execution",
                "from": "Locked",
                "to": "Locked"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "INTERVIEW",
          "title": "Human Interview in Task collaboration",
          "detail": "Agent asks only material unresolved questions; messages persist on the Task.",
          "task": "in_progress",
          "assignment": "human_interview",
          "run": "intake-only",
          "id": "04-interview",
          "transfers": [
            "human-collab",
            "collab-agent"
          ],
          "focus": [
            "human",
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "ASK",
            "actor": "Agent A ↔ Human",
            "headline": "Resolve an unanswered requirement.",
            "why": "The question and reply stay attached to the Task, not only inside one agent chat.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Review",
                "to": "Human interview"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "READY",
          "title": "Interview converges",
          "detail": "task_interview_finalize records understanding + plan; Assignment becomes ready.",
          "task": "in_progress",
          "assignment": "ready",
          "run": "intake-only",
          "id": "05-ready",
          "transfers": [
            "collab-agent"
          ],
          "focus": [
            "collab",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "DECIDE",
            "actor": "Agent A",
            "headline": "The task is now clear enough to start.",
            "why": "Finalize saves the plan and ends the interview. This does not yet mean the worker executed anything.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Interview",
                "to": "Ready"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "IMPLEMENT",
          "title": "Implementation starts",
          "detail": "Managed launcher resumes the same Run/provider conversation; direct Agents use task_begin_execution.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "06-implement",
          "transfers": [
            "run-agent"
          ],
          "focus": [
            "run",
            "agent-a"
          ],
          "actor": "agent-a",
          "story": {
            "action": "UNLOCK",
            "actor": "Morrows",
            "headline": "Implementation is authorized.",
            "why": "The same Run advances from intake to implementation; a managed agent resumes its provider conversation.",
            "changes": [
              {
                "entity": "Assignment",
                "from": "Ready",
                "to": "Implementing"
              },
              {
                "entity": "Run",
                "from": "Intake only",
                "to": "Executing"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "RUNTIME",
          "title": "Run gets its RuntimeScope",
          "detail": "RuntimeScope is Run-owned and idempotent (morrows:run:<run_id>); capability is issued only now.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "07-runtime",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "BIND",
            "actor": "Morrows",
            "headline": "Give this Run an execution scope.",
            "why": "Morrows grants this implementing Run permission to execute; the Worker is the machine that actually runs commands.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Unavailable",
                "to": "Run-owned"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "EXECUTE",
          "title": "Agent executes through morrow-runtime",
          "detail": "runtime_call / managed runtime routes shell, job and file work to the bound Worker.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "08-execute",
          "transfers": [
            "agent-runtime",
            "runtime-worker"
          ],
          "focus": [
            "agent-a",
            "runtime",
            "worker"
          ],
          "actor": "agent-a",
          "story": {
            "action": "EXECUTE",
            "actor": "Agent A → Worker",
            "headline": "The Worker applies the sample fix and runs tests.",
            "why": "Agent A requests a code change and a test run; the Worker executes the commands and returns their results.",
            "changes": [
              {
                "entity": "Worker",
                "from": "Idle",
                "to": "Running"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "OUTAGE",
          "title": "Execution plane fails",
          "detail": "Run/Task remain authoritative while RuntimeScope or Worker is unavailable.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "09-outage",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "FAIL",
            "actor": "Worker",
            "headline": "Execution stops responding.",
            "why": "Morrows still records Run as running, but the unreachable worker cannot execute commands. Task and Run identities stay unchanged.",
            "changes": [
              {
                "entity": "Worker",
                "from": "Running",
                "to": "Unreachable"
              },
              {
                "entity": "Task",
                "from": "In progress",
                "to": "In progress"
              },
              {
                "entity": "Commands",
                "from": "Available",
                "to": "Blocked"
              }
            ],
            "tone": "warning"
          }
        },
        {
          "key": "RESCUE",
          "title": "Standalone LSM enters rescue mode",
          "detail": "LSM is outside the normal Task execution path; it is used only to diagnose/restore Morrows runtime control.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "10-rescue",
          "transfers": [
            "lsm-runtime"
          ],
          "focus": [
            "lsm",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "RESCUE",
            "actor": "Standalone LSM",
            "headline": "Use the fallback only to restore control.",
            "why": "Run remains in the control plane while its commands are blocked. Standalone LSM diagnoses or restores the execution path only.",
            "changes": [
              {
                "entity": "LSM",
                "from": "Standby",
                "to": "Rescue"
              },
              {
                "entity": "Task",
                "from": "In progress",
                "to": "In progress"
              },
              {
                "entity": "Commands",
                "from": "Blocked",
                "to": "Blocked"
              }
            ],
            "tone": "warning"
          }
        },
        {
          "key": "RECOVER",
          "title": "morrow-runtime is restored",
          "detail": "Normal Run-owned RuntimeScope execution resumes; LSM returns to standby.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "11-recover",
          "transfers": [
            "lsm-runtime"
          ],
          "focus": [
            "lsm",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "RESTORE",
            "actor": "Morrows",
            "headline": "Return to the normal execution path.",
            "why": "Once morrow-runtime is available, the same Run-owned execution path continues.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Unavailable",
                "to": "Restored"
              },
              {
                "entity": "LSM",
                "from": "Rescue",
                "to": "Standby"
              },
              {
                "entity": "Commands",
                "from": "Blocked",
                "to": "Available"
              }
            ],
            "tone": "recovered"
          }
        },
        {
          "key": "PERSIST",
          "title": "Persist milestone and evidence",
          "detail": "Milestones/checkpoints preserve progress; Artifacts provide acceptance evidence.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "12-persist",
          "transfers": [
            "run-milestone",
            "run-artifact"
          ],
          "focus": [
            "run",
            "milestone",
            "artifact"
          ],
          "actor": "agent-a",
          "story": {
            "action": "SAVE",
            "actor": "Agent A",
            "headline": "Save the checkpoint and test report.",
            "why": "Milestone records progress and a next-step plan. Artifact holds a reference to the test report for acceptance.",
            "changes": [
              {
                "entity": "Milestone",
                "from": "—",
                "to": "Saved"
              },
              {
                "entity": "Artifact",
                "from": "—",
                "to": "Attached"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "PREFLIGHT",
          "title": "Completion preflight",
          "detail": "run_completion_check validates lifecycle, current context, criteria, evidence refs and memory disposition.",
          "task": "in_progress",
          "assignment": "implementing",
          "run": "running",
          "id": "13-preflight",
          "transfers": [
            "run-completion",
            "context-completion",
            "artifact-completion"
          ],
          "focus": [
            "run",
            "completion",
            "context",
            "artifact"
          ],
          "actor": "agent-a",
          "story": {
            "action": "CHECK",
            "actor": "Morrows",
            "headline": "Check the reported result against the task criteria.",
            "why": "Morrows checks criterion reports, current context, and same-task artifact references—not whether the tests really passed.",
            "changes": [
              {
                "entity": "Completion",
                "from": "Not checked",
                "to": "Preflight"
              }
            ],
            "tone": "review"
          }
        },
        {
          "key": "COMPLETE",
          "title": "Atomic completion",
          "detail": "run_complete marks Run completed, releases Assignment, and sets executor Task=done.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "14-complete",
          "transfers": [
            "completion-task"
          ],
          "focus": [
            "completion",
            "task"
          ],
          "actor": "agent-a",
          "story": {
            "action": "FINISH",
            "actor": "Morrows",
            "headline": "Close the Run and Task atomically.",
            "why": "Morrows rechecks ownership and evidence, then atomically finishes Run, Assignment and Task. RuntimeScope cleanup follows.",
            "changes": [
              {
                "entity": "Task",
                "from": "In progress",
                "to": "Done"
              },
              {
                "entity": "Run",
                "from": "Running",
                "to": "Completed"
              }
            ],
            "tone": "normal"
          }
        },
        {
          "key": "CLEANUP",
          "title": "Runtime cleanup",
          "detail": "Execution capability/scope is terminalized; durable Task/Run history and provider continuity remain.",
          "task": "done",
          "assignment": "completed",
          "run": "completed",
          "id": "15-cleanup",
          "transfers": [
            "run-runtime"
          ],
          "focus": [
            "run",
            "runtime"
          ],
          "actor": "agent-a",
          "story": {
            "action": "RELEASE",
            "actor": "Morrows",
            "headline": "Execution stops. History stays.",
            "why": "RuntimeScope is terminalized. The Task, Run, checkpoint and evidence remain available.",
            "changes": [
              {
                "entity": "RuntimeScope",
                "from": "Run-owned",
                "to": "Closed"
              }
            ],
            "tone": "normal"
          }
        }
      ],
      "headline": "Runtime rescue",
      "description": "Task + Run stay. Rescue restores the execution plane; LSM is fallback only.",
      "jumpTo": 8,
      "jumpLabel": "Skip to failure →"
    }
  },
  "subflows": {
    "intake": {
      "title": "Claim & Human interview",
      "nodes": [
        {
          "id": "claim",
          "label": "Claim",
          "glyph": "T",
          "description": "Atomic creation of Assignment + intake Run"
        },
        {
          "id": "memory",
          "label": "Context read",
          "glyph": "C",
          "description": "Project Memory and ContextRevision"
        },
        {
          "id": "human",
          "label": "Human",
          "glyph": "H",
          "description": "Task-scoped interview messages"
        },
        {
          "id": "agent",
          "label": "Agent",
          "glyph": "A",
          "description": "Plan synthesis and interview finalize"
        },
        {
          "id": "gate",
          "label": "Phase gate",
          "glyph": "✓",
          "description": "Only implementing authorizes execution"
        }
      ],
      "edges": [
        {
          "id": "claim-memory",
          "source": "claim",
          "target": "memory"
        },
        {
          "id": "memory-agent",
          "source": "memory",
          "target": "agent"
        },
        {
          "id": "agent-human",
          "source": "agent",
          "target": "human"
        },
        {
          "id": "human-agent",
          "source": "human",
          "target": "agent"
        },
        {
          "id": "agent-gate",
          "source": "agent",
          "target": "gate"
        }
      ],
      "steps": [
        {
          "key": "CLAIM",
          "title": "Intake-only Run created",
          "detail": "Claim creates Assignment and Run together, without execution authority.",
          "transfers": [
            "claim-memory"
          ]
        },
        {
          "key": "CONTEXT",
          "title": "Context revision pinned",
          "detail": "Read saved task context and project memory before implementation.",
          "transfers": [
            "memory-agent"
          ]
        },
        {
          "key": "INTERVIEW",
          "title": "Ask unresolved questions",
          "detail": "Agent asks the Human only for material missing requirements.",
          "transfers": [
            "agent-human"
          ]
        },
        {
          "key": "DIALOGUE",
          "title": "Human responds",
          "detail": "Messages persist on the Task and the provider conversation resumes.",
          "transfers": [
            "human-agent"
          ]
        },
        {
          "key": "FINALIZE",
          "title": "Implementation authorized",
          "detail": "Finalize records understanding and plan; gate reaches implementing.",
          "transfers": [
            "agent-gate"
          ]
        }
      ]
    },
    "runtime": {
      "title": "Run-owned RuntimeScope",
      "nodes": [
        {
          "id": "run",
          "label": "Run",
          "glyph": "R",
          "description": "Owner of runtime authorization"
        },
        {
          "id": "guard",
          "label": "Guard",
          "glyph": "✓",
          "description": "Requires owned implementing Assignment"
        },
        {
          "id": "scope",
          "label": "RuntimeScope",
          "glyph": "◉",
          "description": "Idempotent Run-scoped execution capability"
        },
        {
          "id": "worker",
          "label": "Worker",
          "glyph": "W",
          "description": "Executes shell, file and background job operations"
        },
        {
          "id": "result",
          "label": "Result",
          "glyph": "E",
          "description": "Result goes back to the Agent"
        }
      ],
      "edges": [
        {
          "id": "run-guard",
          "source": "run",
          "target": "guard"
        },
        {
          "id": "guard-scope",
          "source": "guard",
          "target": "scope"
        },
        {
          "id": "scope-worker",
          "source": "scope",
          "target": "worker"
        },
        {
          "id": "worker-result",
          "source": "worker",
          "target": "result"
        }
      ],
      "steps": [
        {
          "key": "GATE",
          "title": "Check execution phase",
          "detail": "During intake the Run exists but has no execution authority.",
          "transfers": [
            "run-guard"
          ]
        },
        {
          "key": "BIND",
          "title": "Issue RuntimeScope",
          "detail": "After implementing, bind the idempotent morrows:run:<uuid> scope.",
          "transfers": [
            "guard-scope"
          ]
        },
        {
          "key": "EXECUTE",
          "title": "Dispatch to Worker",
          "detail": "morrow-runtime routes execution to its selected worker.",
          "transfers": [
            "scope-worker"
          ]
        },
        {
          "key": "RESULT",
          "title": "Persist result",
          "detail": "Job, shell or file results return to the Agent and Run.",
          "transfers": [
            "worker-result"
          ]
        }
      ]
    },
    "completion": {
      "title": "Completion preflight & commit",
      "nodes": [
        {
          "id": "run",
          "label": "Run",
          "glyph": "R",
          "description": "Candidate owned executor Run"
        },
        {
          "id": "context",
          "label": "Context",
          "glyph": "C",
          "description": "Current revision and unchanged criteria"
        },
        {
          "id": "evidence",
          "label": "Evidence",
          "glyph": "E",
          "description": "Same-Task artifacts and per-criterion reports"
        },
        {
          "id": "check",
          "label": "Preflight",
          "glyph": "✓",
          "description": "Read-only structural and ownership checks"
        },
        {
          "id": "commit",
          "label": "Atomic commit",
          "glyph": "T",
          "description": "Repeated validation under writer transaction"
        }
      ],
      "edges": [
        {
          "id": "run-check",
          "source": "run",
          "target": "check"
        },
        {
          "id": "context-check",
          "source": "context",
          "target": "check"
        },
        {
          "id": "evidence-check",
          "source": "evidence",
          "target": "check"
        },
        {
          "id": "check-commit",
          "source": "check",
          "target": "commit"
        }
      ],
      "steps": [
        {
          "key": "OWNER",
          "title": "Check Run lifecycle",
          "detail": "Run and Assignment must still be owned and eligible.",
          "transfers": [
            "run-check"
          ]
        },
        {
          "key": "CONTEXT",
          "title": "Check context and memory",
          "detail": "Read current ContextRevision and Project Memory disposition.",
          "transfers": [
            "context-check"
          ]
        },
        {
          "key": "EVIDENCE",
          "title": "Check acceptance references",
          "detail": "Every configured criterion needs passed rationale and same-task artifacts.",
          "transfers": [
            "evidence-check"
          ]
        },
        {
          "key": "COMMIT",
          "title": "Commit atomically",
          "detail": "run_complete repeats structural validation and finalizes Run, Assignment and Task.",
          "transfers": [
            "check-commit"
          ]
        }
      ]
    },
    "handoff": {
      "title": "Milestone handoff",
      "nodes": [
        {
          "id": "source",
          "label": "Source Run",
          "glyph": "R",
          "description": "Original agent Run"
        },
        {
          "id": "milestone",
          "label": "Milestone",
          "glyph": "M",
          "description": "Latest progress plus next-step plan"
        },
        {
          "id": "cleanup",
          "label": "Cleanup",
          "glyph": "◉",
          "description": "Predecessor execution terminalization"
        },
        {
          "id": "successor",
          "label": "Successor",
          "glyph": "B",
          "description": "New Agent + Assignment/Run"
        },
        {
          "id": "scope",
          "label": "New Scope",
          "glyph": "✓",
          "description": "Successor Run's new RuntimeScope"
        }
      ],
      "edges": [
        {
          "id": "source-milestone",
          "source": "source",
          "target": "milestone"
        },
        {
          "id": "source-cleanup",
          "source": "source",
          "target": "cleanup"
        },
        {
          "id": "milestone-successor",
          "source": "milestone",
          "target": "successor"
        },
        {
          "id": "cleanup-successor",
          "source": "cleanup",
          "target": "successor"
        },
        {
          "id": "successor-scope",
          "source": "successor",
          "target": "scope"
        }
      ],
      "steps": [
        {
          "key": "PIN",
          "title": "Pin latest Milestone",
          "detail": "Handoff records source Run's most recent checkpoint.",
          "transfers": [
            "source-milestone"
          ]
        },
        {
          "key": "TERMINATE",
          "title": "End old runtime",
          "detail": "Source ownership and execution capability must be released.",
          "transfers": [
            "source-cleanup"
          ]
        },
        {
          "key": "CLAIM",
          "title": "Successor claim",
          "detail": "New Agent reads recovery context; predecessor cleanup is required.",
          "transfers": [
            "milestone-successor",
            "cleanup-successor"
          ]
        },
        {
          "key": "RESUME",
          "title": "Authorize fresh scope",
          "detail": "New implementing Assignment starts a new Run-owned runtime.",
          "transfers": [
            "successor-scope"
          ]
        }
      ]
    }
  },
  "intro": {
    "headline": "One task. Multiple attempts. The work stays.",
    "description": "Morrows coordinates AI agents, retains task progress, and lets work continue when agents or workers change.",
    "terms": [
      {
        "name": "Task",
        "explain": "durable goal"
      },
      {
        "name": "Assignment",
        "explain": "owner + phase"
      },
      {
        "name": "Run",
        "explain": "one attempt"
      }
    ],
    "exampleTask": "Fix the task list that fails to refresh after completion"
  },
  "presentation": {
    "mode": "operational-tree",
    "desktop": [
      {
        "id": "records",
        "label": "DURABLE TASK RECORD",
        "hint": "survives agent and worker changes",
        "tone": "blue",
        "direction": "DOWN",
        "nodes": [
          "task",
          "context",
          "milestone",
          "artifact",
          "completion"
        ]
      },
      {
        "id": "actors",
        "label": "01  REQUEST & AGENT",
        "hint": "Human dialogue and the current agent",
        "tone": "purple",
        "direction": "RIGHT",
        "nodes": [
          "human",
          "collab",
          "agent-a",
          "agent-b"
        ]
      },
      {
        "id": "ownership",
        "label": "02  OWNERSHIP & RUN",
        "hint": "current attempt shown · previous runs remain",
        "tone": "blue",
        "direction": "RIGHT",
        "nodes": [
          "assignment",
          "run"
        ]
      },
      {
        "id": "execution",
        "label": "03  RUN-OWNED EXECUTION",
        "hint": "worker runs commands · LSM fallback only",
        "tone": "green",
        "direction": "RIGHT",
        "nodes": [
          "runtime",
          "worker",
          "lsm",
          "job-wait"
        ]
      }
    ],
    "tablet": [
      {
        "id": "actors",
        "label": "01  REQUEST & AGENT",
        "hint": "Human dialogue and the current agent",
        "tone": "purple",
        "direction": "RIGHT",
        "nodes": [
          "human",
          "collab",
          "agent-a",
          "agent-b"
        ]
      },
      {
        "id": "ownership",
        "label": "02  OWNERSHIP & RUN",
        "hint": "current attempt shown · previous runs remain",
        "tone": "blue",
        "direction": "RIGHT",
        "nodes": [
          "task",
          "assignment",
          "run"
        ]
      },
      {
        "id": "execution",
        "label": "03  RUN-OWNED EXECUTION",
        "hint": "worker runs commands · LSM fallback only",
        "tone": "green",
        "direction": "RIGHT",
        "nodes": [
          "runtime",
          "worker",
          "lsm",
          "job-wait"
        ]
      },
      {
        "id": "records",
        "label": "04  PERSISTENT EVIDENCE",
        "hint": "",
        "tone": "blue",
        "direction": "RIGHT",
        "nodes": [
          "context",
          "milestone",
          "artifact",
          "completion"
        ]
      }
    ]
  }
}
