{
  "version": "2.0.0",
  "shared_verification": {
    "before_each_plan": "Confirm the exact report object key is absent through the object-storage provider.",
    "plan_review": "Inspect selected_validator_id, dispatcher_sha256, all provenance hashes, plan_sha256, and the exact proposed_run fields before approving execution.",
    "after_each_run": "Stat and download the exact provider object, compare the fixed report projection, and record its SHA-256.",
    "downstream_boundary": "Do not import, publish, replace, or delete downstream data as part of this sample."
  },
  "cases": [
    {
      "id": "retail-orders-pass",
      "delivery_id": "RETAIL-ORDERS-PASS-001",
      "report_key": "RETAIL-ORDERS-PASS-001-run-001",
      "expected_validator_id": "retail-orders-v1",
      "expected_dispatcher_sha256": "90509e93490da59e5a40dee03bbc4a02a605b5152131171378566fc737bbff79",
      "expected_plan_sha256": "9c7156c6e7a79697dcd16da649453954ad6854934014d45589243fd79967dbf8",
      "plan_argv": [
        "python3",
        "/delivery-rules/accept_delivery.py",
        "plan",
        "--delivery-id",
        "RETAIL-ORDERS-PASS-001",
        "--report-key",
        "RETAIL-ORDERS-PASS-001-run-001"
      ],
      "run_argv": [
        "python3",
        "/delivery-rules/accept_delivery.py",
        "run",
        "--delivery-id",
        "RETAIL-ORDERS-PASS-001",
        "--report-key",
        "RETAIL-ORDERS-PASS-001-run-001",
        "--validator-id",
        "retail-orders-v1",
        "--plan-sha256",
        "9c7156c6e7a79697dcd16da649453954ad6854934014d45589243fd79967dbf8"
      ],
      "expected_status": "PASS",
      "expected_failed_checks": [],
      "expected_next_action_code": "REVIEW_FOR_DOWNSTREAM_IMPORT"
    },
    {
      "id": "retail-refunds-business-rule-fail",
      "delivery_id": "RETAIL-REFUNDS-FAIL-001",
      "report_key": "RETAIL-REFUNDS-FAIL-001-run-001",
      "expected_validator_id": "retail-refunds-v1",
      "expected_dispatcher_sha256": "90509e93490da59e5a40dee03bbc4a02a605b5152131171378566fc737bbff79",
      "expected_plan_sha256": "52eba8fede82b2e7767c9a232ae1d44b278995b7d2bd216e2ef1ccf6f237e6f3",
      "plan_argv": [
        "python3",
        "/delivery-rules/accept_delivery.py",
        "plan",
        "--delivery-id",
        "RETAIL-REFUNDS-FAIL-001",
        "--report-key",
        "RETAIL-REFUNDS-FAIL-001-run-001"
      ],
      "run_argv": [
        "python3",
        "/delivery-rules/accept_delivery.py",
        "run",
        "--delivery-id",
        "RETAIL-REFUNDS-FAIL-001",
        "--report-key",
        "RETAIL-REFUNDS-FAIL-001-run-001",
        "--validator-id",
        "retail-refunds-v1",
        "--plan-sha256",
        "52eba8fede82b2e7767c9a232ae1d44b278995b7d2bd216e2ef1ccf6f237e6f3"
      ],
      "expected_status": "FAIL",
      "expected_failed_checks": ["reason_code_allowed_values"],
      "expected_next_action_code": "REQUEST_CORRECTED_DELIVERY"
    }
  ],
  "optional_cases": [
    {
      "id": "retail-inventory-no-approved-validator",
      "delivery_id": "RETAIL-INVENTORY-UNSUPPORTED-001",
      "report_key": "RETAIL-INVENTORY-UNSUPPORTED-001-run-001",
      "plan_argv": [
        "python3",
        "/delivery-rules/accept_delivery.py",
        "plan",
        "--delivery-id",
        "RETAIL-INVENTORY-UNSUPPORTED-001",
        "--report-key",
        "RETAIL-INVENTORY-UNSUPPORTED-001-run-001"
      ],
      "expected_status": "NOT_READY",
      "expected_dispatcher_sha256": "90509e93490da59e5a40dee03bbc4a02a605b5152131171378566fc737bbff79",
      "expected_reason_code": "NO_APPROVED_VALIDATOR",
      "expected_failed_checks": ["approved_validator_match"],
      "expected_next_action_code": "STOP_AND_ADD_APPROVED_VALIDATOR",
      "expected_proposed_run": null,
      "expected_report_written": false
    }
  ]
}
