{
  "tool_id": "art-678-consultation-response-tracker",
  "note": "Golden vectors authored by CONSULT-TRACKER-BUILD-1 per CONSULT-TRACKER-BUILD-SPEC.md. Vector 1 is the spec canonical preimage; its execution_hash pins 0d8bb36fc83e68f07e87f6ac08cb6f98e3f79a617c2dae2ca53826d136687b82. Vector 2 is the opposite-verdict vector (ALL_RESPONDED). All dates are declared inputs; no runtime clock anywhere. human_sign_off: PENDING.",
  "vectors": [
    {
      "name": "spec-canonical-preimage (parity pin 0d8bb36f)",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "C-1",
            "closes": "2026-10-21",
            "responded": false
          },
          {
            "id": "C-2",
            "closes": "2026-08-30",
            "responded": false
          }
        ]
      },
      "output_payload": {
        "open": 1,
        "closed_unresponded": 1,
        "missed": [
          "C-2"
        ],
        "days_to_next_close": 48,
        "trace": "C-2 closed 2026-08-30 before as_of with no response; next close 2026-10-21 is 48 days out",
        "overall": "ATTENTION_REQUIRED"
      },
      "golden_hash": "0d8bb36fc83e68f07e87f6ac08cb6f98e3f79a617c2dae2ca53826d136687b82"
    },
    {
      "name": "opposite-verdict all responded",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "A",
            "closes": "2026-08-01",
            "responded": true
          },
          {
            "id": "B",
            "closes": "2026-12-01",
            "responded": true
          }
        ]
      },
      "output_payload": {
        "open": 1,
        "closed_unresponded": 0,
        "missed": [],
        "days_to_next_close": null,
        "trace": "all 2 declared consultations responded as of 2026-09-03",
        "overall": "ALL_RESPONDED"
      },
      "golden_hash": "a8f9ba89264012d23c882593159e687eccd1aa62ff0e8d56506fb7bb5ede3d55"
    },
    {
      "name": "on-track no missed next close 15 days",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "O1",
            "closes": "2026-09-18",
            "responded": false
          },
          {
            "id": "O2",
            "closes": "2026-11-30",
            "responded": true
          },
          {
            "id": "D1",
            "closes": "2026-08-15",
            "responded": true
          }
        ]
      },
      "output_payload": {
        "open": 2,
        "closed_unresponded": 0,
        "missed": [],
        "days_to_next_close": 15,
        "trace": "next close 2026-09-18 is 15 days out",
        "overall": "ON_TRACK"
      },
      "golden_hash": "b4030d80d85e50da3b5219a4a52edd5e3c17dd14d717dbc958bcc37243d1da38"
    },
    {
      "name": "boundary closes equals as_of is still open",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "E",
            "closes": "2026-09-03",
            "responded": false
          }
        ]
      },
      "output_payload": {
        "open": 1,
        "closed_unresponded": 0,
        "missed": [],
        "days_to_next_close": 0,
        "trace": "next close 2026-09-03 is 0 days out",
        "overall": "ON_TRACK"
      },
      "golden_hash": "cc624a53340213d8c47acf7b0db945ed23922879b72aa15e646173f03ac30e5a"
    },
    {
      "name": "attention missed close with no future unresponded open",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "M",
            "closes": "2026-08-01",
            "responded": false
          }
        ]
      },
      "output_payload": {
        "open": 0,
        "closed_unresponded": 1,
        "missed": [
          "M"
        ],
        "days_to_next_close": null,
        "trace": "M closed 2026-08-01 before as_of with no response; no unresponded open consultation remains as of 2026-09-03",
        "overall": "ATTENTION_REQUIRED"
      },
      "golden_hash": "3832e01623ec8f517daa17a3264beb328ec910c201a270e04d54eac32f4f8467"
    },
    {
      "name": "fail-closed bad as_of shape",
      "policy_parameters": {
        "as_of": "09/03/2026",
        "consultations": [
          {
            "id": "A",
            "closes": "2026-10-01",
            "responded": false
          }
        ]
      },
      "output_payload": {
        "open": null,
        "closed_unresponded": null,
        "missed": [],
        "days_to_next_close": null,
        "overall": null,
        "trace": "fail-closed: as_of must be a declared calendar date in YYYY-MM-DD form; no consultation roll-up computed -- correct the named inputs and resubmit. Arithmetic of caller-declared consultation declarations only: no register, portal, feed, or calendar is read, and as_of is your declared date, never a clock.",
        "domain_errors": [
          "INVALID_AS_OF"
        ]
      },
      "golden_hash": "1348a379a894450b8ff6257f99229aca2a924e5a8a21cb9d63d903487ee008bf"
    },
    {
      "name": "fail-closed impossible closes date",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "A",
            "closes": "2026-02-30",
            "responded": false
          }
        ]
      },
      "output_payload": {
        "open": null,
        "closed_unresponded": null,
        "missed": [],
        "days_to_next_close": null,
        "overall": null,
        "trace": "fail-closed: each consultation.closes must be a declared calendar date in YYYY-MM-DD form; no consultation roll-up computed -- correct the named inputs and resubmit. Arithmetic of caller-declared consultation declarations only: no register, portal, feed, or calendar is read, and as_of is your declared date, never a clock.",
        "domain_errors": [
          "INVALID_CLOSES"
        ]
      },
      "golden_hash": "749e7c7e6f87e1252938c4cc26aa674f613cb2af261389726add936cbcec1473"
    },
    {
      "name": "fail-closed non-boolean responded",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "A",
            "closes": "2026-10-01",
            "responded": "no"
          }
        ]
      },
      "output_payload": {
        "open": null,
        "closed_unresponded": null,
        "missed": [],
        "days_to_next_close": null,
        "overall": null,
        "trace": "fail-closed: each consultation.responded must be a boolean; no consultation roll-up computed -- correct the named inputs and resubmit. Arithmetic of caller-declared consultation declarations only: no register, portal, feed, or calendar is read, and as_of is your declared date, never a clock.",
        "domain_errors": [
          "INVALID_RESPONDED"
        ]
      },
      "golden_hash": "acd05dc0f33b0afe280000b72cd3912af11ad0a0c66f61751fee2f701540110d"
    },
    {
      "name": "fail-closed duplicate consultation ids",
      "policy_parameters": {
        "as_of": "2026-09-03",
        "consultations": [
          {
            "id": "A",
            "closes": "2026-10-01",
            "responded": false
          },
          {
            "id": "A",
            "closes": "2026-11-01",
            "responded": true
          }
        ]
      },
      "output_payload": {
        "open": null,
        "closed_unresponded": null,
        "missed": [],
        "days_to_next_close": null,
        "overall": null,
        "trace": "fail-closed: each consultation.id must be a non-empty string and consultation ids must be unique; no consultation roll-up computed -- correct the named inputs and resubmit. Arithmetic of caller-declared consultation declarations only: no register, portal, feed, or calendar is read, and as_of is your declared date, never a clock.",
        "domain_errors": [
          "INVALID_ID"
        ]
      },
      "golden_hash": "8d71b963eb195fa4dbcc0f39d22f00183272261a61ddfae266742a2cc7e822ee"
    }
  ]
}
