fix(hooks-stop-tool-call-leak): emit_block serialize 失敗の stderr 診断 + E2E config 値 assert - #264
Conversation
…E2E config 値 assert - 順位271: emit_block の serde_json::to_string Err を握り潰さず stderr 診断を出力 (fail-open observability, ADR-053) - 順位273: E2E で実 config の enabled=true / max_consecutive_blocks=3 を値まで assert し config drift の silent break を防止 (ADR-041) - 順位274: dev-conventions に「外部 fixture 参照テストは値まで assert」convention 追記 (CLAUDE.md 索引行更新含む) 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 (7)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthrough
Changeshooks-stop-tool-call-leak の検証強化
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
🤖 PR Monitor 分析 (GitHub Actions バックストップ)
Applicable Findings (Critical / High / Major)該当なし Applicable Findings (Medium 以下)該当なし Filtered (not applicable)該当なし(レビュー指摘自体が現時点で 0 件) 変更概要(軽量サマリー)todo13.md / todo-summary.md に登録済みだった 3 件の post-merge-feedback 採用項目(順位271/273/274、PR #261 由来)を実装し、完了に伴い該当 entry を削除する PR。
diff 全体はドキュメント整備 + 1 箇所の小さな fail-open observability 修正 + テストの assert 強化のみで、新規ロジック追加や外部インターフェース変更は無し。ADR との齟齬も見当たらない。 次のアクション
|
概要
PR #261 post-merge-feedback 採用の 3 件 (順位271/273/274) を実装し、対応する todo エントリを retire。
変更内容
hooks-stop-tool-call-leakのemit_blockがserde_json::to_stringのErrを握り潰していた (if let Ok) のをmatch化し、失敗時に[stop-tool-call-leak] ... (fail-open)形式の stderr 診断を出力。block 判定失敗の observability をゼロから確保 (ADR-053 の fail-open 設計における可視性担保手段)。tests/e2e.rs) が実 config の section 存在しか検証していなかったのを、tomlparse でenabled == true/max_consecutive_blocks == 3を値まで assert するよう強化。config drift による cap 境界テストの silent break を防止 (ADR-041)。toml = "0.8"を[dev-dependencies]に追加 (既存serde_json再宣言パターン踏襲)。docs/dev-conventions.mdに追記 + CLAUDE.md 索引行を更新。検証
cargo build/cargo test(unit 36 + e2e 7) /cargo clippy --workspace --all-targets -- -D warningsすべてパス🤖 Generated with Claude Code
Summary by CodeRabbit
バグ修正
テスト
ドキュメント