{"kind":"x402/decision-attestation","profileVersion":"decision-attest/v1","service":"decision-attestation","summary":"A paying agent submits the decision it is about to take plus the evidence it relies on, and receives ONE Ed25519-signed, SHA-256-reproducible decision record: what was decided, by whom, under which policy, on what evidence, at what assurance level, and — mandatorily — what was NOT known at decision time.","input":{"actor":"string — who is deciding (person or agent). Required.","decision":"string — what was decided. Required.","policy":"string — the policy under which it was decided. Required.","evidence":"list of {kind, content|content_ref, signature?, digest?}. Each item is hashed; a signed item is re-hashed and checked for structural validity.","asOf":"string — the decision timestamp (SUPPLIED, never the wall clock).","context":"object — optional free-form context, hashed into the record.","policySet":"list|object — OPTIONAL the caller's own declared policy set. A policy whose digest matches a declared entry raises the assurance to A4_REPRODUCIBLE."},"output":{"decision_id":"string — derived from the canonical content, never random.","policy_digest":"SHA-256 over the canonical policy text.","evidence_digest":"SHA-256 over the CANONICALISED evidence set, order-independent.","assurance":"one of A1_UNATTESTED, A2_EVIDENCE_BOUND, A3_COUNTERSIGNED, A4_REPRODUCIBLE","unknowns":"list of strings — mandatorily non-empty when the input is incomplete. Never invented.","sha256":"SHA-256 over the canonical evidenceCore.","ed25519Sig":"Ed25519 signature over the canonical evidenceCore."},"assuranceLadder":[{"level":"A1_UNATTESTED","requires":"no evidence supplied","means":"The record proves only that a decision was submitted. No evidence was bound to it."},{"level":"A2_EVIDENCE_BOUND","requires":"evidence supplied; every item hashed; evidence digest computed","means":"The record proves WHICH evidence was relied on, by digest. The evidence's own signatures were not checked."},{"level":"A3_COUNTERSIGNED","requires":"evidence present AND at least one item carries a signature the engine can check (re-hash + structural validity)","means":"The record proves the signed evidence was not altered after signing. It does NOT prove the signer was who it claimed to be."},{"level":"A4_REPRODUCIBLE","requires":"evidence present, at least one item signed, AND the policy digest matches a declared policy in the caller's own supplied policy set","means":"The record binds the decision to a policy the caller itself published, over evidence whose signature was re-checked."}],"checks":["actor_present","decision_present","policy_present","policy_declared_in_set","evidence_supplied","evidence_items_well_formed","evidence_digest_computed","evidence_signed_present","evidence_signature_rehash_ok","context_supplied"],"honestRefusals":[{"id":"REF-DEC-001","trigger":"no evidence supplied","behaviour":"assurance is A1_UNATTESTED and `unknowns` names the absent evidence. The decision is still recorded."},{"id":"REF-DEC-002","trigger":"evidence item with neither content nor content_ref","behaviour":"the item is a named unknown, the item is excluded from the evidence digest, and the assurance is degraded."},{"id":"REF-DEC-003","trigger":"signed evidence item whose re-hash does not match its declared digest","behaviour":"the check is reported FAILED, the item is named in `unknowns`, and the assurance is capped at A2."},{"id":"REF-DEC-004","trigger":"policy not found in the caller's own declared policy set","behaviour":"the check is reported FAILED, the policy is named in `unknowns`, and the assurance is capped at A3."},{"id":"REF-DEC-005","trigger":"missing actor, decision or policy","behaviour":"the record is still produced, but the assurance cannot exceed A1 and the missing field is named in `unknowns`. The engine never invents an actor or a rationale."},{"id":"REF-DEC-006","trigger":"an evidence item declares a signature that is not a hex string of the expected length","behaviour":"the signature is reported STRUCTURALLY_INVALID, the item is named in `unknowns`, and the assurance is capped."}],"readOnly":true,"note":"This record attests WHAT WAS SUBMITTED, WHAT WAS HASHED and WHAT WAS NOT KNOWN. It does NOT assert that the decision was correct, that the policy was appropriate, that the evidence was true, or that the signer of any evidence item was who it claimed to be. It is an accountability artefact, not a truth oracle."}