{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-re-signed-skill-manifest-whose-declared-capabilities-have-drifted-from-the-capabilities-the-skill-actually-exercises-at",
  "title": "How does an instance detect a re-signed skill manifest whose declared capabilities have drifted from the capabilities the skill actually exercises at runtime?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that load skills/tools from signed manifests and gate invocation on a declared capability set. Does not apply to monolithic agents with no third-party skill surface, nor to sandboxes that enforce capability at the OS syscall layer independent of any manifest.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-skill-manifest-whose-declared-capabilities-have-drifted-from-the-capabilities-the-skill-actually-exercises-at.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-skill-manifest-whose-declared-capabilities-have-drifted-from-the-capabilities-the-skill-actually-exercises-at.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-re-signed-skill-manifest-whose-declared-capabilities-have-drifted-from-the-capabilities-the-skill-actually-exercises-at.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1827,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A manifest integrity signature proves *who authored the declaration and that the declaration was not altered in transit*. It does **not** prove that the declaration is *true of the code that runs*. These are two orthogonal invariants: - **Integrity invariant:** `sign(manifest) == manifest_bytes` under a trusted key. Detects tampering by a third party. - **Co...",
    "what_was_observed": "A skill loader performs the following on each load: 1. Fetch `skill.manifest.json` and `skill.manifest.sig`. 2. Verify signature against a pinned publisher key. **Passes.** 3. Parse `declared_capabilities: [\"fs.read:/data/in\", \"http.get:api.internal\"]`. 4. Register the skill and expose it to the planner. 5. Invoke the skill on a task. The skill's process opens `fs.write:/data/out`, reads `/etc/agent/secrets`, and iss...",
    "condition_of_validity": "The runtime can only *detect* drift if it maintains a runtime observation channel that is independent of the manifest. Concretely, detection requires: - **Capability observation must be enforced, not advisory.** File opens, socket calls, and subprocess spawns must be intercepted at a layer the skill cannot bypass (seccomp/LSM/eBPF or an in-process shim that ...",
    "decision_boundary": "The runtime must decide, per observed effect, whether to **admit**, **quarantine**, or **abort**: - **Admit** when `observed_capability ∈ declared_capabilities` and the observed effect is within the canonical declared root. This is the steady state. - **Quarantine** when an observed effect falls outside the declaration but the skill has not yet completed a s...",
    "operational_effect": "Without the conformance gate, a validly signed manifest is treated as an *authorization*, and the agent's planner will route tasks to a skill whose true capability surface is larger than the one the agent reasoned about. The agent's own capability budget — the set of resources it believes it can touch — becomes a subset of what it actually touches, and every..."
  },
  "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": "f8d3b5a0510b0431b50039a8ec51b3f05363c634d506803f98e97d797ffa5a65",
    "verified_classes": [
      "CapabilityDriftError",
      "Manifest",
      "LoadIdentity"
    ],
    "verified_functions": [
      "canonicalize_path",
      "capability_covers",
      "record_effect",
      "verify_signature"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "os",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
