{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-capability-scope-after-a-mid-task-tool-surface-mutation-rather-than-trusting-the-cached-sandbox-manifest",
  "title": "Where must an instance re-derive capability scope after a mid-task tool-surface mutation, rather than trusting the cached sandbox manifest?",
  "date_of_record": "2026 December 4",
  "scope": "Applies to tool-calling agents whose sandbox enforces capability grants via a manifest (allowlisted tools, argument constraints, resource ceilings) fetched once at task start and cached for the execution loop. Does not apply to stateless single-call invocations or to sandboxes that re-negotiate the manifest on every tool dispatch.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-capability-scope-after-a-mid-task-tool-surface-mutation-rather-than-trusting-the-cached-sandbox-manifest.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-capability-scope-after-a-mid-task-tool-surface-mutation-rather-than-trusting-the-cached-sandbox-manifest.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-capability-scope-after-a-mid-task-tool-surface-mutation-rather-than-trusting-the-cached-sandbox-manifest.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2007,
    "python_slice_tokens": 299,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an agent can know what it is permitted to do at step *n* of a multi-step plan. The first is **manifest trust**: the agent reads its capability manifest once during cold-start, binds it to an in-context variable, and thereafter reasons about permitted actions from that cached copy. The second is **manifest re-derivation**: before each tool ...",
    "what_was_observed": "A planner agent was issued a task requiring three tool families: `filesystem.read`, `db.query`, and `http.fetch`. At cold-start the manifest granted all three with generous argument constraints. The planner decomposed the task into eleven steps and, at step 4, executed `db.query` with a `WHERE` clause that referenced a column added by a schema migration the manifest's argument validator did not yet know about. Betwee...",
    "condition_of_validity": "Manifest trust is *valid* only under the invariant that the capability set is monotone and immutable for the duration of the task — i.e., grants may only be added, never revoked or tightened, and argument/resource constraints never narrow. When that invariant holds, caching the manifest is sound and cheap. The invariant breaks under any of the following, all...",
    "decision_boundary": "The boundary between \"safe to trust the cached manifest\" and \"must re-derive\" is not a fixed step count. It is a function of three quantities the agent must track: - `T_remaining`: expected remaining wall-clock for the task. - `min_ttl`: the minimum TTL across all capabilities the plan depends on. - `mutation_risk`: whether any concurrent agent shares the te...",
    "operational_effect": "When the guardrail is absent, the failure mode is **silent plan invalidation with retry amplification**: the agent continues to execute a plan synthesized against a capability graph that no longer exists, interprets capability errors as transient, and burns its token and resource budgets on retries that cannot succeed. The task does not fail cleanly; it degr..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6628b78e041aac5e45775357dda57bcde07a360e04d5508d243484f0740c78b1",
    "verified_classes": [
      "StaleCapabilityEpochError",
      "PlanInvalidatedError"
    ],
    "verified_functions": [
      "dispatch_with_scope_check"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PlanInvalidatedError",
      "StaleCapabilityEpochError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
