perf(pre-push-review): loop_monitor judge を haiku 化 (push パイプライン改善 R2) - #293
Merged
Conversation
loop_monitor の stall-detection judge を sonnet → haiku に変更。judge は cycle が threshold 回反復した時に Healthy/Unproductive の 2 択 routing を返すだけで、コード 読解や修正判断を伴わない。より複雑な 3 分類 (approved/needs_fix/user_decision) を 既に haiku で捌く post-pr-review.yaml の analyze step に前例がある。 対象は pre-push-review.yaml (L30) と pre-push-review-refute.yaml (L39) の両方。 refute_enabled = true のため実走は refute 側だが、kill-switch (refute_enabled = false) で非 refute 側へ即戻せる設計 (ADR-047) のため、片方だけ変えると戻した瞬間に 効果が消え気付けない (原則 6 / T10 で実際に起きた罠)。両 judge に「もう片方と揃えよ」 inline コメントを追加して同期義務を明記した。 yaml 設定変更のみで Rust 変更なし (exe 再ビルド不要)。takt prompt で両 workflow が 正常にパースされることを確認済み。完了記録は docs/push-pipeline-fix-plan2.md §3 R2 に追記。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
R1 (quality_gate 失敗 step 全量表示) が #292 としてマージされたため push-pipeline-fix-plan2.md を更新: - §1「これまでに実装した内容」表に R1 行 (#292) を追加 - §3 R1 のステータスを「実装済み・未 push」→「マージ済み #292」に更新 - §3 R1 の「§1 backfill は push/マージ時に実施」ノートを実施済みに更新 R1 当該ノートが「§1 表への行追加は push/マージ時に実施」としていたライドアロン doc 更新。R2 (親コミット) と同一 PR に含める。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughChangesloop_monitor judge モデル更新
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
🤖 PR Monitor 分析 (GitHub Actions バックストップ)
Applicable Findings (Critical / High / Major)該当なし (findings 未生成) Applicable Findings (Medium 以下)該当なし (findings 未生成) Filtered (not applicable)該当なし (findings 未生成) 差分概要
次のアクション
|
aloekun
added a commit
that referenced
this pull request
Jul 18, 2026
run 終了時に stage 別 elapsed / docs_only / post_takt_regate 判定 / total_secs / exit_code / os / bookmarks / takt_workflow を 1 行 JSONL で .claude/telemetry/push-runs-*.jsonl へ append する。T0 の stage ログは stderr のみで非永続だったため、ADR-057/058 の採否判定 (期限 2026-08-15) と after 計測がコンソール手動保存に依存していた問題を解消する (todo 順位 325)。 器は lib-telemetry (ADR-055) を再利用するが、firing 集計 (firings-*.jsonl glob) を汚さないよう別 record kind = 別ファイルに書く。lib-telemetry には汎用 writer (record_metric*) のみ追加し、push-run 固有スキーマ RunRecord は cli-push-runner が保持 (責務分離)。post_takt_regate は skip/run-pass/block を区別するため RegateDecision を surface。opt-in / kill-switch / fail-open は既存 telemetry 原則に相乗り。ADR-055 に amendment を追記。 あわせて R2 (#293 マージ済) の §1 表 backfill (行追加 + 見出しをマージ済みに更新) を plan2.md に反映 (R1 と同じ doc bookkeeping)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 task
aloekun
added a commit
that referenced
this pull request
Jul 18, 2026
run 終了時に stage 別 elapsed / docs_only / post_takt_regate 判定 / total_secs / exit_code / os / bookmarks / takt_workflow を 1 行 JSONL で .claude/telemetry/push-runs-*.jsonl へ append する。T0 の stage ログは stderr のみで非永続だったため、ADR-057/058 の採否判定 (期限 2026-08-15) と after 計測がコンソール手動保存に依存していた問題を解消する (todo 順位 325)。 器は lib-telemetry (ADR-055) を再利用するが、firing 集計 (firings-*.jsonl glob) を汚さないよう別 record kind = 別ファイルに書く。lib-telemetry には汎用 writer (record_metric*) のみ追加し、push-run 固有スキーマ RunRecord は cli-push-runner が保持 (責務分離)。post_takt_regate は skip/run-pass/block を区別するため RegateDecision を surface。opt-in / kill-switch / fail-open は既存 telemetry 原則に相乗り。ADR-055 に amendment を追記。 あわせて R2 (#293 マージ済) の §1 表 backfill (行追加 + 見出しをマージ済みに更新) を plan2.md に反映 (R1 と同じ doc bookkeeping)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
aloekun
added a commit
that referenced
this pull request
Jul 18, 2026
…294) run 終了時に stage 別 elapsed / docs_only / post_takt_regate 判定 / total_secs / exit_code / os / bookmarks / takt_workflow を 1 行 JSONL で .claude/telemetry/push-runs-*.jsonl へ append する。T0 の stage ログは stderr のみで非永続だったため、ADR-057/058 の採否判定 (期限 2026-08-15) と after 計測がコンソール手動保存に依存していた問題を解消する (todo 順位 325)。 器は lib-telemetry (ADR-055) を再利用するが、firing 集計 (firings-*.jsonl glob) を汚さないよう別 record kind = 別ファイルに書く。lib-telemetry には汎用 writer (record_metric*) のみ追加し、push-run 固有スキーマ RunRecord は cli-push-runner が保持 (責務分離)。post_takt_regate は skip/run-pass/block を区別するため RegateDecision を surface。opt-in / kill-switch / fail-open は既存 telemetry 原則に相乗り。ADR-055 に amendment を追記。 あわせて R2 (#293 マージ済) の §1 表 backfill (行追加 + 見出しをマージ済みに更新) を plan2.md に反映 (R1 と同じ doc bookkeeping)。 Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
aloekun
added a commit
that referenced
this pull request
Aug 12, 2026
…r 7 日差し戻し 棚卸し (35 ファイル全件調査) の採否確定分を一括反映する。 判定確定 (bounded lifetime): - ADR-056 採用 (速度目標取り下げ、二重 miss 10 件/6 PR の実測を記録し却下条件を精緻化) - ADR-057 採用 (51 docs-only run / 誤 skip 0 / -54.2s/run。templates へ default-ON 反映) - ADR-058 採用 (changed_block 1 件は flaky 誤 block と確定、真の検出 0 件を正直に記録) - ADR-059 採用 (CLI=描画 / VSCode=非描画で defense-in-depth が代替。第 2 弾展開は見送り) - auto-push gate B1-loop NO-GO (観測手段欠落 + 経路消滅。ADR-043 amendment へ転記) - 順位 247 継続 (延長 1 回目)、順位 319 dogfood 不合格 (29 PR 実測 69% 重複) を記帳 計画書の退役: - file-length-enforcement-plan.md 削除 (全 6 PR 完了、分割制約は dev-conventions へ移設) - weekly-review-notification-plan.md 削除 (削除条件決着を ADR-059 § 確定判定へ転記) - todo2.md 退役 (ADR-032 ブロックは ADR-057 実現で廃止、残 2 タスクを todo22 へ移送) - auto-push-gate-dogfood.md 削除 (NO-GO 判定、ADR-043 amendment へ転記) 台帳整理: - ADR-030 Phase E (旧機構廃止) を撤回し順位 27 決着 (ADR-030 § 撤回記録) - 順位 51/225/11/20/21/22/333 を削除、todo14 孤児 4 件を採番 (433-436) - 新規起票 7 件 (437-443: rules 採否 / branch 回収 / gate telemetry / weekly-review 保存 / docs-lint 1:1 検査 / security facet 敵対的観点 / flaky 当たり面) - グローバル文書対象 17 エントリに旧環境実査の Status update 注記 - push-pipeline-fix-plan/plan2 の stale 記載を #292/#293/#294 マージ済みに更新 運用変更: - weekly reminder_threshold_days 30→7 差し戻し (ADR-070 の 30 日は routine 正常稼働が 前提だが成果物デリバリ未確立のため。再引き上げは保存問題解消後に再評価) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
aloekun
added a commit
that referenced
this pull request
Aug 12, 2026
…r 7 日差し戻し (#392) 棚卸し (35 ファイル全件調査) の採否確定分を一括反映する。 判定確定 (bounded lifetime): - ADR-056 採用 (速度目標取り下げ、二重 miss 10 件/6 PR の実測を記録し却下条件を精緻化) - ADR-057 採用 (51 docs-only run / 誤 skip 0 / -54.2s/run。templates へ default-ON 反映) - ADR-058 採用 (changed_block 1 件は flaky 誤 block と確定、真の検出 0 件を正直に記録) - ADR-059 採用 (CLI=描画 / VSCode=非描画で defense-in-depth が代替。第 2 弾展開は見送り) - auto-push gate B1-loop NO-GO (観測手段欠落 + 経路消滅。ADR-043 amendment へ転記) - 順位 247 継続 (延長 1 回目)、順位 319 dogfood 不合格 (29 PR 実測 69% 重複) を記帳 計画書の退役: - file-length-enforcement-plan.md 削除 (全 6 PR 完了、分割制約は dev-conventions へ移設) - weekly-review-notification-plan.md 削除 (削除条件決着を ADR-059 § 確定判定へ転記) - todo2.md 退役 (ADR-032 ブロックは ADR-057 実現で廃止、残 2 タスクを todo22 へ移送) - auto-push-gate-dogfood.md 削除 (NO-GO 判定、ADR-043 amendment へ転記) 台帳整理: - ADR-030 Phase E (旧機構廃止) を撤回し順位 27 決着 (ADR-030 § 撤回記録) - 順位 51/225/11/20/21/22/333 を削除、todo14 孤児 4 件を採番 (433-436) - 新規起票 7 件 (437-443: rules 採否 / branch 回収 / gate telemetry / weekly-review 保存 / docs-lint 1:1 検査 / security facet 敵対的観点 / flaky 当たり面) - グローバル文書対象 17 エントリに旧環境実査の Status update 注記 - push-pipeline-fix-plan/plan2 の stale 記載を #292/#293/#294 マージ済みに更新 運用変更: - weekly reminder_threshold_days 30→7 差し戻し (ADR-070 の 30 日は routine 正常稼働が 前提だが成果物デリバリ未確立のため。再引き上げは保存問題解消後に再評価) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
push パイプライン改善 R2: loop_monitor の stall-detection judge を
sonnet→haikuに変更。あわせて R1 (#292 マージ済み) の進捗ドキュメント backfill を同梱する。2 コミット構成:
perf(pre-push-review)— R2 本体 (.takt/workflowsの yaml 2 本 + plan2.md §3 R2 完了記録)docs(push-pipeline)— R1 (fix(push-runner): quality_gate 失敗 step の出力を全量表示 (push パイプライン改善 R1) #292) の §1 表 backfill + ステータス更新 (plan2.md のみ)R2: loop_monitor judge の haiku 化
pre-push-review.yaml(L30) とpre-push-review-refute.yaml(L39) のloop_monitors[0].judge.modelをsonnet→haiku。Healthy / Unproductiveの 2 択 routing を返すのみで、コード読解や修正判断を伴わない。より複雑な 3 分類 (approved/needs_fix/user_decision) を既に haiku で捌く post-pr-review.yaml の analyze step に前例がある。refute_enabled = true(push-runner-config.toml) のため実走は refute 側だが、kill-switch で非 refute 側へ戻せる設計 (ADR-047)。片方だけ変えると戻した瞬間に効果が消え気付けない (原則 6 / T10 で実際に起きた罠)。両 judge に「もう片方と揃えよ」inline コメントを追加した。takt promptで両 workflow が正常パース。yaml 設定のみで Rust 変更なし (exe 再ビルド不要)。R1 backfill (ライドアロン)
R1 (#292) マージ完了に伴い plan2.md を更新:
R1 | #292行を追加レビュースコープの注意
push-runner の diff stage は
jj diff -r @(tip コミットのみ) を対象とするため、pre-push AI レビューは tip = R1 backfill (docs-only) のみをレビューした (simplicity/security 両 APPROVE)。R2 の yaml 変更は@-にあり pre-push AI レビュー未通過だが、CodeRabbit は PR 全体差分 (両コミット) をレビューするため post-PR 段でカバーされる。config-only の低リスク変更でtakt prompt検証済み。関連
Summary by CodeRabbit
改善
ドキュメント