Repository navigation
feat(issue-review): add an optional pre-implementation readiness stage - #114
Conversation
Add the read-only cc-issue-review skill and run it before implement in run_cycle.py. It returns READY, NEEDS_REFINEMENT, or BLOCKED with a categorical confidence, IR-NNN findings with evidence, and IU-NNN uncertainties, without editing or commenting on the work item and without repeating the implementer's diagnosis. Only a confirmed READY dispatches implement. A READY with low confidence or an unresolved material uncertainty is reviewed once more on senior_reviewer, then stops as readiness_unconfirmed. NEEDS_REFINEMENT stops as needs_refinement and prints the findings; BLOCKED, missing, or malformed results stop before implement. The default is auto, which skips only work declared trivial and not security-sensitive; issue_review.mode: off or --issue-review off keeps the original flow, and resumed cycles are unchanged. The role reuses the read_only policy with no publication permission. Telemetry schema 11 adds counts and tokens only. The validator checks the skill's tables and example against the runtime's result check. Closes #110
…e test database (#110)
[CCR-20260929-001] · reviewer · openai/gpt-6-sol→? · high · schema:1Summary and scopeReviewed the full accumulated diff for PR #114, from merge base Verdict: APPROVED. One medium, non-blocking finding remains open. No finding blocks approval. Findings[REV-001] · medium · open · - · blocks:no — READY results are not bound to the requested work itemPath: The runtime calls Security triage and audit
Execution-backed verification
The verification preflight found no required application configuration, external service, database server, or migration for this Python runtime/package change. Windows was not exercised locally; the PowerShell CI job completed successfully. CI and expected gatesAll four check runs on head Residual risksThe readiness assessment is model-authored; the runtime enforces its result shape and gate but cannot independently prove the assessment's reasoning. The new stage is integrated into Project verdict: APPROVED. |
Resolves REV-001: a result must name the reviewed work item in issue_id, and the runtime stops before implement when it names another one.
[CCR-20260929-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20260929-001] · manual · anthropic/claude-opus-5-5→? · unknown · triaged:5bed9454fafff25751a64df9384a76e18d0d9984 · schema:1TriageEvery finding was classified against [REV-001] · medium · open · valid · blocks:no — READY results are not bound to the requested work itemPath: Valid. |
[CCR-20260929-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20260929-001] · manual · anthropic/claude-opus-5-5→? · unknown · triaged:5bed9454fafff25751a64df9384a76e18d0d9984 · schema:1Resolution summary —
|
| Level | Command | Exit | Executed |
|---|---|---|---|
| test | python3 -m unittest discover -s tests |
0 | 903 |
| static | python3 scripts/validate-package.py |
0 | — |
Post-change review of the accumulated diff found no new issue. Security triage: no default security_review path matched, and the change only narrows the gate, so no audit was added.
CI
All four checks passed on 9bbe8d20cbeabfe5f8832a77e33543556190a7df: Skills, manifests, and Bash installer (×2) and PowerShell installer (×2).
Residual risk
The identity check proves that the result names the requested item. It cannot prove that the agent actually read that item.
[CCR-20260929-002] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCR-20260929-001] · reviewer · openai/gpt-6-sol→? · high · schema:1[CCT-20260929-001] · manual · anthropic/claude-opus-5-5→? · unknown · triaged:5bed9454fafff25751a64df9384a76e18d0d9984 · schema:1Summary and scopeRereviewed the full accumulated diff for PR #114 against base Verdict: APPROVED. The prior non-blocking finding is resolved; there are no open or blocking findings. Findings[REV-001] · medium · resolved · valid · blocks:no — READY results are not bound to the requested work itemPaths: The result contract now requires Execution-backed regression evidence: an in-memory probe against the old and current remote source changed the mismatched READY result from No new findings were identified in the accumulated diff. Security triage and auditNo deterministic Verification
CI and expected gatesAll four PR check runs passed on Residual riskThe identity check confirms that the result names the requested work item. It cannot independently prove that the model actually read that item; readiness reasoning remains model-authored. Project verdict: APPROVED. |
Closes #110 — #110
Summary
Adds
cc-issue-review, a read-only readiness pass over a work item, and runs it inrun_cycle.pyimmediately beforeimplement.skills/cc-issue-review/SKILL.md): compares the work item and its linked work with the current repository, evaluates only the relevant dimensions (applicability,existing_work,overlap_dependency,scope_architecture,acceptance_verification,compatibility,security,data,operations), and returnsREADY,NEEDS_REFINEMENT, orBLOCKEDwith a categoricalconfidence, evidence-backedIR-NNNfindings,IU-NNNuncertainties, and suggested issue edits. It never edits, comments on, labels, or closes the work item, and it does not repeat the implementer's diagnosis or review code.scripts/issue_review.py): closed shape and vocabularies.REV-xxxidentities, findingstatus, resolverdisposition, and adiagnosisobject are refused. The validator checks the skill's tables and example against this same check.READY(confidencehigh/medium, no unresolved material uncertainty) dispatchesimplement. AREADYwithlowconfidence or an open material uncertainty escalates once tosenior_reviewer(escalation_selector), then stops asreadiness_unconfirmed; high-risk work that already ran onsenior_reviewerstops directly.NEEDS_REFINEMENTstops asneeds_refinementand prints findings, evidence, and proposed edits.BLOCKED, missing, or malformed results stop beforeimplement.autoby default (code_cycle.issue_review.mode,--issue-review).autoskips only work declared trivial and not security-sensitive (--difficulty 1without--security-sensitive); the default difficulty 2 is reviewed.offrestoresimplement → review → resolve → rereview. Resumes fromreview/resolve/rerevieware unchanged.issue_reviewcandidates arereviewer/senior_reviewer; difficulty 3 or security-sensitive →senior_reviewer. No new executor-specific, temperature, or context-budget knobs.READ_ONLYwith no publication permissions, so it gets the existing after-dispatch checkout fingerprint and the "publishes nothing" prompt policy.readiness_result_valid,readiness_confidence,readiness_findings_total,readiness_findings_blocking,readiness_uncertainties_material; dispatch signalescalated; cycleissue_review(off/skipped/dispatched); stop reasonsneeds_refinement,readiness_unconfirmed. No issue text, finding prose, or prompts are stored.Compatibility note
autois the new default forrun_cycle.pyandrun_cycle(...), as the issue specifies, so a default new cycle now dispatches one extra read-only stage beforeimplement. Existing driver tests pinissue_review="off"to keep describing the original flow; the installed-cycle tests run the default and assert the new stage.Verification (agent-reported)
python3 -m unittest tests.test_issue_reviewpython3 -m unittest discover -s testspython3 scripts/validate-package.pybash scripts/install.sh --agent all --scope globaland--scope projectinto a temporary HOME;cc-issue-review/SKILL.mdpresent in all six host layouts and the installed runtime importsrun_cycleandissue_reviewnpx --yes skills@1.5.23 add . --listlistscc-issue-reviewwith no skipped or unparsable skillConceptual fixtures (
tests/fixtures/issue-review/): #92 is skipped as trivial; #90 isREADYonreviewerand a result carryingdiagnosisis refused; #91 routes tosenior_reviewer, returnsNEEDS_REFINEMENTwith a blocking finding that the detector must cover whatgit statushides (ignored files, the index, refs), and a low-confidenceREADYfor it cannot reachimplement. Tests need no optional workspace tools. PowerShell/Windows installation was not run locally; CI ran it.The first CI run failed on two defects fixed in 5f64359: the skill's
descriptioncontained:, which strict YAML rejects, so the skills CLI skipped it (the first local discovery check matched that skip warning and was wrong); and a test left a SQLite connection open, which Windows could not clean up. All four checks pass on 5f64359.Residual risk / not in scope
cc-orchestratorandcc-orca-orchestratordo not dispatch the new stage; only the runtime driver does.