{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-skill-provenance-when-a-third-party-mcp-server-re-signs-an-a2a-agent-card-after-capability-negotiation",
  "title": "How should an instance verify skill provenance when a third-party MCP server re-signs an A2A agent card after capability negotiation",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent runtimes that fetch a remote A2A agent card, negotiate capability/schema, then re-verify the server's advertised skills against a signed MCP tool manifest before delegating a task. Does not cover first-party servers co-deployed with the runtime, nor pure MCP-only tool invocation without an A2A handshake layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-third-party-mcp-server-re-signs-an-a2a-agent-card-after-capability-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-third-party-mcp-server-re-signs-an-a2a-agent-card-after-capability-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-skill-provenance-when-a-third-party-mcp-server-re-signs-an-a2a-agent-card-after-capability-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1480,
    "python_slice_tokens": 193,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The invariant that matters is *provenance binding*, not signature validity. A signature proves *who* signed a payload; it does not prove that the payload the verifier inspected is the payload the runtime will execute against. The non-obvious boundary is the **re-signing window**: a third-party MCP server may legitimately hold a delegated signing key for its ...",
    "what_was_observed": "A runtime fetched `agent.json` from a third-party registry, verified the JWS against the registry's published JWKS, and read `skills: [{id: \"summarize\", input_schema: {type: \"object\", properties: {text: {type: \"string\"}}}}]`. It then performed A2A capability negotiation, agreeing on `summarize` with a text-only schema. Immediately before dispatch it re-fetched the card to confirm freshness and re-verified the signatu...",
    "condition_of_validity": "The guardrail holds only if the runtime treats the *tuple* `(skill.id, canonical_schema_digest, signing_key_thumbprint, card_version)` as the unit of provenance, and refuses to dispatch when any element of the tuple observed at negotiation differs from the tuple observed at dispatch. Concretely: - Canonicalize the skill's `input_schema` (sorted keys, no insi...",
    "decision_boundary": "The decision boundary is between *re-verify-and-proceed* and *re-verify-and-renegotiate*. A runtime that re-fetches a card before dispatch and finds a matching digest may proceed. A runtime that finds a *mismatched* digest must not proceed on the cached negotiation, even though the new card is validly signed — signature validity is necessary but not sufficie...",
    "operational_effect": "Without this invariant, provenance verification degrades into a signature-presence check that any re-signing intermediary can satisfy. The observable effect is that skills silently widen: `additionalProperties` flips to `true`, defaults inject outbound hooks, or a `tool_hook`-style field appears, and the runtime's cached negotiation never notices because it ..."
  },
  "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": "ab6dfaaa0c3d1f29521c04104f532b529d26becf04a4512a4778c22c9cca3e19",
    "verified_classes": [
      "ProvenanceDriftError",
      "ProvenanceTuple"
    ],
    "verified_functions": [
      "canonical_schema_digest",
      "verify_dispatch_provenance"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
