Skip to content

Detect findings that survive a claimed fix and stop the loop (#83) - #102

Merged
datacas merged 3 commits into
mainfrom
issue-83-repeated-findings
Sep 26, 2026
Merged

datacas merged 3 commits into
mainfrom
issue-83-repeated-findings

Conversation

@datacas

@datacas datacas commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Closes #83 — #83

What changes in behaviour

  • One definition. review_contract.claimed_fix_survivals(runs) counts, per REV-xxx, how often a resolution run published the ID as resolved/not_applicable and the next review run reopened it as open. It reads parsed comments (ReviewRecord) or RunStatuses mapped from structured results. Status, never disposition; last header per run wins; each (claim, next review) pair counts once. recover_comment_history is unchanged.
  • Runtime ladder (run_cycle.py, named constants):
  • Runtime parity: the skills' no-progress guard (same head_sha + same open set) now stops run_cycle too. An unknown head or unreadable finding list never matches.
  • Fail closed: only completed stages enter the history; an unreadable rereview finding list consumes pending claims without counting them; malformed resolve lists claim nothing. Finding IDs must match REV-[A-Za-z0-9-]{1,40} before they reach a prompt.
  • A resumed cycle (--from) starts at zero survivals (documented).
  • Skills: both orchestrators gain Repeated-findings ladder; cc-resolve-comments Triage gains a paragraph on contested findings. validate-package.py checks both orchestrators state the ladder.
  • Telemetry schema 7 (payload-only, additive): repeated_findings (observed pre-routing signal on resolve/rereview rows) and stop_reason on the cycle row (approved, iteration_limit, no_progress, repeated_findings, stage_not_completed, dispatch_failed, local_only). cc-stats shows stop reasons and cycles with repeated findings; older rows read as unknown.
  • Docs: review-cycle.md Exit conditions, instrumentation.md, telemetry.md, CHANGELOG.md.

Async Orca starts map to stage_not_completed. max_iterations defaults are unchanged (3 vs 6 noted in docs).

Verification

  • python3 -m unittest discover -s tests → 754+ tests, OK
  • python3 scripts/validate-package.py → VALID
  • New tests: Allow Claude in read-only roles via isolated worktrees #74 history → {"REV-001": 2} from headers only; every "not a survival" row (persisting, confirmed, scope removed, regression, unknown); valid+open is no claim, incorrect+not_applicable is; 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.

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
@datacas

datacas commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1

Executive summary

APPROVED. Reviewed the full accumulated diff from merge base 3fc869fc683493cff9a09de74638cf9be98546b7 through head c1c0bd0461f6c44b38dbc7ad5730266697efae76 across 17 files, for PR #102 and linked issue #83. Two non-blocking findings remain open.

Findings

[REV-001] · medium · open · - · blocks:no — Malformed finding status can crash the cycle

Path: scripts/run_cycle.py:909

_finding_statuses tests status not in vocabulary without first checking that the JSON value is a string. A completed stage result with status: [] reaches this expression and raises TypeError: unhashable type: 'list', aborting the cycle before its normal stop and close-telemetry handling. A direct reproduction raised the error. Validate the status type before membership and treat malformed values as unreadable.

[REV-002] · medium · open · - · blocks:no — Final rereview survival is missing from cycle stats

Path: scripts/run_cycle.py:805

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 iteration_limit, while the resolve and rereview rows both recorded repeated_findings: 0; cc-stats reported {"measured": 1, "cycles": 0}. The rendered metric says it counts cycles with a surviving finding, so this known occurrence is omitted. Persist the final known count or clarify that the metric measures only pre-routing exposure.

Security triage

.code-cycle.yml does not configure a deterministic security_review.always_when rule. Reviewer judgment activated the security audit because the change validates and routes structured finding data returned by other stages. The cc-security-review pass found no confirmed vulnerabilities.

Verification

  • Read-only preflight: Python 3.10.12, PyYAML 5.4.1, Node 22.23.2, and Bash 5.1 available. No runtime .env, database, external service, port, or migration is required; tests use temporary SQLite fixtures.
  • Focused test_review_contract.py, test_run_cycle.py, and test_stats.py modules: passed.
  • rtk proxy python3 -m unittest discover -s tests -v: 767 tests passed; no failures, errors, or skips.
  • rtk proxy python3 scripts/validate-package.py: passed; 14 skills validated.
  • claude plugin validate .: passed.
  • Telemetry edge-case reproduction: confirmed a final first survival is absent from cycle stats when the iteration limit stops the loop before another dispatch.
  • CI (gh pr checks 102): PowerShell installer passed (both runs); Skills, manifests, and Bash installer passed (both runs). No pending, failed, cancelled, or skipped checks. The release workflow is not a PR gate.

Unverified items and residual risks

Live 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.

Verdict

APPROVED — all expected PR checks and local verification passed, reviewed_head_sha equals the current PR head, and neither open finding blocks approval.

…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.
@datacas

datacas commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

[CCR-20260926-001] · manual_reviewer · ?/?→? · ? · schema:1

[CCT-20260926-001] · manual · anthropic/claude-opus-5-5→? · high · triaged:c1c0bd0461f6c44b38dbc7ad5730266697efae76 · schema:1

Resolution summary

RESOLVED. Both findings from CCR-20260926-001 were triaged against c1c0bd0 before any edit. Both are valid, and both are fixed in d85e3dcca67671930542d6166d8544c4b9dce801.

[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycle

Path: scripts/run_cycle.py (_finding_statuses)

The status type is now checked before vocabulary membership (not isinstance(status, str) or status not in vocabulary). A non-string status makes the finding list unreadable (None), which is the existing fail-closed behaviour: a review with an unreadable list uses up any pending claims without counting them, and the no-progress key is unknown.

  • Regression: test_a_status_that_is_not_text_makes_the_list_unreadable covers [], {}, ["open"], {"state": "open"}, 1, null, and true for review, rereview, and resolve, as well as _progress_key. test_a_malformed_status_still_ends_the_cycle_normally runs a full cycle with status: [] in every stage. The cycle ends with iteration_limit, and its closing row is written.
  • Reproduced on c1c0bd0: TypeError: unhashable type: 'list' / 'dict'. Passes on d85e3dc.

[REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle stats

Paths: scripts/cycle.py (observed_outcome), scripts/run_cycle.py

CycleRecorder.repeated_findings is the single source. It starts as None, becomes a known count the first time claimed_fix_survivals(history) is evaluated, and is then written in two places: as a pre-routing signal on every later resolve/rereview dispatch, and, through observed_outcome(), as the last value on the closing cycle row. The driver's initialisation to 0 was removed, so a cycle that never reaches the ladder omits the field instead of recording zero. stats._cycle_outcomes() already reads repeated_findings from any row of the cycle, so no parallel metric was added. The field is not added to OUTCOME_FIELDS: dispatch rows carry it too, so listing it there would break the rule that outcome-only fields never appear on dispatch rows.

  • Regression: test_a_survival_found_by_the_last_rereview_reaches_the_closing_row reproduces max_iterations=1, review CHANGES_REQUESTED → resolve claims resolved → rereview reopens. Result: stop_reason=iteration_limit, closing row repeated_findings=1, and cc-stats {"measured": 1, "cycles": 1}. On c1c0bd0 the closing row had no value.
  • test_a_cycle_that_never_reached_the_ladder_is_not_measured: a cycle blocked at implement and a cycle approved on first review both leave repeated_findings off every row, and cc-stats reports {"measured": 0, "cycles": 0}.
  • Docs: docs/instrumentation.md now lists repeated_findings on the cycle row and explains that it is unknown until evaluated. CHANGELOG.md is updated to match.

Post-change workflow

  • Code review of the accumulated diff for this fix: no further findings. Routing, models, and the ladder are unchanged.
  • Security triage: .code-cycle.yml sets no security_review.always_when rule. REV-001 only narrows which input is accepted, and REV-002 records one more existing count, so no new trust boundary is involved and no separate security audit was run.

Verification

  • Focused: python3 -m unittest tests.test_run_cycle -k Repeated passed (14 tests).
  • python3 -m unittest discover -s tests passed (771 tests).
  • python3 scripts/validate-package.py: VALID.
  • CI on d85e3dc (gh pr checks 102): PowerShell installer and Skills, manifests, and Bash installer passed, 2 runs each. None pending or failed.

Residual risks

Telemetry.cycle_outcome() returns only the fields in OUTCOME_FIELDS["cycle"], so it does not show the closing row's repeated_findings. cc-stats reads it from the rows directly.

@datacas

datacas commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

[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

Executive summary

CHANGES_REQUESTED. I rereviewed the full accumulated diff from merge base 3fc869fc683493cff9a09de74638cf9be98546b7 to head d85e3dcca67671930542d6166d8544c4b9dce801 (18 files). REV-001 and REV-002 are fixed, and both fixes are verified by execution. One new blocking finding, REV-003: the survival function returns the wrong count when it reads real change-request comments, so the issue's #74 acceptance criterion is not met on actual history.

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 review

Commit d85e3dc:

  • _finding_statuses checks the status type before the vocabulary lookup.
  • CycleRecorder.repeated_findings starts unknown and is written on the closing cycle row.
  • The driver no longer initialises it to 0.
  • Regression tests, docs/instrumentation.md, and CHANGELOG.md updated.

Previous findings

[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycle

Verified by execution. _finding_statuses returns None for status: [] and status: {"a": 1}. The full-cycle test with status: [] ends through iteration_limit and writes its closing row. The same tests raised TypeError on c1c0bd0.

[REV-002] · medium · resolved · valid · blocks:no — Final rereview survival is missing from cycle stats

Verified by execution. With max_iterations=1, a claimed fix that the rereview reopens now produces stop_reason=iteration_limit and closing row repeated_findings=1, and cc-stats reports {"measured": 1, "cycles": 1}. A cycle that never reaches the ladder leaves the field off every row. The closing-row test failed on c1c0bd0.

New findings

[REV-003] · medium · open · - · blocks:yes — Survivals are not counted from real comment history

Path: scripts/review_contract.py (run_statuses, claimed_fix_survivals)

run_statuses treats one comment as one run and skips any comment that carries run lines of both kinds. Real comments do not look like that. cc-resolve-comments republishes every earlier review run line next to its own triage line, and a rereview republishes every earlier line before its own. One run can also span several comments: on #74, a comment holding only CCT-20260924-002 publishes REV-001 open, and a later summary comment for the same run republishes it resolved.

Reproduced on PR #74's actual trusted comments: claimed_fix_survivals([parse_comment(body) ...]) returns {}. Issue #83 requires {"REV-001": 2}. The unit fixture in tests/test_review_contract.py passes only because each synthetic comment carries exactly one run line.

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):

  • Attribute each comment to the run lines it introduces for the first time, tracked across the ordered sequence.
  • Treat a comment with no new run line as a continuation of the current run: merge its headers into that run, with the last header per ID winning.
  • Skip a comment whose new lines mix kinds.

On the #74 history this prototype gives CCR-001 open, CCT-001 open, CCR-002 open, CCT-002 resolved, CCR-003 open, CCT-003 not_applicable, CCR-004 open, CCT-004 not_applicable, CCR-005 not_applicable and returns {"REV-001": 2}. Add a fixture built from the real comment shapes: republished run lines, and a run split across comments.

Security triage

.code-cycle.yml sets no security_review.always_when rule. Reviewer judgement kept the audit because structured stage output reaches later prompts. The security pass ran inline (degraded; cc-security-review was not loaded as a separate pass). Finding IDs are checked against REV-[A-Za-z0-9-]{1,40} before they reach a prompt, and test_an_id_that_is_not_a_finding_id_never_reaches_a_prompt covers that. The d85e3dc delta only narrows what input is accepted. No confirmed vulnerability.

Verification

  • _finding_statuses direct reproduction with list and dict statuses: None None.
  • Focused tests for REV-001/REV-002 passed.
  • python3 -m unittest discover -s tests: 771 tests, OK.
  • python3 scripts/validate-package.py: VALID.
  • REV-003: reproduced against the live Allow Claude in read-only roles via isolated worktrees #74 comment history with gh pr view 74 --json comments.
  • Not run: claude plugin validate .. Live provider or Orca dispatch was not exercised.

CI

gh pr checks 102 on d85e3dc: PowerShell installer passed (2 runs); Skills, manifests, and Bash installer passed (2 runs). None pending, failed, cancelled, skipped, or missing.

Verdict

CHANGES_REQUESTED. REV-003 blocks approval. REV-001 and REV-002 are resolved.

@datacas

datacas commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

[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

Executive summary

CHANGES_REQUESTED. I rereviewed the complete accumulated diff from merge base 3fc869fc683493cff9a09de74638cf9be98546b7 through current head d85e3dcca67671930542d6166d8544c4b9dce801 (17 files). The head is unchanged since the prior rereview. REV-001 and REV-002 are corrected and verified by execution. REV-003 remains reproducible and blocks approval.

Changes since the previous review

No commits have landed since the previous rereview at d85e3dcca67671930542d6166d8544c4b9dce801. The accumulated 17-file diff is unchanged.

Previous findings

[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycle

Path: scripts/run_cycle.py (_finding_statuses)

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 stats

Paths: scripts/cycle.py (CycleRecorder.observed_outcome), scripts/run_cycle.py

Corrected and verified by execution. With max_iterations=1, a survival found by the final rereview is written to the closing cycle row and counted by stats. The cycle that never reaches the ladder remains unmeasured.

Current findings

[REV-003] · medium · open · - · blocks:yes — Survivals are not counted from real comment history

Path: scripts/review_contract.py (run_statuses, claimed_fix_survivals)

Still reproducible. I parsed the 12 trusted comments on PR #74 with the current implementation; claimed_fix_survivals returns {}, while issue #83 requires {"REV-001": 2} for that history. run_statuses skips a comment that republishes both review and triage run lines, which occurs in real resolver and rereview comments. The committed synthetic fixture passes because each comment contains only one run kind; it does not cover the provider-shaped history.

Security triage

.code-cycle.yml has no deterministic security_review.always_when rule. Reviewer judgment activated the audit because structured review results and comment history affect cycle control. The security pass found no confirmed vulnerabilities. As a caller-discipline risk, claimed_fix_survivals accepts ReviewRecord values without author provenance; provider-history callers must apply the trusted-author check first. No production call site in this change passes raw parsed comments to the function.

Verification

  • Preflight: Python 3.10.12, PyYAML 5.4.1, Bash 5.1.16, and Claude Code 2.1.283 available. No app environment, database, or external service is required; tests use temporary SQLite fixtures.
  • Focused test_review_contract.py, test_run_cycle.py, and test_stats.py modules: 204 tests passed. This includes the non-string status, normal cycle close, final-rereview closing-row, and synthetic Allow Claude in read-only roles via isolated worktrees #74 fixture cases.
  • rtk proxy python3 -m unittest discover -s tests -v: 771 passed, no skips.
  • rtk proxy python3 scripts/validate-package.py: passed; 14 skills and shared sections/manifests validated.
  • rtk proxy claude plugin validate .: passed.
  • Real-history reproduction: 12 trusted comments on PR Allow Claude in read-only roles via isolated worktrees #74 returned {} instead of the required {"REV-001": 2}.
  • Current PR CI: Skills, manifests, and Bash installer passed (both runs); PowerShell installer passed (both runs). All four checks passed; none are pending, failed, cancelled, or skipped. The release workflow is not a PR gate.

Unverified items and residual risks

Live 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.

Verdict

CHANGES_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}.
@datacas

datacas commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

[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

Resolution summary

RESOLVED. I triaged REV-003 against d85e3dc as valid and fixed it in b5d791da6274678f89b95d062ef9c2f086971442. REV-001 and REV-002 were already resolved and stay unchanged.

[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 history

Path: scripts/review_contract.py

run_statuses is replaced by comment_runs(records), which folds parsed comments (oldest first) into runs:

  • A comment starts a new run when the run lines it introduces for the first time in the sequence are all of one kind.
  • A comment with no new run line, but with at least one known one, continues the current run. Its headers override that run's earlier positions.
  • A comment whose new run lines mix kinds, or that has no run line at all, is left out.

claimed_fix_survivals folds its input through comment_runs when it receives parsed comments. It refuses a mix of parsed comments and structured-result runs. The runtime path, which reads structured results, is unchanged.

  • Reproduced on PR Allow Claude in read-only roles via isolated worktrees #74's live trusted comments: {} on d85e3dc, {"REV-001": 2} on b5d791d.
  • Regression: test_the_pr_74_history_as_provider_comments_counts_two_survivals reproduces the real comment shapes (earlier run lines republished, one triage run split across two comments). It checks both the count and the reconstructed run sequence CCR-001 open … CCR-005 not_applicable. Also added test_new_run_lines_of_both_kinds_are_not_placed and test_mixed_inputs_are_refused.
  • docs/review-cycle.md now describes how comments are attributed to runs.

Post-change workflow

  • Code review of the delta: no further findings. The runtime ladder, routing, and models are unchanged.
  • Security triage: no security_review.always_when rule. The change is to a pure function over trusted, already-parsed comments. Callers must still filter comments by trusted author first, as the docstring states. No confirmed vulnerability.

Verification

  • python3 -m unittest tests.test_review_contract: 77 tests, OK.
  • python3 -m unittest discover -s tests: 774 tests, OK.
  • python3 scripts/validate-package.py: VALID.
  • CI on b5d791d: PowerShell installer passed (2 runs); Skills, manifests, and Bash installer passed (2 runs). None pending or failed.

@datacas

datacas commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

[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:1

Rereview result

APPROVED. I reviewed the full accumulated diff from base 3fc869fc683493cff9a09de74638cf9be98546b7 through head b5d791da6274678f89b95d062ef9c2f086971442 for PR #102 and linked issue #83. The accumulated diff has 17 files (973 insertions, 18 deletions). The PR remains open and is not a draft.

Since the previous rereview at d85e3dcca67671930542d6166d8544c4b9dce801, the 3-file delta adds the comment-history run reconstruction in scripts/review_contract.py, regression tests, and a documentation clarification (93 insertions, 31 deletions). I found no new issue in this delta or the accumulated changes.

Findings

All previous findings are corrected and verified by execution. Their original dispositions and blocks values are preserved:

[REV-001] · medium · resolved · valid · blocks:no — Malformed finding status can crash the cycle

The 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 stats

The 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 history

The 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 datacas: 12 trusted comments, 9 unique run IDs, no recovery notes, and claimed_fix_survivals returned {"REV-001": 2}.

Security triage

There is no configured security_review.always_when rule. I activated the security audit based on judgment because this change interprets provider comment history. The audit found no confirmed vulnerability in the production path. The remaining caller-provenance risk is that ReviewRecord itself does not carry provider-author metadata, so any caller passing comments to comment_runs or claimed_fix_survivals must filter them by the configured trusted-author allow-list first. The production cycle path uses structured stage results; no production call site passes raw unfiltered provider comments to these functions.

Verification

  • Focused tests: python3 -m unittest tests.test_review_contract tests.test_run_cycle tests.test_stats -v — 207 passed.
  • Full suite: python3 -m unittest discover -s tests -v — 774 passed.
  • python3 scripts/validate-package.py — VALID: 14 skills (6 cycle, 8 supporting), shared sections in sync, cross-agent manifests aligned.
  • claude plugin validate . — passed.
  • git diff --check origin/main...refs/remotes/origin/pr/102 — passed.
  • Live PR Allow Claude in read-only roles via isolated worktrees #74 history reproduction — {"REV-001": 2} as described above.

CI

All four current checks passed: Skills, manifests, and Bash installer (2 runs) and PowerShell installer (2 runs). No checks are pending, failed, cancelled, or skipped. A live Orca dispatch/provider round trip and local Windows PowerShell execution were not run; the PowerShell installer did pass in CI.

No GitHub review records or inline review threads are present. There are no open findings blocking approval.

@datacas
datacas merged commit c34be95 into main Sep 26, 2026
4 checks passed
@datacas
datacas deleted the issue-83-repeated-findings branch October 6, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect findings that survive a claimed fix and stop the loop before the iteration budget is spent

1 participant