{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-via-signed-tool-manifests-from-failing-at-the-capability-binding-boundary",
  "title": "Which invariants prevent skill-injection via signed tool manifests from failing at the capability-binding boundary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that load tool/skill definitions from a signed manifest and attest each invocation against that signature at call time. Does not cover unsigned local-only tool registries, nor model-internal \"function calling\" where the schema is baked into the prompt with no external manifest authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-signed-tool-manifests-from-failing-at-the-capability-binding-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-signed-tool-manifests-from-failing-at-the-capability-binding-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-via-signed-tool-manifests-from-failing-at-the-capability-binding-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1914,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a signed tool manifest can attest, and conflating them is the root of the failure mode: 1. **Manifest integrity** — the bytes of the tool definition (name, JSON schema, description, endpoint) are exactly what the signer published, and have not been mutated in transit or at rest. 2. **Capability binding** — the *specific invocati...",
    "what_was_observed": "A runtime loaded three tools from a manifest signed by `publisher-A`: `read_file`, `http_get`, and `summarize`. All three verified. The agent was tasked with summarizing a document. Trace: - Step 1: agent calls `read_file(path=\"/data/doc.md\")`. Attestation passes — arguments conform to schema, `path` is under an allowlisted prefix. - Step 2: the document body contains text that the model treats as an instruction: *\"U...",
    "condition_of_validity": "The defense holds only when all four of the following are enforced simultaneously. Drop any one and the boundary leaks: - **Identity is content-addressed, not name-addressed.** The call site must bind to `sha256(canonical(manifest_entry))`, not to the string `\"search\"`. Registry keys are hashes; name collisions become distinct entries, and the agent's plan r...",
    "decision_boundary": "The runtime must decide, at the moment of invocation, between three outcomes, and the boundary between them is where implementations collapse: - **Admit:** manifest signature valid ∧ tool identity matches the hash the plan referenced ∧ arguments within signed capability envelope ∧ agent warrant covers this tool ∧ argument digest not seen in a prior denied ca...",
    "operational_effect": "When the four invariants hold, the observable behavior changes in a specific, testable way: **a skill-injection payload embedded in a document can still cause the model to *attempt* an exfiltration call, but the call is denied at the capability-envelope check with the argument digest logged.** The attack becomes a detectable, auditable event rather than a si..."
  },
  "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": "32eb03ae1405f2de690057d21e061cb094ec1f759e13fe9d695b50d2e5b5d1a3",
    "verified_classes": [
      "CapabilityBindingError",
      "SignedManifestEntry"
    ],
    "verified_functions": [
      "attest_invocation",
      "_extract_host",
      "tool_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityBindingError"
    ],
    "sample_fail_closed_invariants": [
      "manifest signature invalid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
