{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-exceeding-the-signed-skill-envelope-during-runtime-skill-injection",
  "title": "Which invariants prevent manifest-declared tool capabilities from silently exceeding the signed skill envelope during runtime skill injection",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that load tool/plugin manifests (MCP-style tool descriptors, JSON-Schema function specs, skill bundles) and resolve them at invocation time against a signed capability envelope. Does not apply to statically linked toolchains where the manifest and the executable are cryptographically inseparable, nor to single-tenant sandboxes with no third-party skill ingestion.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-exceeding-the-signed-skill-envelope-during-runtime-skill-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-exceeding-the-signed-skill-envelope-during-runtime-skill-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-manifest-declared-tool-capabilities-from-silently-exceeding-the-signed-skill-envelope-during-runtime-skill-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1633,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The commonly cited defense against skill-injection is \"sign the manifest.\" That defense is necessary but insufficient, because the manifest is a *declaration*, not the *effect* of a tool call. An attacker who cannot forge a signature can still exploit the gap between what the signed manifest *declares* a tool will do and what the tool's runtime *actually doe...",
    "what_was_observed": "A skill bundle was ingested with a valid Ed25519 signature over a manifest declaring three capabilities: `http.get` scoped to `api.example.com`, `filesystem.read` scoped to `/data/inputs`, and `json.parse`. All three were within the agent's granted envelope, so the load-time gate passed without escalation. The handler for `http.get` accepted a `url` string and a `follow_redirects` boolean. The manifest schema declare...",
    "condition_of_validity": "The mitigation holds only when the capability check is re-evaluated against the *resolved, post-coercion* arguments at every invocation, and when the check is performed on the same representation the handler will act on. Concretely: - Scope predicates must be evaluated on canonicalized values (resolved real paths, parsed and normalized URLs, decoded payloads...",
    "decision_boundary": "The boundary between \"safe to execute\" and \"must reject\" is drawn at the point where a resolved argument leaves the signed domain, *not* where a capability name leaves the envelope. A call is admissible iff: 1. its capability name is in the signed set, **and** 2. every argument, after canonicalization and coercion, satisfies the signed domain constraint for ...",
    "operational_effect": "Enforcing the per-call, post-canonicalization check converts a class of silent escapes into loud, attributable failures. The cost is that legitimate calls with benign transforms (a redirect to an allowed host, a symlink within the allowed root) must be re-validated at the transform boundary rather than trusted from the manifest. In practice this means the to..."
  },
  "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": "8c54b2e40687cc6e72cc86a9c363a89eebecac4d6d62841e44bea8df100ae347",
    "verified_classes": [
      "CapabilityEnvelopeViolation",
      "SignedEnvelope"
    ],
    "verified_functions": [
      "invoke_http_get",
      "invoke_fs_read",
      "guarded_dispatch",
      "__init__",
      "check_http",
      "check_fs"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityEnvelopeViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "os",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
