Repository navigation
Conversation
|
Implementation complete for #182 in Parallel resolution now reviews the trusted reviewed-head delta, verifies locally, and reads checks once without waiting. Native read-only Codex and Claude dispatches receive temporary scratch space with cleanup. Strict CI behavior and full rereview remain in place. Agent-reported verification: package validator passed, all 1,403 unittest tests passed, and all 3 explicit boundary tests passed. Full commands and independent rollback commits are in the PR description. Routing: profile One CI snapshot for pushed head
0 passed, 0 failed, 4 pending. No CI wait or polling was performed; the cycle's CI gate handles these pending checks. This implementation stage does not approve or merge the PR. |
[CCR-20261015-001] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Initial review: PR #240 (work item #182)Status: REVIEW_PASSED_AWAITING_CI. Head ScopeAccumulated diff Findings[REV-001] · medium · open · - · blocks:no — Codex read-only reviews now need permission-profile support, with no version gatePath: Before this change a non-publishing Codex read-only stage ran with Security triageNot triggered by a configured rule or labels (none). Triggered by my own reading: the change alters sandbox permission profiles, filesystem write grants, and the dispatch environment. I audited it inline; the
No confirmed vulnerabilities. Residual (unverified): I did not run Claude Code to confirm that its permission prompts allow writes to the out-of-checkout Verification executed (read-only clone)
CI (read once, not waited on)Head Residual risksREV-001; the Claude scratch grant and Codex profile semantics were not exercised against live agent services. VerdictNo blocking findings on |
[CCR-20261015-002] · reviewer · anthropic/claude-sonnet-5-5→? · high · schema:2Initial review (recovered-attempt verification): PR #240 (work item #182)Status: REVIEW_PASSED_AWAITING_CI. Head ScopeAccumulated diff Findings[REV-001] · medium · open · - · blocks:no — Codex read-only reviews now need permission-profile support, with no version gatePath: Reconfirmed, ID preserved from CCR-20261015-001. A non-publishing Codex read-only stage used to run with Security triageNo Verification executed (read-only clone)
CI (read once, not waited on)Head Residual risksREV-001; the Claude scratch grant and Codex profile semantics were not exercised against live agent services. VerdictNo blocking findings on |
…rant The native review scratch space from #240 appended its own permissions.code_cycle_publish_read.filesystem override after the Docker socket grant, so the later override replaced the earlier one and a publishing review lost either grant. Merge both paths into one table and make the scratch-only test independent of the runner's Docker socket.
…ocker (#239) * fix(runtime): grant Codex access to host Docker socket * fix(codex): make Docker socket access configurable * test(codex): verify Docker socket opt-out at process boundary * docs(config): document code_cycle.docker.host_socket_access Add the Docker socket opt-out to the configuration example and the .code-cycle.yml reference table, which run_cycle.py treats as the list of accepted keys. * fix(codex): keep review scratch and Docker socket in one filesystem grant The native review scratch space from #240 appended its own permissions.code_cycle_publish_read.filesystem override after the Docker socket grant, so the later override replaced the earlier one and a publishing review lost either grant. Merge both paths into one table and make the scratch-only test independent of the runner's Docker socket. * test(run-cycle): keep AllowedCommandsConfigTests in one class DockerConfigTests was inserted inside AllowedCommandsConfigTests, moving four of its tests into the new class. Place it after them instead. * test(codex): match the JSON-escaped Docker socket path The socket path reaches the Codex argv through json.dumps, which doubles the backslashes of a Windows path, so a raw substring check failed on the Windows runner. Compare against the serialized form. * feat(runtime): ask before granting sensitive sandbox access Fixes REV-003. The Docker socket grant this branch added does not work: Codex's Linux helper refuses to start when a filesystem rule names the socket file, and no filesystem rule can enable connect() anyway, because the sandbox blocks new AF_UNIX sockets unless all of them are allowed through its network proxy. Verified with Codex CLI 0.162.1 and `codex sandbox`. Replace it with a general consent mechanism (scripts/grants.py). A stage that reports a sandbox restriction on a registered resource, starting with the host Docker daemon (docker_host), is never widened on its own word: - the question states what the grant really opens on this executor and platform, which for Linux Codex is every local Unix socket, not only Docker's, and the risks; - the answers are this cycle (in memory only, offered only where the grant stays isolated to the dispatch), persistent (stored per user outside the checkout, keyed by repository and scope fingerprint), or deny (this run only; the stage reruns without the grant and reports what it could not verify); - a configured fallback that recovers without a wider sandbox is tried first; a terminal is asked once; an unattended run stops with permission_required and is answered with --grant; - the grant applies only to Codex on Linux, keeps the publication domain allowlist and read-only reviews, and gives a writer no internet. code_cycle.docker.host_socket_access now defaults to false and, when true, authorizes docker_host in advance. Telemetry schema 20. * fix(runtime): ask for a grant after a fallback hits the same sandbox wall When a stage's fallback reports the same restriction as its primary, the consent question now goes back to the primary, which reruns with the answer after the fallback's effects are reconciled. Answers given in advance (--grant, stored, host_socket_access) now apply on this path, and an unattended run stops with permission_required instead of retry_exhausted (REV-004). The consent question and the granted context now say the grant reaches every later Codex stage, including reviews of untrusted pull requests (REV-005).
Summary
Under
parallel, resolution now verifies locally, reviews the fix delta from the latest trusted review or rereview receipt, publishes, and reports checks once without waiting or starting CI fix rounds. Missing, malformed, or non-ancestor review boundaries fall back to the accumulated diff.strictkeeps its existing CI wait and accumulated review; initial review, rereview, and the SHA-scoped approval gate keep their existing requirements.Native Codex and Claude read-only dispatches receive a unique writable
TMPDIRoutside the repository and clean it up on success, failure, timeout, and cancellation. Codex grants write access to that directory through a profile extending:read-only. Orca's asynchronous review behavior is unchanged and documented.Work item: #182.
Diagnosis
This is the remaining feature work after #228 / PR #230. The runtime had a parallel implementation directive but no equivalent resolve directive; the orchestrators explicitly retained resolve's CI wait. Native review dispatches also lacked writable temporary space. No defect reproduction is claimed for this feature request. Code inspection confirmed the remaining gaps described by the issue.
The invariant is that parallel resolution performs local verification and delta review while only the existing CI gate waits for remote checks; approval still requires a full review and passing required checks on the same SHA. Temporary test files must remain outside the reviewed repository and disappear when a native dispatch ends. The fix updates the runtime, resolver and delegated review contracts, matching orchestrator policies, validation, and their owning documentation.
Related search was widened across resolve/CI and TMPDIR/delta issues and merged work: #177, #228, #230, #145, #231, and #237. #177 and #230 are already delivered. CI-failure classification and selective verification remain in their separate work items.
Work units
scripts/run_cycle.py,scripts/validate-package.py, resolver/code-review/orchestrator skills, review documentation, policy/validator testsc5bff838a549b7a4771060307cbca16fed051baascripts/executors.py, executor/failure/sandbox tests, workspace/routing documentation481dfbe4244b76b6db4c87e280c5b656feaccfa2Verification
Agent-reported; conclusion
verified, boundary verificationrequired.python3 scripts/validate-package.pypython3 -m unittest discover -s tests -venv PYTHONPATH=tests python3 -m unittest test_executors.ReadOnlyVerificationTests.test_native_reviews_can_create_temporary_files_without_changing_checkout test_executors.ReadOnlyVerificationTests.test_native_review_scratch_is_removed_on_timeout_and_cancellation test_ci_policy.ResolveDeltaTests.test_delta_boundary_uses_real_git_ancestry_and_rejects_rewritten_historyThe boundary run exercises native subprocess temporary-file creation, non-zero exit, cleanup, timeout/cancellation, and real Git ancestry/fallback. The full suite completed in 430.315 seconds. The accumulated diff was checked for scope and unintended artifacts;
git diff --check main...HEADpassed.Local verification uses Linux and Python 3.10.12. Git fixtures set their own identity; process-boundary tests use fake agent binaries and real Git, without requiring model credentials. Windows and the live agent services are left to their applicable CI/integration coverage.
CI policy for this stage is
parallel. The implementation summary will report one snapshot for the pushed head; pending checks remain pending and the cycle's CI gate owns the wait.Closes #182