{
  "format": "minctrl.process/v1",
  "graph": {
    "edges": [
      {
        "id": "e0___start____intake",
        "source": "__start__",
        "target": "intake"
      },
      {
        "id": "e1_intake__psplit",
        "source": "intake",
        "target": "psplit"
      },
      {
        "id": "e2_psplit__classify",
        "source": "psplit",
        "target": "classify"
      },
      {
        "id": "e3_psplit__complychk",
        "source": "psplit",
        "target": "complychk"
      },
      {
        "id": "e4_classify__pmerge",
        "source": "classify",
        "target": "pmerge"
      },
      {
        "id": "e5_complychk__pmerge",
        "source": "complychk",
        "target": "pmerge"
      },
      {
        "id": "e6_pmerge__authgate",
        "source": "pmerge",
        "target": "authgate"
      },
      {
        "id": "e7_authgate__autoclear",
        "label": "all positions at/above standard",
        "source": "authgate",
        "target": "autoclear"
      },
      {
        "id": "e8_authgate__disclose",
        "label": "position below standard / aggressive",
        "source": "authgate",
        "target": "disclose"
      },
      {
        "id": "e9_autoclear__presignoff",
        "source": "autoclear",
        "target": "presignoff"
      },
      {
        "id": "e10_disclose__presignoff",
        "source": "disclose",
        "target": "presignoff"
      },
      {
        "id": "e11_presignoff__classify",
        "label": "rejected — errors or missing docs",
        "source": "presignoff",
        "target": "classify"
      },
      {
        "id": "e12_presignoff__taxpayer8879",
        "label": "signed",
        "source": "presignoff",
        "target": "taxpayer8879"
      },
      {
        "id": "e13_taxpayer8879__efile",
        "source": "taxpayer8879",
        "target": "efile"
      },
      {
        "id": "e14_efile__monitor",
        "source": "efile",
        "target": "monitor"
      },
      {
        "id": "e15_monitor__classify",
        "label": "IRS rejected — correct and refile",
        "source": "monitor",
        "target": "classify"
      }
    ],
    "nodes": [
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "__start__",
        "interrupt_before": false,
        "kind": "terminal",
        "label": "Start",
        "position": {
          "x": 0,
          "y": 0
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "terminal",
        "tools": []
      },
      {
        "agent": "intake",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "intake",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Intake taxpayer documents (W-2 / 1099) and brokerage statements",
        "position": {
          "x": 0,
          "y": 120
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "doc-intake",
          "brokerage-feed"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "psplit",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Run preparation and compliance review concurrently",
        "position": {
          "x": 0,
          "y": 240
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "preparer",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "classify",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Compute the return and classify each position's authority (substantial authority / reasonable basis)",
        "position": {
          "x": 0,
          "y": 360
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "tax-engine"
        ]
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "complychk",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Check Circular 230 due diligence, §7216 data-use consent and jurisdiction scope",
        "position": {
          "x": 0,
          "y": 480
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "jurisdiction-db"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "pmerge",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Join prepared return with compliance findings",
        "position": {
          "x": 0,
          "y": 600
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "authgate",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Any position below the disclosure standard?",
        "position": {
          "x": 0,
          "y": 720
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "preparer",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "autoclear",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Auto-clear the position summary when all positions meet substantial-authority / reasonable-basis",
        "position": {
          "x": 0,
          "y": 840
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "tax-engine"
        ]
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "disclose",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Draft a Form 8275 disclosure or escalate the aggressive position for a partner decision",
        "position": {
          "x": 0,
          "y": 960
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "medium",
        "tools": [
          "jurisdiction-db"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:preparer-signoff",
        "gateway": null,
        "human": "Credentialed preparer (PTIN / EA / CPA)",
        "id": "presignoff",
        "interrupt_before": true,
        "kind": "gate",
        "label": "A credentialed preparer reviews the return; signs (PTIN) or rejects it back for rework",
        "position": {
          "x": 0,
          "y": 1080
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:taxpayer-8879",
        "gateway": null,
        "human": "Taxpayer",
        "id": "taxpayer8879",
        "interrupt_before": true,
        "kind": "gate",
        "label": "The taxpayer signs Form 8879 authorizing the e-file",
        "position": {
          "x": 0,
          "y": 1200
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": "filer",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "efile",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Transmit the signed return via IRS e-file (MeF)",
        "position": {
          "x": 0,
          "y": 1320
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": [
          "irs-efile"
        ]
      },
      {
        "agent": "monitor",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "monitor",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Track acceptance / rejection and handle notices; route a rejection back for correction",
        "position": {
          "x": 0,
          "y": 1440
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "irs-efile:check-status"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "__end__",
        "interrupt_before": false,
        "kind": "terminal",
        "label": "Done",
        "position": {
          "x": 0,
          "y": 1560
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "terminal",
        "tools": []
      }
    ]
  },
  "hash": "a6238e18d843bff8d6b2e17f05377e791d3bb143966a4a8f630052634283e0a7",
  "name": "Tax-prep autopilot",
  "slug": "tax",
  "source": "example",
  "version": null,
  "violations": []
}
