Skip to content

docs: clarify permission modes and execution boundaries - #3504

Merged
jonathanKingston merged 2 commits into
mainfrom
codex/docs-permissions-boundaries
Oct 7, 2026
Merged

jonathanKingston merged 2 commits into
mainfrom
codex/docs-permissions-boundaries

Conversation

@jonathanKingston

@jonathanKingston jonathanKingston commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Clarify when Copse approvals grant host access and when work remains contained. Update the user sandbox guide with an execution-boundary diagram and unattended Docker/Apple container behavior, explain trusted commands and run modes in the auto-approval guide, and add the complete high-level tool restriction matrix to the contributor contract.

Disclose the explicit ACP desktop sign-in staging exception for unattended runs, including its default-off consent, account-wide scope, and cleanup.

Correct the stale SSH warning to match the current gate: native commands use the actual remote execution target and are treated as unsandboxed even when the local sandbox is active.

Risk and review

Low: documentation only; no permission policy, execution code, or settings changes. The text describes security boundaries and was checked against the registry, permission gate, read-only allowlist, and container runtime. No independent human review has occurred.

Validation

Final source: 3f2057917db87348d64f9a415ccf864ae3d23608, rebased onto 26f9cf401101e3da17ff3c2b0919d1e68930cad1 (main).

  • Documentation formatting and git diff --check passed.
  • Checked the ACP exception against container-provider.ts, thread-container.ts, and agent-login.ts: supported Codex/Gemini ACP login staging is explicit, defaults off, transfers account-wide credentials to a disposable guest home, removes host staging, and discards guest refreshes.
  • The documentation-only oracle skips application unit/e2e tiers. No runtime policy or renderer changed.
  • Existing diagram/link/table validation from the initial PR remains applicable; the review correction changes one sandbox-guide paragraph only.

Remaining work

The existing contract requires sign-off from a named human security reviewer for the SSH section before merge.


Note

Medium risk
The change is documentation-only, but it revises user-facing descriptions of shell authorization, host execution, and sandbox boundaries across three security-policy guides.

Overview

  • Clarifies how ordinary sandboxed execution differs from approved external execution, trusted-command grants, deterministic auto-approval tiers, per-tool overrides, and other run modes.
  • Expands the project sandbox guide with an execution-boundary diagram and explains SSH execution plus experimental unattended Docker and Apple container behavior.
  • Adds a high-level restriction matrix for built-in and dynamic tools, including read-only eligibility and important operation-specific controls.
  • Updates the SSH contract to state that native commands use the actual remote target and are treated as unsandboxed despite a local sandbox.

Summary by Copse Reviewer for commit b748733. The review reported no issues. copse-review 0.1.0

@copse-release-bot copse-release-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copse Reviewer

Resolved: a newer review of b7487336b40d raised no new issues.

Comment thread docs/user/project-sandbox.md Resolved
@copse-release-bot copse-release-bot Bot added the review-has-feedback Pull request has reviewer findings to follow up label Oct 4, 2026
@jonathanKingston jonathanKingston added the copse-review Run the advisory Copse Reviewer pipeline label Oct 4, 2026 — with ChatGPT Codex Connector
@jonathanKingston jonathanKingston removed the copse-review Run the advisory Copse Reviewer pipeline label Oct 4, 2026
jonathanKingston added a commit that referenced this pull request Oct 4, 2026
…3531)

## Outcome

The Actions migration omitted `COPSE_REVIEW_OPENROUTER_API_KEY` from the
Copse caller's named secret mapping. The reusable model job references
the key under `copse-review-models`, but receives an empty value and
stops before a model call. Add the missing name to the caller contract
as an empty placeholder. The protected job continues to resolve the
value from its existing environment. Check that every secret referenced
by the protected model job is explicitly included by the caller and that
the dedicated key's caller value stays empty.

Historical comparison: [the old full-review
run](https://github.com/copse-dev/agent-pane/actions/runs/37198226591/attempts/1)
received the environment key and published on PR #3504; [the new
reusable
run](https://github.com/copse-dev/agent-pane/actions/runs/37219842227)
failed with an empty key on the same head.
[actions/runner#4453](actions/runner#4453)
reports matching environment-secret behavior at the reusable-workflow
boundary.

## Risk and review

Medium: this changes a credential contract. The patch adds one
explicitly named key already declared by the reusable workflow and
referenced only by its protected model job. The key remains in the
existing environment; grounding still has no secret references.

## Validation

- The new contract test fails on the original caller with the missing
dedicated key.
- Focused reviewer-action and CI-workflow invariant suites: 127 passed
after the patch.
- Actionlint for the caller and reusable workflow: passed.
- Full local static gate: passed (syntax, TypeScript, type coverage,
lint, formatting, site freshness, dead code, test oracle, E2E
exclusions).
- Full local `pnpm run check`: static gates passed; units finished with
13,059 passed, 18 failed, 9 cancelled and 22 skipped. Remaining failures
are in local runtime/sandbox/home/process fixtures (including missing
socat and read-only home paths); this is not a green full local gate.
All reviewer/workflow contract tests passed.
- GitHub CI on the final head: [CI
Passed](https://github.com/copse-dev/agent-pane/actions/runs/37228508553/job/111515675996)
succeeded. Static prechecks, selected reviewer-action units, and the
real reviewer-container boundary check passed; heavy build/E2E jobs were
intentionally skipped by the CI plan. CLA and Screenshot review also
succeeded.
- Final source: `8276594ec4773485fde1d636196eeb2dfe906db2`.
- A fresh rerun of [the old full-review
workflow](https://github.com/copse-dev/agent-pane/actions/runs/37198226591/attempts/2)
succeeded and received the existing environment key, confirming that the
environment remains functional.

## Remaining work

GitHub environment-secret resolution and new review publication must be
verified after this caller change is merged onto the trusted default
branch. Local contract checks cannot establish delivery of an encrypted
GitHub secret. Full local units retain the workspace limitations listed
above; required PR CI has passed. This draft does not claim end-to-end
completion.
@jonathanKingston jonathanKingston added the copse-review Run the advisory Copse Reviewer pipeline label Oct 4, 2026 — with ChatGPT Codex Connector
@jonathanKingston jonathanKingston removed the copse-review Run the advisory Copse Reviewer pipeline label Oct 4, 2026
@jonathanKingston
jonathanKingston force-pushed the codex/docs-permissions-boundaries branch from b748733 to 3f20579 Compare October 5, 2026 11:15
github-actions Bot added a commit that referenced this pull request Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🖥️ PR preview

@jonathanKingston
jonathanKingston merged commit 12cda2f into main Oct 7, 2026
@jonathanKingston
jonathanKingston deleted the codex/docs-permissions-boundaries branch October 7, 2026 08:33
github-actions Bot added a commit that referenced this pull request Oct 7, 2026

This branch was previously deployed

2 inactive (1 outdated) deployments
github-pages — 3f205791 Deployed Oct 7, 2026 by jonathanKingston
copse-review-models — b7487336 Deployed Oct 4, 2026 by jonathanKingston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-has-feedback Pull request has reviewer findings to follow up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant