Skip to content

docs(retire): pipeline-token-efficiency.md retire + 領域特化 index 整備 (順位 59/60 + ADR-035/036/037)#108

Merged
aloekun merged 5 commits intomasterfrom
docs/efficiency-index-and-retire
May 4, 2026
Merged

docs(retire): pipeline-token-efficiency.md retire + 領域特化 index 整備 (順位 59/60 + ADR-035/036/037)#108
aloekun merged 5 commits intomasterfrom
docs/efficiency-index-and-retire

Conversation

@aloekun
Copy link
Copy Markdown
Owner

@aloekun aloekun commented May 4, 2026

Summary

Summary by CodeRabbit

リリースノート

  • Documentation
    • システムレビュープロセスに関する新規アーキテクチャ決定資料を追加
    • CodeRabbitのモニタリング効率に関するドキュメントを追加
    • プルリクエストワークフロー効率改善に関するドキュメントを追加
    • 既存設計決定の内容をアップデート
    • 運用タスク管理ドキュメントを更新

aloekun added 4 commits May 4, 2026 14:53
PR #107 post-merge-feedback の Tier 3 #1 採用に伴い、docs/todo.md 表と
todo5.md 詳細を追加。

- 順位 59 (Tier 3, M): ADR-035 docs 評価ポリシー
  - docs-only 変更への code review criteria 誤適用を排除する global policy
  - review-security.md の既存 trust boundary criterion を ADR で集約
  - review-simplicity.md / analyze-coderabbit.md にも一貫展開
  - false REJECT 削減 + 開発体験劣化抑制

判定根拠 (順位 58 で導入した rubric ベース):
- Severity Medium / Frequency Medium / Effort M / Adoption Risk None / ✅ 採用
docs-only PR の iteration 改善に関する task 分類・bundle 案を集約する index
を docs/ に新規追加。各 task の作業詳細は docs/todo*.md 系列に置き、本ファイル
は概要 + リンクに留める設計。

掲載内容:
- 現状の課題 / ボトルネック分析 (5 観点)
- 改善 task 分類 (HIGH / MEDIUM / LOW IMPACT、合計 12 順位)
- 推奨 bundle 案 (Bundle 'docs PR streamline' = 順位 59+31+32 を最優先)
- 関連ドキュメント (todo.md / pipeline-token-efficiency.md / ADR-019/027/035)

役割: 試験運用 (bundle が消化されたら役割を終える計画書)。pipeline-token-
efficiency.md と並列の領域特化計画書として機能する。

動機: 本セッションで 「docs-only PR の iteration 改善に当たる task をピック
アップしてほしい」「毎回この情報を調べるのは手間」 とのユーザー要望に対応。
分析結果を再調査せず参照可能にする。
CodeRabbit 監視機能改善 (rate-limit 自動回復) に関する task 分類・bundle 案
を集約する index を docs/ に新規追加。各 task の作業詳細は docs/todo*.md
系列に置き、本ファイルは概要 + リンクに留める設計。

掲載内容:
- 現状の課題 (CodeRabbit 無課金 = 1 時間 3 reviews 上限、47 分 rate-limit
  で auto-retry がバウンスする致命点)
- ボトルネック分析 (6 観点: 長時間 rate-limit / polling 負荷 / silent loss /
  structured findings / 自動 trigger 信頼性 / ポリシー暗黙化)
- 改善 task 分類 (HIGH / MEDIUM / LOW IMPACT、合計 9 順位)
- 推奨 bundle 案 (Bundle 'CR auto-monitoring core' = 順位 53/54/55、
  Bundle 'CR rate-limit auto-retry robustness' = 順位 42/43/46/49)
- 推奨実行順序: 53 → 42-43-46-49 → 54 → 55 (1 と 2 は並行可)
- 関連ドキュメント (ADR-009/018/019/034、todo.md、pipeline-token-
  efficiency.md、docs-pr-iteration-efficiency.md)

役割: 試験運用 (bundle 消化後に役割終了)。pipeline-token-efficiency.md /
docs-pr-iteration-efficiency.md と並列の領域特化計画書として機能。

動機: 本セッションで 'CodeRabbit の監視機能改善に関する task をピックアップ
してほしい'、'毎回この情報を調べるのは手間' とのユーザー要望に対応。
…位 60 移管 + 削除

PR #97 セッション起源の計画書 docs/pipeline-token-efficiency.md (481 行) を
役割完了として retire。重要な設計決定は ADR に永続保存し、残作業 1 件のみを
todo に移管した上で計画書ファイル本体を削除する。

新規 ADR (2 件):
- ADR-036: Bundle Z 3 層アーキテクチャ
  - 決定論層 (#B-α PR #99/#105) → 制約付き修正 (#B-β PR #103)
    → 異常検知レビュアー (#B-γ PR #106) の 3 層スタック設計
  - 'upper layer skips what lower layer catches' 原則
  - 二重 miss 対策 (Calibration: avoid over-narrowing) を残置
- ADR-037: takt fix-trust shortcut (convergence_verdict 機構)
  - post-pr-review / pre-push-review の fix step が
    'convergence_verdict: fully_resolved' で COMPLETE 直行する設計
  - 'LLM が出した結果を後段で再検証しない' 原則
  - Honesty constraint で安全網 bypass リスク管理

ADR-034 更新:
- #D-4 (Claude 応答スタイル簡素化) を ❌ 不採用 に確定 (2026-05-04 ユーザー判断)
  Bundle Z Phase 2/3 完了後の再評価で副作用観測手段確立が見えないため
  永続的に見送り。潜在 2.5-4M tokens 削減は採用しない
- '将来の検討事項' から #D-4 再評価条件セクションを削除
- pipeline-token-efficiency.md への参照を '(削除済)' に annotate

順位 60 新規登録 (旧 #A-3、唯一の残作業):
- analyze-session の transcript filter 絞り込み (Tier 3 / M)
- input range を PR 作成 commit〜merge に限定し input token 30-50% 削減

ファイル削除:
- docs/pipeline-token-efficiency.md (481 行) を削除
  内容は git log で復元可能、主要設計は ADR-036/037 に集約

参照更新 (5 ファイル):
- docs/coderabbit-monitoring-efficiency.md: 関連リンクから dead link
  削除、ADR-036/037 を追加
- docs/docs-pr-iteration-efficiency.md: 同上
- docs/todo4.md: 順位 41 (Bundle Y2 効果定量計測) は動機失効を明記
  (Bundle Z 完成 + Z2 不採用)、本格着手前にユーザー判断要。
  順位 44/45 の参照を '(削除済)' に annotate
- docs/todo5.md: 順位 51 の参照を ADR-036 に置換
- CLAUDE.md: ADR-036 / ADR-037 を index に追加

動機:
ユーザー方針 '本当に必要な決定事項はADRに残し、不要になったTodoファイルや
作業計画のファイルは定期的に削除' に従い、計画書 retire の標準パターンを
本セッションで確立。今後類似の '計画書' (試験運用フラグ付き docs/) は
役割完了時に同パターンで retire する。
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 4, 2026

Warning

Rate limit exceeded

@aloekun has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 30 minutes and 29 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c1d35687-59ac-4dde-a378-8c9fa464489f

📥 Commits

Reviewing files that changed from the base of the PR and between 033445e and a7c3ac4.

📒 Files selected for processing (1)
  • docs/todo4.md
📝 Walkthrough

Walkthrough

このPRはドキュメント専用の更新です。新規アーキテクチャ決定(ADR-036:3層レビュー、ADR-037:convergence_verdict短絡)を定義し、既存ADR-034を確定化、監視効率改善とドキュメントPR効率改善に関する計画ドキュメントを作成、レガシータスク計画ドキュメントを削除、タスク追跡リストを更新しました。

Changes

ADR および アーキテクチャ決定の追加・更新

Layer / File(s) Summary
決定の登録
CLAUDE.md
Architecture Decisions リストに ADR-036 と ADR-037 の参照を追加。
既存ADRの確定化
docs/adr/adr-034-coderabbit-auto-monitoring.md
#D-4 提案(応答スタイル簡素化)を「不採用(2026-05-04 確定)」として永続的に見送りと確定し、削除済みドキュメント参照を更新。
3層レビューアーキテクチャの定義
docs/adr/adr-036-bundle-z-three-layer-review.md
Bundle Z として決定論層・制約付き修正・異常検知の3層スタックを定義。各層の責務・検出対象・完了PR・skip設計原則・calibration運用・影響分析を記載。
Convergence Verdict ショートカットの定義
docs/adr/adr-037-takt-fix-trust-shortcut.md
Iter 3 冗長性の排除。fix.md の convergence_verdict 出力仕様、post-pr-review/pre-push-review YAML ルーティング、Honesty constraint を定義。

効率改善計画ドキュメントの追加

Layer / File(s) Summary
監視効率改善の計画化
docs/coderabbit-monitoring-efficiency.md
無課金 rate-limit 自動回復をテーマに、現状課題・ボトルネック分析・HIGH/MEDIUM/LOW タスク分類と、「CR auto-monitoring core」「CR rate-limit auto-retry robustness」の2つの推奨バンドルを提示。
ドキュメントPR効率改善の計画化
docs/docs-pr-iteration-efficiency.md
docs-only PR の iteration 短縮をテーマに、ボトルネック分析・HIGH/MEDIUM/LOW タスク分類、「docs PR streamline」「docs quality pre-write」等の推奨バンドルを提示。

レガシードキュメントの削除と タスク追跡の更新

Layer / File(s) Summary
旧タスク計画ドキュメント削除
docs/pipeline-token-efficiency.md
PR #97 セッション観測メトリクスと未実施改善案(#A〜#D)、PR 計画一式が削除され、その内容は個別の ADR・todo エントリへ移行。
優先実行順序の更新
docs/todo.md
「推奨実行順序サマリー」テーブルに Tier 3 タスク 2件(ADR-035:docs 評価ポリシー、analyze-session の transcript filter)を追加。
Bundle Y2 計測タスク の再編
docs/todo4.md
Bundle Y2 効果定量計測タスクの記録先を docs/pipeline-token-efficiency.md 末尾から本エントリ / 新規 ADR へ変更、関連セッション・ADR 参照を追記。
新規ADRおよび filter 絞り込み タスクの追加
docs/todo5.md
PR #107 T3-1 として ADR-035(docs-only 評価ポリシー)定義タスク、および analyze-session transcript filter 絞り込み(timestamp 境界)タスクを章立てで新規追加。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR タイトルは、主な変更である pipeline-token-efficiency.md の廃止と領域特化 index 整備を正確に反映している。新規 ADR(ADR-035/036/037)の追加も記載されており、変更セットの要旨を明確に表現している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 30 minutes and 29 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/todo4.md (1)

345-372: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

計画書 retire 済み前提と未整理の旧フロー記述が混在しています。

Line 345 と Line 361 で「計画書は retire 済み」と明記されていますが、Line 371 と Line 378 には「計画書 retire / Bundle Z/Z2 ROI 判断材料」と旧フロー前提の文言が残っており、完了条件の解釈がぶれます。retire 済み前提に統一し、判定対象を「本 entry/ADR への記録完了」に寄せると運用が明確です。

Also applies to: 376-378

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/todo4.md` around lines 345 - 372, The document mixes "計画書 retire 済み"
with legacy flow/ROI-judgment language; update the sections under the heading
block (the summary/参照 and 作業計画 checklist) to consistently treat the old plan as
retired by: remove or rewrite phrases referencing using the deleted
`docs/pipeline-token-efficiency.md` as source or using Bundle Z/Z2 as ROI
inputs, change the success/complete criterion to "本 entry/ADR への記録完了" (instead
of ambiguous retire/Bundle decision), and adjust the checklist items (e.g., the
final item "本 todo4.md エントリを削除") to reflect the new workflow (record results in
this entry or archive) so all occurrences of legacy-flow wording are aligned
with the retired-plan stance.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@docs/todo4.md`:
- Around line 345-372: The document mixes "計画書 retire 済み" with legacy
flow/ROI-judgment language; update the sections under the heading block (the
summary/参照 and 作業計画 checklist) to consistently treat the old plan as retired by:
remove or rewrite phrases referencing using the deleted
`docs/pipeline-token-efficiency.md` as source or using Bundle Z/Z2 as ROI
inputs, change the success/complete criterion to "本 entry/ADR への記録完了" (instead
of ambiguous retire/Bundle decision), and adjust the checklist items (e.g., the
final item "本 todo4.md エントリを削除") to reflect the new workflow (record results in
this entry or archive) so all occurrences of legacy-flow wording are aligned
with the retired-plan stance.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4ba2f45e-61c5-46a8-b173-a762db5f2001

📥 Commits

Reviewing files that changed from the base of the PR and between 8b0f1f0 and 033445e.

📒 Files selected for processing (10)
  • CLAUDE.md
  • docs/adr/adr-034-coderabbit-auto-monitoring.md
  • docs/adr/adr-036-bundle-z-three-layer-review.md
  • docs/adr/adr-037-takt-fix-trust-shortcut.md
  • docs/coderabbit-monitoring-efficiency.md
  • docs/docs-pr-iteration-efficiency.md
  • docs/pipeline-token-efficiency.md
  • docs/todo.md
  • docs/todo4.md
  • docs/todo5.md
💤 Files with no reviewable changes (1)
  • docs/pipeline-token-efficiency.md

CodeRabbit が PR #108 review で 'outside diff range comment' として指摘した
docs/todo4.md 順位 41 (Bundle Y2 効果定量計測) の line 371/378 残存問題を修正。

- 削除: 'Line 371: 想定削減量達成判定に基づき計画書 retire / 追加 Bundle 提案'
  (計画書はすでに retire 済のため、retire 判定ステップが矛盾)
- 削除: 'Line 378: Bundle Z / Z2 の ROI 判断材料として活用可能なデータが揃う'
  (Bundle Z は完成、Bundle Z2 = #D-4 は不採用で本目的の役割消滅)
- 修正: '結果を本 todo entry 内 (もしくは新規 ADR) に記録 — 旧計画は ...'
  → '結果を本 entry または新規 ADR に記録 (= 完了)' に簡素化

判定対象を「本 entry/ADR への記録完了」に統一し、retire 済前提との整合を確保。

備考 (別観察): 本指摘は CodeRabbit が 'outside diff range comment' として
review body 内に含めて投稿したため、inline comment 前提の takt
analyze-coderabbit step では 0 findings 判定 (= 検出漏れ) となった。
takt analyzer の coverage gap として将来の post-merge-feedback で扱う。
@aloekun aloekun merged commit bc1d013 into master May 4, 2026
1 check passed
@aloekun aloekun deleted the docs/efficiency-index-and-retire branch May 4, 2026 08:19
aloekun added a commit that referenced this pull request May 4, 2026
* docs(todo): 順位 61 / 62 (PR #108 post-merge-feedback 採用分) を追加

PR #108 post-merge-feedback の Tier 2 #1 + Tier 3 #1 を採用、docs/todo.md 表と
todo5.md 詳細を追加。

- 順位 61 (Tier 2, XS): post-PR 検証フローに CR review.body 手動スキャン step
  追加 (PR #108 T2-1 採用)
  - PR #108 で analyze-coderabbit が outside diff range comment を見落とした
    blind spot の暫定緩和策
  - 将来 Tier 1 への昇格 (analyzer 拡張) を dogfood 結果で判断
- 順位 62 (Tier 3, XS): Document Governance: docs lifecycle 区分明文化
  (PR #108 T3-1 採用)
  - 暗黙運用していた docs/todo*.md = ephemeral / ADR / docs/ = permanent
    の lifecycle 区分、Cross-File Reference Lifecycle 強化、retirement
    2-step workflow を ~/.claude/rules/common/ で codify
  - PR #108 retirement パターン (commit okwntwwy) を global rule から参照

判定根拠 (順位 58 で導入した rubric ベース、PR #108 自身が初の通常 dogfood):
- 順位 61: Severity Medium / Frequency Low / Effort XS / Adoption Risk None / ✅ 採用
- 順位 62: Severity Low / Frequency Medium / Effort XS / Adoption Risk None / ✅ 採用

PR #108 post-merge-feedback の他 3 件 (T2-2 / T3-2 / T3-3) は採用見送り
(takt test infra 未調査 / 様子見 / 様子見)。

* feat(docs): Bundle "docs PR streamline" — ADR-035 + facet 引用 + todo.md ヘッダ整合 (順位 59/31/32)

- docs/adr/adr-035-doc-evaluation-policy.md 新規 (docs-only PR 評価ポリシーの single source of truth)
- CLAUDE.md ADR index に ADR-035 追加
- .takt/facets/instructions/review-security.md: ADR-035 引用 + .takt/** / .claude/** 除外明記 (順位 31)
- .takt/facets/instructions/review-simplicity.md: DRY/YAGNI scope 例外列挙を ADR-035 引用に圧縮 (順位 59)
- .takt/facets/instructions/analyze-coderabbit.md: Step 2 fitness filter に docs-only 判定 + code criteria 除外を追加 (順位 59)
- docs/todo.md ヘッダ: 「新規タスクは追加しない」表記を実態整合 (順位 32)
- docs/todo3.md / docs/todo5.md: 順位 31 / 32 / 59 の詳細エントリを削除 (Bundle 消化)
- docs/todo.md priority table: 順位 31 / 32 / 59 行を削除
- docs/docs-pr-iteration-efficiency.md: Bundle "docs PR streamline" を完了状態に更新
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.

1 participant