{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-a-capability-scoped-syscall-broker-silently-widens-a-path-prefix-during-sandbox-re-entry",
  "title": "Where must an instance halt when a capability-scoped syscall broker silently widens a path prefix during sandbox re-entry?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents whose tool calls are mediated by a capability-based syscall broker (seccomp/LSM/landlock-style policy, or a userspace path-prefix filter) that re-derives the capability set on each sandbox re-entry (fork/exec, subprocess spawn, or tool retry after a checkpoint). Does not apply to single-shot, never-re-entering tool invocations where the capability set is fixed at process start and never recomputed.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-capability-scoped-syscall-broker-silently-widens-a-path-prefix-during-sandbox-re-entry.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-capability-scoped-syscall-broker-silently-widens-a-path-prefix-during-sandbox-re-entry.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-a-capability-scoped-syscall-broker-silently-widens-a-path-prefix-during-sandbox-re-entry.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1513,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the sandbox let a bad path through.\" It is that **capability widening is monotonic across re-entry unless the broker re-canonicalizes the granted prefix against the *current* working directory and mount namespace**, and the agent has no way to observe that widening happened. A capability granted as `write:/tmp/agent-7f3a/work/` at task st...",
    "what_was_observed": "A file-mutation tool was granted `write` on a workspace prefix via the broker at task initialization. The grant was stored in the agent's context as a structured capability token: `{op: write, prefix: \"/sandbox/ws/task-441/\", epoch: 3}`. Three tool calls succeeded. The fourth call invoked a `remount_workspace` utility (itself a sandboxed tool) that, as a side effect of relocating scratch space, performed `mount --bin...",
    "condition_of_validity": "The guardrail holds only if the broker enforces the following, and the agent can *verify* it was enforced: 1. **Prefix denotation is pinned to an inode identity, not a string.** The capability token must carry `(dev, ino)` of the granted directory at grant time, and every re-entry must `fstat` the resolved prefix and reject if `(dev, ino)` differs from the t...",
    "decision_boundary": "The agent must **halt and escalate** — not retry, not re-derive — when a tool result's resolved identity does not match the identity recorded in its checkpoint for the same logical path. Specifically: - If `result.resolved_identity != checkpoint.identity[logical_path]` and the operation was a write: halt. The write may have landed in a widened subtree; a ret...",
    "operational_effect": "The observable consequence of missing this boundary is **silent write divergence under re-entry**: the agent believes it has one workspace, the broker has admitted writes into two inode subtrees, and the checkpoint log is consistent with neither. Recovery is not possible from the agent side alone, because the agent's memory holds only the logical path and th..."
  },
  "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": "49261764fcbffd97674a719e32d1815d2e750a74a749ec2e61a6c2efe00894fb",
    "verified_classes": [
      "CapabilityDenotationDrift",
      "CapabilityToken",
      "ResolvedIdentity"
    ],
    "verified_functions": [
      "resolve_prefix",
      "verify_capability_on_reentry",
      "reconcile_checkpoint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CapabilityDenotationDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
