{
  "schema_version": 1,
  "id": "purchase-within-limit",
  "recorded_at": "2026-11-08T23:27:43Z",
  "scope": "Local gate tests with synthetic inputs. The browser replays recorded decisions; it does not execute a customer workflow.",
  "industry_boundary": "Screening against declared company rules. A passing screen still needs separate approval and a destination check; no order is placed or paid here.",
  "source": {
    "repository": "ecokure-runtime",
    "commit": "bd26ff185765ae214a60bfe631dd61170955c5a1",
    "gate": "ProcurementGate",
    "action": "screen"
  },
  "test": {
    "expected_verdict": "ALLOW",
    "observed_verdict": "ALLOW",
    "passed": true,
    "repeatable": true,
    "record_integrity": true,
    "network_connections": "blocked during generation"
  },
  "input": {
    "po": {
      "po_id": "PO-2026-0001",
      "policy_version": "proc-policy-synthetic-2026-10-22.1",
      "agent_id": "buyer-agent-01",
      "requester_id": "P-101",
      "supplier_id": "SUP-0042",
      "currency": "AUD",
      "amount": "4200.00",
      "cost_centre": "CC-310",
      "line_items": [
        {
          "sku": "SERVICE-1",
          "description": "Synthetic service",
          "quantity": 1,
          "unit_price": "4200.00"
        }
      ]
    },
    "rules": {
      "policy": {
        "policy_version": "proc-policy-synthetic-2026-10-22.1",
        "base_currency": "AUD",
        "fx": {
          "as_of": "2026-10-20",
          "max_age_days": 7,
          "rates": {
            "AUD": "1",
            "USD": "1.52",
            "GBP": "1.95",
            "EUR": "1.66",
            "NZD": "0.91",
            "JPY": "0.0102"
          }
        },
        "max_amount_any_currency": "10000000.00",
        "split_window_days": 30,
        "duplicate_window_days": 14,
        "near_duplicate_window_days": 14,
        "required_evidence": [
          "insurance",
          "abn_check",
          "sanctions_screen"
        ],
        "people": {
          "P-101": {
            "name": "Alex Rivera (P-101 synthetic)",
            "delegated_limit": "5000.00",
            "cost_centres": [
              "CC-310",
              "CC-320"
            ]
          },
          "P-102": {
            "name": "Sam Lee (P-102 synthetic)",
            "delegated_limit": "2000.00",
            "cost_centres": [
              "CC-320"
            ]
          },
          "P-201": {
            "name": "Jordan Patel (P-201 synthetic)",
            "delegated_limit": "50000.00",
            "cost_centres": [
              "CC-310",
              "CC-320",
              "CC-400"
            ]
          },
          "P-301": {
            "name": "Morgan Chen (P-301 synthetic)",
            "delegated_limit": "100000.00",
            "cost_centres": [
              "CC-310",
              "CC-320",
              "CC-400"
            ]
          }
        },
        "approval_chain": [
          {
            "person_id": "P-201",
            "title": "Procurement manager",
            "authority": "50000.00",
            "actiongate_role": "PO approver P-201"
          },
          {
            "person_id": "P-301",
            "title": "Finance director",
            "authority": "250000.00",
            "actiongate_role": "PO approver P-301"
          }
        ],
        "auto_approver": {
          "name": "EcoKure procurement policy (automatic)",
          "actiongate_role": "PO auto-approval within delegation"
        },
        "agents": {
          "buyer-agent-01": [
            "P-101",
            "P-102"
          ],
          "buyer-agent-02": [
            "P-201",
            "P-301"
          ]
        }
      },
      "suppliers": [
        {
          "supplier_id": "SUP-0042",
          "name": "Harbour Office Supplies (synthetic)",
          "status": "APPROVED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0042",
              "valid_until": "2027-06-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0042",
              "valid_until": "2027-01-31"
            },
            "sanctions_screen": {
              "ref": "SCR-SYN-0042",
              "result": "CLEAR",
              "valid_until": "2026-12-31"
            }
          }
        },
        {
          "supplier_id": "SUP-0077",
          "name": "Coastal Freight (synthetic)",
          "status": "APPROVED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0077",
              "valid_until": "2026-09-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0077",
              "valid_until": "2027-03-31"
            },
            "sanctions_screen": {
              "ref": "SCR-SYN-0077",
              "result": "CLEAR",
              "valid_until": "2026-12-31"
            }
          }
        },
        {
          "supplier_id": "SUP-0090",
          "name": "Northside IT (synthetic)",
          "status": "SUSPENDED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0090",
              "valid_until": "2027-06-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0090",
              "valid_until": "2027-06-30"
            },
            "sanctions_screen": {
              "ref": "SCR-SYN-0090",
              "result": "CLEAR",
              "valid_until": "2026-12-31"
            }
          }
        },
        {
          "supplier_id": "SUP-0105",
          "name": "Ridge Lab Equipment (synthetic)",
          "status": "APPROVED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0105",
              "valid_until": "2027-06-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0105",
              "valid_until": "2027-06-30"
            }
          }
        },
        {
          "supplier_id": "SUP-0120",
          "name": "Bayview Consulting (synthetic)",
          "status": "APPROVED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0120",
              "valid_until": "2027-06-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0120",
              "valid_until": "2027-06-30"
            },
            "sanctions_screen": {
              "ref": "SCR-SYN-0120",
              "result": "POTENTIAL_MATCH",
              "valid_until": "2026-12-31"
            }
          }
        },
        {
          "supplier_id": "SUP-0200",
          "name": "Lakeside Scientific (synthetic)",
          "status": "APPROVED",
          "evidence": {
            "insurance": {
              "ref": "INS-SYN-0200",
              "valid_until": "2027-06-30"
            },
            "abn_check": {
              "ref": "ABN-SYN-0200",
              "valid_until": "2027-06-30"
            },
            "sanctions_screen": {
              "ref": "SCR-SYN-0200",
              "result": "CLEAR",
              "valid_until": "2027-03-31"
            }
          }
        }
      ]
    },
    "history": [],
    "today": "2026-10-21"
  },
  "result": {
    "tool": "procurementgate",
    "system": "EcoKure ProcurementGate",
    "version": "0.1.0",
    "rule_set_version": "procurementgate@0.1.0",
    "action": "screen",
    "verdict": "ALLOW",
    "passed": true,
    "reason": "WITHIN_DELEGATION",
    "reasons": [
      {
        "code": "WITHIN_DELEGATION"
      }
    ],
    "decision_id": "pd-f2a473904e2bee5ebac94859c403ed73",
    "evaluated_on": "2026-10-21",
    "rules_sha256": "f3937023c4e995b76f7deb012edb93b671c558c0e543d10db2b624d6037fedd2",
    "facts": {
      "policy_version": "proc-policy-synthetic-2026-10-22.1",
      "base_currency": "AUD",
      "po_id": "PO-2026-0001",
      "agent_id": "buyer-agent-01",
      "requester_id": "P-101",
      "supplier_id": "SUP-0042",
      "currency": "AUD",
      "amount": "4200.00",
      "cost_centre": "CC-310",
      "po_digest": "780be7a1a8cb90156dea5a751e04424ecaca4fd40da5d0cee8d42c1f323292a3",
      "content_digest": "f2ec52f8510778986b541e90ff06939c395700a149e909fd3e9cc62610da116a",
      "near_digest": "9951338b2bb3be52d51b8ea6f91a0dce505ef25cb30f32090964f867d02bd20c",
      "amount_base": "4200.00",
      "fx_rate": "1",
      "fx_as_of": "2026-10-20",
      "requester_limit": "5000.00",
      "window_prior_total": "0.00",
      "window_total": "4200.00",
      "split_window_days": 30
    },
    "required_role": "PO auto-approval within delegation",
    "named_approver": {
      "name": "EcoKure procurement policy (automatic)",
      "automatic": true
    },
    "history_entry": {
      "decision_id": "pd-f2a473904e2bee5ebac94859c403ed73",
      "po_id": "PO-2026-0001",
      "requester_id": "P-101",
      "supplier_id": "SUP-0042",
      "amount_base": "4200.00",
      "content_digest": "f2ec52f8510778986b541e90ff06939c395700a149e909fd3e9cc62610da116a",
      "near_digest": "9951338b2bb3be52d51b8ea6f91a0dce505ef25cb30f32090964f867d02bd20c",
      "evaluated_on": "2026-10-21"
    },
    "actiongate": {
      "action_type": "commit_purchase_order",
      "target": "po:PO-2026-0001",
      "required_role": "PO auto-approval within delegation",
      "binding_inputs": {
        "decision_id": "pd-f2a473904e2bee5ebac94859c403ed73",
        "po_digest": "780be7a1a8cb90156dea5a751e04424ecaca4fd40da5d0cee8d42c1f323292a3",
        "policy_version": "proc-policy-synthetic-2026-10-22.1"
      }
    },
    "inputs": {
      "po": {
        "po_id": "PO-2026-0001",
        "policy_version": "proc-policy-synthetic-2026-10-22.1",
        "agent_id": "buyer-agent-01",
        "requester_id": "P-101",
        "supplier_id": "SUP-0042",
        "currency": "AUD",
        "amount": "4200.00",
        "cost_centre": "CC-310",
        "line_items": [
          {
            "sku": "SERVICE-1",
            "description": "Synthetic service",
            "quantity": 1,
            "unit_price": "4200.00"
          }
        ]
      },
      "today": "2026-10-21",
      "rules_sha256": "f3937023c4e995b76f7deb012edb93b671c558c0e543d10db2b624d6037fedd2",
      "history": [],
      "history_window": {
        "entries": 0,
        "sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
      }
    },
    "boundary": "ProcurementGate checks a proposed purchase order against the organisation's own declared rules: agent and requester delegation, cost centre, supplier register and evidence dates, exchange rates, delegated limits, split purchases and duplicates. It does not approve, commit or pay anything: ALLOW and REFER only say which approval ActionGate must obtain. It holds no supplier, sanctions or market data of its own; every fact comes from the declared rules, and a rule set that is wrong gives decisions that are wrong in the same way. Not legal, tax, accounting or procurement advice.",
    "model_override": false,
    "reproducibility": {
      "engine": "modules.dtl_registry.gates.procurementgate",
      "version": "0.1.0",
      "arithmetic": "decimal.Decimal on two-decimal strings; currency conversion rounds up to the cent",
      "hash_algorithm": "sha256 over canonical JSON (sorted keys, no spaces, UTF-8)",
      "certificate_scope": "every field except certificate_hash",
      "deterministic": true,
      "network": "none",
      "offline_verifier": "python -B -m modules.dtl_registry.gates.procurementgate.verify <response.json>"
    },
    "certificate_hash": "e2bdf7f2f5b98dff96353db3e4e794ec335b4889d062d522bd9b317f035a99f8"
  }
}
