{
  "$comment": "The canonical current-action lines, per phase. A run writes one with `phase-tracker.sh now <phase> \"<line>\"`; the tracker caps it at 60 characters, the card prints it as `Now:`, the subject carries it last and the office shows it on the phase card. Angle brackets are runtime values. A phase that is working and has written none falls back to the name of its in-progress sub-step, so the surfaces are never blank; the lines here are what makes that fallback rare rather than the normal case.",
  "cap": 60,
  "phases": {
    "0": {
      "name": "Init",
      "lines": [
        "checking access and loading preferences",
        "checking service tokens",
        "reading task <id>",
        "reading linked pages and issues",
        "choosing the project and extra repos",
        "picking the base branch",
        "creating the workspace on <branch>",
        "working out the task type and test depth",
        "checking the task is clear enough to start",
        "waiting for your choice: <what is asked>"
      ]
    },
    "1": {
      "name": "Plan",
      "lines": [
        "loading project rules and past learnings",
        "capturing the design frames",
        "looking for existing code to reuse",
        "detecting the stack",
        "exploring the codebase (<n> explorers)",
        "writing the analysis document",
        "splitting the work into tasks",
        "reviewing the architecture",
        "checking the plan covers every requirement",
        "waiting for your plan approval",
        "revising the plan: <edit summary>"
      ]
    },
    "2": {
      "name": "Dev",
      "lines": [
        "reading the analysis and binding standards",
        "choosing the skills for this work",
        "<plan task title>",
        "writing the failing test",
        "confirming the test fails",
        "writing the code",
        "adding tests",
        "running the tests",
        "waiting for the build queue",
        "building",
        "saving a checkpoint commit",
        "building the component: <sub-phase name>",
        "checking the work against the plan",
        "capturing screenshots of the change",
        "simplifying the diff",
        "checking nothing outside the task changed",
        "verifying: build",
        "verifying: lint",
        "verifying: tests",
        "verifying: secret scan",
        "fixing review finding <i> of <n>: <title>"
      ]
    },
    "3": {
      "name": "Review",
      "lines": [
        "running the pre-review checks",
        "ranking the riskiest files",
        "review in progress: <n> reviewers",
        "review: <k> of <n> reviewers done",
        "security audit in progress",
        "comparing the screen to the design",
        "sorting the findings",
        "fixing <n> accepted findings (round <r> of <max>)",
        "awaiting local test (user)",
        "applying fix: <summary>"
      ]
    },
    "4": {
      "name": "Commit",
      "lines": [
        "checking every plan task is covered",
        "building all repos together",
        "writing the commit message",
        "committing <n> files",
        "pushing <branch>",
        "pushing <branch> (attempt <k> of <max>)",
        "writing the pull request description",
        "opening the pull request",
        "publishing screenshots",
        "cleaning up the workspace"
      ]
    },
    "5": {
      "name": "Report",
      "lines": [
        "waiting for your choice: where to send the report",
        "sending the report: <channel>",
        "writing the run log",
        "saving what this run learned",
        "printing the summary"
      ]
    }
  }
}
