{
  "manifest_version": 1,
  "partner": "demo-partner",
  "system": "demo-erp",
  "client": "demo-client",
  "run_id": "DEMO-INV-RUN-2",
  "kind": "RERUN",
  "engagement_kind": "DEMONSTRATION",
  "created_at": "2026-09-30T22:49:51+00:00",
  "tool": {
    "name": "money_machine.delivery",
    "version": "1"
  },
  "previous_run": {
    "run_id": "DEMO-INV-RUN-1",
    "result_fingerprint": "9ffd444a190e82e13f5f261d06925f5db578a6c717abae3303fed13c5bb0e3fb",
    "manifest_sha256": "27de50340fa5f47f84ec86968c5ecfbf3d5efadd226b5221b3b6bd9db34491c7",
    "delivered_at": null
  },
  "base": {
    "path": "partners/demo-partner/systems/demo-erp/base.toml",
    "sha256": "3773f56fb4d72c839eacb5f1d249ceb2c05270e8067f1bf27d98724cf01665f6",
    "template_set": "Demo ERP inventory import templates (synthetic)",
    "template_version": "2026.1"
  },
  "overlay": {
    "path": "partners/demo-partner/systems/demo-erp/clients/demo-client/overlay.toml",
    "sha256": "f4ec99c5d2c80fdce7790557a1395d607d39bb3dde641e92a9e159edb7a7f5ef",
    "declared_by": "Demo client: operations manager",
    "reference": "DEMO-INV-1"
  },
  "effective_contract": {
    "file": "effective_contract.toml",
    "sha256": "d59ac448345e4a268edf32d323243314b9a58666f44a185ee6311b9e4b6870fd"
  },
  "inputs": [
    {
      "dataset": "suppliers.csv",
      "path": "suppliers.csv",
      "bytes": 8043,
      "sha256": "f829149c00619f810276135c213a716514ec4e8d2ae11b496da8bfe1cbd9f596"
    },
    {
      "dataset": "items.csv",
      "path": "items.csv",
      "bytes": 102387,
      "sha256": "a4e11aa0933771f7b6ce58323de50c2a1632409665181cba9679cd65c7c3201a"
    },
    {
      "dataset": "stock_on_hand.csv",
      "path": "stock_on_hand.csv",
      "bytes": 208056,
      "sha256": "547d319c1dd52e25494a602a5ae73dd11859887a36195f9ca813fd10ec421630"
    }
  ],
  "engine": {
    "engine_id": "mm_data_readiness",
    "engine_version": 2
  },
  "ruleset_fingerprint": "1ec5c1f6dc0b67c22b5aadd7dbadc85b9b2187a74d7b8081a8c452f8902eb999",
  "result_fingerprint": "50d0277d10952fe0fef298e21291fdb6fddf63e774da64f654c0d5ce050ed012",
  "finding_counts": {
    "total": 11,
    "by_class": {
      "CROSS_FIELD_INCONSISTENCY": 2,
      "DUPLICATE_KEY": 1,
      "ORPHAN_REFERENCE": 5,
      "OUT_OF_RANGE": 2,
      "PROBABLE_DUPLICATE": 1
    },
    "by_severity": {
      "BLOCKING": 8,
      "HIGH": 3
    },
    "by_provenance": {
      "BUYER_DECLARED": 10,
      "OPERATOR_CONFIGURED": 1
    }
  },
  "readiness_signal": "BLOCKING_FINDINGS_PRESENT",
  "exception_instances": {
    "scheme": 1,
    "count": 11,
    "distinct": 11,
    "rows_sharing_a_finding_id": 0,
    "finding_id": "engine identity: file content + record reference + field + rule; new when a file changes; can repeat when rows share a key",
    "exception_instance_id": "one row in this run only; no meaning across runs"
  },
  "intake": [
    {
      "dataset": "items.csv",
      "verdict": "PASS",
      "delimiter_status": "MATCH"
    },
    {
      "dataset": "stock_on_hand.csv",
      "verdict": "PASS",
      "delimiter_status": "MATCH"
    },
    {
      "dataset": "suppliers.csv",
      "verdict": "PASS",
      "delimiter_status": "MATCH"
    }
  ],
  "rule_origins": {
    "BASE": 14,
    "BASE+CLIENT_LIST": 4,
    "OVERLAY": 2
  },
  "unsupported_checks": [
    "Cross-dataset value agreement",
    "Any comparison against the target system",
    "Totals across rows (for example journals that must balance)",
    "Multiplication checks (for example quantity x rate = amount)",
    "Excel workbook intake"
  ],
  "quality_gate": {
    "verdict": "NOT_ISSUE_READY",
    "outstanding": [
      "A10_CONCLUSION_WRITTEN",
      "M1_CORRECT_BUYER",
      "M2_CORRECT_DATASET",
      "M3_BUYER_RULES_TRACED",
      "M4_CONCLUSION_REVIEWED",
      "M5_LIMITS_READ",
      "M6_RETENTION_RECORDED"
    ],
    "automated_failures": []
  },
  "human_reviewer": null,
  "delivery_state": "DRAFT_AWAITING_REVIEW",
  "operator_actions": [
    "Copy readiness_note_DRAFT.md to readiness_note.md. Write sections 7 (readiness interpretation) and 8 (remediation priorities). Do not edit sections 1-6: they are generated, and QA refuses a note whose facts differ from the run.",
    "Confirm M1_CORRECT_BUYER: The report names the correct buyer and engagement reference.",
    "Confirm M2_CORRECT_DATASET: The files analysed are the files this buyer sent: names, received date and transfer method recorded.",
    "Confirm M3_BUYER_RULES_TRACED: Every BUYER_DECLARED rule traces to a written buyer instruction, and its source reference was checked.",
    "Confirm M4_CONCLUSION_REVIEWED: The executive conclusion was written by a person, reviewed, and reflects the BLOCKING and HIGH counts. No machine output stands in for it.",
    "Confirm M5_LIMITS_READ: The not-performed checks and limitations were read, and nothing in the covering message contradicts them.",
    "Confirm M6_RETENTION_RECORDED: A retention and deletion record exists for this engagement, with the agreed window and deletion date.",
    "DEMO-INV-RUN-1 has no delivery record; the included re-run is within 14 days of delivery of the first register.",
    "Then run QA: python -m money_machine.delivery qa --run-dir <this run> --confirmation <confirmation.json>."
  ],
  "timings_seconds": {
    "compile": 0.017,
    "inputs": 0.016,
    "preflight": 0.016,
    "engine": 0.259,
    "artifacts": 0.004,
    "gate": 0.003,
    "total": 0.366
  },
  "artifacts": {
    "OPERATOR_ACTIONS.md": "d9aca4a161eb392ca48dd6aad47caaaede84e9297b64ef9d7bb4c03c5cceae2b",
    "compile.json": "b65fc5b056331ec2d7a43f511296913e636b38e0853917c7c31adb89d66b287f",
    "effective_contract.toml": "d59ac448345e4a268edf32d323243314b9a58666f44a185ee6311b9e4b6870fd",
    "exception_register.csv": "8a4a9337d4814265d9ad33aefa2d113d748ffc56147fcd249e283cc30cba0eb0",
    "machine_output.json": "2417ac3be857b8c53855400b93d028790d3b8d6688a43c25fb76d0ab0535e841",
    "qa/confirmation_template.json": "b994a763e24b124c962cbd8170e3068e9609ff754dfb04b0a8ba506a3fa4b962",
    "qa/gate_initial.json": "0236b96fca4ed26dff5e089a962ea04f347321dfe995d3c336b068f481ac19b7",
    "readiness_note_DRAFT.md": "0e5d04ac13cdd55c8f2224551bec441e6c415f575b59a124018b8cac8d33564a"
  }
}
