Repository navigation
Conversation
Plan-Finalized: 4bc96701b264c44addc3b284a940ec06706bd414bfc5cf9f8a60e68a8ea5da2d
Overdeck-Agent: agent-pan-5754
PAN-5754 WI-1. agents.isolation.{enabled, allow_docker, allow_write} is read
from the global config.yaml only (loadGlobalConfig is now exported for that);
stripProjectSecurity drops agents.isolation from .pan.yaml and keeps the other
agents keys. isIsolatedTokenRole is false only for conversation and flywheel.
paths.ts holds the agent-tokens, isolation and agent-socket locations and the
isolation env var names.
Item: iso-config
Item: iso-config.ac1
Item: iso-config.ac2
Item: iso-config.ac3
Item: iso-config.ac4
Item: iso-config.ac5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
…sed isolation mint
PAN-5754 WI-2. An owner's token now lives at
<home>/agent-tokens/<kind>/<id>/mcp-token (directory 0700, file 0600), so the
sandbox can deny agent-tokens/ and re-allow only the owner's own directory.
agentMcpTokenPath(dir) becomes agentMcpTokenPathFor({ agentId, agentKind }),
which refuses an owner id that is not one path segment. Revoke unlinks the new
file and the legacy <dir>/mcp-token. ensureIsolationToken mints regardless of
the MCP switch and rethrows a failure as 'agent isolation: token mint failed
for <id>: ...'.
Tests that asserted the old <owner dir>/mcp-token location now assert the new one.
Item: token-location
Item: token-location.ac1
Item: token-location.ac2
Item: token-location.ac3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
…lver PAN-5754 WI-3. buildIsolationPolicy turns one launch's paths into the D-8 policy: the operator secret set and the masked socket dirs (Herdr, tmux, ~/.overdeck/sockets, the user runtime dir, X11, Docker unless allow_docker) are denied for read and write; the owner's own token dir is re-allowed; writes are allowed only to the workspace, /tmp, the git common dirs, the DB files, logs/, tmp/ and the admission queue inside OVERDECK_HOME, the caches present at launch and allow_write. Workspace .git files, .claude/, .mcp.json, git hooks/config and cache executable dirs are write-denied. Deviation: the input carries repoRoots (workspace plus polyrepo child repos) so each child's .git file is write-denied too, and drops the unused uid (the resolver uses it to find the tmux socket dir). Item: iso-policy Item: iso-policy.ac1 Item: iso-policy.ac2 Item: iso-policy.ac3 Item: iso-policy.ac4 Item: iso-policy.ac5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 WI-4. renderIsolationClaudeSettings turns the isolation policy into the --settings file: sandbox enabled with failIfUnavailable, no unsandboxed retry, auto-allowed sandboxed Bash, all Unix sockets (the policy's masks block the terminal-backend ones) and every domain; Read(//...) and Edit(//...) deny rules for each denied path, bare and /** so files and directories both match; and the PreToolUse write guard hook with the policy file. writeIsolationFiles writes claude-settings.json and policy.json (0600) under <home>/isolation/<kind>/<id>/ (0700). Item: claude-settings Item: claude-settings.ac1 Item: claude-settings.ac2 Item: claude-settings.ac3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 WI-5. Claude Code's sandbox covers Bash only, so this hook keeps Edit, Write, MultiEdit and NotebookEdit inside the isolation policy: it resolves the target with realpath -m (a symlink is judged by its destination), allows a path under an allowWrite root and no denyWrite root, and otherwise prints a PreToolUse deny. A missing or invalid policy, a missing jq or a payload with no path all deny. pan sync already installs every file in sync-sources/hooks/ to ~/.overdeck/bin. Item: write-guard-hook Item: write-guard-hook.ac1 Item: write-guard-hook.ac2 Item: write-guard-hook.ac3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 iso-policy follow-up. buildIsolationPolicy write-denied <root>/.git for every repo root, but in a plain clone that path is the git common dir it also allows, and a deny wins, so the agent could not commit. Only a .git that is not a common dir (a worktree pointer file) is denied now; the common dir's hooks/ and config stay denied. resolveIsolationPolicyInput also takes the global config layer, so callers and tests pass their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754 write-guard-hook follow-up. BSD realpath (macOS) has no -m, and the guard fails closed, so it would have denied every edit there. It now falls back to a node one-liner that canonicalizes the longest existing prefix and keeps the missing tail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754 WI-6. prepareAgentIsolation returns {} for conversations, the
Flywheel and when agents.isolation.enabled is false. Otherwise it fails
closed: a Linux claude-code launch without bwrap or socat is refused with the
D-12 install hint, then ensureIsolationToken mints (and throws on failure),
the policy is built and, for claude-code, the settings and policy files are
written. LauncherConfig.isolation adds, before cd: mkdir of the masked socket
dirs, the OVERDECK_AGENT_TOKEN_FILE / OVERDECK_DASHBOARD_SOCKET /
OVERDECK_ISOLATED / NODE_USE_ENV_PROXY exports, unset OVERDECK_INTERNAL_TOKEN
and the root-registry line (pid + /proc start time). Claude commands get
--settings "$PAN_ISO_SETTINGS". The review sub-role's post-exit pan tell and
pan admin agents exited run under env -u OVERDECK_AGENT_TOKEN_FILE (D-15).
Deviation: skill overrides already pass --settings "$PAN_SKILL_SETTINGS", and
Claude Code keeps one --settings value. The launcher folds the skill JSON into
a per-launch copy of the isolation settings (arrays concatenated, isolation
scalars win) and clears PAN_SKILL_SETTINGS; a failed merge keeps the isolation
file alone, so the sandbox is never dropped. Helpers live in
agent-isolation/launcher-lines.ts to keep launcher-generator.ts under its cap.
Item: launch-isolation
Item: launch-isolation.ac1
Item: launch-isolation.ac2
Item: launch-isolation.ac3
Item: launch-isolation.ac4
Item: launch-isolation.ac5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 launch-isolation follow-up. The bwrap/socat check now uses the cached resolveHostTool lookup (bwrap and socat join HostToolName) instead of its own PATH scan, so it shares the PATH-only, no-spawn lookup and the test convention (OVERDECK_TEST_ASSUME_HOST_TOOLS; setHostToolFinderForTests) with every other host tool probe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 WI-23 (D-13). codexLaunchPermissions maps codex.permissionMode to the Codex home's approval policy, sandbox mode and reviewer, and turns full-access into workspace for an isolated launch. getCodexLauncherFields uses it with the role's isolation; conversation-runtime uses it with the conversation's token role, so a lane conversation (token role worker) is clamped too while operator conversations keep their configured mode. The mapping was duplicated in both files; it now lives once. CP-5: codex-cli 0.173 offers named permission profiles and extra readable roots but no setting that denies reads of given paths, so isolated Codex agents can still read the operator secret set (class write-sandbox). Recorded in agent-isolation/codex.ts. Item: codex-clamp Item: codex-clamp.ac1 Item: codex-clamp.ac2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
PAN-5754 WI-7. prepareAgentLaunchAccess returns the overdeck MCP launcher fields plus prepareAgentIsolation's, so a site cannot wire one without the other. spawn.ts (spawnRun), spawn-prep.ts (buildAgentLaunchConfig, fresh and resume), recovery.ts and messaging.ts (fresh-launch fallback) call it in place of prepareClaudeOverdeckMcp. An isolation error (missing sandbox prerequisite, failed mint) throws, so the spawn fails like a missing binary. Every spawn-path test file (60) passes with isolation on by default. Item: launch-sites-agents Item: launch-sites-agents.ac1 Item: launch-sites-agents.ac2 Item: launch-sites-agents.ac3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Overdeck-Agent: agent-pan-5754
…sites PAN-5754 WI-8. spawn-planning-session.ts and the planning continuation route (routes/misc/planning.ts) launch the planner (role plan, isolated) through prepareAgentLaunchAccess. conversation-runtime.ts does the same for a conversation with a row, using its token role: a plain operator conversation (token role conversation) gets no isolation fields (FR-11), and a lane conversation (token role worker) gets the --settings file and its own token. Deviation: the conversation cases are asserted in the existing conversation-runtime-launch.test.ts (which already mocks the launch stack) instead of a new conversation-isolation.test.ts. planning-routes.test.ts asserted the pre-WI-2 <agent dir>/mcp-token path; it now asserts the agent-tokens location and the planner's isolation. Item: launch-sites-planning-conv Item: launch-sites-planning-conv.ac1 Item: launch-sites-planning-conv.ac2 Item: launch-sites-planning-conv.ac3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. With unix sockets denied in the sandbox, an isolated CLI call falls back to the sandbox's HTTP proxy, with the proxy's credentials and the agent token, before plain TCP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. An isolated-role token is refused on terminal attach, conversation creates and operator-wide writes, and may message or change only itself, its parent, what it started and its own issue's agents. Forwarded tell checks the same rule and drops --steer; memory writes are project-only; a self handoff pins the caller's role and issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. A failed peer lookup marks the connection as an isolated agent's, and a request carrying an agent token is judged by that token whatever its peer. The fd scan reads links in parallel. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. The dashboard sets core.hooksPath=/dev/null and core.fsmonitor=false through GIT_CONFIG_COUNT for itself and its children. Terminal panes start without it, so agents' own commits still run the project's hooks in their sandbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. pan doctor warns for each registered project whose origin no credential helper allowed in the sandbox can push to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
… file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754 CI fix. An isolated agent writes project memory only, so the round trip that writes a user fact runs with isolation switched off; the isolated refusal is covered in self-memory.test.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
…to Bash PAN-5754. Claude Code mounts a worktree's shared git dir writable, so the policy denies every entry present at launch by name except object, ref and reflog data and the agent's own worktree dir, and pre-creates the shared per-worktree config. Package cache variables now reach only sandboxed Bash commands through CLAUDE_ENV_FILE, never hooks or MCP servers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. Isolated tokens start workers and lanes only through their own doors, on this machine, with a harness or model that runs in an OS sandbox; the bare and fleet start routes are fenced, and so are worker and lane stops outside the allowed targets. A forwarded tell runs with the target id the fence approved. A test classifies every write route an agent token reaches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. The app server's agents run the repository's hooks for their own commits, as pane agents do. Adds a test that the dashboard applies the guard at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. Probes P29-P33, the git dir denies, cache variables via CLAUDE_ENV_FILE, the tsx CLI under denied sockets, start-route limits, and residual R-13 with follow-up #6002. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
|
Flywheel review: CHANGES REQUESTED Head reviewed: Most of the last round is fixed, and the fixes I checked each have a test that would fail if the fix were reverted:
What still blocks is the shared git directory. I reproduced each point in throwaway repositories only, not on the live system. Blocking
Should fix
On the listed deviations
Verified
|
…Flywheel tell PAN-5754. Plan, work, review, test and strike agents are isolated, and an isolated agent's tell reaches only its own issue's agents, its parent and the agents it started, so a tell to the Flywheel is refused. The role prompts now raise a stall with pan ask (the Needs-you list the Flywheel reads) and record a push-back as an issue comment. pan ask is forwarded for plan, review and test as well as work and strike. Prompt-Change: pipeline role prompts escalate with pan ask, not pan tell conv-flywheel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. Adds npm, doctl, glab, wrangler, restic, rclone, sentry, gnupg and codex credential locations to the home entries an isolated Claude Code agent cannot read, when present at launch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. pan done runs outside the agent's sandbox, and a workspace's rebase state is agent-writable. The rebase helper now refuses to act while any rebase is already in progress, and before rebase --continue it checks that the state names the onto and original head it began with and holds only pick steps; otherwise it aborts with an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. The launcher creates <commondir>/commondir containing "." when it is missing, the same way it creates config.worktree: never overwriting an existing file and never through a symlink. "." names the git dir itself, so git behaves as before, and the policy can then deny the file. No shallow placeholder is created. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
PAN-5754. The user page, developer notes and changelog now say plainly that this layer stops an isolated agent's own tool calls from reading operator credentials or reaching operator-only services, and that it does not yet cover Overdeck processes that run agent-edited files outside the sandbox or agents on other harnesses (epic #6004). Documents the commondir placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
… file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
|
Flywheel review: CHANGES REQUESTED Head reviewed: This round's commits look right:
One change, older than this round, is worse than Blocking
Should fix
Deviations
Confirmed
|
PAN-5754. The launcher no longer creates <commondir>/rr-cache, and an existing one is denied like any other shared git dir entry. The agent's sandboxed git runs with rerere.enabled=false, appended through the Bash env file after the GIT_CONFIG_* entries already set, so it never tries to write rr-cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
…ign commondir PAN-5754. If <commondir>/commondir exists and is not a regular file holding exactly ".", the placeholder the launcher creates, isolated launches in that repository are refused with a clear reason before any token is minted, and pan doctor reports it as an error per project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
…iduals PAN-5754. The user page, developer notes and changelog now say "Claude Code pipeline agents" and qualify each layer-1 statement with the residual risks. Documents the commondir refusal and the rerere setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Overdeck-Agent: agent-pan-5754
|
Flywheel review: CHANGES REQUESTED Head reviewed: Required1. The
Should fix2. A refused launch still mints a token. At the real launch sites, Nits
Verified
After these fixes, a full isolated launch on a host with |
Important
Rollout requirement (Linux): isolated Claude Code agents run inside Claude Code's OS sandbox, which needs
bwrap(packagebubblewrap) andsocat. Install both on every Linux host before this deploys, or every isolated Claude Code agent (work, review, test, plan, …) is refused at launch:sudo apt-get install bubblewrap socatsudo dnf install bubblewrap socatsudo pacman -S bubblewrap socatsudo zypper install bubblewrap socat· Alpine:sudo apk add bubblewrap socatEscape hatch:
agents.isolation.enabled: falsein~/.overdeck/config.yamlkeeps the old behaviour.pan install,pan syncandpan doctorwarn when either binary is missing and print the command for the host's distribution. This dev host currently lackssocat.Push credentials: sandboxed agents push over https through the
ghcredential helper (gh auth setup-git). ssh remotes, the ssh agent and keyring helpers (libsecret, credential-cache) do not work inside the sandbox;pan doctorwarns for each registered project whose agents could not push.Partly verified live: a full isolated agent launch was not run (this host has no
socat). The review-fix pass ran the rendered isolation settings of a real worktree throughclaude -p --settingswith a scratchsocat(probes P25–P33 indocs/AGENT-ISOLATION.md): git commit, fetch, merge and push, the CLI transport through the sandbox proxy, and the file and socket denies. Open gaps and residual risks R-1 to R-13 (follow-ups #5996, #5997, #5998, #6002) are documented inconfiguration/agent-isolation.mdx.Issue: #5754
Acceptance Criteria
🤖 Generated with Claude Code