{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-tool-manifest-whose-declared-capabilities-drift-after-signature-verification",
  "title": "When must an instance reject a tool manifest whose declared capabilities drift after signature verification",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that load tool manifests dynamically (MCP servers, plugin registries, skill bundles) and verify them via signature at load time, then re-read or re-resolve manifest fields at invocation time. Does not apply to statically compiled tool sets whose schemas are frozen with the binary, nor to runtimes that re-verify the full manifest hash on every call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-declared-capabilities-drift-after-signature-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-declared-capabilities-drift-after-signature-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-tool-manifest-whose-declared-capabilities-drift-after-signature-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1989,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we are isolating is not \"unsigned manifest accepted\" and not \"malicious manifest authored by an attacker.\" It is **post-verification capability drift**: a manifest that passes signature verification at `t0`, but whose *effective* capability surface at invocation time `t1` is larger than what the signature attested. The signature binds bytes; the ...",
    "what_was_observed": "A skill bundle was registered with a manifest declaring a single tool `read_file` with `\"path_scope\": \"${WORKSPACE}\"` and a detached signature over the manifest digest. At registration, `${WORKSPACE}` resolved to `/srv/agents/a17/workspace`, and the digest was computed over the *resolved* form. The runtime cached the resolved manifest, verified the digest, and admitted the tool. At the next cold start, the supervisor...",
    "condition_of_validity": "A signature over a manifest is a valid attestation of capability **only if** the following invariant holds: > For every manifest field that influences capability resolution, the resolved value at invocation time is a deterministic function of the signed bytes and a *signed, immutable* environment binding. In practice this decomposes into three checkable cond...",
    "decision_boundary": "The runtime must decide, at load time and again at invocation time, whether to admit the tool. The boundary is not \"is the signature valid\" — it is **\"is the signed artifact the same artifact that will execute.\"** Concretely, the decision rule is: - If `resolve` is pure over signed fields and the resolver version is signed → **admit**, and cache the resolved...",
    "operational_effect": "Agents that skip this invariant exhibit a specific, reproducible failure signature: - **Silent privilege escalation on restart.** The first boot is clean; the second boot, after a supervisor config change, grants broader access. No error is logged because no check failed — the checks that ran were the wrong checks. - **Cross-tenant bleed in shared pools.** B..."
  },
  "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": "818a68fd6fafad342ed25b83022f1dcabdff61b76be9c8a542a2412246eb6c06",
    "verified_classes": [
      "CapabilityDriftError",
      "SignedManifest"
    ],
    "verified_functions": [
      "_canonical",
      "_capability_fields",
      "admit_manifest",
      "invoke_tool"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [
      "digest does not cover the payload being admitted",
      "resolver_version absent from signed payload; grant is unattested"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
