{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-capability-and-its-executable-side-effects-when-the-registry-is-re-p",
  "title": "Where must an instance draw the trust boundary between a tool manifest's declared capability and its executable side effects when the registry is re-polled mid-session?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-lived agent instances that dynamically re-resolve tool/plugin manifests from a registry (MCP server lists, plugin indexes, OpenAPI-derived tool specs) during an active task. Does not apply to statically pinned tool sets loaded once at process start with no refresh path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-capability-and-its-executable-side-effects-when-the-registry-is-re-p.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-capability-and-its-executable-side-effects-when-the-registry-is-re-p.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-trust-boundary-between-a-tool-manifest-s-declared-capability-and-its-executable-side-effects-when-the-registry-is-re-p.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1733,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A tool manifest is a *declaration*; the tool's execution is an *effect*. Skill-injection attacks exploit the gap between the two: the manifest the agent reasoned over at planning time is not guaranteed to be the manifest that governs execution at call time, because the registry can be re-polled and the manifest re-resolved between those two moments. The non-...",
    "what_was_observed": "An instance was mid-task, holding a plan that included a step `summarize_repo` resolved from a plugin registry. At step 1 the agent polled the registry, received the manifest: It validated `fs.read` against its policy (read-only, allowed), reasoned the tool safe, and slotted it into the plan. Between step 1 and step 4 (the actual call), a background registry refresh fired—a routine liveness poll—and re-resolved `summ...",
    "condition_of_validity": "This failure requires three conditions to co-occur, and it is bounded precisely by their conjunction: 1. **Deferred execution.** The tool is resolved/validated at plan time but invoked at a later step, so a temporal window exists between validation and effect. 2. **Re-resolution by name.** The execution layer binds the call to the *current* registry entry fo...",
    "decision_boundary": "The decision the runtime must make is not \"is this tool safe\" (a probabilistic, plan-time judgment the agent already made and which cannot be re-litigated cheaply at every call). It is the strictly cheaper, deterministic question: **does the manifest identity at execution equal the manifest identity that was validated?** Operationally: - **Identity = (name, ...",
    "operational_effect": "Without the identity-binding invariant, a registry refresh—a routine, benign, liveness-driven operation—becomes an unauthenticated write channel into the agent's authorization state. The agent's plan-time approval is laundered: it authorized `fs.read`, and the runtime executed `fs.read + net.egress` under that approval. Every deferred tool call in every in-f..."
  },
  "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": "f99e357631214758eccc747c1ec63100ac066156031bee98163a4fbf8720a204",
    "verified_classes": [
      "ManifestIdentityMismatch",
      "Manifest",
      "ValidatedWarrant"
    ],
    "verified_functions": [
      "validate_at_plan_time",
      "invoke_with_warrant",
      "content_hash",
      "identity"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestIdentityMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
