Skip to content

feat(docs): Bundle f + retirement — 順位 62/71-74 land + docs-pr-iteration-efficiency.md retire#112

Merged
aloekun merged 1 commit intomasterfrom
feat/bundle-f-and-retirement
May 5, 2026
Merged

feat(docs): Bundle f + retirement — 順位 62/71-74 land + docs-pr-iteration-efficiency.md retire#112
aloekun merged 1 commit intomasterfrom
feat/bundle-f-and-retirement

Conversation

@aloekun
Copy link
Copy Markdown
Owner

@aloekun aloekun commented May 5, 2026

Summary

docs/docs-pr-iteration-efficiency.md retirement + 順位 62 (Document Governance) + Bundle f (PR #111 post-merge-feedback 4 件採用) を 1 PR で集約 land。docs PR ワークフロー改善関連の long-tail を一掃し、計画書を retire。

注: global rules (~/.claude/rules/...) 編集は project repo 外のため diff には現れません。本 PR の永続価値は global rules + project ADR の双方に分散しています。

内訳

順位 62 — Document Governance (新規 global rule)

新規 ~/.claude/rules/common/docs-governance.md を作成、3 ルール codify:

  1. Document Lifecycle Classification: permanent (ADR / 試験運用フラグなし docs/<topic>.md / ~/.claude/rules/) vs ephemeral (docs/todo*.md / 試験運用フラグ付き計画書 / scratch)
  2. Cross-File Reference Lifecycle (再掲、coding-style.md と cross-link)
  3. Retirement 4-step workflow: migrate value → migrate tasks → update refs → delete file

本 PR 自身が retirement workflow の 第一実例: docs/docs-pr-iteration-efficiency.md を 4 step で retire。

順位 71 — codification claims 検証手順 (coding-style.md 拡張)

順位 72 + 73 — ADR-033 拡張 (priority table 運用ルール)

新セクション ## priority table 運用ルール 追加:

  • 順位 72: 「依存」列の二層追跡 — technical 依存 (table) vs strategic 順序 (領域特化計画書)、順位 10 broken-link を実例引用
  • 順位 73: Bundle 分割時の land 期限明記 — 期限フォーマット / 期限超過時の Bundle 名変更 / 保留時の理由明示、Bundle U/V/d を過去事例として引用

順位 74 — ADR-030 拡張 (global rules transparency)

新セクション ### Global rules editing の追跡 追加:

Retirement (docs/docs-pr-iteration-efficiency.md 削除)

  • 全 bundle 消化済 (Bundle docs PR streamline / docs quality pre-write / e で 12 件 land)、残 順位 10 は priority table で継続追跡
  • 永続価値は ADR-035 (docs 評価ポリシー) + global rules + 既実装 (lint:md / no-ephemeral-todo-reference) に分散保存済 → 新規 ADR は不要
  • 参照解除: docs/coderabbit-monitoring-efficiency.md:117 のリンクを ADR-035 リンクに置換

Sub-PR 分割可否の dogfood (順位 73 self-feedback)

順位 73 が codify した「Bundle 分割時の land 期限明記」ルールを本 PR の作業計画段階で適用検討した結果、統合 1 PR を選択:

  • 削除 + 順位 62 + Bundle f 4 件 が全て docs-PR governance 領域で scope 重複
  • retirement が 順位 62 (新規 global rule) の dogfood として最も価値が高く、両者分離は意味的連続性を壊す
  • 5 ファイル touch は review 容易性を著しく下げるほどではない

統合判断のプロセス自体が今後の Bundle 運用への参照記録になる。

Pre-push reviewer Observations (non-blocking)

ADR-030 L144-145 の file:///~/.claude/... URI scheme は GitHub の web view で resolve しない (codebase 内で唯一の使用)。inline backtick path への置換が望ましいが non-blocking。本 PR では未対応、merge 後に必要なら follow-up commit を検討。

Test plan

  • pre-push-review APPROVE (simplicity / security 両 facet)
  • markdownlint 56 files, 0 errors
  • broken link grep 0 (tracked sources)
  • CodeRabbit review APPROVE
  • post-PR dogfood: 次の docs PR で Bundle 分割期限明記ルール (順位 73) が follow されるか観察
  • post-PR dogfood: 計画書 retirement が再発した時、新 docs-governance.md に従って 4-step workflow が適用されるか観察

Summary by CodeRabbit

  • Documentation
    • グローバルルール編集の追跡メカニズムに関する設計決定記録を追加
    • Priority Table の運用ルール(依存関係の扱い、期限管理、保留バンドル記述ルール)を文書化
    • ドキュメント管理ポリシーの参照構造を統合・整理

…ion-efficiency.md retire (PR #111 post-merge-feedback)

## Bundle f (PR #111 post-merge-feedback、4 件採用) + 順位 62 (Document Governance) + 計画書 retirement の 1 PR 集約 land

### 順位 62 (Document Governance、Effort XS、新規 global rule)

- 新規 ~/.claude/rules/common/docs-governance.md を作成
- 3 ルール codify:
  1. Document Lifecycle Classification (permanent / ephemeral)
  2. Cross-File Reference Lifecycle (再掲、coding-style.md と cross-link)
  3. Retirement 4-step workflow (migrate value → migrate tasks → update refs → delete file)
- 本 PR 自身が retirement workflow の dogfood (docs/docs-pr-iteration-efficiency.md retire = 第一実例)

### 順位 71 (codification claims 検証手順、Effort XS)

- ~/.claude/rules/common/coding-style.md の Cross-File Reference Lifecycle に新 sub-section ### Codification claims の検証手順 追加
- 「file X の section Y に codified」と書く前に grep で実在確認、階層表現 > は ambiguous なため避ける
- PR #111 自己違反事例を実例引用 (Personal Preferences > Code Style 拡張 → CodeRabbit Critical 指摘)

### 順位 72 + 73 (ADR-033 拡張、Effort XS×2、同一新セクション内)

- docs/adr/adr-033-todo-numbering-simplification.md に新セクション ## priority table 運用ルール 追加
- 順位 72: 「依存」列の二層追跡 (technical 依存 vs strategic 順序)、順位 10 broken-link を実例引用
- 順位 73: Bundle 分割時の land 期限明記ルール、Bundle U/V/d を過去事例として引用
- 本 PR 自身が順位 73 の dogfood (Bundle f 分割推奨を統合実行した判断記録は commit message + PR body に残す)

### 順位 74 (ADR-030 拡張、Effort XS)

- docs/adr/adr-030-deterministic-post-merge-feedback.md の 入力源 / 出力 直後に新セクション ### Global rules editing の追跡 追加
- global rules (~/.claude/rules/, ~/.claude/CLAUDE.md, ~/.claude/skills/) の編集は VCS 管理外、transcript 経由で post-merge-feedback が捕捉
- PR #111 を実例引用 (5 ファイル global edit + project diff 0 行 + post-merge-feedback で全件 visible)
- pre-merge 補完層として coding-style.md (順位 71) と docs-governance.md (順位 62) を cross-link

### Retirement (docs/docs-pr-iteration-efficiency.md 削除)

- bundle 全消化 (Bundle docs-PR-streamline / docs-quality-pre-write / e で 12 件 land、残 順位 10 は priority table で継続追跡) で本ファイルが自己宣言した end condition 成立
- ADR-035 + global rules + lint rule + priority table 脚注で永続価値が全て分散保存済 → 新規 ADR 作成は不要
- 参照解除: docs/coderabbit-monitoring-efficiency.md:117 のリンクを ADR-035 リンクに置換

### Cleanup

- docs/todo5.md: 順位 62/71/72/73/74 の 5 詳細エントリ削除
- docs/todo.md: priority table から 5 行削除 + Bundle f 脚注を全 4 件 land + retirement 完了に更新

## Sub-PR 分割可否の dogfood 結果 (順位 73 への self-feedback)

順位 73 が codify した「Bundle 分割時の land 期限明記」ルールを本 PR の作業計画段階で適用検討した。結果、以下の理由で **統合 1 PR を選択**:

- ファイル削除 + 順位 62 (新規 global rule) + Bundle f 4 件 が全て docs-PR governance 領域で scope が完全重複
- retirement が global rule (順位 62) の dogfood として最も価値が高く、両者を分離すると意味的連続性が壊れる
- 5 ファイル touch は review 容易性を著しく下げるほどではない

順位 73 ルールは「分割時に期限を書く」を default としているが、本 PR のように統合に強い意味的根拠がある場合は統合を許容する。判断プロセス自体が今後の Bundle 運用への参照記録となる。

## 期待効果 (検証は dogfood)

- 計画書 ephemeral lifecycle が global rule (順位 62) で codify され、再発時の判断ぶれ消滅
- Cross-File Reference Lifecycle の self-application 強化で PR description / commit message での codification claim が事前検証される
- priority table 運用の二層追跡 + 期限管理が ADR-033 で formalize、長期滞留 detection
- global rules 編集の transparency が ADR-030 で formalize、post-merge-feedback による事後検証経路が明示化
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

📝 Walkthrough

ウォークスルー

このPRはドキュメント整備として、docs-pr-iteration-efficiency.md を廃止し、その内容を ADR-035 に統合。ADR-030 にグローバルルール編集の追跡仕組みを追記、ADR-033 に priority table の運用ルールを追加。docs/todo ファイル群で関連タスクを更新し、一連の方針統合を反映します。


変更内容

ドキュメント統合と廃止

層 / ファイル 概要
ADR 内容追記
docs/adr/adr-030-deterministic-post-merge-feedback.md
グローバルルール編集(~/.claude/ 配下)が VCS 差分に出ない一方、post-merge-feedbackanalyze-session では transcript 経由で検出・反映される仕組みを明文化。
ADR 運用ルール追加
docs/adr/adr-033-todo-numbering-simplification.md
priority table 運用ルール(依存列の二層構造、Bundle 分割時の期限記法、期限超過時の -followup rename、保留理由の明記)を新設。
参照更新
docs/coderabbit-monitoring-efficiency.md
docs-only PR 評価ポリシーの参照を docs-pr-iteration-efficiency.md から ADR-035 へ変更。
廃止ファイル
docs/docs-pr-iteration-efficiency.md
docs-only PR 短期化向けのタスク分類・完了bundle・保留課題をまとめていた計画書を全削除(113行)。内容は ADR-035 へ統合。
タスクリスト更新
docs/todo.md, docs/todo5.md
「Document Governance: docs lifecycle 区分明文化 (PR #108 T3-1)」エントリを削除。docs/todo.md に Bundle f + retirement (PR #111 post-merge-feedback) の完了サマリー追記。

推定レビュー工数

🎯 2 (Simple) | ⏱️ ~10 分


関連する可能性のある PR

  • aloekun/claude-code-hook-test#108: 本PRが廃止した docs-pr-iteration-efficiency.md を当初作成し、ADR-035 を追加したPR。統合・廃止の対象元。
  • aloekun/claude-code-hook-test#111: グローバルルール編集を ~/.claude/ に移行した実装。本PRの ADR-030 「Global rules editing 追跡」は当PR の 5 ファイル編集を例示として記述。
  • aloekun/claude-code-hook-test#92: ADR-033 を初出させたPR。本PRはその priority table 運用ルール部を追記する形で拡張。
🚥 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タイトルはBundle f完了と docs-pr-iteration-efficiency.md の廃止、および順位 62/71-74 の land という主要な変更内容を正確かつ簡潔に要約している。
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

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.

Actionable comments posted: 2

🤖 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.

Inline comments:
In `@docs/adr/adr-030-deterministic-post-merge-feedback.md`:
- Around line 144-145: The two link entries "[coding-style.md § Codification
claims の検証手順]" and "[docs-governance.md § Cross-File Reference Lifecycle]"
currently use file:///~/.claude/... absolute links which won't resolve for other
users; replace those file:// links with non-clickable local-path text (e.g. mark
as "ローカルパス例: ~/.claude/rules/common/coding-style.md" and "ローカルパス例:
~/.claude/rules/common/docs-governance.md") or convert them to
repository-relative links if the targets live in the repo, and ensure they are
rendered as plain code/text (not hyperlinks) or explicitly labeled as
local-only.

In `@docs/todo.md`:
- Line 99: Update the bundle label in the sentence that currently reads "PR `#111`
(Bundle e)" to "PR `#111` (Bundle f)" to match the rest of this PR's context
(Bundle f + retirement); locate the occurrence of "PR `#111` (Bundle e)" in the
docs/todo.md content and change it to "PR `#111` (Bundle f)" unless there is an
explicit historical reason to keep "Bundle e".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 94c5fa68-8ad1-44a6-a10e-db541adad228

📥 Commits

Reviewing files that changed from the base of the PR and between 06faa31 and b0040cd.

📒 Files selected for processing (6)
  • docs/adr/adr-030-deterministic-post-merge-feedback.md
  • docs/adr/adr-033-todo-numbering-simplification.md
  • docs/coderabbit-monitoring-efficiency.md
  • docs/docs-pr-iteration-efficiency.md
  • docs/todo.md
  • docs/todo5.md
💤 Files with no reviewable changes (2)
  • docs/docs-pr-iteration-efficiency.md
  • docs/todo5.md

Comment on lines +144 to +145
- [coding-style.md § Codification claims の検証手順](file:///~/.claude/rules/common/coding-style.md) — claim と実体の事前同期
- [docs-governance.md § Cross-File Reference Lifecycle](file:///~/.claude/rules/common/docs-governance.md) — permanent ↔ ephemeral 参照の正しさ
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

file:// 絶対リンクは共有閲覧環境で実質的に無効です。

Line 144-145 の file:///~/.claude/... は、GitHub 上や他メンバー環境では解決できず、参照導線として壊れます。リンク化せずコード表記にするか、「ローカルパス例」と明示したテキスト参照にしてください。

🤖 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 `@docs/adr/adr-030-deterministic-post-merge-feedback.md` around lines 144 -
145, The two link entries "[coding-style.md § Codification claims の検証手順]" and
"[docs-governance.md § Cross-File Reference Lifecycle]" currently use
file:///~/.claude/... absolute links which won't resolve for other users;
replace those file:// links with non-clickable local-path text (e.g. mark as
"ローカルパス例: ~/.claude/rules/common/coding-style.md" and "ローカルパス例:
~/.claude/rules/common/docs-governance.md") or convert them to
repository-relative links if the targets live in the repo, and ensure they are
rendered as plain code/text (not hyperlinks) or explicitly labeled as
local-only.

Comment thread docs/todo.md

**Bundle d (PR #110 post-merge-feedback、2026-05-04)**: PR #110 (Bundle "docs quality pre-write") merge 後の post-merge-feedback で 6 findings 中 3 件採用。共通テーマは「PR #110 で導入した `no-ephemeral-todo-reference` rule (順位 29 採用分) の robustness 強化 + 設計 doc / 実装の乖離 ガード」。**順位 68 (T2 self-exclusion test)** は placeholder N 戦略の機械的保護で OBS-3 (fragile naming convention) 対策、**順位 69 (T3 yaml/yml コメント)** は OBS-2 (spec-impl 乖離) 対策。順位 70 (code-review checklist) は Bundle e で land 済。残り順位 68 (test infra) と 順位 69 (config コメント) は scope 異なるため独立 PR 推奨。

**Bundle f + retirement (PR #111 post-merge-feedback + 計画書 retire、2026-05-05)** ✅ 完了: PR #111 (Bundle e) merge 後の post-merge-feedback で 10 findings 中 4 件採用 (順位 71/72/73/74 = Tier 3 XS×4) + 順位 62 (Document Governance) + `docs/docs-pr-iteration-efficiency.md` retirement を **1 PR で集約 land**。Sub-PR 分割推奨ルール (順位 73 自身が codify する内容) を本 PR で **dogfood**: 順位 73 が land する PR 自身が「分割 vs 統合」判断対象 → ファイル削除 + 順位 62 + Bundle f を統合した結果、scope は 5 ファイル touch (global rules 2 + ADR 2 + 削除 1) + cleanup で clean、Bundle 分割で得られる review 容易性より統合 PR の atomic な lifecycle 完結性が勝った。共通テーマ: 「PR #111 自己違反事例 → self-application 強化」 + 「Document Governance を global rule に codify」 + 「計画書 retirement を実例化」の 3 layer 同時 land。
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Bundle 名の表記がこのPR文脈と不整合に見えます。

Line 99 の PR #111 (Bundle e) は、本PRの記述(Bundle f + retirement)と読み手目線で衝突します。履歴意図がなければ Bundle f へ修正しておくと追跡が明確です。

🤖 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 `@docs/todo.md` at line 99, Update the bundle label in the sentence that
currently reads "PR `#111` (Bundle e)" to "PR `#111` (Bundle f)" to match the rest
of this PR's context (Bundle f + retirement); locate the occurrence of "PR `#111`
(Bundle e)" in the docs/todo.md content and change it to "PR `#111` (Bundle f)"
unless there is an explicit historical reason to keep "Bundle e".

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