{
  "format": "minctrl.process/v1",
  "graph": {
    "edges": [
      {
        "id": "e0___start____intake",
        "source": "__start__",
        "target": "intake"
      },
      {
        "id": "e1_intake__checks",
        "source": "intake",
        "target": "checks"
      },
      {
        "id": "e2_checks__eligibility",
        "source": "checks",
        "target": "eligibility"
      },
      {
        "id": "e3_checks__prepare",
        "source": "checks",
        "target": "prepare"
      },
      {
        "id": "e4_checks__screen",
        "source": "checks",
        "target": "screen"
      },
      {
        "id": "e5_eligibility__merge",
        "source": "eligibility",
        "target": "merge"
      },
      {
        "id": "e6_prepare__merge",
        "source": "prepare",
        "target": "merge"
      },
      {
        "id": "e7_screen__merge",
        "source": "screen",
        "target": "merge"
      },
      {
        "id": "e8_merge__verdict",
        "source": "merge",
        "target": "verdict"
      },
      {
        "id": "e9_verdict__autoassemble",
        "label": "eligible, low RFE risk",
        "source": "verdict",
        "target": "autoassemble"
      },
      {
        "id": "e10_verdict__buildrecord",
        "label": "borderline / high RFE / inadmissibility flag",
        "source": "verdict",
        "target": "buildrecord"
      },
      {
        "id": "e11_autoassemble__signoff",
        "source": "autoassemble",
        "target": "signoff"
      },
      {
        "id": "e12_buildrecord__signoff",
        "source": "buildrecord",
        "target": "signoff"
      },
      {
        "id": "e13_signoff__buildrecord",
        "label": "packet deficient - rework",
        "source": "signoff",
        "target": "buildrecord"
      },
      {
        "id": "e14_signoff__file",
        "label": "signed",
        "source": "signoff",
        "target": "file"
      },
      {
        "id": "e15_file__monitor",
        "source": "file",
        "target": "monitor"
      },
      {
        "id": "e16_monitor__buildrecord",
        "label": "RFE issued",
        "source": "monitor",
        "target": "buildrecord"
      }
    ],
    "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 the applicant documents (passport, I-94, supporting evidence)",
        "position": {
          "x": 0,
          "y": 120
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "ocr"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "checks",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Run independent case checks in parallel",
        "position": {
          "x": 0,
          "y": 240
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "eligibility",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "eligibility",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Check visa/benefit eligibility, priority date (DOS Visa Bulletin) and RFE risk",
        "position": {
          "x": 0,
          "y": 360
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "eligibility-check"
        ]
      },
      {
        "agent": "prepare",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "prepare",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Prepare the petition forms and evidence index (no legal advice issued)",
        "position": {
          "x": 0,
          "y": 480
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "eligibility-check"
        ]
      },
      {
        "agent": "eligibility",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "screen",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Screen for inadmissibility, prior misrepresentation/fraud and security flags",
        "position": {
          "x": 0,
          "y": 600
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "medium",
        "tools": [
          "eligibility-check"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "parallel",
        "human": null,
        "id": "merge",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Consolidate eligibility, packet and screening results",
        "position": {
          "x": 0,
          "y": 720
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "verdict",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Eligibility clear and RFE risk low?",
        "position": {
          "x": 0,
          "y": 840
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "prepare",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "autoassemble",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Auto-assemble the standard petition packet from the prepared forms",
        "position": {
          "x": 0,
          "y": 960
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "eligibility-check"
        ]
      },
      {
        "agent": "prepare",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "buildrecord",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Strengthen the record / draft waiver request for the borderline or flagged case",
        "position": {
          "x": 0,
          "y": 1080
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "medium",
        "tools": [
          "eligibility-check"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:attorney-of-record-signoff",
        "gateway": null,
        "human": "Licensed immigration attorney",
        "id": "signoff",
        "interrupt_before": true,
        "kind": "gate",
        "label": "A licensed immigration attorney of record (G-28) reviews and signs the petition",
        "position": {
          "x": 0,
          "y": 1200
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": "submit",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "file",
        "interrupt_before": false,
        "kind": "agent",
        "label": "File the petition with USCIS",
        "position": {
          "x": 0,
          "y": 1320
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": [
          "uscis-filing"
        ]
      },
      {
        "agent": "monitor",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "monitor",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Track the receipt, monitor status and surface any RFE",
        "position": {
          "x": 0,
          "y": 1440
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "uscis-filing: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": "5db0840585f500e9ad69580243e725eec384eb1d55d598408b179e37e5a0f6ba",
  "name": "Immigration-petition autopilot",
  "slug": "immigration",
  "source": "example",
  "version": null,
  "violations": []
}
