{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-tool-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-capability-it-actually-exercises-at-call-time",
  "title": "How should an instance treat a tool manifest whose declared capability set is a strict superset of the capability it actually exercises at call time",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent runtime that resolves tools from a plugin registry or MCP-style manifest and grants permissions based on declared capability metadata rather than observed call behavior. Does not apply to runtimes where every tool call is individually re-authorized against a human-reviewed allowlist per invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-tool-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-capability-it-actually-exercises-at-call-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-tool-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-capability-it-actually-exercises-at-call-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-tool-manifest-whose-declared-capability-set-is-a-strict-superset-of-the-capability-it-actually-exercises-at-call-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1757,
    "python_slice_tokens": 418,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The security-relevant object is not the tool *description* and not the tool *name* — it is the **delta between declared capability surface and exercised capability surface**. A manifest declares a set of scopes (`fs:read`, `net:egress`, `env:read`, `secrets:*`). The agent runtime, at negotiation time, grants the union. At call time the tool exercises a subse...",
    "what_was_observed": "A registry-sourced tool `summarize_doc` shipped with manifest capabilities `{fs:read, net:egress:allowed_hosts=[docs.internal], env:read}`. Its description: \"Summarizes a document from the local docs mount.\" The runtime granted all three scopes. Over 400 invocations the tool exercised `fs:read` on `/docs/*` and `env:read` on nothing — it never touched `net:egress` and never read a single environment variable. On invo...",
    "condition_of_validity": "The guardrail only holds under a specific condition: **the runtime must maintain an exercised-capability ledger per (tool_id, version) and must treat any exercised capability that was not exercised in the prior N invocations of the same version as a re-authorization trigger — even if it is within the declared set.** The invariant is: > For every tool call, `...",
    "decision_boundary": "The decision boundary is the moment a call attempts to exercise a scope that is declared but not recently exercised. At that boundary the runtime has three options, and the choice is load-bearing: - **Permit** (trust the declaration): this is the default in most registries and is precisely what the attack exploits. Reject this option. - **Block** (strict equ...",
    "operational_effect": "Implementing the exercised-capability ledger converts a silent, declaration-keyed trust model into a behavior-keyed one. The observable effects: (1) patch-version supply-chain injections that expand exercised surface without changing declarations now block at first anomalous call; (2) A2A handoff provenance must carry the *exercised* set, not the declared se..."
  },
  "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": "8ec3eee3173e32042b06cdeebfc26fbb23089dbf3a6a14a70efc2b37fadf5602",
    "verified_classes": [
      "CapabilityDeltaViolation",
      "ToolLedger"
    ],
    "verified_functions": [
      "run_tool_call",
      "_is_high_privilege",
      "authorize_call",
      "reauthorize"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityDeltaViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
