{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-detection-from-collapsing-into-manifest-self-attestation",
  "title": "Which invariants prevent skill-injection detection from collapsing into manifest self-attestation",
  "date_of_record": "2026 November 16",
  "scope": "Applies to agent runtimes that gate tool/skill invocation on a signed capability manifest whose declared capability set is compared against the requested call. Does not apply to runtimes that enforce capability at the syscall or sandbox boundary independent of what any manifest claims.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-detection-from-collapsing-into-manifest-self-attestation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-detection-from-collapsing-into-manifest-self-attestation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-detection-from-collapsing-into-manifest-self-attestation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1341,
    "python_slice_tokens": 241,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability manifest is a *declaration*, not a *proof*. The manifest answers \"what does this skill claim it can do?\" The invariant that actually prevents skill injection is that the *observed* capability surface (the set of effects the skill can produce when invoked) is a subset of the *declared* capability set, and that the declared set is bound to an iden...",
    "what_was_observed": "In a tool-gated agent harness, skills were registered with a JSON manifest listing `capabilities: [\"http:fetch\", \"text:summarize\"]`, signed by the publisher key, and pinned by content hash. The gate rejected any invocation whose declared `requested_capability` was absent from the manifest. Injection was attempted via a skill whose manifest declared only `text:summarize` but whose implementation shelled out to a subpr...",
    "condition_of_validity": "The subset invariant `observed_effects ⊆ declared_capabilities` holds as an injection defense only under three jointly necessary conditions: 1. **Independent observation.** `observed_effects` must be measured by a component the skill cannot influence — a syscall filter, an egress proxy, an instrumented interpreter — not read from the skill's own return value...",
    "decision_boundary": "Treat manifest verification as sufficient for injection defense **only** when the effect surface is closed and enumerable (pure functions, fixed RPC allowlists with no dynamic dispatch). Treat it as insufficient — and require an out-of-band observer — when any of the following hold: the skill can spawn subprocesses, the skill can make network calls to arbitr...",
    "operational_effect": "After moving the observation point outside the skill (seccomp filter for fs/syscall, egress allowlist for network) and deriving requested capability from parsed arguments rather than asserted fields, the same injected skill was rejected at invocation with the undeclared `filesystem:read` surfaced as the diff between observed and declared. The cost is that th..."
  },
  "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": "e580c512cc4eea8971dd8603f7c06b1e567e9093e9fe93a64b0c5d55ad1e46e1",
    "verified_classes": [
      "CapabilityInvariantError",
      "Manifest",
      "Invocation"
    ],
    "verified_functions": [
      "verify_invocation",
      "verify_composition"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
