{
  "id": "software-release",
  "name": "Software release",
  "boundary": "Begins with a reviewable change; ends with a verified release or a held candidate. A rollback is recovery, not a successful release.",
  "lanes": [
    "Developer",
    "Reviewer",
    "Release owner"
  ],
  "nodes": [
    {
      "id": "S1",
      "owner": "Developer",
      "label": "Submit tested change and release notes",
      "type": "task"
    },
    {
      "id": "S2",
      "owner": "Reviewer",
      "label": "Approve code and checks?",
      "type": "decision"
    },
    {
      "id": "S3",
      "owner": "Developer",
      "label": "Revise change and rerun checks",
      "type": "task"
    },
    {
      "id": "S4",
      "owner": "Release owner",
      "label": "Deploy candidate; checks pass?",
      "type": "decision"
    },
    {
      "id": "S5",
      "owner": "Release owner",
      "label": "Roll back and record failure",
      "type": "task"
    },
    {
      "id": "S6",
      "owner": "Developer",
      "label": "Investigate failed candidate",
      "type": "task"
    },
    {
      "id": "S7",
      "owner": "Release owner",
      "label": "Confirm production checks and release",
      "type": "end"
    },
    {
      "id": "S8",
      "owner": "Release owner",
      "label": "Hold candidate with named blocker",
      "type": "end"
    }
  ],
  "edges": [
    {
      "source": "S1",
      "target": "S2",
      "condition": "Review package"
    },
    {
      "source": "S2",
      "target": "S3",
      "condition": "Changes requested"
    },
    {
      "source": "S3",
      "target": "S2",
      "condition": "Updated change"
    },
    {
      "source": "S2",
      "target": "S4",
      "condition": "Approved"
    },
    {
      "source": "S4",
      "target": "S5",
      "condition": "Verification failed"
    },
    {
      "source": "S5",
      "target": "S6",
      "condition": "Rollback complete"
    },
    {
      "source": "S6",
      "target": "S3",
      "condition": "Fix available"
    },
    {
      "source": "S4",
      "target": "S7",
      "condition": "Verification passed"
    },
    {
      "source": "S4",
      "target": "S8",
      "condition": "External blocker; no release"
    }
  ],
  "handoffAcceptance": "The release owner receives the approved version, check results and rollback procedure. Approval becomes stale when the code changes.",
  "exampleTrace": "S1 \u2192 S2 \u2192 S4 \u2192 S5 \u2192 S6 \u2192 S3 \u2192 S2 \u2192 S4 \u2192 S7. The repair returns through review before redeployment."
}
