Repository navigation
Conversation
Code Cycle initial review — PR #317 (work item #307)[CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Verdict: CHANGES_REQUESTED for head Summary and scopeI reviewed the whole diff from merge base The hook side is sound. Two problems block approval:
Findings[REV-001] · medium · open · - · blocks:yes — Absolute validator allowedTools patterns never match the typed command
For a native Claude dispatch, Two related gaps:
The test only asserts Expected: build the Bash patterns from plain command-form paths, both literal and resolved, without the Evidence: code inspection, plus the observed [REV-002] · medium · open · - · blocks:yes — New validator test is not portable to Windows
The new test interpolates The pattern assertion
Existing tests in the same file single-quote absolute paths (for example lines 293 and 363) for this reason.
[REV-003] · low · open · - · blocks:no — Validation step is unconditional on the manual and Orca path
[REV-004] · low · open · - · blocks:no — No test pins the new SKILL.md validation steps
The test checks that Security triage
I ran the audit inline and found no vulnerability:
Commands executed
Unverified
CI (policy: parallel; read once, not awaited)Head
The aggregate job "Require all Windows test shards to pass" and the Windows package validation job depend on the shards and have not reported yet. The cycle's CI gate decides on these checks. Residual risk
Documentation
|
Code Cycle resolution — PR #317 (work item #307)Status: PARTIALLY_RESOLVED for head Triage[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:18c45f5d21c1b65a71c55abfe94178a1a27cdcff · schema:2I classified all four findings against the reviewed head before evaluating the fixes. Each described a real issue in this change, so each disposition is [CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Applied fixes[REV-001] · medium · resolved · valid · blocks:yes — Absolute validator patterns did not match command pathsUpdated [REV-002] · medium · resolved · valid · blocks:yes — Validator test failed on Windows pathsQuoted absolute paths in the policy test with [REV-003] · low · resolved · valid · blocks:no — Validation instructions lacked native-dispatch scopeQualified the new steps in [REV-004] · low · resolved · valid · blocks:no — Skill validation steps were not covered by testsAdded a regression test that checks both skill files retain the native-dispatch scope, staged path, validator and before-publishing instruction. No findings were rejected or left open. Verification
CI on the pushed headHead The fix commit is |
Code Cycle rereview — PR #317 (work item #307)[CCR-20261023-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Earlier runs on this change request: [CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:18c45f5d21c1b65a71c55abfe94178a1a27cdcff · schema:2Verdict: CHANGES_REQUESTED for head What changed since the previous reviewCommit
I read the whole accumulated diff again: 184 lines from merge base Previous findings[REV-001] · medium · open · valid · blocks:yes — Absolute validator allowedTools patterns never match the typed command
The fix is partial. The direct-path prefix The nested wildcard is still wrong. It is built as The quote characters are literal in the rule. A command typed the usual way, without quotes, does not match it: Only an agent that happens to single-quote the path matches. The nested form matters most. In this dispatch, The new test asserts the same Expected fix: quote only the root and append the literal suffix, for example Evidence: code inspection of lines 1403-1405, the stdlib [REV-002] · medium · resolved · valid · blocks:yes — New validator test is not portable to Windows
Resolved and verified. Absolute and sibling paths are now passed through [REV-003] · low · resolved · valid · blocks:no — Validation step is unconditional on the manual and Orca path
Resolved. Both steps now begin "For a native dispatch, the runtime supplies the absolute path" and route manual and Orca runs to their host-provided temporary-file workflow, which matches [REV-004] · low · resolved · valid · blocks:no — No test pins the new SKILL.md validation steps
Resolved. The new test asserts the native-dispatch scope, the staged path, the validator name and "before publishing" in both skills. It passes. New findingsNone. Security triage
Audit result: no vulnerability.
Verification
Unverified:
CI (policy: parallel; read once, not awaited)Head
The cycle's CI gate decides on the pending check. Residual riskAfter REV-001 is fixed, the validator's allowedTools/hook pairing should still be confirmed in one real native Claude dispatch whose TMPDIR is the nested form. Documentation
|
…ools (#307) shlex.quote wrapped the whole claude-* wildcard path in literal single quotes, so an unquoted nested command never matched. Quote only the root, keep the fully quoted variant, and test the pattern against the typed command.
Code Cycle resolution — PR #317 (work item #307)Status: RESOLVED for head Triage[CCT-20261023-002] · cheap_coder · anthropic/claude-sonnet-5-5→? · high · triaged:921e9e8d5e81b4bafa815138865c66c6125d596d · schema:2REV-001 survived a claimed fix: the rereview reopened it. I reproduced it before editing and did not republish it Earlier runs on this change request: [CCR-20261023-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:18c45f5d21c1b65a71c55abfe94178a1a27cdcff · schema:2Findings[REV-001] · medium · resolved · valid · blocks:yes — Absolute validator allowedTools patterns never match the typed command
Reproduction. The rereview was right. Cause. The wildcard suffix was quoted together with the root. The first fix removed the Fix. The nested pattern now quotes only the root and appends the literal suffix: Regression test. The hook is unchanged and remains the binding check: the installed script, exactly one [REV-002] · medium · resolved · valid · blocks:yes — New validator test is not portable to WindowsResolved in [REV-003] · low · resolved · valid · blocks:no — Validation step is unconditional on the manual and Orca pathResolved in [REV-004] · low · resolved · valid · blocks:no — No test pins the new SKILL.md validation stepsResolved in Fix delta reviewDelta base is I reviewed it inline. The change only adds one more first-barrier Security triage: this stays inside the command-table area that the review already audited. The only addition is an equivalent pattern spelling for the same command shape. The hook, which refuses extra arguments, other file names and paths outside TMPDIR, is unchanged. I found no vulnerability. Verification (agent-reported)
Conclusion: Not run: the staged-comment validator. Environment assumptions shared with CI: none specific to this round. The new assertion does not depend on the global Git identity or on tools outside the repository. CI on the pushed headHead Documentation
Fix commit: |
Code Cycle rereview — PR #317 (work item #307)[CCR-20261023-003] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2Earlier runs on this change request: [CCT-20261023-002] · cheap_coder · anthropic/claude-sonnet-5-5→? · high · triaged:921e9e8d5e81b4bafa815138865c66c6125d596d · schema:2[CCR-20261023-002] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCR-20261023-001] · senior_reviewer · anthropic/claude-opus-5-5→? · high · schema:2[CCT-20261023-001] · cheap_coder · openai/gpt-6-luna→? · high · triaged:18c45f5d21c1b65a71c55abfe94178a1a27cdcff · schema:2Verdict: REVIEW_PASSED_AWAITING_CI for head What changed since the previous reviewCommit
I read the whole accumulated diff again: 199 lines from merge base Previous findings[REV-001] · medium · resolved · valid · blocks:yes — Absolute validator allowedTools patterns never match the typed command
Resolved and verified by execution. For each root, the generated rules are now:
Rules are built for the literal and the resolved TMPDIR. On this host ( The wildcard placement matches the existing [REV-002] · medium · resolved · valid · blocks:yes — New validator test is not portable to WindowsStill resolved. The new [REV-003] · low · resolved · valid · blocks:no — Validation step is unconditional on the manual and Orca pathStill resolved. The skill files did not change in this round. [REV-004] · low · resolved · valid · blocks:no — No test pins the new SKILL.md validation stepsStill resolved. The same test passes. New findingsNone. Security triage
Audit result: no vulnerability. The delta only adds an unquoted spelling of a first-barrier
Verification
Unverified:
CI (policy: parallel; read once, not awaited)Head
The PowerShell installer and Windows aggregate jobs had not reported yet. The cycle's CI gate decides on these checks. Residual riskConfirm the validator's allowedTools/hook pairing in one real native Claude dispatch whose TMPDIR has the nested form, once this runtime is installed. Documentation
|
Summary
pr-comment.mdin the dispatch temp directory.Issue: #307
Diagnosis
The symptom is that review and rereview cannot run the installed validator on their staged comment. The existing command-table test asserted the validator was absent from review patterns, and the role guard allowed it only for
resolve; I did not run a separate pre-change hook reproduction. The issue’s cause matches the code. The invariant is that only the installed script with exactly onepr-comment.mdargument resolving directly inside the dispatchTMPDIRor itsclaude-<uid>child is allowed. A widened issue search found #306, which explicitly notes that #307 touches the same resolve command table for a separate allowance; it identifies merge-order overlap, not a dependency. The code search covered the validator policy, role prompts, tests, and host-permissions documentation.Work units
WU-1scripts/stage_permissions.py,skills/cc-initial-review/SKILL.md,skills/cc-rereview/SKILL.md,tests/test_stage_permissions.py,docs/host-permissions.mdtests/test_stage_permissions.pypython3 -m unittest discover -s tests(1,764 passed);python3 scripts/validate-package.pypassed;python3 -m unittestpassed (0 discovered)Documentation updated in
docs/host-permissions.md.Closes #307