{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-signature-after-an-extended-skill-renegotiation-in-a2a-v1-0",
  "title": "How does an instance detect a stale Agent Card signature after an extended-skill renegotiation in A2A v1.0",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 peers that sign Agent Cards with JWS and renegotiate extended skills after initial discovery; does not cover unsigned dev-mode cards or single-skill static deployments where skills never change post-publication.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-extended-skill-renegotiation-in-a2a-v1-0.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-extended-skill-renegotiation-in-a2a-v1-0.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-signature-after-an-extended-skill-renegotiation-in-a2a-v1-0.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1474,
    "python_slice_tokens": 271,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The Agent Card signature binds the *entire* card payload, including the `skills[]` array and any `extensions` block. A2A v1.0 permits a server to publish extended skills (additional `skills` entries plus an `extensions` map with per-extension capability URIs) *after* the base card is already trusted by a client. The non-obvious boundary is this: **signature ...",
    "what_was_observed": "In a two-agent deployment (orchestrator `O`, worker `W`), `O` performs discovery: fetches `W`'s Agent Card, verifies the JWS against `W`'s published `jku`/`kid`, records `cardHash = SHA-256(canonical(card))` and `cardVersion = 3`. Later, a task requires a new extended skill. `W` responds on the skills-negotiation channel with a `SkillUpdate` frame: `W` *did* re-sign its full card (version 4) and published it at the w...",
    "condition_of_validity": "The guardrail is a single invariant enforced at the merge boundary: > **For every capability in the active set, there must exist a verified `cardHash` whose canonical payload contains that capability, and the `cardVersion` associated with that hash must equal the `cardVersion` under which the capability was admitted.** Operationally this means the skills-neg...",
    "decision_boundary": "The detection rule is not \"did the version change\" (that fires on benign re-signs) and not \"does the signature verify\" (it always does here). It is: - If `SkillUpdate.cardVersion != cached.cardVersion` **and** `SkillUpdate` carries no `cardHash` equal to a freshly-verified hash of the full card at that version → **treat as unauthorized capability grant**, qu...",
    "operational_effect": "Without the invariant, a compromised or buggy worker can escalate its own capability surface by emitting a `SkillUpdate` for a privileged skill while leaving its signed card unchanged—the client's signature check is a no-op against the actual grant. With the invariant, the escalation requires forging a JWS over a full card containing the privileged skill, wh..."
  },
  "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": "5a13c0115bfad61c8390c3a924fca83315d090f574a5d493f074cf656e5bc51e",
    "verified_classes": [
      "StaleCardSignatureError",
      "VerifiedCard",
      "SkillUpdate"
    ],
    "verified_functions": [
      "canonical_hash",
      "merge_skill_update"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleCardSignatureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
