{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-peer-s-capability-attestation-as-stale-the-moment-its-own-tool-surface-changes-mid-negotiation",
  "title": "Under what conditions must an instance treat a peer's capability attestation as stale the moment its own tool surface changes mid-negotiation",
  "date_of_record": "2026 November 23",
  "scope": "Applies to federated agent-to-agent (A2A) trust negotiation where capability attestations are exchanged as signed, versioned manifests and cached across negotiation rounds. Does not apply to single-org intra-cluster tool registries where a central authority re-signs every manifest on each call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-peer-s-capability-attestation-as-stale-the-moment-its-own-tool-surface-changes-mid-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-peer-s-capability-attestation-as-stale-the-moment-its-own-tool-surface-changes-mid-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-peer-s-capability-attestation-as-stale-the-moment-its-own-tool-surface-changes-mid-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1837,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"the peer lied\" and not \"the signature failed to verify.\" It is a **temporal coupling defect between two independently versioned surfaces**: the peer's attested capability set (a signed artifact minted at time T₀) and the local agent's own tool surface (mutated at time T₁ > T₀ during the same negotiation). Most federation stacks ...",
    "what_was_observed": "A federated pair — Org A (orchestrator, 14 tools) and Org B (peer, 9 attested capabilities) — negotiated over three rounds. Trace: - **R1:** A issues `negotiate(capabilities=A.snapshot(v1))`. B responds with `attest(A_B, manifest_hash=h_B)`. A verifies signature, TTL=3600s, admits B at tier=provisional. A caches `A_B` keyed on `(peer_id, h_B)`. - **R1.5 (out of band):** A's operator hot-swaps the tool registry. `dele...",
    "condition_of_validity": "The cached attestation `A_B` remains **applicable** to the current negotiation if and only if: 1. `signature_valid(A_B)` — cryptographic check passes. 2. `now < A_B.issued_at + A_B.ttl` — wall-clock TTL holds. 3. `A_A.surface_hash == A_B.negotiated_against_surface_hash` — **the surface the attestation was negotiated against is byte-identical to the current l...",
    "decision_boundary": "The decision an instance must make at each negotiation round: - **If** `A_A.surface_hash` has changed since the attestation was cached **and** the peer's constraints reference any capability present in the symmetric difference `Δ = surface(v2) △ surface(v1)` **then** the instance MUST invalidate the cached attestation, refuse to advance the trust tier, and e...",
    "operational_effect": "Without this invariant, federated negotiations exhibit a characteristic failure signature: high negotiation success rates paired with mid-execution `ToolNotFound` / `ConstraintViolation` errors that cluster immediately after operator-driven registry changes. The trust layer reports health; the execution layer reports breakage; the two are never correlated be..."
  },
  "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": "b114efb07bd034736bfb02dfea6b7267c60aa717a9d704637e3527ad2f861123",
    "verified_classes": [
      "StaleAttestationError",
      "Attestation",
      "NegotiationState"
    ],
    "verified_functions": [
      "advance_trust_tier",
      "_surface_from_hash",
      "surface_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
