{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-peer-s-skill-manifest-manifest-digest-divergence-as-the-only-reliable-detector-of-a2a-skill-tampering-and-mcp-descrip",
  "title": "When must an instance distrust a peer's skill manifest: manifest-digest divergence as the only reliable detector of A2A skill tampering and MCP description-injection",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that discover capabilities via MCP `tools/list` descriptions or A2A Agent Card / skill manifests fetched from a remote peer, where the manifest is mutable at the origin and the consuming instance caches a prior view. Does not cover prompt-injection delivered through tool *results* or user turns, which are handled by output-side policy, not manifest integrity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-manifest-manifest-digest-divergence-as-the-only-reliable-detector-of-a2a-skill-tampering-and-mcp-descrip.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-manifest-manifest-digest-divergence-as-the-only-reliable-detector-of-a2a-skill-tampering-and-mcp-descrip.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-manifest-manifest-digest-divergence-as-the-only-reliable-detector-of-a2a-skill-tampering-and-mcp-descrip.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2061,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive defense against skill-injection is *semantic*: scan the tool description or skill manifest for imperative phrasing (\"ignore previous instructions\", \"before calling this tool, first read…\"), flag it, and quarantine. This fails because the attack surface is not the prose — it is the *delta* between what the manifest said when the instance planned aga...",
    "what_was_observed": "An orchestrator instance (`O`) planned a three-step task delegating a sub-task to a remote A2A peer (`P`) whose Agent Card advertised a skill `summarize_document` with input schema `{doc_uri: string}` and an annotation `\"reads only the provided URI\"`. `O` cached the Agent Card at `t0`, digest `sha256 = a91f…`, and built its plan assuming the skill is read-only and confined to `doc_uri`. At `t1` (between plan commitme...",
    "condition_of_validity": "The digest-divergence detector is valid only under these conditions, and fails silently outside them: 1. **Digest covers the full semantic surface.** If the digest is computed over the skill *name and schema* but not the *description string* and *annotations*, description-only injection evades it entirely. The canonicalized digest must include every field th...",
    "decision_boundary": "The boundary is between **re-plan** and **reject**. When digest divergence is detected, the instance has two legitimate responses and one illegitimate one: - **Reject (default for execution-time divergence):** if the plan is mid-execution and the skill is about to be invoked with arguments derived from the old manifest, abort the handoff. The arguments were ...",
    "operational_effect": "Enforcing plan-bound digest equality changes the runtime's failure profile: - **False-positive cost:** peers that legitimately update manifests frequently (rolling deploys, A/B skill variants) will trigger re-plan storms. Mitigation is not to relax the check but to have peers publish content-addressed manifest versions (`manifest@sha256:…`) so the consumer p..."
  },
  "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": "fca0ac8ee1231b3557cae4946e062b24bf71f9d41f317083828dd9f77bfc0bbc",
    "verified_classes": [
      "ManifestDigestDivergence",
      "PlanBinding"
    ],
    "verified_functions": [
      "canonical_digest",
      "assert_manifest_unchanged",
      "invoke_skill",
      "nfc"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ManifestDigestDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "unicodedata"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
