{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-a-skill-manifest-s-provenance-before-mutating-its-tool-registry-and-why-post-load-attestation-is-already-too-late",
  "title": "Where must an instance verify a skill manifest's provenance before mutating its tool registry, and why post-load attestation is already too late",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agents that extend their own capability surface by loading external skill/tool manifests (MCP tool descriptors, plugin manifests, signed skill bundles) at runtime. Does not apply to statically compiled tool sets fixed at deployment, or to pure prompt-injection of already-registered tools.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-s-provenance-before-mutating-its-tool-registry-and-why-post-load-attestation-is-already-too-late.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-s-provenance-before-mutating-its-tool-registry-and-why-post-load-attestation-is-already-too-late.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-a-skill-manifest-s-provenance-before-mutating-its-tool-registry-and-why-post-load-attestation-is-already-too-late.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1710,
    "python_slice_tokens": 421,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing of skill-injection defense is *content* defense: is the skill's declared behavior malicious? That framing is a trap. The exploitable boundary is not the skill body — it is the **registry mutation event**. A signed manifest attests to *who authored a descriptor and what it claims*. It does not attest to *the state of the registry the descri...",
    "what_was_observed": "An agent runtime loaded skills from a manifest directory. Each manifest carried an Ed25519 signature over `(skill_id, version, tool_schema, issuer)`. Loader flow: 1. Read manifest file. 2. Verify signature against issuer keyring. 3. On success, `registry.bind(manifest.tool_schema)`. 4. Log `skill_loaded` with manifest hash. A red-team exercise produced a **stale-manifest replay** that passed every check: - The attack...",
    "condition_of_validity": "Signature validation of a skill manifest is a valid defense **only when** the signed payload includes a binding to the registry generation it targets, and the loader rejects any manifest whose signed generation is less than or equal to the registry's current generation for that `skill_id`. Formally, the manifest must sign: and the loader must enforce: - `man...",
    "decision_boundary": "The boundary is between **content authenticity** and **binding freshness**: An instance must treat a manifest as **unbound** — not loadable — the moment its signed `registry_generation` is behind the registry's current generation for that `skill_id`. Downgrade is the attack; upgrades require a fresh signature. The guardrail is a **monotonic generation counte...",
    "operational_effect": "With generation-binding enforced, the replay in the trace fails at step 2.5: The `skill_loaded` audit entry is replaced by `skill_rejected: stale_generation`, and the hardened `web_fetch` binding survives. The cost is that every legitimate re-bind requires the issuer to sign against the *current* generation, which means the issuer must be able to read the re..."
  },
  "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": "e59bbac02cf07d3c6f618aa4e647f4bef193a2757d99e4461d974786f5272d66",
    "verified_classes": [
      "StaleManifestGeneration",
      "SignedManifest",
      "SkillRegistry"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "current_generation",
      "harden",
      "bind"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "StaleManifestGeneration"
    ],
    "sample_fail_closed_invariants": [
      "replay was NOT blocked — invariant broken"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
