Repository navigation
Detect findings that survive a claimed fix and stop the loop (#83) - #102
Conversation
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
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1Executive summaryAPPROVED. Reviewed the full accumulated diff from merge base Findings[REV-001] · medium · open · - · blocks:no — Malformed finding status can crash the cyclePath:
[REV-002] · medium · open · - · blocks:no — Final rereview survival is missing from cycle statsPath: After the final permitted rereview reopens a claimed finding, the loop computes the survival count but exits at the iteration limit before another dispatch can record it. In a scripted one-iteration reproduction, the cycle detected the survival and stopped with Security triage
Verification
Unverified items and residual risksLive provider and Orca dispatch integration was not exercised; the repository tests use scripted adapters and the CI gates validate the package and installers. Malformed nested finding data remains a reliability risk as described in REV-001. VerdictAPPROVED — all expected PR checks and local verification passed, |
…vival 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.
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1Resolution summaryRESOLVED. Both findings from [REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cyclePath: The status type is now checked before vocabulary membership (
[REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle statsPaths:
Post-change workflow
Verification
Residual risks
|
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1[CCR-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · schema:1Executive summaryCHANGES_REQUESTED. I rereviewed the full accumulated diff from merge base Note: this rereview ran in the same session that implemented the PR and resolved REV-001/REV-002. It is not an independent review. Changes since the previous reviewCommit
Previous findings[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycleVerified by execution. [REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle statsVerified by execution. With New findings[REV-003] · medium · open · - · blocks:yes — Survivals are not counted from real comment historyPath:
Reproduced on PR #74's actual trusted comments: The runtime ladder is not affected, because it reads structured results. The comment path is the documented input for skills and analysis, and it undercounts on every real history. It never overcounts, so it fails safe, but it misses the case the issue targets. Suggested fix (prototyped read-only, not committed):
On the #74 history this prototype gives Security triage
Verification
CI
VerdictCHANGES_REQUESTED. REV-003 blocks approval. REV-001 and REV-002 are resolved. |
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1[CCR-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · schema:1[CCR-20260926-003] · manual_reviewer · ?/?→? · ? · schema:1Executive summaryCHANGES_REQUESTED. I rereviewed the complete accumulated diff from merge base Changes since the previous reviewNo commits have landed since the previous rereview at Previous findings[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cyclePath: Corrected and verified by execution. The status type is checked before vocabulary membership, so list, dictionary, and other non-string statuses are treated as unreadable instead of raising. The cycle now completes its normal close handling for malformed status input. [REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle statsPaths: Corrected and verified by execution. With Current findings[REV-003] · medium · open · - · blocks:yes — Survivals are not counted from real comment historyPath: Still reproducible. I parsed the 12 trusted comments on PR #74 with the current implementation; Security triage
Verification
Unverified items and residual risksLive provider/Orca dispatch was not exercised. The Windows PowerShell installer was not run locally; its two current PR CI checks passed. REV-003 remains the release-blocking correctness risk. VerdictCHANGES_REQUESTED — REV-003 blocks approval. REV-001 and REV-002 are resolved. The reviewed head equals the current PR head. |
…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}.
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1[CCR-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · schema:1[CCR-20260926-003] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · triaged:d85e3dcca67671930542d6166d8544c4b9dce801 · schema:1Resolution summaryRESOLVED. I triaged REV-003 against [REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycle[REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle stats[REV-003] · medium · resolved · valid · blocks:yes — Survivals are not counted from real comment historyPath:
Post-change workflow
Verification
|
[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1[CCR-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · schema:1[CCR-20260926-003] · manual_reviewer · ?/?→? · ? · schema:1[CCT-20260926-002] · manual · anthropic/claude-opus-5-5→? · high · triaged:d85e3dcca67671930542d6166d8544c4b9dce801 · schema:1[CCR-20260926-004] · manual_reviewer · ?/?→? · ? · schema:1Rereview resultAPPROVED. I reviewed the full accumulated diff from base Since the previous rereview at FindingsAll previous findings are corrected and verified by execution. Their original dispositions and [REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycleThe fix remains covered by the current cycle tests; the focused and full test suites pass. [REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle statsThe closing-row telemetry fix remains covered by the current run-cycle and stats tests; the focused and full test suites pass. [REV-003] · medium · resolved · valid · blocks:yes — Survivals are not counted from real comment historyThe fix attributes each trusted parsed comment to the run lines it introduces, supports one run spanning multiple comments, and keeps the structured runtime path unchanged. The regression test covers the real PR #74 comment shape, including republished earlier run lines and a triage run split across comments. I also reproduced the acceptance case from PR #74's live provider history using the production parser and configured trusted author Security triageThere is no configured Verification
CIAll four current checks passed: No GitHub review records or inline review threads are present. There are no open findings blocking approval. |
Closes #83 — #83
What changes in behaviour
review_contract.claimed_fix_survivals(runs)counts, perREV-xxx, how often a resolution run published the ID asresolved/not_applicableand the next review run reopened it asopen. It reads parsed comments (ReviewRecord) orRunStatusesmapped from structured results. Status, never disposition; last header per run wins; each (claim, next review) pair counts once.recover_comment_historyis unchanged.run_cycle.py, named constants):resolveprompt names the IDs and requires reproduction with the reviewer's reproduction, re-deriving the cause (using cc-implement-issue: systemic triage and diagnosis before editing (related issues, shared cause, stated cause as hypothesis) #82's Diagnose before editing when available), and nonot_applicablerepublish without new evidence — otherwisePARTIALLY_RESOLVED, contested.HUMAN_INTERVENTIONbefore another resolve; stop reason names the IDs.head_sha+ same open set) now stopsrun_cycletoo. An unknown head or unreadable finding list never matches.REV-[A-Za-z0-9-]{1,40}before they reach a prompt.--from) starts at zero survivals (documented).cc-resolve-commentsTriage gains a paragraph on contested findings.validate-package.pychecks both orchestrators state the ladder.repeated_findings(observed pre-routing signal onresolve/rereviewrows) andstop_reasonon thecyclerow (approved,iteration_limit,no_progress,repeated_findings,stage_not_completed,dispatch_failed,local_only).cc-statsshows stop reasons and cycles with repeated findings; older rows read as unknown.review-cycle.mdExit conditions,instrumentation.md,telemetry.md,CHANGELOG.md.Async Orca starts map to
stage_not_completed.max_iterationsdefaults are unchanged (3 vs 6 noted in docs).Verification
python3 -m unittest discover -s tests→ 754+ tests, OKpython3 scripts/validate-package.py→ VALID{"REV-001": 2}from headers only; every "not a survival" row (persisting, confirmed, scope removed, regression, unknown);valid+openis no claim,incorrect+not_applicableis; last header wins; legacy headers and-dispositions; scripted cycles for 1st-survival directive, 2nd-survival stop with no third resolve, reopened-once-then-approved, same-head no-progress, resumed cycle, unsafe IDs; stats; validator.