feat(weekly-review): 観点⑤ Todo妥当性 facet + file-size scan を todo 50KB に拡張 (順位154 + C01解消) - #235
Conversation
…B に拡張 (順位154 + C01解消) ADR-031 週次レビューの観点空白 (⑤ Todo 妥当性 / ⑦ ファイルサイズ) を埋める。 - review-todo-whole facet (観点⑤): docs/todo*.md corpus 全体の dead pattern / cross-file 重複 / preamble routing drift を週次 batch で棚卸し。順位136 hook (編集時 immediate) が拾えない経年・横断的劣化を補完。 - file-length-watchlist を `.rs` 800行 + `docs/todo*.md` 50KB の 2 次元 scan に拡張 (観点⑦)。あわせて C01 (WR-2026-07-01-C01) を解消: takt は全 step に persona 必須で 純 shell step を持たないため、Bash が最終出力まで生成し agent は転記のみ (判断ゼロ) と する形にし、persona は takt 構造要件である旨を facet/yaml に明記。 - aggregate-weekly に todo report input + todo category を追加。 - 順位154 を docs/todo9.md / todo-summary.md から削除。 takt prompt weekly-review で全 5 facet の解決を検証済。dogfood は land 後の初回 /weekly-review で観測 (ADR-031 試験運用パターン)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
📝 WalkthroughWalkthrough週次レビュー workflow に Changesreview-todo-whole facet 導入と watchlist 2次元化
Estimated code review effort: 2 (Simple) | ~12 minutes Sequence Diagram(s)sequenceDiagram
participant Workflow as weekly-review.yaml
participant TodoReviewer as review-todo-whole
participant WatchlistScan as file-length-watchlist
participant Aggregate as aggregate-weekly
Workflow->>TodoReviewer: docs/todo*.md 全ツリーの棚卸し実行
TodoReviewer-->>Workflow: review-todo-whole.md (findings)
Workflow->>WatchlistScan: rs行数 + todoバイト数の deterministic scan
WatchlistScan-->>Workflow: file-length-watchlist.md (両次元 section)
Workflow->>Aggregate: 4 reports + watchlist を渡す
Aggregate->>Aggregate: findings統合 + Category rubric適用
Aggregate-->>Workflow: Weekly Review Report (todo-whole含む)
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.takt/facets/instructions/file-length-watchlist.md (1)
59-67: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
状態の表現を分けてください。
48KBの接近警告と50KBの分割推奨が同じ列に混在していて、どの閾値を踏んだのか判別しづらいです。列を分けるか、優先順位を明記したほうが downstream で扱いやすくなります。🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.takt/facets/instructions/file-length-watchlist.md around lines 59 - 67, The file-length watchlist table currently mixes the 48KB warning and 50KB split-recommendation in the same 状態 column, making the threshold unclear. Update the markdown generated from this facet so the output distinguishes the two states explicitly, either by splitting them into separate columns or by adding a clear priority/labeling rule in the table. Make the change in the watchlist rendering logic for the `docs/todo*.md` entries so downstream consumers can tell which threshold was triggered..takt/facets/instructions/review-todo-whole.md (1)
18-18: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
docs/todo-summary.mdの明示は重複です。
docs/todo*.mdで既に拾えるので、ここを残すと summary を二重に扱う実装になりやすいです。docs/todo*.mdだけに寄せるか、重複排除を前提に明記してください。♻️ 修正案
-1. `Glob docs/todo*.md` + `docs/todo-summary.md` — enumerate the whole corpus and note sizes. +1. `Glob docs/todo*.md` — enumerate the whole corpus and note sizes.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.takt/facets/instructions/review-todo-whole.md at line 18, The TODO corpus glob instruction is duplicating `docs/todo-summary.md`, which can cause the summary file to be handled twice. Update the instruction set in `review-todo-whole.md` so the `Glob docs/todo*.md` rule either stands alone or explicitly states deduplication logic, and make sure the wording around the TODO collection/sizing step does not separately enumerate `docs/todo-summary.md`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.takt/facets/instructions/file-length-watchlist.md:
- Around line 59-67: The file-length watchlist table currently mixes the 48KB
warning and 50KB split-recommendation in the same 状態 column, making the
threshold unclear. Update the markdown generated from this facet so the output
distinguishes the two states explicitly, either by splitting them into separate
columns or by adding a clear priority/labeling rule in the table. Make the
change in the watchlist rendering logic for the `docs/todo*.md` entries so
downstream consumers can tell which threshold was triggered.
In @.takt/facets/instructions/review-todo-whole.md:
- Line 18: The TODO corpus glob instruction is duplicating
`docs/todo-summary.md`, which can cause the summary file to be handled twice.
Update the instruction set in `review-todo-whole.md` so the `Glob docs/todo*.md`
rule either stands alone or explicitly states deduplication logic, and make sure
the wording around the TODO collection/sizing step does not separately enumerate
`docs/todo-summary.md`.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 751e59cc-4aac-4909-a50b-33f64049f12e
📒 Files selected for processing (6)
.takt/facets/instructions/aggregate-weekly.md.takt/facets/instructions/file-length-watchlist.md.takt/facets/instructions/review-todo-whole.md.takt/workflows/weekly-review.yamldocs/todo-summary.mddocs/todo9.md
💤 Files with no reviewable changes (2)
- docs/todo-summary.md
- docs/todo9.md
概要
ADR-031 週次レビューの観点空白 (⑤ Todo 妥当性 / ⑦ ファイルサイズ) を埋める拡張。順位154 の実装 + 保留中 finding C01 (WR-2026-07-01-C01) の同時解消。
変更内容
観点⑤:
review-todo-wholefacet (新規).takt/facets/instructions/review-todo-whole.md—docs/todo*.mdcorpus 全体の dead pattern / cross-file 重複 entry / preamble routing drift を週次 batch で棚卸し観点⑦ + C01解消:
file-length-watchlist拡張.rs800 行に加えdocs/todo*.md50KB (48KB で接近警告) の 2 次元機械 scan に拡張persona:は takt の構造的要件で判断を意味しない旨を facet/yaml に明記 (finding 自身の提案「deterministic コメント追記」と整合)統合
aggregate-weeklyに todo report input + todo category (todo-dead-entry/todo-duplicate/todo-preamble-drift) を追加weekly-review.yamlの parallel block を 4 → 5 review facet に拡張 (+ 決定論 file-size scan)todo 整理
docs/todo9.md/docs/todo-summary.mdから削除 (完了)検証
pnpm exec takt prompt weekly-reviewで全 5 facet の解決を確認 (exit=1 は report 消費ステップの preview 制限で実エラーなし)/weekly-reviewで観測 (ADR-031 試験運用パターン)🤖 Generated with Claude Code
Summary by CodeRabbit
todo群の全体的な重複・陳腐化・前文ルーティングのずれを確認する観点が追加されました。todo系ドキュメントのサイズも確認されるようになりました。