{
  "format": "AnimateDiagram swimlane examples v1",
  "examples": [
    {
      "id": "refunds",
      "name": "Refund request",
      "boundary": "Begins at request submission; ends with denial or accepted refund instruction plus customer notification. Bank settlement is outside scope.",
      "lanes": [
        "Customer",
        "Support",
        "Finance"
      ],
      "nodes": [
        {
          "id": "R1",
          "owner": "Customer",
          "label": "Submit order ID and reason",
          "type": "task"
        },
        {
          "id": "R2",
          "owner": "Support",
          "label": "Check order and policy?",
          "type": "decision"
        },
        {
          "id": "R3",
          "owner": "Customer",
          "label": "Supply missing evidence",
          "type": "task"
        },
        {
          "id": "R4",
          "owner": "Support",
          "label": "Record denial and notify",
          "type": "end"
        },
        {
          "id": "R5",
          "owner": "Finance",
          "label": "Approve refundable amount?",
          "type": "decision"
        },
        {
          "id": "R6",
          "owner": "Finance",
          "label": "Submit refund; accepted?",
          "type": "decision"
        },
        {
          "id": "R7",
          "owner": "Support",
          "label": "Send reference and close",
          "type": "end"
        },
        {
          "id": "R8",
          "owner": "Finance",
          "label": "Investigate payment error",
          "type": "task"
        }
      ],
      "edges": [
        {
          "source": "R1",
          "target": "R2",
          "condition": "Request logged"
        },
        {
          "source": "R2",
          "target": "R3",
          "condition": "Evidence missing"
        },
        {
          "source": "R3",
          "target": "R2",
          "condition": "Evidence supplied"
        },
        {
          "source": "R2",
          "target": "R4",
          "condition": "Ineligible"
        },
        {
          "source": "R2",
          "target": "R5",
          "condition": "Eligible and complete"
        },
        {
          "source": "R5",
          "target": "R4",
          "condition": "Denied with reason"
        },
        {
          "source": "R5",
          "target": "R6",
          "condition": "Approved"
        },
        {
          "source": "R6",
          "target": "R7",
          "condition": "Processor accepted"
        },
        {
          "source": "R6",
          "target": "R8",
          "condition": "Processor error"
        },
        {
          "source": "R8",
          "target": "R6",
          "condition": "Issue resolved; safe to retry"
        }
      ],
      "handoffAcceptance": "Finance accepts a complete case only when the order, refundable amount and policy evidence are present. Support remains responsible for the customer response.",
      "exampleTrace": "R1 \u2192 R2 \u2192 R3 \u2192 R2 \u2192 R5 \u2192 R6 \u2192 R8 \u2192 R6 \u2192 R7. This trace includes missing evidence and a processor error before closure."
    },
    {
      "id": "customer-onboarding",
      "name": "Customer onboarding",
      "boundary": "Begins with setup data for an agreed scope; ends when support accepts the handover and confirms ownership.",
      "lanes": [
        "Customer admin",
        "Implementation",
        "Support"
      ],
      "nodes": [
        {
          "id": "O1",
          "owner": "Customer admin",
          "label": "Submit agreed setup data",
          "type": "task"
        },
        {
          "id": "O2",
          "owner": "Implementation",
          "label": "Check scope and completeness",
          "type": "decision"
        },
        {
          "id": "O3",
          "owner": "Customer admin",
          "label": "Correct data or scope",
          "type": "task"
        },
        {
          "id": "O4",
          "owner": "Implementation",
          "label": "Configure and run acceptance case",
          "type": "task"
        },
        {
          "id": "O5",
          "owner": "Customer admin",
          "label": "Accept workflow result?",
          "type": "decision"
        },
        {
          "id": "O6",
          "owner": "Implementation",
          "label": "Correct configuration",
          "type": "task"
        },
        {
          "id": "O7",
          "owner": "Support",
          "label": "Handover package complete?",
          "type": "decision"
        },
        {
          "id": "O8",
          "owner": "Implementation",
          "label": "Complete handover evidence",
          "type": "task"
        },
        {
          "id": "O9",
          "owner": "Support",
          "label": "Confirm support owner",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "O1",
          "target": "O2",
          "condition": "Setup package"
        },
        {
          "source": "O2",
          "target": "O3",
          "condition": "Incomplete"
        },
        {
          "source": "O3",
          "target": "O2",
          "condition": "Corrected"
        },
        {
          "source": "O2",
          "target": "O4",
          "condition": "Complete"
        },
        {
          "source": "O4",
          "target": "O5",
          "condition": "Ready for acceptance"
        },
        {
          "source": "O5",
          "target": "O6",
          "condition": "Rejected with specific issue"
        },
        {
          "source": "O6",
          "target": "O4",
          "condition": "Fixed"
        },
        {
          "source": "O5",
          "target": "O7",
          "condition": "Accepted"
        },
        {
          "source": "O7",
          "target": "O8",
          "condition": "Missing evidence"
        },
        {
          "source": "O8",
          "target": "O7",
          "condition": "Package complete"
        },
        {
          "source": "O7",
          "target": "O9",
          "condition": "Accepted"
        }
      ],
      "handoffAcceptance": "The implementation-to-support handoff includes accepted workflow evidence, configuration and open issues. A kickoff meeting alone does not satisfy it.",
      "exampleTrace": "O1 \u2192 O2 \u2192 O4 \u2192 O5 \u2192 O6 \u2192 O4 \u2192 O5 \u2192 O7 \u2192 O9. Customer rejection returns to configuration, rather than disappearing into a generic \u201creview\u201d box."
    },
    {
      "id": "hiring",
      "name": "Hiring and offer approval",
      "boundary": "Begins with a candidate for an approved role; ends with an accepted offer or a recorded decline. New-role authorization is separate.",
      "lanes": [
        "Recruiter",
        "Hiring manager",
        "Candidate"
      ],
      "nodes": [
        {
          "id": "H1",
          "owner": "Recruiter",
          "label": "Meets role scorecard?",
          "type": "decision"
        },
        {
          "id": "H2",
          "owner": "Recruiter",
          "label": "Send decline and record reason",
          "type": "end"
        },
        {
          "id": "H3",
          "owner": "Hiring manager",
          "label": "Interview evidence supports hire?",
          "type": "decision"
        },
        {
          "id": "H4",
          "owner": "Recruiter",
          "label": "Resolve missing evaluation evidence",
          "type": "task"
        },
        {
          "id": "H5",
          "owner": "Hiring manager",
          "label": "Authorize offer within band",
          "type": "task"
        },
        {
          "id": "H6",
          "owner": "Candidate",
          "label": "Accept offer?",
          "type": "decision"
        },
        {
          "id": "H7",
          "owner": "Recruiter",
          "label": "Review counteroffer or reopen search",
          "type": "decision"
        },
        {
          "id": "H8",
          "owner": "Recruiter",
          "label": "Record accepted offer for onboarding",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "H1",
          "target": "H2",
          "condition": "Not qualified"
        },
        {
          "source": "H1",
          "target": "H3",
          "condition": "Qualified"
        },
        {
          "source": "H3",
          "target": "H2",
          "condition": "Do not proceed"
        },
        {
          "source": "H3",
          "target": "H4",
          "condition": "Evidence incomplete"
        },
        {
          "source": "H4",
          "target": "H3",
          "condition": "Evidence ready"
        },
        {
          "source": "H3",
          "target": "H5",
          "condition": "Proceed"
        },
        {
          "source": "H5",
          "target": "H6",
          "condition": "Authorized offer"
        },
        {
          "source": "H6",
          "target": "H8",
          "condition": "Accept"
        },
        {
          "source": "H6",
          "target": "H7",
          "condition": "Decline or counter"
        },
        {
          "source": "H7",
          "target": "H5",
          "condition": "Revised offer allowed"
        },
        {
          "source": "H7",
          "target": "H1",
          "condition": "Reopen candidate search"
        }
      ],
      "handoffAcceptance": "The manager receives evidence against the scorecard, not merely a calendar invitation. The recruiter receives an authorized offer before contacting the candidate.",
      "exampleTrace": "H1 \u2192 H3 \u2192 H4 \u2192 H3 \u2192 H5 \u2192 H6 \u2192 H7 \u2192 H5 \u2192 H6 \u2192 H8. A counteroffer repeats authorization; it does not bypass the manager."
    },
    {
      "id": "purchase-approval",
      "name": "Purchase approval",
      "boundary": "Begins with a purchase request; ends with an issued order or a returned denial. Delivery and payment are separate.",
      "lanes": [
        "Requester",
        "Procurement",
        "Budget owner"
      ],
      "nodes": [
        {
          "id": "P1",
          "owner": "Requester",
          "label": "Submit specification and quote",
          "type": "task"
        },
        {
          "id": "P2",
          "owner": "Procurement",
          "label": "Request complete?",
          "type": "decision"
        },
        {
          "id": "P3",
          "owner": "Requester",
          "label": "Add missing detail",
          "type": "task"
        },
        {
          "id": "P4",
          "owner": "Budget owner",
          "label": "Approve spend and authority?",
          "type": "decision"
        },
        {
          "id": "P5",
          "owner": "Procurement",
          "label": "Record rejection and return reason",
          "type": "end"
        },
        {
          "id": "P6",
          "owner": "Procurement",
          "label": "Supplier valid for order?",
          "type": "decision"
        },
        {
          "id": "P7",
          "owner": "Requester",
          "label": "Resolve supplier or specification issue",
          "type": "task"
        },
        {
          "id": "P8",
          "owner": "Procurement",
          "label": "Send purchase order and record commitment",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "P1",
          "target": "P2",
          "condition": "Request"
        },
        {
          "source": "P2",
          "target": "P3",
          "condition": "Incomplete"
        },
        {
          "source": "P3",
          "target": "P2",
          "condition": "Resubmitted"
        },
        {
          "source": "P2",
          "target": "P4",
          "condition": "Complete"
        },
        {
          "source": "P4",
          "target": "P5",
          "condition": "Denied"
        },
        {
          "source": "P4",
          "target": "P6",
          "condition": "Approved"
        },
        {
          "source": "P6",
          "target": "P7",
          "condition": "Validation failed"
        },
        {
          "source": "P7",
          "target": "P2",
          "condition": "Material change: review again"
        },
        {
          "source": "P6",
          "target": "P8",
          "condition": "Supplier valid"
        }
      ],
      "handoffAcceptance": "A material quote or specification change goes back to the completeness check and budget approval. Approval of one version does not authorize every revision.",
      "exampleTrace": "P1 \u2192 P2 \u2192 P4 \u2192 P6 \u2192 P7 \u2192 P2 \u2192 P4 \u2192 P6 \u2192 P8. Supplier validation triggers a revised request and a fresh approval."
    },
    {
      "id": "incident-response",
      "name": "Service incident response",
      "boundary": "Begins at an alert; ends at validated recovery, customer update and assigned follow-up actions. Permanent engineering changes are tracked separately.",
      "lanes": [
        "Responder",
        "Incident lead",
        "Communications"
      ],
      "nodes": [
        {
          "id": "I1",
          "owner": "Responder",
          "label": "Customer impact confirmed?",
          "type": "decision"
        },
        {
          "id": "I2",
          "owner": "Responder",
          "label": "Record false alarm and close",
          "type": "end"
        },
        {
          "id": "I3",
          "owner": "Incident lead",
          "label": "Declare incident and assign owners",
          "type": "task"
        },
        {
          "id": "I4",
          "owner": "Communications",
          "label": "Publish initial confirmed status",
          "type": "task"
        },
        {
          "id": "I5",
          "owner": "Responder",
          "label": "Mitigation restored service?",
          "type": "decision"
        },
        {
          "id": "I6",
          "owner": "Incident lead",
          "label": "Choose next mitigation or rollback",
          "type": "task"
        },
        {
          "id": "I7",
          "owner": "Communications",
          "label": "Publish recovery status",
          "type": "task"
        },
        {
          "id": "I8",
          "owner": "Incident lead",
          "label": "Confirm follow-up owners and close",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "I1",
          "target": "I2",
          "condition": "No incident"
        },
        {
          "source": "I1",
          "target": "I3",
          "condition": "Customer impact confirmed"
        },
        {
          "source": "I3",
          "target": "I4",
          "condition": "Confirmed impact and message owner"
        },
        {
          "source": "I4",
          "target": "I5",
          "condition": "Status published; mitigation continues"
        },
        {
          "source": "I5",
          "target": "I6",
          "condition": "Not recovered"
        },
        {
          "source": "I6",
          "target": "I5",
          "condition": "Next approved action"
        },
        {
          "source": "I5",
          "target": "I7",
          "condition": "Recovery validated"
        },
        {
          "source": "I7",
          "target": "I8",
          "condition": "Recovery communicated"
        }
      ],
      "handoffAcceptance": "The lead owns prioritization and closure; the responder validates recovery. This simplified map sequences the first status update before the mitigation checkpoint; investigation may continue while communications prepares it.",
      "exampleTrace": "I1 \u2192 I3 \u2192 I4 \u2192 I5 \u2192 I6 \u2192 I5 \u2192 I7 \u2192 I8. A failed mitigation loops back to technical work, not to a premature recovery announcement."
    },
    {
      "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."
    },
    {
      "id": "invoice-payment",
      "name": "Invoice payment",
      "boundary": "Begins at invoice receipt; ends at accepted payment instruction and remittance or a recorded dispute. Settlement is outside the boundary.",
      "lanes": [
        "Supplier",
        "Accounts payable",
        "Approver"
      ],
      "nodes": [
        {
          "id": "V1",
          "owner": "Supplier",
          "label": "Submit invoice and order reference",
          "type": "task"
        },
        {
          "id": "V2",
          "owner": "Accounts payable",
          "label": "Invoice matches order and receipt?",
          "type": "decision"
        },
        {
          "id": "V3",
          "owner": "Supplier",
          "label": "Correct invoice or provide evidence",
          "type": "task"
        },
        {
          "id": "V4",
          "owner": "Approver",
          "label": "Authorize payment?",
          "type": "decision"
        },
        {
          "id": "V5",
          "owner": "Accounts payable",
          "label": "Record dispute and notify supplier",
          "type": "end"
        },
        {
          "id": "V6",
          "owner": "Accounts payable",
          "label": "Submit payment; accepted?",
          "type": "decision"
        },
        {
          "id": "V7",
          "owner": "Accounts payable",
          "label": "Investigate payment rejection",
          "type": "task"
        },
        {
          "id": "V8",
          "owner": "Accounts payable",
          "label": "Send remittance and update ledger",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "V1",
          "target": "V2",
          "condition": "Invoice received"
        },
        {
          "source": "V2",
          "target": "V3",
          "condition": "Mismatch"
        },
        {
          "source": "V3",
          "target": "V2",
          "condition": "Corrected invoice"
        },
        {
          "source": "V2",
          "target": "V4",
          "condition": "Match"
        },
        {
          "source": "V4",
          "target": "V5",
          "condition": "Disputed or denied"
        },
        {
          "source": "V4",
          "target": "V6",
          "condition": "Authorized"
        },
        {
          "source": "V6",
          "target": "V7",
          "condition": "Instruction rejected"
        },
        {
          "source": "V7",
          "target": "V6",
          "condition": "Cause resolved; duplicate checked"
        },
        {
          "source": "V6",
          "target": "V8",
          "condition": "Instruction accepted"
        }
      ],
      "handoffAcceptance": "The approver receives match evidence. Accounts payable must check for a prior accepted instruction before retrying a payment with an uncertain result.",
      "exampleTrace": "V1 \u2192 V2 \u2192 V3 \u2192 V2 \u2192 V4 \u2192 V6 \u2192 V7 \u2192 V6 \u2192 V8. The retry requires a duplicate check, not just another click."
    },
    {
      "id": "content-approval",
      "name": "Content approval",
      "boundary": "Begins with a draft package; ends with the public route verified. A preview approval and a live publication are different states.",
      "lanes": [
        "Writer",
        "Editor",
        "Publisher"
      ],
      "nodes": [
        {
          "id": "C1",
          "owner": "Writer",
          "label": "Submit draft with sources and assets",
          "type": "task"
        },
        {
          "id": "C2",
          "owner": "Editor",
          "label": "Approve argument and evidence?",
          "type": "decision"
        },
        {
          "id": "C3",
          "owner": "Writer",
          "label": "Resolve editorial revisions",
          "type": "task"
        },
        {
          "id": "C4",
          "owner": "Publisher",
          "label": "Page layout and assets accepted?",
          "type": "decision"
        },
        {
          "id": "C5",
          "owner": "Writer",
          "label": "Resolve missing copy or asset rights",
          "type": "task"
        },
        {
          "id": "C6",
          "owner": "Publisher",
          "label": "Publish; public route verified?",
          "type": "decision"
        },
        {
          "id": "C7",
          "owner": "Publisher",
          "label": "Correct release or restore prior version",
          "type": "task"
        },
        {
          "id": "C8",
          "owner": "Publisher",
          "label": "Record verified article and revision",
          "type": "end"
        }
      ],
      "edges": [
        {
          "source": "C1",
          "target": "C2",
          "condition": "Review package"
        },
        {
          "source": "C2",
          "target": "C3",
          "condition": "Changes requested"
        },
        {
          "source": "C3",
          "target": "C2",
          "condition": "Revised draft"
        },
        {
          "source": "C2",
          "target": "C4",
          "condition": "Approved"
        },
        {
          "source": "C4",
          "target": "C5",
          "condition": "Copy or rights issue"
        },
        {
          "source": "C5",
          "target": "C2",
          "condition": "Changed material: review"
        },
        {
          "source": "C4",
          "target": "C6",
          "condition": "Layout accepted"
        },
        {
          "source": "C6",
          "target": "C7",
          "condition": "Route or asset failure"
        },
        {
          "source": "C7",
          "target": "C6",
          "condition": "Corrected release"
        },
        {
          "source": "C6",
          "target": "C8",
          "condition": "Verified"
        }
      ],
      "handoffAcceptance": "The publisher receives approved copy plus asset permissions and accessible descriptions. Material copy changes return through editorial approval.",
      "exampleTrace": "C1 \u2192 C2 \u2192 C4 \u2192 C5 \u2192 C2 \u2192 C4 \u2192 C6 \u2192 C7 \u2192 C6 \u2192 C8. Editorial and release failures have different return paths."
    }
  ]
}
