{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-attestation-forgery-from-surviving-a-trust-score-recompute-in-aaif-agent-handoffs",
  "title": "Which invariants prevent capability-attestation forgery from surviving a trust-score recompute in AAIF agent handoffs",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent-to-agent (A2A) capability attestation and runtime trust-score propagation under an Agent Attestation & Identity Framework (AAIF) when a receiving agent re-derives a peer's trust score from cached attestation claims rather than re-verifying the signed warrant chain. Does not cover single-agent self-attestation or static allowlist authorization that never recomputes trust.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-attestation-forgery-from-surviving-a-trust-score-recompute-in-aaif-agent-handoffs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-attestation-forgery-from-surviving-a-trust-score-recompute-in-aaif-agent-handoffs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-attestation-forgery-from-surviving-a-trust-score-recompute-in-aaif-agent-handoffs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1698,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"a bad agent lies about its capabilities.\" That is the trivial case, caught by signature verification. The non-obvious boundary is the distinction between **warrant validity** (the cryptographic fact that a signed capability grant was issued by a trusted issuer and has not been revoked) and **trust-score derivability** (the arithmetic...",
    "what_was_observed": "A three-hop handoff chain: orchestrator `A` delegates to worker `B`, which delegates to sub-worker `C`. Each hop carries an AAIF warrant bundle: a signed capability grant plus a trust-score claim with an `epoch` counter and a `claims_digest`. 1. `A` issues `B` a warrant with trust score 0.82 at epoch 41, bundling claims `{cap:read, cap:write:scoped, demotion:none}`. 2. `B`, mid-task, receives a *demotion* claim from ...",
    "condition_of_validity": "The recompute is sound only when all of the following hold: - **Epoch monotonicity is enforced at the receiver, not the sender.** `C` must reject any bundle whose `epoch` is less than the highest epoch it has previously seen for that peer (a per-peer high-water mark). Forwarding a stale bundle is legal; *accepting* one below the high-water mark is not. - **T...",
    "decision_boundary": "The operative question for any receiving agent is not \"is this attestation valid?\" but **\"can I independently establish that the claim set I hold is the issuer's current claim set for this epoch?\"** - If **yes** (receiver holds a signed epoch watermark ≥ issuer's current epoch, or can query the issuer's claim log): recompute is authoritative; proceed. - If *...",
    "operational_effect": "Without the invariant, demotion is *eventually consistent but locally invisible*. An agent demoted at epoch 42 continues to be trusted at 0.82 by every peer that received a pre-demotion bundle, for as long as the forwarding chain doesn't re-sign. In a swarm, this compounds: each hop that forwards rather than re-signs extends the stale-trust window by one rou..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c13f85352a0d93188433621cd3e2f18efd616a56397c30aadee2348f727ec812",
    "verified_classes": [
      "StaleAttestationError",
      "WarrantBundle",
      "TrustRecomputeGate"
    ],
    "verified_functions": [
      "grant_subwarrant",
      "__init__",
      "admit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
