Skip to content

fix(runtime): probe Codex linked-worktree metadata access - #206

Merged
datacas merged 8 commits into
mainfrom
task-203
Oct 10, 2026
Merged

datacas merged 8 commits into
mainfrom
task-203

Conversation

@datacas

@datacas datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Issue: #203

Implementation route: profile cheap_coder; requested model openai/gpt-6-luna; effort high; resolved model ?.

Diagnosis

The reported symptom is that Codex can edit a linked worktree but cannot update its private Git metadata under .git/worktrees/<task> when committing or publishing. The prior run in #174 recorded the failure. A fresh live Codex reproduction could not run here because the host blocked outbound access to ab.chatgpt.com before Codex execution. The cause is confirmed by the runtime and Codex sandbox rules: #196 grants the common .git directory, while Codex also protects the resolved per-worktree gitdir beneath additional roots. The issue's permission hypothesis matches the cause. The invariant is that a writing publisher must be able to update all Git metadata required by the selected linked worktree.

Related work: the basic and widened GitHub searches found #177 (closed by merged PR #196), #190 (open executor refactor), and no other open item addressed by this change. Land #203 before #190 because that refactor reorganizes the executor dispatch path this fix covers.

The fix grants explicit filesystem write rules for the common Git directory and the selected worktree gitdir through code_cycle_publish_write. Before routing an implementation stage to Codex, the runtime runs a write-and-verify probe using CodexAdapter.argv(writes=True, publishes=True, writable_dirs=...). If the probe fails, it routes to another executor that declares publish access before dispatch and records the reason in the runtime route context.

Work units

Unit Behaviour Files Tests Verification Rollback
WU-1 Grant and verify linked-worktree Git metadata writes for Codex publication; route the implementation stage elsewhere before dispatch if the probe fails. scripts/executors.py, scripts/run_cycle.py, scripts/cycle.py, tests/test_executors.py, tests/test_run_cycle.py, tests/test_cycle.py, tests/fakes/fake_agent.py, docs/verification.md Probe argv/profile, write and non-zero subprocess outcomes, pre-dispatch routing, and linked-worktree gitdir selection. Package validator, full 1,196-test suite, and fake Codex process-boundary probe; all passed. Independent: reverting this unit restores the prior Codex Git metadata access and routing behaviour.

Verification

Agent-reported:

  • python3 scripts/validate-package.py — passed.
  • python3 -m unittest discover -s tests -q — 1,196 tests passed.
  • PYTHONPATH=tests python3 -m unittest test_executors.PermissionTests.test_git_metadata_probe_crosses_the_cli_process_boundary -q — passed; the fake Codex CLI verified writes and a non-zero exit.

The live Codex CLI probe was not verified because this host blocked ab.chatgpt.com. Local checks used the repository's Python runtime and fake executors; they do not establish live Codex authentication or network access.

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

Initial review — PR #206 (issue #203)

Verdict: CHANGES_REQUESTED — reviewed head 8673d4622bbe3ce6c646cfdff812eb8dd01c1b73.

Summary

The diagnosis is right. A run under the real Codex sandbox confirms that the per-worktree gitdir (.git/worktrees/<task>) is read-only even when the common directory is granted. The direction of the fix is also right: explicit filesystem write rules plus a pre-dispatch probe. However, the exact -c override that the PR generates is rejected by the Codex CLI. Codex splits the dotted key on the . in .git. Every writing publish dispatch to Codex from a linked worktree therefore fails at config load. The probe always fails, so Codex is never used for implementation. The resolve stage is not probed, so on Codex it now fails at launch. The unit suite passes because no test exercises Codex's real config parser.

Scope reviewed: the complete accumulated diff origin/main...8673d46 (merge base 5ebec51, 541 lines, SHA-256 64bbfbf2…eb8deb693, line count and hash confirmed). The diff covers 8 files: docs/verification.md, scripts/cycle.py, scripts/executors.py, scripts/run_cycle.py, tests/fakes/fake_agent.py, tests/test_cycle.py, tests/test_executors.py, and tests/test_run_cycle.py.

Findings

[REV-001] · critical · open · - · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

scripts/executors.py:1316 (CodexAdapter.argv)

The PR emits -c permissions.code_cycle_publish_write.filesystem."<dir>"="write", with the path quoted through json.dumps. Codex's -c override parser splits the key path on every . and ignores TOML quoting, so the path is cut at /.git. Every linked-worktree path contains .git, which means this applies always.

Runtime evidence with Codex CLI 0.161.0, using the exact argv produced by CodexAdapter.argv(..., writes=True, publishes=True, writable_dirs=(common, gitdir)) with an empty CODEX_HOME:

Error: filesystem path `"/home/datacas/ccr206-sbx/repo/` must be absolute, use `~/...`, or start with `:`

The non-zero exit happens before any model call. codex sandbox with the same flags fails the same way.

Impact:

  • Implementation: probe_git_metadata_write always returns exited 1. The implement stage is always rerouted away from Codex, or BLOCKED when no other publisher is available. The first acceptance criterion ("a Codex implementation stage in a linked worktree can commit, push and open the PR") is never met. The fallback path only appears to work.
  • Resolve (regression): resolve also writes and publishes, so it gets the same flags but no probe (see REV-003). On main a Codex resolve stage at least ran and failed only at publication. With this PR it fails at launch. cheap_coder and deep_coder both have Codex as primary.

A working form, verified under the real sandbox: emit the table as one inline override:

-c 'permissions.code_cycle_publish_write.filesystem={"<common>"="write","<gitdir>"="write"}'

With extends=":workspace" this keeps the worktree writable. It allows writes to .git/worktrees/<task>, refs, and objects. git add and git commit inside the linked worktree succeed, and writes outside the roots stay denied. Encode keys with TOML basic-string escaping; on Windows, json.dumps escaping is compatible.

[REV-002] · medium · open · - · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

scripts/executors.py:1316, docs/verification.md:29

Once REV-001 is fixed, the explicit "<common>"="write" rule overrides Codex's metadata protection for the whole common directory. With the inline form, .git/hooks/* and .git/config became writable inside the sandbox. In the baseline without the rule, .git/config and refs were denied. A prompt-injected implementer could plant a hook or set core.fsmonitor/core.hooksPath. Unsandboxed git would then run it, both the runtime's own git calls and the maintainer's in the main checkout. That is a sandbox escape.

docs/verification.md already accepts "hooks, configuration" in principle. The carve-out is cheap, though. Adding "<common>/hooks"="read" to the same inline table denied hook writes while refs, objects, the worktree gitdir, and git commit kept working (verified). Consider the same for config, after checking that git push -u and gh do not need to write it. Also document the residual access.

[REV-003] · medium · open · - · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

scripts/cycle.py:468

The probe is gated on role == "implement". resolve uses WORKSPACE_WRITE with push_branch in the same linked worktree. It receives the same writable_dirs and filesystem rules, but nothing checks them before dispatch. If the grant is ineffective, as it is today (REV-001), or a future Codex release changes the protection, a Codex resolve stage fails at publication again with no pre-dispatch detection or route note. This is the failure #203 describes. Gate the probe on writes and publishes rather than on the role name, or say explicitly why resolve is exempt.

[REV-004] · low · open · - · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

scripts/executors.py:1242

Every Codex implementation stage in a linked worktree now pays an extra codex exec model turn at the stage's effort, bounded by a hard 90 s timeout. It also inherits network access (publishes=True), which the probe does not need. Quota, auth, network, timeout, a slow model, and a model that declines the instruction all become False. The reroute note then attributes them to Git metadata. The probe bypasses the stage's failure_code classification and dispatch-attempt telemetry, so a quota hit or a timeout is neither recorded nor surfaced as one. Consider classifying the probe's exit and output like a dispatch. Also consider whether a deterministic check (codex sandbox … -- <write cmd>) could replace the model turn.

[REV-005] · low · open · - · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

tests/test_executors.py:430, tests/test_executors.py:468

The "process boundary" test uses a fake codex that ignores argv and config, and the argv test only asserts string membership. Add a test that would have failed here. For example, assert that no -c key path embeds a filesystem path (the key must split cleanly on .), or parse each override the way Codex does. Optionally add a probe gated on a live Codex installation.

Security triage

  • Deterministic rule (security_gate.py defaults; .code-cycle.yml has no security_review.always_when): did not fire. No changed path, filename, or label matched (the PR has no labels).
  • Reviewer judgement: audit required. The change widens the executor sandbox filesystem boundary for agents that process untrusted issue content.
  • Audit result: performed inline by this reviewer; cc-security-review was not run as a separate pass, so this is a degraded pass. No confirmed vulnerability ships at this head, because REV-001 makes the grant inert. One potential risk is recorded as REV-002 (hooks/config sandbox escape once the grant works). No secrets, credentials, or new network destinations were added.

Commands executed

Command Result
wc -l / sha256sum on the evidence diff 541 lines; hash matches
python3 scripts/validate-package.py exit 0 — VALID: 15 skills …
python3 -m unittest discover -s tests -q exit 0 — Ran 1196 tests … OK
codex exec <exact PR argv> (Codex CLI 0.161.0, empty CODEX_HOME, temp linked worktree) exit non-zero — filesystem path "/…/repo/ must be absolute (REV-001)
codex sandbox with profile and no filesystem rules .git/worktrees/<task>, .git/config, and refs denied (confirms #203 diagnosis)
codex sandbox with inline-table rules gitdir, refs, objects, hooks, and config writable; worktree commit OK; outside denied (REV-001 fix, REV-002)
codex sandbox with inline table + hooks=read hooks denied; refs, objects, gitdir, and commit OK (REV-002 mitigation)

All sandbox experiments ran in throwaway repositories outside the PR workspace, which were then removed.

Not verified

  • A live codex exec probe through a model turn: whether the model follows the probe prompt and how long it takes. The config error happens before any model call, so REV-001 does not depend on this.
  • macOS Seatbelt and Windows sandbox behaviour of the filesystem rules. Only Linux bubblewrap (WSL2) was exercised.
  • Whether git push -u or gh pr create need .git/config writes. This matters for REV-002's optional config carve-out.

CI

gh pr checks 206: 4 passed, 0 failed, 0 pending.

  • Validate package / Skills, manifests, and Bash installer — success (two runs). This job also runs python3 -m unittest discover -s tests -v.
  • Validate package / PowerShell installer — success (two runs). This job runs the suite on Windows.

No check exercises a real Codex CLI, so CI cannot detect REV-001. No expected check is missing.

Residual risks

  • After REV-001 is fixed, the effective grant covers the whole common Git directory (all branches' refs, objects, and possibly config), as documented.
  • Probe latency and cost on every Codex implementation stage (REV-004).
  • Sequencing with refactor(F2): one adapter per executor with its own dispatch and stream parsing #190 (the executor refactor) is noted in the docs. Any rebase there must preserve the probe and the inline-table encoding.

Project review verdict: CHANGES_REQUESTED — blocking: REV-001.

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

Triage for PR #206, work item #203. All dispositions below are frozen against head 8673d4622bbe3ce6c646cfdff812eb8dd01c1b73, before edits.

[REV-001] · critical · open · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

Valid: CodexAdapter.argv builds a dotted -c key containing a filesystem path with .git; reviewer reproduction reports Codex rejects it before the model starts.

[REV-002] · medium · open · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

Valid: the requested common-directory write grant covers hooks and config; the reviewer reproduced hook writes and documented the unsandboxed Git execution path.

[REV-003] · medium · open · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

Valid: CycleRecorder.stage currently gates the probe on role == "implement", while resolve also writes and publishes through the same Codex permissions.

[REV-004] · low · open · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

Valid: the probe dispatches a 90-second Codex model run with publish networking, and its result loses timeout, quota, authentication, and transport distinctions.

[REV-005] · low · open · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

Valid: the current argv tests assert string membership and the fake CLI does not parse the real Codex override syntax.

No edits have been made at this triage point.

@datacas

datacas commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

Resolution update — PR #206 / work item #203

Fix commit: a2fb40b27982a8c6a266a8e9280606daa3b8f329.

[REV-001] · critical · open · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

The filesystem paths now live as quoted keys in one TOML inline-table value instead of in the dotted -c key. Regression coverage checks that shape. Kept open because this environment could not complete the real Codex sandbox invocation; it failed during app-server socket setup before the permission profile was exercised.

[REV-002] · medium · open · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

The profile adds read-only rules for the common Git hooks/config and private worktree hooks/config.worktree. Tests check the rules. Kept open pending a real platform enforcement run. Residual risks from the security pass: Codex may ignore carve-outs for absent paths on some platforms, and a separately configured core.hooksPath inside the writable source tree is outside these metadata rules.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

The probe now applies to every Codex stage that writes and publishes. A resolve-stage regression test confirms rerouting occurs before dispatch.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

The probe now runs a deterministic local codex sandbox command with a 15-second timeout, no model turn, and no network access. It preserves the subprocess exit detail in the route reason.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

A regression test checks that the filesystem paths are TOML table values rather than dotted override keys. The fake CLI process-boundary test also covers successful and non-zero exits.

Verification

Agent-reported:

  • python3 scripts/validate-package.py — passed.
  • python3 -m unittest discover -s tests -q — 1,197 tests passed.
  • PYTHONPATH=tests python3 -m unittest test_installed_cycle -q — 17 tests passed.
  • Targeted executor and cycle regression tests — 6 passed.
  • Post-change code review found no additional findings. The security pass found no confirmed vulnerability and reported the residual risks above.

Not verified:

  • The real Codex CLI 0.161.0 boundary probe exited before sandbox execution because this managed environment rejected the app-server socket directory. The exact sandbox permission enforcement remains unverified here.
  • Both Windows PowerShell installer checks failed in the Validate package with Windows Python step on head a2fb40b27982a8c6a266a8e9280606daa3b8f329. GitHub's annotations expose only exit code 1; the detailed log download redirects to a host blocked by this environment, so the failure cause is not known.

Checks of the pushed head

Head: a2fb40b27982a8c6a266a8e9280606daa3b8f329 (commit a2fb40b27982a8c6a266a8e9280606daa3b8f329).

  • Skills, manifests, and Bash installer — pass, two runs.
  • PowerShell installer — fail, two runs.

The Windows failure needs diagnosis before REV-001 and REV-002 can be closed. No change request was created or merged.

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

CI evidence for the resolver (head a2fb40b; the PowerShell installer job fails in Validate package with Windows Python, run 37784793506, job 113336671017, same failure in job 113336695415):

Single failure, 1197 tests, failures=1, skipped=58:

FAIL: test_codex_publish_profile_reopens_only_the_supplied_git_roots (test_executors.PermissionTests)
  File "tests\test_executors.py", line 1192, in test_codex_publish_profile_reopens_only_the_supplied_git_roots
AssertionError: {"/repo/.git/hooks": "read", "/repo/.git/config": "read", ...}
             != {"\\repo\\.git\\hooks": "read", "\\repo\\.git\\config": "read", ...}

On Windows the generated filesystem-rule keys use backslashes (\repo\.git\hooks, \repo\.git\worktrees\task-203\config.worktree), while the test expects POSIX keys. Decide whether the code should emit a normalized form or the test should compare in the platform form, then confirm on the Windows job. The Bash installer job passes.

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

Triage for PR #206, work item #203. The existing dispositions remain frozen as valid from the prior triage. At this head, REV-001 and REV-002 remain open pending real Codex sandbox boundary verification; REV-003, REV-004, and REV-005 remain resolved by the changes already present.

The current Windows check failure is a platform-specific expectation in test_codex_publish_profile_reopens_only_the_supplied_git_roots: the generated child paths use native Path separators, while the test expects POSIX separators. I will adjust the regression assertion to match the actual platform representation and verify the related tests.

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

Resolution update — PR #206 / work item #203

Fix commits: fb99e8fe1cd63d7f91d8220605486930e859a2ad and b0885b9ec294a2299444863b85de2f856af7c1f3.

[REV-001] · critical · open · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

The test now represents child metadata paths with native pathlib separators. This fixes the Windows-only expectation failure. The real Codex boundary remains unverified: Codex CLI 0.161.0 exits before sandbox execution because its app-server socket directory fails the user-owned mode-0700 check. The probe now preserves that subprocess error instead of replacing it with a marker cleanup error. Kept open pending a successful boundary run.

[REV-002] · medium · open · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

The profile adds read-only rules for common Git hooks/config and private worktree hooks/config.worktree, and the documentation records the carve-outs. The real sandbox did not start in this environment, so enforcement is still unverified. Kept open pending a successful boundary run.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

The probe applies to each Codex stage that writes and publishes. Resolve-stage coverage verifies rerouting before dispatch. Resolved in a2fb40b27982a8c6a266a8e9280606daa3b8f329.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

The probe uses a deterministic local sandbox command with a 15-second timeout, no model turn, and no network access. A regression now confirms that absent markers do not mask the sandbox subprocess error. Resolved in a2fb40b27982a8c6a266a8e9280606daa3b8f329 and b0885b9ec294a2299444863b85de2f856af7c1f3.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

Regression coverage checks TOML table-value encoding and successful/non-zero process-boundary behavior. Resolved in a2fb40b27982a8c6a266a8e9280606daa3b8f329.

Verification

Agent-reported:

  • rtk env PYTHONPATH=tests python3 -m unittest test_executors -q — passed, 170 tests.
  • rtk python3 scripts/validate-package.py — passed.
  • rtk git diff --check — passed.
  • Full unittest discover was interrupted with exit 130 before a summary; it is not counted as passed.
  • The real CodexAdapter.probe_git_metadata_write invocation returned false with: error building bubblewrap command: app-server socket directory must be a user-owned directory with mode 0700. This environment prevented the boundary command from running, so REV-001 and REV-002 remain open.
  • Post-change code review found no additional actionable findings. The security review found no confirmed vulnerability; residual risk remains around the common Git metadata grant and its read-only carve-outs.

Checks of the pushed head

Head: b0885b9ec294a2299444863b85de2f856af7c1f3.

  • Skills, manifests, and Bash installer — pass (two runs).
  • PowerShell installer — pass (two runs).
  • All four checks passed on this head.

@datacas

datacas commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

[CCR-20261008-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

Rereview: PR #206 (issue #203)

Verdict: CHANGES_REQUESTED. Reviewed head b0885b9ec294a2299444863b85de2f856af7c1f3. The previous reviewed head was 8673d4622bbe3ce6c646cfdff812eb8dd01c1b73.

I closed the two items the resolver left open pending a real Codex run. On this machine, with Codex CLI 0.161.0 on Linux bubblewrap under WSL2, the sandbox starts, the grant works, and both carve-outs are enforced. REV-001 through REV-005 are now resolved, verified by execution.

The same runs found a new blocking problem, REV-006. The private worktree gitdir is now writable, and that includes its commondir file. A sandboxed agent can repoint commondir at a config it controls, which bypasses the hooks/config carve-outs. I reproduced code execution in a later unsandboxed git status.

Scope reviewed: the complete accumulated diff origin/main...b0885b9 (merge base 5ebec51, 652 lines, SHA-256 acf49cf8…b7c0d; line count, hash, and head all confirmed). It covers 8 files. Changes since the last review are in a2fb40b, fb99e8f, and b0885b9:

  • inline-table filesystem rules with read carve-outs;
  • a deterministic codex sandbox probe;
  • the probe gated on writes and publishes;
  • a Windows-safe test path;
  • preservation of the sandbox error.

Previous findings

[REV-001] · critical · resolved · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

scripts/executors.py:1296, :1352. Verified in a throwaway linked worktree, with an empty CODEX_HOME, using the PR's own code:

  • codex exec with the exact CodexAdapter.argv(..., writes=True, publishes=True, writable_dirs=(common, gitdir)) now gets past config load. It fails only at the model call, with a 401 caused by the empty CODEX_HOME. The old filesystem path ... must be absolute error is gone.
  • codex sandbox with the PR rules allows writes to .git/worktrees/<task>. Without the rules, the same write is denied with Read-only file system.
  • git add and git commit inside the linked worktree succeed.

[REV-002] · medium · resolved · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

Verified under the real sandbox with the PR rules: writes to .git/hooks/pre-commit and .git/config are denied (Read-only file system). The surface this finding named is closed.

The goal behind it is not met yet. The sandbox must not be able to make unsandboxed Git execute attacker-controlled config or hooks, and this PR's new private-gitdir grant opens another route to exactly that. That route is tracked separately as REV-006, which blocks approval.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

scripts/cycle.py:468 now gates the probe on publishes and writes together with executor == "codex" and the presence of writable_dirs. test_failed_codex_git_metadata_probe_routes_before_resolve_dispatch passes in the full suite run below.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

Real CodexAdapter.probe_git_metadata_write run in a linked worktree: it returned (True, 'Codex sandbox wrote and verified each linked-worktree Git metadata root') in 0.07 s, with no model turn and no network. It left no marker files and no untracked files. Exit codes and stderr detail are preserved in the route reason. Unit tests cover the exited 7 case and an error with no marker file.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

test_codex_publish_profile_reopens_only_the_supplied_git_roots parses the override and asserts that the paths are table values, not dotted keys. Against 8673d46 it would have failed. There is still no live-Codex test in CI, so the boundary itself is not covered there (see REV-006).

New findings

[REV-006] · high · open · - · blocks:yes — The writable private gitdir lets the sandbox repoint commondir and bypass the hooks/config carve-outs

scripts/executors.py:1296 (_publish_filesystem_rules), docs/verification.md:34

The rules grant "<common>/worktrees/<task>"="write" and protect only its hooks and config.worktree. Git reads $GIT_DIR/commondir to find the common directory, and with it the repository config and hooks. That file is writable, so the agent can point it at a directory inside the writable workspace that contains its own config. The read-only .git/config and .git/hooks are then never consulted. On main, the private gitdir is read-only, so this route exists only with this PR.

How I reproduced it, against the real sandbox using the PR's rules:

  1. Inside codex sandbox, I created <worktree>/.fakecommon/ with symlinks to the real objects, refs, and hooks, plus a config containing core.fsmonitor = "touch <tmp>/PWNED; false".
  2. Still inside the sandbox, I wrote <common>/worktrees/task-203/commondir to point at it. This exited 0.
  3. Outside the sandbox, I ran git -C <worktree> status. It created PWNED, so unsandboxed code executed.

The runtime runs Git in the worktree after each stage, and a maintainer may too. A prompt-injected implementer can therefore escape the sandbox. The docs say the carve-outs prevent "redirecting Git through the repository's common or per-worktree config"; this reproduction shows they do not.

The same applies to other worktrees' metadata under the common grant, which is writable:

  • <common>/worktrees/<other>/commondir (an unconditional redirect of another linked worktree);
  • <common>/config.worktree and <common>/worktrees/<other>/config.worktree, when extensions.worktreeConfig is enabled. I verified that <common>/config.worktree is writable.

Suggested direction:

  • add "<gitdir>/commondir"="read" and "<gitdir>/gitdir"="read";
  • protect <common>/config.worktree, and the commondir/config.worktree of the other worktrees, or narrow the common grant to objects, refs, packed-refs, logs, and the task's own gitdir instead of the whole common directory;
  • extend the probe, or add a test, so it also asserts that the protected paths are denied, not only that the granted roots are writable;
  • correct the docs claim.

Security triage

  • Deterministic rule (security_gate.evaluate defaults; .code-cycle.yml has no security_review.always_when): did not fire. No path, file, or label matched, and the PR has no labels.
  • Reviewer judgement: audit required, because the change widens the executor sandbox's filesystem boundary.
  • Audit: performed inline by this reviewer. cc-security-review did not run as a separate pass, so this pass ran degraded. One confirmed vulnerability: REV-006, a sandbox escape to unsandboxed code execution, reproduced. No secrets or credentials were added and there are no new network destinations; the probe runs without network.
  • Writes to /tmp from the sandbox succeed. That is the existing :workspace default, not something this PR adds.

Verification

Command Result
wc -l / sha256sum on the evidence diff, git rev-parse HEAD, gh pr view 206 652 lines, hash matches, head b0885b9 matches
python3 scripts/validate-package.py exit 0, VALID: 15 skills (7 cycle, 8 supporting) …
python3 -m unittest discover -s tests -q exit 0, Ran 1198 tests in 72.988s OK
real probe_git_metadata_write (Codex CLI 0.161.0, temporary linked worktree) True, 0.07 s, no leftover markers
codex sandbox, no rules, write to the worktree gitdir denied (rc 2)
codex sandbox + PR rules: gitdir write / hooks / config / git commit allowed / denied / denied / committed
codex sandbox + PR rules: write worktrees/<task>/commondir, config.worktree allowed (REV-006)
unsandboxed git status after the commondir redirect core.fsmonitor payload executed (REV-006)
codex exec with the exact PR argv (empty CODEX_HOME) config loaded; stopped at the model call with a 401 (no credentials)

All experiments ran in a throwaway repository under /tmp, which was then removed. The PR workspace stayed clean.

Not verified

  • macOS Seatbelt and the Windows sandbox, for the grant, the carve-outs, and REV-006. Only Linux bubblewrap was exercised.
  • A full authenticated codex exec implementation turn that pushes and opens a PR.
  • On the resolver's machine, the probe failed with app-server socket directory must be a user-owned directory with mode 0700. It did not reproduce here. Where it does occur, the probe fails closed and reroutes, which is the intended degraded path.

CI

gh pr checks 206: 4 passed, 0 failed, 0 pending (exit 0) on b0885b9.

  • Validate package / Skills, manifests, and Bash installer: success, two runs.
  • Validate package / PowerShell installer: success, two runs. The Windows failure from a2fb40b is fixed.

No CI job exercises a real Codex CLI, so CI cannot detect REV-006. No expected check is missing.

Residual risk

Project review verdict: CHANGES_REQUESTED. Blocking: REV-006.

ORCHESTRATION_RESULT (JSON)

ORCHESTRATION_RESULT
{"skill":"cc-rereview","status":"CHANGES_REQUESTED","issue_provider":"github","issue_id":"203","code_host":"github","change_request_id":"206","change_request_url":"https://github.com/datacas/code-cycle-toolkit/pull/206","pr_number":206,"issue_number":203,"comment_url":"https://github.com/datacas/code-cycle-toolkit/pull/206#issuecomment-6062950116","previous_reviewed_head_sha":"8673d4622bbe3ce6c646cfdff812eb8dd01c1b73","reviewed_head_sha":"b0885b9ec294a2299444863b85de2f856af7c1f3","head_sha":"b0885b9ec294a2299444863b85de2f856af7c1f3","review_run_id":"CCR-20261008-002","reviewer":{"profile":"senior_reviewer","provider":"anthropic","model_requested":"claude-opus-5-5","model_resolved":null,"effort":"high"},"verified_findings":[{"id":"REV-001","severity":"critical","blocks_approval":true,"status":"resolved","disposition":"valid"},{"id":"REV-002","severity":"medium","blocks_approval":false,"status":"resolved","disposition":"valid"},{"id":"REV-003","severity":"medium","blocks_approval":false,"status":"resolved","disposition":"valid"},{"id":"REV-004","severity":"low","blocks_approval":false,"status":"resolved","disposition":"valid"},{"id":"REV-005","severity":"low","blocks_approval":false,"status":"resolved","disposition":"valid"}],"new_findings":[{"id":"REV-006","severity":"high","status":"open","disposition":"-","blocks_approval":true,"path":"scripts/executors.py","line":1296}],"blocking_findings":["REV-006"],"blocking":false}
END_ORCHESTRATION_RESULT

@datacas

datacas commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

[CCR-20261008-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:b0885b9ec294a2299444863b85de2f856af7c1f3 · schema:1

Triage against b0885b9ec294a2299444863b85de2f856af7c1f3, before edits. The current provider history and review confirm REV-001 through REV-005 are resolved; their prior valid dispositions remain frozen. REV-006 is valid: the writable private Git directory leaves commondir writable, allowing Git to be redirected to attacker-controlled config during an unsandboxed Git operation.

[REV-001] · critical · resolved · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

Evidence: the corrected inline filesystem override loads under Codex; see the latest rereview.

[REV-002] · medium · resolved · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

Evidence: the latest rereview reports writes to those common paths are denied.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

Evidence: the probe now covers writing publish stages, including resolve.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

Evidence: the deterministic sandbox probe runs without a model turn or network and preserves failure detail.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

Evidence: the override test parses the serialized table values.

[REV-006] · high · open · valid · blocks:yes — The writable private gitdir lets the sandbox repoint commondir and bypass the hooks/config carve-outs

Evidence at triage head: the latest rereview reproduced a writable commondir redirect to malicious core.fsmonitor configuration, executed by unsandboxed git status.

The linked workspace's .git gitfile was granted deny, so Git could not open
it inside the Codex sandbox. Make it read-only instead, and have the probe
read the pointer files so this cannot regress unnoticed.

Creating <common>/commondir or <common>/gitdir from the sandbox redirected
unsandboxed Git in the main checkout to attacker-chosen config (REV-006
variant). Protect commondir, gitdir and modules in the common directory in
both profile branches and in the probe.

Make the Windows path assertions in the permission tests separator-aware.
@datacas

datacas commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

[CCR-20261008-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:b0885b9ec294a2299444863b85de2f856af7c1f3 · schema:1

[CCT-20261010-001] · manual · anthropic/claude-sonnet-5-5→? · unknown · triaged:25bcbd2c717209a406f853d8e733d3ecf4279e66 · schema:1

Resolution update — PR #206 / work item #203

Fix commit: db921847543068e1b8c349bc93f8f7f6390d35ad, on top of 25bcbd2c717209a406f853d8e733d3ecf4279e66.

25bcbd2 was already on the branch when this run started. It carried the first fix for REV-006 and had no published resolution. This run triaged against it, reproduced REV-006 under the real Codex sandbox, and found two more defects in that fix (REV-007 and REV-008). The existing REV-001..REV-005 dispositions stay frozen as valid. REV-006 is valid per the prior triage.

[REV-001] · critical · resolved · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

Unchanged since the rereview, which verified it. Still holds: the real probe returns True with the current rules.

[REV-002] · medium · resolved · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

Unchanged since the rereview. hooks and config are still denied under the real sandbox with the current rules.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

Unchanged since the rereview.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

Unchanged since the rereview.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

Unchanged since the rereview.

[REV-006] · high · resolved · valid · blocks:yes — The writable private gitdir lets the sandbox repoint commondir and bypass the hooks/config carve-outs

25bcbd2 makes the private commondir, gitdir, config.worktree, and hooks read-only, denies the main worktree's state, and validates that the workspace .git, gitdir, commondir, and Git's resolved paths agree before granting anything. Re-run here against the real Codex sandbox (CLI 0.162.1, Linux bubblewrap) with the exact rules the adapter generates:

  • writes to worktrees/<task>/commondir, gitdir, config.worktree, common config, config.worktree, and hooks/* are all denied (EROFS);
  • the core.fsmonitor redirect from the rereview no longer executes in an unsandboxed git status.

Two defects in that fix remain and are tracked as REV-007 and REV-008. Resolved in db92184.

[REV-007] · high · resolved · valid · blocks:yes — The .git gitfile is granted deny, so Git cannot open the linked worktree inside the sandbox

scripts/executors.py (_publish_filesystem_rules). Found by this run's verification, not by a reviewer. With "<workspace>/.git"="deny", git add, git commit, and git branch inside the sandboxed linked worktree all failed with fatal: error opening '<workspace>/.git': Permission denied. The write-only probe could not see it, so it reported success while every Git command would fail. The rule is now read, and the probe reads .git, commondir, gitdir, and the common config, failing with protected Git metadata path is not readable: <name>. After the change, git add, git commit, and git branch succeed in the real sandbox.

[REV-008] · high · resolved · valid · blocks:yes — Creating <common>/commondir from the sandbox redirects unsandboxed Git in the main checkout

scripts/executors.py (_publish_filesystem_rules, probe_git_metadata_write), docs/verification.md. Found by this run's security review; it is the same root cause as REV-006, on the common directory instead of the private one. The common root is writable and commondir is a new file, so no carve-out covered it. Reproduced under the real sandbox: the sandbox wrote <common>/commondir pointing at a directory with a core.fsmonitor payload, and an unsandboxed git status in the main checkout executed it (the linked worktree was unaffected). The common commondir, gitdir, and modules (submodule configs) are now read-only in both profile branches, and the probe verifies they deny writes. Re-run: all three writes are denied and git status in the main checkout and the worktree stays clean.

Windows: the permission tests compared POSIX paths against native separators. They now use native or JSON-escaped forms. The Windows job on the pushed head confirms it.

Verification

Agent-reported:

  • Real Codex sandbox, adapter-generated rules, throwaway repository and linked worktree: probe_git_metadata_write returned True; the commondir/gitdir/config*/hooks writes above were denied; git add, git commit, git branch exited 0.
  • python3 -m unittest discover -s tests -q — Ran 1202 tests, OK.
  • PYTHONPATH=tests python3 -m unittest test_installed_cycle test_executors -q — 191 tests, OK.
  • python3 scripts/validate-package.py — VALID: 15 skills ....
  • git diff --check — clean.

Post-change workflow:

  • cc-code-review over the accumulated diff: no P0/P1 beyond REV-007.
  • cc-security-review (the change widens the sandbox filesystem boundary): one confirmed vulnerability, REV-008, fixed and re-verified. Other writable common paths (info/attributes, objects/info/alternates, shallow) need a Git configuration entry to execute anything, and config is read-only. They are recorded as residual risk, not exploited.

Not verified:

  • macOS Seatbelt and the Windows sandbox: only Linux bubblewrap ran the real boundary.
  • An authenticated codex exec implementation turn that pushes and opens a PR.
  • The local run shares with CI the repository's Python and fake executors. It differs in that a real Codex CLI was on this machine's PATH; CI has none.

Checks of the pushed head

Head: db921847543068e1b8c349bc93f8f7f6390d35ad.

  • Skills, manifests, and Bash installer — pass (two runs).
  • PowerShell installer — pass (two runs).

Residual risk

  • The common grant still allows rewriting refs and objects for every branch, as documented.
  • info/attributes, objects/info/alternates, and shallow stay writable; they influence Git only together with configuration the sandbox cannot write.
  • The probe proves the carve-outs for the paths it lists. A new Git redirect file in a future Git release would need adding.

@datacas

datacas commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20261008-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:8673d4622bbe3ce6c646cfdff812eb8dd01c1b73 · schema:1

[CCT-20261008-002] · cheap_coder · openai/gpt-6-luna→? · high · triaged:a2fb40b27982a8c6a266a8e9280606daa3b8f329 · schema:1

[CCR-20261008-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:1

[CCT-20261008-003] · cheap_coder · openai/gpt-6-luna→? · high · triaged:b0885b9ec294a2299444863b85de2f856af7c1f3 · schema:1

[CCT-20261010-001] · manual · anthropic/claude-sonnet-5-5→? · unknown · triaged:25bcbd2c717209a406f853d8e733d3ecf4279e66 · schema:1

[CCR-20261010-001] · manual · unknown/gpt-6.1-sol→? · medium · schema:1

Rereview — PR #206 / issue #203

Verdict: APPROVED. Blocking findings: none. REV-001 through REV-008 are corrected and verified by execution.

Reviewed HEAD: db921847543068e1b8c349bc93f8f7f6390d35ad. Previous reviewed HEAD: b0885b9ec294a2299444863b85de2f856af7c1f3. The existing .worktree/task-203 is clean and matches the provider HEAD.

The complete accumulated merge-base diff was reviewed across all eight files: 1,260 lines, SHA-256 e8d429bdd503b61512b52d7195373a06d67bb90f8788b0de48c250050ea8c1e0, base 5ebec51e4f95ab5d3a4bd7b6d2eed47f7f7f4184. The review criteria, security and execution verification passes were delegated and consolidated here. Repository conventions in AGENTS.md, CONTRIBUTING.md, docs/review-cycle.md and docs/verification.md were applied.

Since the previous review, 25bcbd2 validates the linked-worktree pointer topology and protects redirect/configuration files in the private Git directory. db92184 keeps the workspace .git gitfile readable, adds protected-pointer readability checks to the probe, protects common-directory commondir, gitdir and modules, and corrects Windows path assertions. No new correctness or security finding was confirmed.

All nine provider comments were considered chronologically. Every author is allow-listed datacas; no author was ignored and no finding-title collision or numbering gap was found. The original severities, titles and assigned valid dispositions are preserved. REV-007 and REV-008 were introduced in the latest trusted resolution comment and were independently checked here.

Previous findings

[REV-001] · critical · resolved · valid · blocks:yes — Codex rejects the generated filesystem permission override, so every linked-worktree publish dispatch fails at startup

Corrected and verified by execution. Codex CLI 0.162.1 accepts the exact adapter-generated inline-table permissions. The real deterministic sandbox probe succeeds for both a linked worktree and a main checkout; the configuration no longer fails at startup.

[REV-002] · medium · resolved · valid · blocks:no — A working grant makes the shared .git/hooks and .git/config writable from the sandbox

Corrected and verified by execution. Writes to common hooks and configuration, including config.worktree, are denied. Rename, unlink and chmod attempts against protected configuration/hooks also fail under the real sandbox. Required reads remain allowed.

[REV-003] · medium · resolved · valid · blocks:no — The resolve stage gets the grant but no probe or pre-dispatch reroute

Corrected and verified by execution. The resolve-stage regression test confirms a failed Codex metadata probe selects the alternative publisher before dispatch, with the reason retained. The implement-stage and no-alternative cases also pass.

[REV-004] · low · resolved · valid · blocks:no — The probe is a full model run whose failures all collapse into "Git metadata probe failed"

Corrected and verified by execution. The current probe executes local codex sandbox, without a model turn or network access. The real sandbox invocation succeeds; automated timeout/non-zero-exit tests confirm failure details are retained in routing evidence.

[REV-005] · low · resolved · valid · blocks:no — No test exercises the real Codex config contract, so REV-001 passes the suite

Corrected and verified by execution. The permission serialization regressions pass; the generated overrides additionally parse with tomli and the actual Codex configuration parser through the exact sandbox argv. The fake-binary process-boundary test checks success and non-zero exit; those fake checks alone are not evidence of platform enforcement.

[REV-006] · high · resolved · valid · blocks:yes — The writable private gitdir lets the sandbox repoint commondir and bypass the hooks/config carve-outs

Corrected and verified by execution. Private commondir, gitdir, config.worktree and hooks reject writes, as do other worktrees' protected pointers. The workspace .git remains read-only. Creation, symlink and replacement attempts against protected redirect paths fail; the redirect required by the original reproduction cannot be written.

[REV-007] · high · resolved · valid · blocks:yes — The .git gitfile is granted deny, so Git cannot open the linked worktree inside the sandbox

Corrected and verified by execution. The exact policy permits reading .git, private pointers and common configuration while denying their modification. git add, git commit, git branch, git log and git status all succeeded under the real sandbox in the disposable linked worktree.

[REV-008] · high · resolved · valid · blocks:yes — Creating <common>/commondir from the sandbox redirects unsandboxed Git in the main checkout

Corrected and verified by execution. Creating the initially absent common commondir is denied, as are writes to common gitdir and submodule metadata. Both linked-worktree and main-checkout profiles were checked, including symlink/replacement attempts. The redirect required by the original reproduction cannot be installed.

Security triage and boundary evidence

The repository's default deterministic security rule was executed against the current changed paths and empty PR labels: no path, filename or label matched. Reviewer judgement activated the security audit because this change widens the agent's filesystem trust boundary. cc-security-review ran; no new confirmed vulnerability was found.

Real Linux sandbox evidence, using Codex CLI 0.162.1 and exact adapter-generated permissions in disposable repositories:

  • rtk proxy python3 /tmp/cc206-security-probe.py — exit 0. Protected writes fail; required pointer/configuration reads succeed. Denial checks cover common hooks/configuration/redirects/modules, private and other-worktree pointers, workspace .git, and main-worktree state.
  • rtk proxy python3 /tmp/cc206-security-extra.py — exit 0. Adapter probe returns (True, 'Codex sandbox wrote and verified each linked-worktree Git metadata root') for linked and main repositories. Rename/unlink/chmod, symlink and replacement attempts against protected paths fail as expected.
  • python3 /tmp/cc206-verify-boundary.py — exit 0. tomli accepts the generated overrides; the actual adapter readiness probe returns allowed=True and cleans its markers; sandboxed git add, git commit, git branch, git log and git status each exit 0. A repeated disposable commit initially had no new content; using fresh content passed.

The first nested invocation failed during sandbox socket setup; rerunning these disposable boundary checks with approved host permissions succeeded. No model turn was dispatched and no product code was modified.

Verification and CI

Executed from the PR worktree:

  • python3 -m unittest discover -s tests -p test_executors.py -v — exit 0; 174 tests.
  • python3 -m unittest discover -s tests -p test_cycle.py -v — exit 0; 57 tests, including resolve rerouting.
  • python3 -m unittest discover -s tests -p test_reroute.py -v — exit 0; 6 tests.
  • python3 -m unittest discover -s tests -v — exit 0; 1,202 tests, OK (174.735 s).
  • python3 scripts/validate-package.py — exit 0.
  • git diff --check origin/main...HEAD — exit 0; no whitespace errors.
  • bash -n scripts/install.sh and sh -n scripts/get.sh — exit 0.
  • python3 -m json.tool .claude-plugin/plugin.json and python3 -m json.tool .codex-plugin/plugin.json — exit 0.

Local ShellCheck could not run (shellcheck: command not found, exit 127). The provider's Lint Bash installer step passed, so this required gate has externally observed evidence; local lint is not reported as passed.

Current provider CI for the reviewed HEAD: 4 passed, 0 failed, 0 pending (gh pr checks 206, exit 0).

  • Skills, manifests, and Bash installer — success in both runs. Actual job steps confirm package/manifest validation, skill discovery, Bash syntax/lint, project installation tests and overwrite/missing-directory guards.
  • PowerShell installer — success in both runs. Actual job steps confirm Windows package/project tests, installation and a stage launched from the installed runtime.

No expected PR gate is missing, cancelled or skipped. Release publishing is outside this PR workflow.

Residual risk and limits

The shared grant intentionally permits modification of refs and objects for every branch. A pre-existing core.hooksPath targeting writable source remains outside these metadata carve-outs. Writable info/attributes, objects/info/alternates and shallow remain part of Git's broader attack surface; no execution path was confirmed in this review. New Git redirect mechanisms would require updating the protections and probe.

Real boundary enforcement was checked on Linux only. macOS/Windows sandbox enforcement and an authenticated model turn that pushes and opens a PR were not executed. Windows CI validates the Python runtime and fake executors, not the Codex sandbox. The tested subprocess boundary establishes the permission contract without claiming those additional flows ran.

Project review verdict: APPROVED for db921847543068e1b8c349bc93f8f7f6390d35ad. All recovered findings are classified, required checks passed, and no open finding blocks approval. HEAD was rechecked against GitHub before publication. The PR remains open for manual merge.

@datacas
datacas merged commit 102ab54 into main Oct 10, 2026
4 checks passed
@datacas
datacas deleted the task-203 branch October 10, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant