Skip to content

feat(cc-700): report per-reviewer participation and finding yield in gate stats - #795

Open
screenleon wants to merge 1 commit into
mainfrom
feat/CC-700-reviewer-participation
Open

screenleon wants to merge 1 commit into
mainfrom
feat/CC-700-reviewer-participation

Conversation

@screenleon

Copy link
Copy Markdown
Owner

摘要

pmctl gate stats 的每個 by_reviewer.<name> 新增 participation:

欄位 意義
runs 列出這位 reviewer 的完整 gate 數
finding_evidence_runs 其中發現讀得到、且含這位 reviewer 區塊的 gate 數
runs_with_findings 其中至少報告一個發現的 gate 數

文字輸出多印 runs=N with-findings=a/b。分母是 evidence 數而不是 runs:發現降級成 unavailable 的 gate 算「未知」,不算「沒發現」。欄位是 additive,既有 verdicts、findings 不變,gate stats 仍是 experimental。

這只是資料,不改任何政策:不會因此跳過 reviewer。另開 CC-700 記錄後續(finding 加 rule_candidate、聚合重複發現作為開 lint 票的輸入、有樣本後才檢討 tier 預設名單;hard-gate reviewer 不因低比例被移除)。

驗證

  • tests/shell/test-pmctl-gate-stats.sh:25 passed、1 skipped(root 下的既有 skip)。新案例 case_by_reviewer_participation_yield 涵蓋有發現、空發現、無區塊、malformed 區塊四種 gate,並檢查 JSON 與文字輸出一致。
  • 變異檢查:(1) 把 $p.n > 0 改成永遠成立、(2) evidence 計數不加 1,兩者都讓新案例失敗。
  • lint-shellcheck(0.11.0 pinned)OK;run-ci-lints.sh 18 passed,唯一失敗 lint-readme-surface-lists 在 main 上同樣失敗(此環境),與本 PR 無關。
  • ⚠️ 尚未跑 /pr-gate:這個環境沒有 codex/claude reviewer executor,請在本機依 /ship 流程補跑。

Generated by Claude Code

…gate stats

Add by_reviewer.<r>.participation {runs, finding_evidence_runs,
runs_with_findings} to `pmctl gate stats`, and print
`runs=N  with-findings=a/b` in the text report. Gates whose findings are
unreadable count toward runs only, never as silent reviews.

Open CC-700 for the follow-up: tag findings that could become
deterministic checks, aggregate recurrences, and use the yield data
when reviewing tier reviewer defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ESW7P7nxSS5m89Ug8qLBqJ
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.

2 participants