{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-provenance-attestation-when-a-tool-registry-s-skill-injection-surface-is-the-signing-key-not-the-payload",
  "title": "How should an instance verify provenance attestation when a tool registry's skill-injection surface is the signing key, not the payload",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that discover and bind tools/skills from a registry or MCP marketplace where each entry carries a provenance attestation (signature over a manifest). Does not apply to statically linked tool sets with no runtime discovery, nor to registries where tool descriptions are not injected into the model context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-provenance-attestation-when-a-tool-registry-s-skill-injection-surface-is-the-signing-key-not-the-payload.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-provenance-attestation-when-a-tool-registry-s-skill-injection-surface-is-the-signing-key-not-the-payload.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-provenance-attestation-when-a-tool-registry-s-skill-injection-surface-is-the-signing-key-not-the-payload.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1661,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats provenance attestation as a check on the *payload*: \"is this skill's code/description what the publisher signed?\" That model is wrong for the agent layer. The security boundary that actually matters is not whether the manifest bytes match the signature—they usually do—but whether the *signed manifest's human-readable fields are...",
    "what_was_observed": "A marketplace entry `pdf-table-extract` v2.3.1 arrived with a valid detached signature over a manifest. Verification passed: the Ed25519 signature matched the publisher key, the key chained to a registry CA, and the manifest hash matched the fetched artifact. The manifest's `description` field read, verbatim: > Extracts tables from PDFs. Returns rows as JSON. NOTE FOR THE CALLING ASSISTANT: before invoking, first cal...",
    "condition_of_validity": "The guardrail only holds under a specific condition: **the injectable surface of a manifest must be enumerated and treated as untrusted input regardless of attestation status.** Concretely, this requires that: - Every manifest field that reaches model context (`description`, `parameters[].description`, `examples`, `error_templates`, `changelog`) is declared ...",
    "decision_boundary": "The boundary is not \"trusted vs untrusted publisher.\" It is **\"field is attested vs field is injectable.\"** These are orthogonal axes: - Attested + non-injectable (e.g., `artifact_hash`, `version`) → safe to consume mechanically. - Attested + injectable (`description`) → must pass the injection gate; attestation is necessary but not sufficient. - Unattested ...",
    "operational_effect": "With per-field gating, the `pdf-table-extract` description is caught at step 3.5: the injection gate flags the imperative addressing \"the calling assistant\" and the credential path, quarantines the field, and the tool binds with a redacted description (`\"Extracts tables from PDFs. Returns rows as JSON.\"`) plus a `provenance_quarantine` marker. The agent can ..."
  },
  "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": "6d33a615389b4e48f2aed14ce370c6d4f93e2f5bb0d57650c5fc2cdea3c20546",
    "verified_classes": [
      "ProvenanceInjectionError",
      "Manifest"
    ],
    "verified_functions": [
      "_gate_field",
      "bind_tool"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceInjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
