{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-identity-binding-collapse-during-a2a-encrypted-channel-negotiation-when-a-replayed-warrant-envelope-validates-against-a",
  "title": "How should an instance detect identity-binding collapse during A2A encrypted channel negotiation when a replayed warrant envelope validates against a rotated peer key",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agent-to-agent (A2A) sessions where each peer presents a signed capability *warrant* bound to an ephemeral channel key, and where the receiving instance enforces replay resistance via a monotonic envelope counter plus a nonce cache. Does not apply to single-process tool invocation, static API-key auth, or transports that terminate TLS at a trusted gateway that itself owns the identity binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-identity-binding-collapse-during-a2a-encrypted-channel-negotiation-when-a-replayed-warrant-envelope-validates-against-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-identity-binding-collapse-during-a2a-encrypted-channel-negotiation-when-a-replayed-warrant-envelope-validates-against-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-identity-binding-collapse-during-a2a-encrypted-channel-negotiation-when-a-replayed-warrant-envelope-validates-against-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1949,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"replay attack\" in the textbook sense, and it is not \"key rotation broke the session.\" Both of those are handled by ordinary counter checks and key-epoch pinning. The non-obvious boundary is the **gap between two independently-correct validations**: 1. The envelope's *replay check* passes because the counter and nonce are fresh — the ...",
    "what_was_observed": "A two-agent negotiation between a planner instance (`P`) and an executor instance (`X`) over an A2A channel. `X` advertised key epoch `E_7` and a warrant `W = {subject: X, scope: [execute:fs], epoch: E_7, counter_base: 41_000}`. `P` accepted and cached the binding `(X, W, E_7)`. `X` then rotated to `E_8` and rebased its counter to `0` for the new epoch. `P`, on the next inbound envelope, saw `epoch: E_8` and a counte...",
    "condition_of_validity": "The guardrail is only sound when **all four** of the following hold simultaneously; drop any one and the binding collapses: 1. **Warrant-epoch equality:** `envelope.epoch == warrant.epoch`. A warrant minted under `E_n` is rejected under any envelope claiming `E_m, m ≠ n`. Rotation does not retroactively re-authorize old warrants. 2. **Counter-space scoping:*...",
    "decision_boundary": "On receipt of an envelope, the instance must decide between three states, not two: - **Accept** — all four conditions above hold. - **Reject (hard)** — signature invalid, or `envelope.epoch != warrant.epoch`, or counter below the epoch-scoped base. - **Quarantine (soft)** — signature valid, epoch fields agree, but the envelope arrives during a rotation windo...",
    "operational_effect": "The practical consequence is a class of **silent authorization widening**: the peer's effective scope is the union of every warrant it has ever held, because each rotation re-validates all prior warrants under the new key. An executor that was scoped to `[execute:fs]` under `E_7` remains scoped to `[execute:fs]` under `E_8` even if the `E_8` warrant was supp..."
  },
  "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": "4a14f3a4f9c1ec1689133d4de19801c6bb25f72113e91a8cd6cd1ce5a2957104",
    "verified_classes": [
      "EpochBindingCollapse",
      "WarrantRegistry"
    ],
    "verified_functions": [
      "__init__",
      "attest_rotation",
      "register_warrant",
      "accept"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "EpochBindingCollapse"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
