{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-re-derive-capability-scope-after-a-tool-result-mutates-the-warrant-surface",
  "title": "When must an instance re-derive capability scope after a tool result mutates the warrant surface",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents whose tool calls are gated by capability-scoped MCP servers issuing least-privilege tokens per call or per session. Does not apply to single-tenant, un-scoped tool proxies where the token audience and resource set are fixed at process start.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-capability-scope-after-a-tool-result-mutates-the-warrant-surface.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-capability-scope-after-a-tool-result-mutates-the-warrant-surface.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-re-derive-capability-scope-after-a-tool-result-mutates-the-warrant-surface.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1728,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent exceeded its permissions.\" The failure is that the agent's *cached model of its own permissions* diverged from the *server's authoritative warrant surface* mid-execution, and the divergence was silent because the first call succeeded. Least-privilege tokens are usually treated by the client as a static envelope: fetch a token, a...",
    "what_was_observed": "A three-step task: create a scratch artifact, populate it, then publish it. The MCP server exposes `artifacts.create`, `artifacts.write`, `artifacts.publish`, each capability-scoped. The client performs a single `token.exchange` at session start with scopes `{create, write, publish}` and a 300s TTL, then runs the loop. 1. Call 1 `artifacts.create` → returns `{id: \"a7\", grant: \"write:a7\", expires: +60s}`. The server, ...",
    "condition_of_validity": "The re-derivation requirement binds only when all of the following hold: - The MCP server's warrant surface is a function of resource state (per-resource sub-grants, state-gated scopes, or audience narrowing on creation). - At least one tool result carries warrant material (a sub-grant, a narrowed `aud`, a new resource principal) that supersedes part of the ...",
    "decision_boundary": "The decision the runtime must make on every tool result: **does this result change the set of tokens I am permitted to present on the next call?** Two failure-adjacent heuristics are wrong: - *\"Re-derive only on 403.\"* Too late—by then the agent has already made an unauthorized-attribution call (step 2 above) that polluted the resource ACL. Re-derivation mus...",
    "operational_effect": "With eager re-derivation, step 2 presents the `write:a7` sub-grant, the artifact has a single writer principal, and step 3 succeeds because the agent holds the sub-grant principal required by `publish`. The `403` never occurs. The cost is one extra `token.exchange` or sub-grant adoption per warrant-bearing result—bounded by the number of mutating calls, not ..."
  },
  "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": "1030386fc8f5f4fcfad5b46841bf4ee3e51f7995a66007c310766cb3045821fe",
    "verified_classes": [
      "StaleWarrantError",
      "WarrantEnvelope"
    ],
    "verified_functions": [
      "ingest_result",
      "authorize_call",
      "adopt"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleWarrantError"
    ],
    "sample_fail_closed_invariants": [
      "result carries a grant but no resource id; cannot bind principal"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
