{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-capability-revocation-when-a-tool-grant-is-attenuated-mid-flight",
  "title": "Where must an instance enforce capability revocation when a tool grant is attenuated mid-flight?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that hold attenuable capability tokens (macaroon/Biscuit-style or signed grant chains) scoping tool invocation, where a grant may be narrowed or revoked by a policy authority while a multi-step plan is executing. Does not apply to static, per-session ACLs re-evaluated only at plan start, nor to stateless single-shot tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-capability-revocation-when-a-tool-grant-is-attenuated-mid-flight.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-capability-revocation-when-a-tool-grant-is-attenuated-mid-flight.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-capability-revocation-when-a-tool-grant-is-attenuated-mid-flight.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1934,
    "python_slice_tokens": 487,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *authorization at invocation* and *authorization at attenuation*. A capability sandbox that validates a token immediately before each tool call is not the same as one that validates the token against the *current* grant chain. When a grant is narrowed mid-flight, a token minted under the old grant still cryptographical...",
    "what_was_observed": "An agent running a file-mutation plan held a root capability `fs:write` attenuated to `fs:write:/workspace/build/*` with a 900s TTL, minted at plan start. Mid-plan, an operator policy event narrowed the parent grant to `fs:write:/workspace/build/artifacts/*` after detecting that the agent's earlier reasoning had drifted toward writing outside the artifact subtree. The sandbox verifier, invoked per tool call, re-check...",
    "condition_of_validity": "Per-call token verification is sound *only* under the invariant that no attenuation or revocation can occur within the interval between verification and effect commit — i.e., that the authority is frozen for the duration of the call. This holds for single-shot, non-attenuable grants with session-scoped ACLs re-evaluated at plan start. It fails whenever any o...",
    "decision_boundary": "The boundary is: **does the sandbox verify the token, or verify the token against the current grant epoch, with the effect fenced to that epoch?** Choose epoch-bound verification when grants are attenuable or revocable at runtime and tool effects are non-idempotent or externally visible. Choose plain per-call verification only when the grant is provably froz...",
    "operational_effect": "With epoch-bound verification and a commit fence, the `[t1.5, t3]` window closes: the attenuation at `t1.5` advances `E` to 7, the fence held by the in-flight call either blocks the advance until commit or forces the call to abort and re-verify against `E=7`, where the `scratch/` write is correctly rejected. The failure mode shifts from *silent unauthorized ..."
  },
  "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": "03ff33e1618182399357ccc9278ec479fa5ed9103013282232a3c89b11d2efcb",
    "verified_classes": [
      "CapabilitySuperseded",
      "EpochFenceViolation",
      "Capability",
      "Authority"
    ],
    "verified_functions": [
      "admit_and_commit",
      "__init__",
      "epoch",
      "narrow",
      "is_superseded",
      "fence",
      "unfence",
      "write"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilitySuperseded",
      "EpochFenceViolation"
    ],
    "sample_fail_closed_invariants": [
      "unfence without matching fence"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
