{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-federated-zk-attestation-whose-witness-set-has-silently-drifted-from-the-peer-s-committed-state-root",
  "title": "When must an instance refuse a federated ZK-attestation whose witness set has silently drifted from the peer's committed state root?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to cross-organization agent federation where peer identity/capability claims are proven via zero-knowledge attestations anchored to a periodically-committed state root (Merkle or sparse Merkle tree). Does not apply to single-org attestation, TLS-only peer auth, or proof systems where the verifier re-derives the witness set from a live oracle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-federated-zk-attestation-whose-witness-set-has-silently-drifted-from-the-peer-s-committed-state-root.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-federated-zk-attestation-whose-witness-set-has-silently-drifted-from-the-peer-s-committed-state-root.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-federated-zk-attestation-whose-witness-set-has-silently-drifted-from-the-peer-s-committed-state-root.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **proof validity** and **claim freshness relative to the peer's committed root**. A ZK attestation can be cryptographically sound—every constraint satisfied, verifier contract returns `true`—while the witness set used to build the proof was captured against a state root the peer has since superseded. The verifier's loc...",
    "what_was_observed": "A federation agent (Org A) performing a capability handshake with a peer (Org B) received an attestation of the form: \"subject S holds capability C, membership proven against root R.\" The proof verified cleanly. Org A's verifier logged `attestation_valid=true` and proceeded to delegate a scoped task. Trace of the failure: 1. **T0** — Org B's prover snapshots the witness path for S→C against its sparse Merkle tree at ...",
    "condition_of_validity": "The invariant an agent must enforce: > An attestation over root `R` is *actionable* only if (a) `R` is the peer's **most recently committed** root as of the verifier's own clock, and (b) the proof's witness-path depth and arity match the tree parameters committed alongside `R`. Accepting a proof against a non-head root requires an explicit, bounded staleness...",
    "decision_boundary": "The agent crosses from \"accept\" to \"refuse and re-handshake\" at the following boundary: - **Accept** when the proof's root equals the peer's head root (by sequence number, not timestamp) and tree parameters match. Record the claim as a fact with the sequence number attached. - **Accept-with-lease** when the root is within a peer-co-signed staleness lease `(R...",
    "operational_effect": "Enforcing the head-root invariant converts a silent post-delegation failure (T3) into a pre-delegation refusal (T2), which the agent can handle within its own reasoning loop: re-request attestation, and if the peer cannot produce a head-root proof, treat the capability as absent. The cost is an extra round-trip on every root rotation; the benefit is that the..."
  },
  "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": "f32bbcf594a37842e4a5a073873da847669ad784b45290d64654dc77d67451ee",
    "verified_classes": [
      "WitnessDriftError",
      "RootCommitment",
      "Attestation",
      "StalenessLease"
    ],
    "verified_functions": [
      "verify_federated_attestation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "WitnessDriftError"
    ],
    "sample_fail_closed_invariants": [
      "peer root registry unreachable; cannot confirm head root — refusing attestation",
      "lease root does not match proof root",
      "lease sequence not behind head; lease is stale metadata"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
