Repository navigation
Allow Claude in read-only roles via isolated worktrees - #74
Conversation
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1SummaryCHANGES_REQUESTED for PR #74 at Repository convention: Findings[REV-001] · high · open · - · blocks:yes — Remote review branch can move without a contract violationPath: The post-dispatch check compares only the implementer checkout's local HEAD, symbolic branch name, and status. The detached worktree still has the repository's remote and can push from its own HEAD. In a temporary local Git repository with a bare remote, a scripted reviewer committed in the disposable worktree and pushed [REV-002] · high · open · - · blocks:yes — Status fingerprint misses edits to an already dirty source filePath:
[REV-003] · medium · open · - · blocks:yes — Failed isolation is recorded as verified isolationPath: The dispatch wrapper stamps every read-only result from a non-enforcing adapter as Security triage and auditSecurity audit required. The repository has no configured Verification and CI
Residual risk: the read-only boundary remains dependent on the reviewer's behavior and credentials until the remote-branch and dirty-tree gaps are closed. Blocking findings: REV-001, REV-002, REV-003. |
[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1Triage record for the findings on PR #74. Repository convention: CONTRIBUTING.md and the toolkit review workflow were applied; there is no AGENTS.md or CLAUDE.md. All findings below were classified against the recorded triage commit, before edits. [REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationA valid branch integrity gap: the detached worktree retains the remote and may push. The existing check observes only the implementer checkout. The linked work item explicitly requires that the reviewer cannot write to the branch. [REV-002] · high · open · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileA valid workspace integrity gap: status fingerprints encode paths and status codes, not file bytes, and dirty checkouts are accepted. A reviewer can change an already dirty tracked file without changing that fingerprint. [REV-003] · medium · open · valid · blocks:yes — Failed isolation is recorded as verified isolationA valid telemetry gap: the wrapper labels any non-enforcing read-only dispatch as isolated_verified, including isolation setup failures. The mode must only be recorded after isolation is established and verified. |
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1SummaryCHANGES_REQUESTED for PR #74 at Since the previous review at Repository convention applied: Findings[REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationPath: The independent clone removes its configured remotes, and the harness compares snapshots of the implementer's configured remote refs only before and after dispatch. A temporary reproduction force-pushed a new commit to the configured remote's [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source filePath: Corrected and verified. The harness now refuses to start an isolated review when the implementer checkout has any tracked or untracked changes. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationPath: Corrected and verified. Isolation setup failures now return a blocked result before adding the [REV-004] · medium · open · - · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationPath: If removing the clone raises, the fallback retries with Security triage and auditSecurity audit required. Verification and CI
Residual risk: until REV-001 and REV-004 are closed, the harness cannot claim a complete non-mutation and disposable-workspace guarantee for a non-enforcing reviewer. The current project verdict is CHANGES_REQUESTED. Blocking findings: REV-001, REV-004. |
[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1Triage record for the open findings on PR #74. Both findings are judged against the triage commit above, before any edit. Repository convention: [REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationThis finding keeps the disposition [REV-004] · medium · open · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationValid at the triage commit. At |
Claude read-only stages now run with a temporary HOME, an empty gh configuration, a neutral global Git configuration, no system Git configuration, no SSH agent, and no token-like variables, so the reviewer cannot push or call GitHub as the user (REV-001). Because it cannot publish, Claude is no longer eligible for read-only stages that publish; a direct dispatch is BLOCKED with harness_publication until harness-side publication lands (#79). A review clone or temporary home that cannot be removed now fails the stage and drops read_only_mode instead of reporting verified isolation (REV-004).
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1Resolution summaryRESOLVED at Findings[REV-001] · high · resolved · valid · blocks:yes — Remote review branch can move without a contract violationPaths: The fix is to take the credentials away, not to detect their use. The owner chose this direction. A Claude read-only stage now runs with:
A credential-free reviewer can't publish either, so Claude is no longer eligible for read-only stages that publish ( Verification:
Residual risk: this removes the credentials the process is handed; it is not an OS sandbox. A token kept in a readable file elsewhere on disk, such as a plaintext [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileUnchanged since the rereview at [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationUnchanged since the rereview at [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationPath: The clone and the temporary home are now removed through Verification: Post-change workflow
No finding is blocking after this resolution. Approval belongs to the rereview. |
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1[CCR-20260924-003] · unknown · unknown/unknown→? · unknown · schema:1SummaryCHANGES_REQUESTED for PR #74 at Since the previous rereview at Repository convention applied: Findings[REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationPath: The new environment removes credentials passed through environment variables and redirects the ordinary GitHub and Git configuration paths. It does not isolate the reviewer from files readable by the same OS user; the helper's docstring explicitly leaves those files accessible. Bash remains available, and a configured [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source filePath: Corrected and verified in the prior rereview. The harness rejects a dirty implementer checkout before dispatch. The current run of [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationPath: Corrected and verified in the prior rereview. Isolation setup failures return a blocked result without [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationPath: Corrected and verified. Cleanup now checks whether either temporary directory remains, removes the verified-mode artifact, and reports a failed dispatch when cleanup does not complete. Security triage and auditSecurity audit required. Verification and CI
Residual risk: a Claude reviewer can still access credentials stored in files readable by its OS user, so the branch-write guarantee is not enforced. The current project verdict is CHANGES_REQUESTED. Blocking finding: REV-001. |
[CCT-20260924-003] · unknown · unknown/unknown→? · unknown · triaged:8ee2afe80e1f8b68cd1d41d49e9a281af8438044 · schema:1Triage record for PR #74 after rereview CCR-20260924-003, judged against the triage commit above before any edit. Repository convention: [REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationThis finding keeps the disposition [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileNo action. Resolved and verified in earlier rereviews. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationNo action. Resolved and verified in earlier rereviews. [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationNo action. CCR-20260924-003 verified it resolved at |
The maintainer accepts the remote-write risk for Claude reviewers, so Claude keeps its full tooling and normal gh/git access. This reverts the credential stripping and the harness_publication refusal from 8ee2afe and drops the read-only --disallowedTools restriction. The stage is told, and shown why, not to write, runs in a disposable clone, and the before/after checks still turn a detected change into a contract_violation. Such stages now record read_only_mode=detected instead of isolated_verified. The docs explain that the Codex sandbox enforces read-only, while with Claude a remote write can be detected but not prevented or undone (REV-001). A review clone that cannot be removed fails the stage without a read_only_mode; a failure the run already reported keeps its outcome (REV-004).
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCR-20260924-003] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1[CCT-20260924-003] · unknown · unknown/unknown→? · unknown · triaged:8ee2afe80e1f8b68cd1d41d49e9a281af8438044 · schema:1Resolution summaryRESOLVED at Findings[REV-001] · high · not_applicable · valid · blocks:yes — Remote review branch can move without a contract violationDecision by the maintainer: the risk is accepted, documented, and detected where it can be observed. The disposition stays What changed in
Evidence anchor: [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileUnchanged: the clean-checkout precondition is kept. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationUnchanged: a setup failure still returns [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationRe-applied on top of the reverted base, without the credential home. Post-change workflow
Residual risk, accepted by the maintainer: a Claude reviewer can write to the remote with its normal credentials. The harness detects a lasting local or remote-ref change but can't prevent or undo it, and misses a change that is restored before the stage ends. No blocking finding remains open. Approval belongs to the rereview. |
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1[CCR-20260924-003] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-003] · unknown · unknown/unknown→? · unknown · triaged:8ee2afe80e1f8b68cd1d41d49e9a281af8438044 · schema:1[CCR-20260924-004] · unknown · unknown/unknown→? · unknown · schema:1SummaryCHANGES_REQUESTED for PR #74 at head 6c35d8b against main at b9dbc54. Since the prior reviewed head 8ee2afe, the new commit removes credential scrubbing and Claude tool restrictions, changes the recorded mode to detected, adds configured-remote ref checks, and retains failure on a review clone that cannot be removed. Repository convention: CONTRIBUTING.md and the toolkit review workflow were applied; this repository has no project AGENTS.md or CLAUDE.md. The PR is open, not a draft, has no labels, and describes #72, which remains open. Findings[REV-001] · high · open · valid · blocks:yes — Remote review branch can move without a contract violationPath: scripts/executors.py:812-819, 827-853. The latest code now detects a push to a configured remote and returns CONTRACT_VIOLATION, but detection happens after the remote ref has already moved and the code cannot undo it. The targeted test test_claude_review_detects_a_remote_branch_push confirms that the remote contains the reviewer's new branch after dispatch fails. Issue #72 still requires a hard harness under which reviewer writes cannot reach the branch; the new documentation acknowledges a weaker, detection-only guarantee. The prior comment marked this finding not_applicable; this rereview reopens it because the linked issue's hard branch-protection acceptance criterion remains in force. The finding's disposition remains valid. [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source filePath: scripts/executors.py:781-787. Corrected and verified by execution: the harness now blocks preparation when the implementer checkout is dirty. The targeted PermissionTests pass, including the dirty-checkout rejection case, so the earlier reproduction cannot run against a dirty source tree. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationCorrected and verified by execution: the current failed-isolation test passes and confirms that a failed preparation does not report a verified read-only mode. [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationCorrected and verified by execution: test_a_review_clone_that_cannot_be_removed_fails_without_a_read_only_mode passes. The stage fails and does not claim a read-only mode when cleanup leaves a clone. [REV-005] · medium · open · - · blocks:yes — Cleanup follows a reviewer-created symlink and changes an external filePath: scripts/executors.py:743-747. The cleanup callback unconditionally calls chmod(path, 0o700). A reviewer can create a non-writable directory containing a symlink to a file outside the disposable clone. When recursive cleanup fails to unlink the symlink, this callback follows it and changes the target's permissions. I reproduced this with a temporary clone: cleanup left the clone behind and changed the external target from mode 0600 to 0700. Avoid following symlinks in the cleanup callback and add a regression test for a symlink inside a non-writable directory. Security triage and auditSecurity audit was required because the change alters executor permissions, credential availability, remote writes, and filesystem cleanup. The audit covered those changed trust boundaries. REV-001 and REV-005 are the confirmed issues; no other new vulnerability was confirmed. This was an execution-backed code audit using scripted runners, not a live Claude invocation. Verification
Current CIGitHub's Validate package checks passed at the current head: Skills, manifests, and Bash installer (2 runs) and PowerShell installer (2 runs). No pending or failed checks were reported. Residual risk and verdictClaude keeps normal GitHub and Git access. Configured remote changes are detected after dispatch, not prevented or rolled back; an already-published mutation can invalidate the review before the cycle stops. Scripted tests cannot establish the behavior of a live Claude process. CHANGES_REQUESTED because REV-001 and REV-005 remain open and blocking. |
[CCT-20260924-004] · unknown · unknown/unknown→? · unknown · triaged:6c35d8b0fa27d595916a716c8d9e39aa18fd203c · schema:1Triage record for PR #74 after rereview CCR-20260924-004, judged against the triage commit above before any edit. Repository convention: [REV-001] · high · not_applicable · valid · blocks:yes — Remote review branch can move without a contract violationThis finding keeps the disposition [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileNo action. Resolved and verified. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationNo action. Resolved and verified. [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationNo action. Resolved and verified. [REV-005] · medium · open · valid · blocks:yes — Cleanup follows a reviewer-created symlink and changes an external fileValid at the triage commit. |
The cleanup callback chmodded every path it failed to remove, and chmod follows links, so a reviewer-created symlink inside a non-writable directory changed the permissions of a file outside the clone. Links are no longer chmodded. The callback makes the parent directory writable instead, and only a parent inside the workspace being removed. Regression test included (REV-005).
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCR-20260924-003] · unknown · unknown/unknown→? · unknown · schema:1[CCR-20260924-004] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1[CCT-20260924-003] · unknown · unknown/unknown→? · unknown · triaged:8ee2afe80e1f8b68cd1d41d49e9a281af8438044 · schema:1[CCT-20260924-004] · unknown · unknown/unknown→? · unknown · triaged:6c35d8b0fa27d595916a716c8d9e39aa18fd203c · schema:1Resolution summaryRESOLVED at Findings[REV-001] · high · not_applicable · valid · blocks:yes — Remote review branch can move without a contract violationCCR-20260924-004 reopened this finding because issue #72 still required hard branch protection. The maintainer's decision is now written into that requirement: #72 was amended with a Decision (2026-09-24) section, and its criteria now say:
The code at [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileNo change. Resolved and verified. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationNo change. Resolved and verified. [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationNo change. Resolved and verified in CCR-20260924-004. [REV-005] · medium · resolved · valid · blocks:yes — Cleanup follows a reviewer-created symlink and changes an external filePath: The cleanup callback no longer calls Verification:
Post-change workflow
Residual risk, accepted by the maintainer and recorded in #72: a Claude reviewer can write to the remote with its normal credentials. The write is detected when observable, but it is neither prevented nor undone. No blocking finding remains open. Approval belongs to the rereview. |
[CCR-20260924-001] · senior_reviewer · openai/gpt-6-sol→? · max · schema:1[CCT-20260924-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:732cf0473673a5d082edc5789a6427f64d399a73 · schema:1[CCR-20260924-002] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-002] · unknown · unknown/unknown→? · unknown · triaged:dfae17471879a23cd33a44815c57579064e1eadd · schema:1[CCR-20260924-003] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-003] · unknown · unknown/unknown→? · unknown · triaged:8ee2afe80e1f8b68cd1d41d49e9a281af8438044 · schema:1[CCR-20260924-004] · unknown · unknown/unknown→? · unknown · schema:1[CCT-20260924-004] · unknown · unknown/unknown→? · unknown · triaged:6c35d8b0fa27d595916a716c8d9e39aa18fd203c · schema:1[CCR-20260924-005] · unknown · unknown/unknown→? · unknown · schema:1SummaryAPPROVED for PR #74 at head 3e53b88 against main at b9dbc54. Since the previous reviewed head 6c35d8b, the cleanup callback was changed to avoid chmod through reviewer-created symlinks, and a regression test was added. Repository convention: CONTRIBUTING.md and the toolkit review workflow were applied; this repository has no project AGENTS.md or CLAUDE.md. PR #74 is open, not a draft, and describes issue #72, which remains open and now states the detection-only policy for Claude remote writes. Findings[REV-001] · high · not_applicable · valid · blocks:yes — Remote review branch can move without a contract violationObsolete because the relevant requirement changed. Issue #72 now explicitly accepts detection rather than prevention of Claude remote writes, and says those writes cannot be undone. The disposition valid is preserved. This status does not mean remote writes are prevented; the documented residual risk remains. [REV-002] · high · resolved · valid · blocks:yes — Status fingerprint misses edits to an already dirty source fileCorrected and verified by execution: dirty implementer checkouts are rejected before dispatch. The targeted permission tests pass, including the dirty-checkout rejection case. [REV-003] · medium · resolved · valid · blocks:yes — Failed isolation is recorded as verified isolationCorrected and verified by execution: the failed-isolation test passes and confirms failed preparation does not report a read-only mode. [REV-004] · medium · resolved · valid · blocks:yes — Cleanup failure leaves the review clone while reporting verified isolationCorrected and verified by execution: test_a_review_clone_that_cannot_be_removed_fails_without_a_read_only_mode passes. The stage fails and does not claim a read-only mode when cleanup leaves a clone. [REV-005] · medium · resolved · valid · blocks:yes — Cleanup follows a reviewer-created symlink and changes an external fileCorrected and verified by execution: the cleanup callback skips chmod on symlink paths and makes a parent writable only when it is within the workspace being removed. test_cleanup_never_follows_a_reviewer_symlink_out_of_the_clone passes: the external file remains mode 0600, its contents remain unchanged, and the clone is removed. The finding's disposition valid is preserved. Security triage and auditSecurity review was run because the change affects filesystem cleanup at the reviewer trust boundary. The symlink-following permission change from the previous head is corrected and covered by the regression test. No new confirmed security issue was found in this delta. The audit used the scripted executor and local filesystem tests; no live Claude invocation was made. Verification
Current CIGitHub's Validate package checks passed at the current head: Skills, manifests, and Bash installer (2 runs) and PowerShell installer (2 runs). No pending or failed checks were reported. Residual risk and verdictClaude retains normal GitHub and Git access. Remote writes are detected when observable but cannot be prevented or undone; issue #72 directs users who need a hard guarantee to Codex or read-only credentials. The current head has no open blocking findings. APPROVED. |
…003)
Real comments republish earlier run lines and one run can span several
comments, so reading each comment as one run skipped every resolution
summary and returned {} on PR #74. comment_runs now attributes each
comment to the run lines it introduces first and folds a comment with no
new line into the current run. PR #74's live history yields
{"REV-001": 2}.
) * feat(cycle): stop findings that survive a claimed fix (#83) A resolver that pushes a commit which does not fix a finding changes the head, so the no-progress guard never fires and the iteration budget is spent on one finding, as REV-001 was on PR #74. - review_contract.claimed_fix_survivals: the single, pure definition. A claim is a resolution run publishing an ID as resolved/not_applicable; a survival is the next review run reopening it. Status, not disposition; last header per run; each (claim, next review) pair counts once. - run_cycle: tracks survivals from the in-cycle structured results. The first survival names the IDs in the next resolve prompt with a reproduce-and-rediagnose directive; the second stops with HUMAN_INTERVENTION before another resolve. Also applies the skills' no-progress guard (same head, same open set). - Telemetry schema 7: repeated_findings (observed pre-routing signal on resolve/rereview rows) and stop_reason on the cycle row; cc-stats reports both. - Both orchestrators state the ladder, cc-resolve-comments handles contested findings, and the validator checks the ladder prose. Closes #83 * fix(cycle): read malformed statuses as unknown and keep the final survival count REV-001: _finding_statuses checked vocabulary membership before the type, so a JSON list or object status raised TypeError and bypassed the cycle's stop and close telemetry. It now makes the finding list unreadable. REV-002: a survival found by the last permitted rereview had no later dispatch to carry repeated_findings, so cc-stats counted the cycle as having none. The closing cycle row now keeps the last evaluated value, and the value stays unknown (omitted) until the ladder is first evaluated instead of starting at zero. * fix(review-contract): count survivals from real comment history (REV-003) Real comments republish earlier run lines and one run can span several comments, so reading each comment as one run skipped every resolution summary and returned {} on PR #74. comment_runs now attributes each comment to the run lines it introduces first and folds a comment with no new line into the current run. PR #74's live history yields {"REV-001": 2}.
Implements #72.
Changes
Verification
Run line: profile=cheap_coder requested_model=openai/gpt-6-luna effort=high resolved_model=?