{
  "_comment": "SPEC.md §27 Human Accountability fixtures. Top-level OBJECT (no execution_hash, not an array) so schema-validate.mjs SKIPS it — only validate-ha-records.test.mjs consumes it. It exercises the four §27 behavioral invariants: additivity (§27.0), threshold distinctness (§27.3), override expiry (§27.5), and the signed-named-human requirement (§27.2).",
  "subject": {
    "policy_parameters": {
      "input_parameters": {
        "counterparty": "ACME-BANK",
        "exposure": 1250000000,
        "tier1_capital": 4000000000
      }
    },
    "output_payload": {
      "ratio": 0.3125,
      "breach": true,
      "limit": 0.25
    }
  },
  "approval_record": {
    "record_type": "approval",
    "role": "approver",
    "subject_hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
    "identity": {
      "id": "did:key:z6MkApprover1"
    },
    "decision": "approve",
    "reason_code": "REVIEWED_OK",
    "timestamp": "2026-07-23T14:00:00Z"
  },
  "threshold_records": {
    "role": "approver",
    "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
    "n2_distinct": [
      {
        "record_type": "approval",
        "role": "approver",
        "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
        "identity": {
          "id": "did:key:zCEO"
        },
        "audit_signature": {
          "proof": {
            "cryptosuite": "eddsa-jcs-2022",
            "verificationMethod": "did:key:zCEO#key-1"
          }
        }
      },
      {
        "record_type": "approval",
        "role": "approver",
        "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
        "identity": {
          "id": "did:key:zCFO"
        },
        "audit_signature": {
          "proof": {
            "cryptosuite": "eddsa-jcs-2022",
            "verificationMethod": "did:key:zCFO#key-1"
          }
        }
      }
    ],
    "n2_repeated_identity": [
      {
        "record_type": "approval",
        "role": "approver",
        "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
        "identity": {
          "id": "did:key:zCEO"
        },
        "audit_signature": {
          "proof": {
            "cryptosuite": "eddsa-jcs-2022",
            "verificationMethod": "did:key:zCEO#key-1"
          }
        }
      },
      {
        "record_type": "approval",
        "role": "approver",
        "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
        "identity": {
          "id": "did:key:zCEO"
        },
        "audit_signature": {
          "proof": {
            "cryptosuite": "eddsa-jcs-2022",
            "verificationMethod": "did:key:zCEO#key-1"
          }
        }
      }
    ]
  },
  "gate_precondition": {
    "role": "approver",
    "subject_hash": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
    "hold_subject_hash": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
    "override_role": "compliance_officer",
    "override_subject_hash": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
  },
  "override_now": "2026-07-23T15:00:00Z",
  "override_active": {
    "record_type": "override",
    "role": "compliance_officer",
    "subject_hash": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
    "identity": {
      "id": "did:key:zOfficer"
    },
    "gate_policy": "emergency_override",
    "reason_code": "REG_DEADLINE_WAIVER",
    "override": {
      "scope": "gate:large-exposure-approval",
      "expiry": "2026-07-24T00:00:00Z",
      "subject_hash": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
    },
    "timestamp": "2026-07-23T14:30:00Z",
    "audit_signature": {
      "proof": {
        "cryptosuite": "eddsa-jcs-2022",
        "verificationMethod": "did:key:zOfficer#key-1"
      }
    }
  },
  "override_expired": {
    "record_type": "override",
    "role": "compliance_officer",
    "subject_hash": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
    "identity": {
      "id": "did:key:zOfficer"
    },
    "gate_policy": "emergency_override",
    "reason_code": "REG_DEADLINE_WAIVER",
    "override": {
      "scope": "gate:large-exposure-approval",
      "expiry": "2026-07-22T00:00:00Z",
      "subject_hash": "sha256:2222222222222222222222222222222222222222222222222222222222222222"
    },
    "timestamp": "2026-07-21T14:30:00Z",
    "audit_signature": {
      "proof": {
        "cryptosuite": "eddsa-jcs-2022",
        "verificationMethod": "did:key:zOfficer#key-1"
      }
    }
  },
  "reverts_to_policy": "dual_control",
  "signed_record": {
    "record_type": "approval",
    "role": "approver",
    "subject_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
    "identity": {
      "id": "did:key:zApprover2"
    },
    "audit_signature": {
      "proof": {
        "type": "DataIntegrityProof",
        "cryptosuite": "eddsa-jcs-2022",
        "verificationMethod": "did:key:zApprover2#key-1"
      }
    }
  },
  "unsigned_record": {
    "record_type": "approval",
    "role": "approver",
    "subject_hash": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
    "identity": {
      "id": "did:key:zApprover2"
    }
  },
  "attested_subject": {
    "_comment": "SPEC.md §27.4 non-node (attested-artifact) subject class, HA-ATTESTED-1. The subject_hash is NOT stored here: the test computes it live from the art-502 kernel over the pinned-derived-inputs fixture vector and stamps it into these record templates, so a fixture can never drift away from the kernel it is supposed to bind. Identities are SYNTHETIC.",
    "role": "approver",
    "fixture_vector": "pinned-derived-inputs",
    "distinct_identities": [
      "did:key:zPREPARER",
      "did:key:zAPPROVER"
    ],
    "repeated_identity": "did:key:zAPPROVER",
    "override_identity": "did:key:zCRO",
    "override_now": "2026-07-30T00:00:00Z",
    "override_active_expiry": "2026-08-30T00:00:00Z",
    "override_expired_expiry": "2026-07-01T00:00:00Z",
    "reverts_to_policy": "dual_control"
  },
  "counter_signed_receipt": {
    "_comment": "SPEC.md §27.12 counter-signed receipt (BILAT-CSR-CONFORMANCE-1). subject_hash is NOT stored here — the test computes it live via executionHash(policy_parameters, output_payload), same pattern as attested_subject above, so the fixture can never drift from the hash it is supposed to bind. Identities are SYNTHETIC and represent two DIFFERENT organizations (A = maker, B = checker) with no shared infrastructure.",
    "maker_identity": "did:key:zMakerPartyA",
    "checker_identity": "did:key:zCheckerPartyB",
    "policy_parameters": {
      "input_parameters": {
        "counterparty": "TMPG-DEALER-7",
        "fails_charge_bps": 300,
        "settlement_date": "2026-08-05"
      }
    },
    "output_payload": {
      "fails_charge_amount": 18750.42,
      "recomputed_by_both_parties": true
    },
    "correct_kernel_digest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "wrong_kernel_digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
    "unreachable_subject_hash": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
    "timestamp": "2026-08-08T12:00:00Z"
  }
}
