docs: PR-3a follow-up (順位 220/221) + ファイルサイズチェックフロー改善計画 (W0-W5 plan) - #218
Merged
Conversation
PR-3a (#217) の post-merge-feedback で採用された 2 件と、調査の結果判明した 800 行超 file 累積問題への改善計画を documents として land。 ## 順位 220/221 (PR #217 post-merge-feedback 採用) - 順位 220 (🔧 Tier 2): subprocess stress test (>64KB stdout) を ADR-031 weekly-review pipeline 経由で週次実行 - ユーザー判断 (2026-06-23): hooks/pre-push には組み込まず週次に分離 - `#[ignore]` 付き cargo test + ADR-031 workflow に rust-stress step 追加 - 順位 221 (💎 Tier 3): ADR-NNN (採番未確定): Safe Subprocess Stdout Pattern を ADR-016 appendix or 新 ADR で codify - 順位 220 (test 層) と 1 PR bundle 推奨 - ADR-025 CwdRestore guard pattern を precedent として cite ## ファイルサイズチェックフロー改善計画 (新規 docs/file-length-enforcement-plan.md) PR-3a 完了時に判明: 800 行超 file が 7 件存在 (lint hook 本体 1606 行を含む)。 現状の file_length lint (順位 147) は soft-nag のみで decision: block しない設計、 Stop hook quality_gate / pre-push quality_gate にも file_length check が無く、 ratchet 累積を防ぐ機構が欠落していた。 ユーザー判断 (2026-06-23): C (Stop hook gate) + E (weekly audit) の二段組を導入、 clean state 到達後に C → B (PostToolUse block) 移行を将来検討。 planning doc として docs/file-length-enforcement-plan.md を新設、6 PR (W0-W5) の作業計画 + 削除条件 (全 PR land + 0 件確認 + dogfood 通過) を明文化。 並列セッションから状況を把握できる ephemeral 計画書 (試験運用、完了で削除)。
|
Caution Review failedAn error occurred during the review process. Please try again later. 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 |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
5 tasks
aloekun
added a commit
that referenced
this pull request
Jun 24, 2026
…順位 222 採用 (#219) * docs(todo): 順位 222 採用 (PR #218 post-merge-feedback #5) PR #218 (docs PR、ファイルサイズチェックフロー改善計画 + 順位 220/221 採用) の post-merge-feedback で承認された #5 を採用: 順位 222 (💎 Tier 3、Effort XS): `~/.claude/CLAUDE.md` に「複数セッション跨ぎの計画文書作成時は AI が 先走らずユーザー確認後に方針報告し GO/NO-GO を得る」ルール追加 由来: PR #218 session 内で Plan file 作成完了報告後、AI がユーザー承認 なしに PR-W0 着手しようとして `[Request interrupted by user]` で停止 された実観測 (Severity Medium、Frequency Low 初観測、Effort XS、 Adoption Risk None)。memory `feedback_no_unauthorized_reorder` の補強 として「planning doc 作成のような大きな task 完了時は GO/NO-GO 確認待ち」 を明文化、派生プロジェクトへ `~/.claude/CLAUDE.md` 経由で自動波及。 採用しなかった項目: - #1 (weekly audit を feedback entry にも明示): 計画書 PR-W0 で既に管理 - #3 (lib-subprocess stress test): 順位 220 と完全重複 - #4 (Agent template PMF entry): 計画書 Appendix A で既に capture、却下 - #2/#6/#7: 様子見継続 * feat(weekly-review): file_length scan を pre-LLM step として追加 (PR-W0) ADR-031 weekly-review pipeline に deterministic Rust pre-step として 800 行超 file の scan を追加。LLM facet 不要、純機械測定。 順位 147 (file_length lint) は touch-trigger ratchet で「触られた file の 編集時のみ警告」設計のため、未触り state の violation を可視化できない。 本 step は毎週 1 回 master HEAD に対して 800 行超 file を全件列挙し、 aggregate-weekly facet の input に注入して watchlist として report 化する。 PR-3a (PR #217) で 7 件の 800 行超 file が判明した経緯から、Phase 1 (file split work、PR-W1 〜 W4) の進捗 dashboard としても機能する。 全 file ≤ 800 行に到達後も恒久的に監視継続。 由来: docs/file-length-enforcement-plan.md PR-W0 (PR #218 で land)、 severity = warning (block しない、健康診断目的)。
Merged
7 tasks
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.
Summary
PR #217 (PR-3a) の post-merge-feedback follow-up と、調査の結果判明した「800 行超 file 累積問題」への改善計画を documents として land する docs-only PR。
docs/todo*.mdseries に登録docs/file-length-enforcement-plan.mdを新設、Phase 1 (7 file split) + Phase 2 (E weekly audit + C Stop hook gate) + 将来 Phase 3 (B 化検討) の 6 PR 構成を明文化変更内容
docs/todo-summary.md順位 220 + 221 の rows を table に追加 (順位 219 直後)。
docs/todo10.md順位 220 + 221 の詳細 entry を追加 (
## 既知課題直前)。新規
docs/file-length-enforcement-plan.md(537 行 / 26.8 KB)PR-3a (#217) の作業中に判明した「800 行超 file が現在も 7 件存在する」状況への改善計画を planning doc として作成。試験運用 (本ドキュメントは "計画書" であり、PR-W0 〜 PR-W5 が全て land + dogfood 完了で 本ファイルを削除 して役割を終える)。
構成
PR_SIZE_CHECK_OVERRIDE=1必須性)(no description set)対処)resolved: 却下pattern + GraphQL fallback + 偽陽性 4 種)[ ] / [x]更新欄)862eb1e3含む削除条件
以下 3 条件を全て満たした時点で本 file を削除:
find src -name "*.rs" -not -path "*/target/*" -exec wc -l {} + | awk '$1 > 800'で 0 件FILE_LENGTH_CHECK_OVERRIDE=1を使わず 1-2 セッション通過並列セッションからの参照可能性
「並列作業を行う可能性があるため、作業内容・作業状況が他セッションから把握できる」を満たすため、Tier 1 (G1-G5) + Tier 2 (G6-G7) の項目を全て明文化:
862eb1e3を citePR 計画における位置
PR-3b (layered config +
lib-hooks-config+ ADR-039 amendment、元 PR-3) は本作業 (W0-W5) 完了後に着手予定。Test plan
markdownlint: 0 errors (PostToolUse hook で確認)cli-docs-lint --check cross-ref: OK (7 broken relative link を../src/形式に修正済)cargo test --workspace: 全 crate pass (本 PR は docs-only のため影響なし)cargo clippy --workspace -- -D warnings: clean関連 PR