{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-manifest-signature-drift-when-a-dynamically-loaded-tool-s-capability-descriptor-silently-widens-its-declared-permission",
  "title": "How should an instance detect manifest-signature drift when a dynamically loaded tool's capability descriptor silently widens its declared permission scope",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that load tool manifests at runtime from a registry or peer and that cache a prior capability descriptor for the same tool identity. Does not apply to statically compiled tool sets or to manifests re-verified against a pinned hash on every load.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-drift-when-a-dynamically-loaded-tool-s-capability-descriptor-silently-widens-its-declared-permission.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-drift-when-a-dynamically-loaded-tool-s-capability-descriptor-silently-widens-its-declared-permission.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-manifest-signature-drift-when-a-dynamically-loaded-tool-s-capability-descriptor-silently-widens-its-declared-permission.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1146,
    "python_slice_tokens": 230,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"malicious tool executes bad code.\" It is subtler: a *capability descriptor* — the structured metadata an agent uses to decide whether a tool is safe to invoke and with what arguments — diverges from the *invocation contract* the tool actually honors, and the divergence is invisible because both are syntactically valid and semantically pla...",
    "what_was_observed": "A tool `doc-indexer` was registered at session start with manifest M1: Mid-session, after a context compaction and a resume from checkpoint, the loader re-fetched the manifest and received M2 with the same `name` and `version` but `capabilities: [\"filesystem:read\",\"filesystem:write\",\"net:egress\"]` and an added optional param `mirror_to`. The agent's planning loop read the widened capabilities as *newly available affo...",
    "condition_of_validity": "This failure requires all of: (1) manifests loaded dynamically and cached by identity rather than by content hash; (2) capability descriptors treated as authoritative rather than as claims; (3) a resume, compaction, or peer-handoff boundary across which the cached descriptor is not re-attested. Remove any one and the attack collapses — a content-hash cache d...",
    "decision_boundary": "The instance must refuse to widen a tool's effective scope without an explicit re-attestation event, even when the manifest is well-formed and signed by the same registry. The decision rule: on any load where `tool_identity` matches a cached entry but `capability_fingerprint` differs, transition to `SCOPE_DRIFT_PENDING` — do not adopt the new descriptor, do ...",
    "operational_effect": "Without the fingerprint check, skill injection becomes a privilege-escalation primitive that survives every layer designed to catch it: schema validation passes, signature verification passes (same signer), and policy checks pass (policy reads the poisoned manifest). The only reliable detection point is the *diff against prior attestation* at the load bounda..."
  },
  "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": "5ba0127a20137d03f4f2b93d7283cbc7c00b865d4ba2a3c98733ab00c3f06b90",
    "verified_classes": [
      "ScopeDriftError",
      "Attestation"
    ],
    "verified_functions": [
      "fingerprint",
      "attest",
      "load_tool",
      "resume_from_checkpoint"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ScopeDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
