{
  "format": "minctrl.process/v1",
  "graph": {
    "edges": [
      {
        "id": "e0___start____intake",
        "source": "__start__",
        "target": "intake"
      },
      {
        "id": "e1_intake__draft",
        "source": "intake",
        "target": "draft"
      },
      {
        "id": "e2_draft__classify",
        "source": "draft",
        "target": "classify"
      },
      {
        "id": "e3_classify__conflict_gw",
        "source": "classify",
        "target": "conflict_gw"
      },
      {
        "id": "e4_conflict_gw__draft",
        "label": "conflict / privilege / jurisdiction issue — rework",
        "source": "conflict_gw",
        "target": "draft"
      },
      {
        "id": "e5_conflict_gw__scope_gw",
        "label": "clean — proceed",
        "source": "conflict_gw",
        "target": "scope_gw"
      },
      {
        "id": "e6_scope_gw__autoclear",
        "label": "standard transactional doc",
        "source": "scope_gw",
        "target": "autoclear"
      },
      {
        "id": "e7_scope_gw__stage",
        "label": "advice-shaped output",
        "source": "scope_gw",
        "target": "stage"
      },
      {
        "id": "e8_autoclear__batch_attest",
        "source": "autoclear",
        "target": "batch_attest"
      },
      {
        "id": "e9_batch_attest__sign",
        "source": "batch_attest",
        "target": "sign"
      },
      {
        "id": "e10_stage__signoff",
        "source": "stage",
        "target": "signoff"
      },
      {
        "id": "e11_signoff__verdict_gw",
        "source": "signoff",
        "target": "verdict_gw"
      },
      {
        "id": "e12_verdict_gw__draft",
        "label": "rework requested",
        "source": "verdict_gw",
        "target": "draft"
      },
      {
        "id": "e13_verdict_gw__sign",
        "label": "approved",
        "source": "verdict_gw",
        "target": "sign"
      },
      {
        "id": "e14_sign__monitor",
        "source": "sign",
        "target": "monitor"
      },
      {
        "id": "e15_batch_attest__monitor",
        "source": "batch_attest",
        "target": "monitor"
      },
      {
        "id": "e16_monitor____end__",
        "source": "monitor",
        "target": "__end__"
      }
    ],
    "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 request and matter documents; capture jurisdiction, parties and matter type",
        "position": {
          "x": 0,
          "y": 120
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "doc-store",
          "matter-mgmt"
        ]
      },
      {
        "agent": "drafter",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "draft",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Draft / redline from the clause library for the captured jurisdiction",
        "position": {
          "x": 0,
          "y": 240
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "clause-library",
          "jurisdiction-db"
        ]
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "classify",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Classify information vs advice, run conflicts check, test privilege and jurisdiction scope",
        "position": {
          "x": 0,
          "y": 360
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "medium",
        "tools": [
          "conflict-db",
          "jurisdiction-db"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "conflict_gw",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Conflict / privilege / out-of-jurisdiction issue found?",
        "position": {
          "x": 0,
          "y": 480
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "scope_gw",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Advice-shaped output, or standard transactional doc?",
        "position": {
          "x": 0,
          "y": 600
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "autoclear",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Standard transactional doc: auto-clear against the playbook, assemble the execution packet — a reversible, in-policy action",
        "position": {
          "x": 0,
          "y": 720
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "clause-library",
          "matter-mgmt"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:standard-batch-attestation",
        "gateway": null,
        "human": "Supervising attorney (matter owner)",
        "id": "batch_attest",
        "interrupt_before": true,
        "kind": "gate",
        "label": "Counsel batch-attests the auto-cleared standard packet is within the approved playbook before any e-signature",
        "position": {
          "x": 0,
          "y": 840
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": "compliance",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "stage",
        "interrupt_before": false,
        "kind": "agent",
        "label": "Advice-shaped output: stage the matter, attach the conflicts/privilege memo and the proposed redline for attorney review",
        "position": {
          "x": 0,
          "y": 960
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "medium",
        "tools": [
          "matter-mgmt",
          "conflict-db"
        ]
      },
      {
        "agent": null,
        "confidential": false,
        "gate": "gate:attorney-signoff",
        "gateway": null,
        "human": "Licensed attorney of record",
        "id": "signoff",
        "interrupt_before": true,
        "kind": "gate",
        "label": "A licensed attorney reviews advice-shaped output and signs off, or sends it back for rework, before it reaches the client",
        "position": {
          "x": 0,
          "y": 1080
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": []
      },
      {
        "agent": null,
        "confidential": false,
        "gate": null,
        "gateway": "exclusive",
        "human": null,
        "id": "verdict_gw",
        "interrupt_before": false,
        "kind": "gateway",
        "label": "Attorney verdict?",
        "position": {
          "x": 0,
          "y": 1200
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "gateway",
        "tools": []
      },
      {
        "agent": "signer",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "sign",
        "interrupt_before": false,
        "kind": "agent",
        "label": "E-sign permitted documents with intent + tamper-evident audit trail (excluded docs blocked)",
        "position": {
          "x": 0,
          "y": 1320
        },
        "reversible": false,
        "sla": null,
        "sla_spec": null,
        "tier": "high",
        "tools": [
          "e-signature"
        ]
      },
      {
        "agent": "monitor",
        "confidential": false,
        "gate": null,
        "gateway": null,
        "human": null,
        "id": "monitor",
        "interrupt_before": false,
        "kind": "agent",
        "label": "File the matter under retention with legal-hold awareness; log dispositions for privilege and audit",
        "position": {
          "x": 0,
          "y": 1440
        },
        "reversible": true,
        "sla": null,
        "sla_spec": null,
        "tier": "low",
        "tools": [
          "matter-mgmt"
        ]
      },
      {
        "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": "76080c098c9249ffb61a37aa67bfca2f3fae817bfa3b80904ba8eccd861c48c7",
  "name": "Legal-document autopilot",
  "slug": "legaltech",
  "source": "example",
  "version": null,
  "violations": []
}
