{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-agent-card-replay-divergence-from-silently-re-authorizing-a-delegated-task-envelope-across-heterogeneous-a2a-v1-0-runtimes",
  "title": "Which invariants prevent Agent Card replay divergence from silently re-authorizing a delegated task envelope across heterogeneous A2A v1.0 runtimes",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 task delegation where an orchestrator runtime signs a delegation envelope referencing a remote agent's `AgentCard` (identified by `card_id` + `card_version` + `card_digest`), and the receiving runtime re-validates that binding before executing. Does not apply to same-runtime in-process calls, nor to unsigned/single-tenant A2A profiles where the card digest is not part of the envelope.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-replay-divergence-from-silently-re-authorizing-a-delegated-task-envelope-across-heterogeneous-a2a-v1-0-runtimes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-replay-divergence-from-silently-re-authorizing-a-delegated-task-envelope-across-heterogeneous-a2a-v1-0-runtimes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-agent-card-replay-divergence-from-silently-re-authorizing-a-delegated-task-envelope-across-heterogeneous-a2a-v1-0-runtimes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"bad signature\" — signatures verify cleanly. The failure is **card-binding divergence**: the envelope's signed claim `card_digest = H(card_body)` was computed against a card the *orchestrator* cached at discovery time, while the *executor* resolves the current card body and recomputes `H(card_body')` at envelope-open time. If those two has...",
    "what_was_observed": "Two runtimes, `orch-a` (Python, cache TTL 3600s) and `exec-b` (Rust, no card cache, resolves on demand). Sequence: 1. `orch-a` discovers `exec-b` at T0, caches card `C0` with `card_digest = d0`, `skills = [read]`. 2. Operator publishes `C1` at T+600s adding `skills = [read, fs.write]`, bumps `card_version` 1→2 but **reuses the same `card_id`** and same signing key (standard practice — key rotation is a separate lifec...",
    "condition_of_validity": "The safe invariant is a **triple-pin**: the envelope is valid iff, at execution time on the executor: All three conjuncts, evaluated against the *body actually used to build the capability set*, not against a cached or discovered-at-startup copy. The middle conjunct is not redundant: digest equality alone can hold if the card body is unchanged but the *versi...",
    "decision_boundary": "The boundary is: **does the executor treat the card body as (a) a resolution target or (b) a pinned execution input?** - Treating it as a *resolution target* (look up by `card_id`, then use whatever is current) is the failure mode. It is natural in dynamic-discovery architectures and is what every \"resolve then execute\" code path does by default. - Treating ...",
    "operational_effect": "Concrete guardrails that bound the failure: 1. **Content-address card lookup.** Envelope carries `card_digest`; executor fetches `GET /cards/sha256:{digest}`. 404 → `CardDigestUnresolvable`, fail closed. Never `GET /cards/{card_id}` during envelope validation. 2. **Digest recompute over the exact bytes used.** If the executor deserializes the card and re-ser..."
  },
  "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": "b72fb5daab1de5045090d59e6f1bf7c69e5a8e0ba60da971dd058b58a4dd3dba",
    "verified_classes": [
      "CardBindingError",
      "Envelope"
    ],
    "verified_functions": [
      "canonical_digest",
      "validate_envelope"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CardBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
