{
  "tool_id": "art-524-source-arrival-freshness-register",
  "note": "golden_hash filled by golden-parity.test.mjs --update; output_payload verified against kernel compute() directly. Vector 1: all expected sources arrived on time and within their freshness threshold -- auto_pass. Vector 2: one expected source never arrived -- ABSENCE-INSTRUMENT case, reject regardless of the other source's clean state. Vector 3: no expected_sources declared at all -- the KILL CONDITION, did_not_run rather than a degraded report on the observed set.",
  "vectors": [
    {
      "name": "all_sources_current_auto_pass",
      "description": "Two expected sources, both arrived before their expected_as_of and well within their freshness_threshold_hours of the reference point -- fully current.",
      "policy_parameters": {
        "reference_as_of": 1000,
        "expected_sources": [
          {
            "source_id": "core-ledger-extract",
            "expected_as_of": 990,
            "freshness_threshold_hours": 50
          },
          {
            "source_id": "trade-blotter-feed",
            "expected_as_of": 995,
            "freshness_threshold_hours": 50
          }
        ],
        "observed_arrivals": [
          {
            "source_id": "core-ledger-extract",
            "arrived": true,
            "observed_as_of": 980
          },
          {
            "source_id": "trade-blotter-feed",
            "arrived": true,
            "observed_as_of": 985
          }
        ]
      },
      "output_payload": {
        "execution_state": "ran",
        "decision": "auto_pass",
        "reason": null,
        "source_count": 2,
        "sources": [
          {
            "source_id": "core-ledger-extract",
            "expected_as_of": 990,
            "freshness_threshold_hours": 50,
            "arrived": true,
            "observed_as_of": 980,
            "late": false,
            "stale": false,
            "source_status": "current"
          },
          {
            "source_id": "trade-blotter-feed",
            "expected_as_of": 995,
            "freshness_threshold_hours": 50,
            "arrived": true,
            "observed_as_of": 985,
            "late": false,
            "stale": false,
            "source_status": "current"
          }
        ],
        "missing_sources": [],
        "late_or_stale_sources": [],
        "unknown_freshness_sources": []
      },
      "golden_hash": "ff2362b70772c06e7f28fbb4014404584458e2d1430fe699b5be3829dad70c35"
    },
    {
      "name": "one_source_missing_reject",
      "description": "Two expected sources; one never arrived at all. A missing expected source rejects the run regardless of the other source's clean state -- the ABSENCE-INSTRUMENT check applied per source.",
      "policy_parameters": {
        "reference_as_of": 1000,
        "expected_sources": [
          {
            "source_id": "core-ledger-extract",
            "expected_as_of": 990,
            "freshness_threshold_hours": 50
          },
          {
            "source_id": "collateral-position-feed",
            "expected_as_of": 950,
            "freshness_threshold_hours": 50
          }
        ],
        "observed_arrivals": [
          {
            "source_id": "core-ledger-extract",
            "arrived": true,
            "observed_as_of": 980
          }
        ]
      },
      "output_payload": {
        "execution_state": "ran",
        "decision": "reject",
        "reason": null,
        "source_count": 2,
        "sources": [
          {
            "source_id": "core-ledger-extract",
            "expected_as_of": 990,
            "freshness_threshold_hours": 50,
            "arrived": true,
            "observed_as_of": 980,
            "late": false,
            "stale": false,
            "source_status": "current"
          },
          {
            "source_id": "collateral-position-feed",
            "expected_as_of": 950,
            "freshness_threshold_hours": 50,
            "arrived": false,
            "observed_as_of": null,
            "late": false,
            "stale": false,
            "source_status": "missing"
          }
        ],
        "missing_sources": [
          "collateral-position-feed"
        ],
        "late_or_stale_sources": [],
        "unknown_freshness_sources": []
      },
      "golden_hash": "9e580a913dc4d608ae47dc41b96fc69acbde4f58b0a072a9febe3286252db64c"
    },
    {
      "name": "no_expected_inventory_did_not_run",
      "description": "Caller supplied an observed_arrivals set but declared no expected-source inventory -- the KILL CONDITION. The node refuses to report on the observed set alone.",
      "policy_parameters": {
        "reference_as_of": 1000,
        "expected_sources": [],
        "observed_arrivals": [
          {
            "source_id": "core-ledger-extract",
            "arrived": true,
            "observed_as_of": 980
          }
        ]
      },
      "output_payload": {
        "execution_state": "did_not_run",
        "decision": null,
        "reason": "expected_source_inventory_not_declared",
        "source_count": 0,
        "sources": [],
        "missing_sources": [],
        "late_or_stale_sources": [],
        "unknown_freshness_sources": []
      },
      "golden_hash": "54b3a17e01e6ebbf9b9688776ae505be776b4bacd1ccf4d6d7a502e2d44b2525"
    }
  ]
}
