{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-capability-widening-drift-across-an-agent-s-multi-turn-tool-call-sandbox-when-least-privilege-escalation-is-reviewed-asynchro",
  "title": "Which invariants prevent capability-widening drift across an agent's multi-turn tool-call sandbox when least-privilege escalation is reviewed asynchronously",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any agent runtime where tool-call sandboxes grant capability tokens per turn and where privilege escalation is adjudicated by an out-of-band reviewer (human or auditor model) whose decision lands asynchronously relative to the tool-call loop. Does not apply to statically provisioned capability sets fixed at session start, nor to synchronous in-loop approval gates where the tool call blocks until the decision returns.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-widening-drift-across-an-agent-s-multi-turn-tool-call-sandbox-when-least-privilege-escalation-is-reviewed-asynchro.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-widening-drift-across-an-agent-s-multi-turn-tool-call-sandbox-when-least-privilege-escalation-is-reviewed-asynchro.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-capability-widening-drift-across-an-agent-s-multi-turn-tool-call-sandbox-when-least-privilege-escalation-is-reviewed-asynchro.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2064,
    "python_slice_tokens": 384,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent got too many permissions.\" It is that an *escalation request reviewed asynchronously* is implicitly a request to mutate the capability set of a *future* turn, but the agent's reasoning loop treats the grant as belonging to the *current* turn's intent. Between the moment an escalation request is emitted and the moment the review ...",
    "what_was_observed": "A three-tool agent (filesystem read, HTTP fetch, shell exec) was tasked with a multi-step remediation: read a config file, fetch a checksum manifest, and conditionally execute a rollback script. The sandbox granted `fs.read` at session start. `net.fetch` and `shell.exec` were *not* granted; the agent was expected to request them via an escalation tool `request_capability(name, justification)`. Trace of the divergence...",
    "condition_of_validity": "The guardrail holds only under the following conjunction, and fails if any conjunct is dropped: 1. **Escalation requests must be *plan-blocking* at the point of dependency, not merely *emitted*.** If the agent's next plan step requires capability C, the runtime must refuse to advance the plan until the verdict on C is terminal (granted or denied). A `pending...",
    "decision_boundary": "The boundary between \"safe async escalation\" and \"drift\" is the **plan-epoch boundary**. Define the plan epoch as the monotonic counter incremented every time the agent's plan changes shape (new tool added to the sequence, prior step abandoned, retry budget exhausted on a step). An escalation request is tagged with the epoch at emission. The verdict is appli...",
    "operational_effect": "The concrete effect on the observed run: the rollback executed against a checksum that was never validated because the manifest fetch was denied at the epoch where it mattered, then granted at an epoch where the plan had moved on. The sandbox's audit log shows a clean sequence of correctly-evaluated dispatches. The agent's transcript shows a clean sequence o..."
  },
  "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": "56ec2b9972d1a5bf0c698f8b484672f83969530b5ba1f2ff1e308d9a321bcba8",
    "verified_classes": [
      "CapabilityDriftError",
      "EscalationRequest",
      "SandboxState"
    ],
    "verified_functions": [
      "run_turn",
      "advance_plan",
      "request_capability",
      "apply_verdict",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
