Skip to content

docs(adr-062): degraded セマンティクス文書同期 — extra_roots は集計 root 追加のみ - #335

Merged
aloekun merged 1 commit into
masterfrom
adr-062-degraded-doc-sync
Jul 30, 2026
Merged

docs(adr-062): degraded セマンティクス文書同期 — extra_roots は集計 root 追加のみ#335
aloekun merged 1 commit into
masterfrom
adr-062-degraded-doc-sync

Conversation

@aloekun

@aloekun aloekun commented Jul 30, 2026

Copy link
Copy Markdown
Owner

概要

PR #333 の degraded 保守化(extra_roots では degraded を解除しない仕様変更)の文書波及漏れを ADR-062 側で解消する docs-only PR。月次レビュー dogfood 追加アクション B(degraded セマンティクス文書同期)。

変更内容

  • § 決定 5(last-run 更新契約): 「degraded は improve workspace 実行 / extra_roots 追加で解消するまで催促を継続する」→「improve workspace 実行で解消するまで催促を継続するextra_roots は集計対象 root を追加するのみで degraded は解除しない)」に訂正。§ 決定 2 は PR docs(adr): 月次 ROI レビュー Phase 4 — ADR-062 補完 + degraded 保守化 + 実装プラン削除 #333 で保守化済みのため、旧括弧書き「§ 決定 2 の運用指針と整合」はになっていた(simplicity レビューも内部矛盾の解消と評価)。
  • § 決定 2: 運用帰結(格納パス不整合が続く限り main workspace 実行は恒久的に degraded / improve workspace 実行が唯一の非 degraded 経路)を 1 文明記。

関連作業(本 PR 対象外)

  • skills repo monthly-review/SKILL.md の 3 箇所 + 誤字(ADR-028 ゲット→ゲート)修正は当該 repo の flow で別途 commit(deployed へ cp 同期・in-sync 確認済み)。
  • memory monthly-review-degraded-from-main-workspace は PR docs(adr): 月次 ROI レビュー Phase 4 — ADR-062 補完 + degraded 保守化 + 実装プラン削除 #333 保守化と整合済み(確認のみ、変更なし)。
  • 後続の実装 PR(機構レジストリ A / snapshot 保持 C / promote 確定月限定 D)は本 PR にスタックして順次作成予定。

検証

  • pnpm lint:md 0 errors。pre-push review(security / simplicity)ともに APPROVE。

ADR-062

🤖 Generated with Claude Code

Summary by CodeRabbit

  • ドキュメント
    • 月次ハーネス ROI レビューにおける「degraded」状態の条件を明確化しました。
    • main workspace では degraded 状態が継続し、リマインダーも停止しないことを明記しました。
    • degraded 状態の解消には improve workspace での実行が必要で、追加ルートだけでは解消されないことを明確化しました。

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2b1dea4b-20ec-4ae4-a5ff-2d6455fc3b8f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

ADR-062のcli-telemetry-reportについて、main workspaceのdegraded継続条件、improve workspaceによる解除条件、extra_roots追加の扱いを明確化した。

Changes

ADR-062契約更新

Layer / File(s) Summary
degraded解除とlast-run更新条件の整理
docs/adr/adr-062-monthly-harness-roi-review.md
root未解決が残る場合、main workspace実行はdegradedのままでL1 reminderも停止しないことを明記した。degraded解除はimprove workspace実行に限定し、extra_roots追加では解除しない契約に更新した。

Estimated code review effort: 1 (Trivial) | ~3 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 ADR-062 の degraded セマンティクス更新と extra_roots の役割明確化を正しく示しており、変更内容と整合しています。
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch adr-062-degraded-doc-sync

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.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Monitor 分析 (GitHub Actions バックストップ)

  • トリガー: issue_comment (created) / 実行 run
  • CI: CodeRabbit チェックのみ pending (Review in progress)。他の失敗中 check なし。mergeStateStatus: UNSTABLE(必須レビュー未確定によるものと推測)、mergeable: MERGEABLE
  • レビュー状況:
    • CodeRabbit: レビュー未着 (処理中コメントのみ投稿済み、具体的な指摘はまだ 0 件)
    • 人間レビュアー: レビュー無し (reviewDecision 空、pulls/335/reviews 0 件)
    • インラインコメント: 0 件
  • Verdict: user_decision (CodeRabbit レビュー未完了のため確定的な "approved" 判定は時期尚早。現時点で blocking な指摘は無い)

Applicable Findings (Critical / High / Major)

該当なし (レビュー指摘 0 件)

Applicable Findings (Medium 以下)

該当なし

Filtered (not applicable)

該当なし

diff 概要 (軽量サマリー)

  • 変更ファイル: docs/adr/adr-062-monthly-harness-roi-review.md の 1 ファイルのみ (+5/-2 行)
  • 変更の性質: 既存 ADR-062 本文への文言追記のみ。「格納パス不整合が続く限り main workspace からの実行は恒久的に degraded」という結論と、「extra_roots は degraded を解除しない (集計 root 追加のみ)」という誤解防止の明確化。新規決定事項の追加ではなく既存記述の意味明確化 (docs-only, ADR-035 に該当)

次のアクション

  • CodeRabbit のレビュー完了を待ち、実際の指摘が出た時点で改めて確認する (現時点では待機・ポーリング不要)
  • 内容は既存 ADR-062 の記述明確化のみで CI 失敗も無いため、レビュー完了後に blocking な指摘が無ければそのままマージ可能と判断してよい

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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-062-monthly-harness-roi-review.md`:
- Around line 161-162: In the ADR text around the `extra_roots` statement,
remove the outdated reference to “§ 決定 2 の運用指針と整合” and retain only the direct
contract that `extra_roots` adds aggregation roots but does not解除 degraded.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1abb5c4f-1c82-456c-9d0e-4563b604057f

📥 Commits

Reviewing files that changed from the base of the PR and between 5e5746a and 2b6fc3e.

📒 Files selected for processing (1)
  • docs/adr/adr-062-monthly-harness-roi-review.md

Comment on lines +161 to +162
**improve workspace 実行で解消するまで催促を継続する** (`extra_roots` は集計対象 root を追加する
のみで degraded は解除しない。§ 決定 2 の運用指針と整合)。

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

古い § 決定 2 への参照を削除してください。

PR objectives では § 決定 2 の運用指針への参照を削除するとされていますが、162行目に「§ 決定 2 の運用指針と整合」が残っています。extra_roots が degraded を解除しない契約だけを直接記述し、この参照を削除してください。

修正案
-のみで degraded は解除しない。§ 決定 2 の運用指針と整合)。
+のみで degraded は解除しない)。
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**improve workspace 実行で解消するまで催促を継続する** (`extra_roots` は集計対象 root を追加する
のみで degraded は解除しない。§ 決定 2 の運用指針と整合)。
**improve workspace 実行で解消するまで催促を継続する** (`extra_roots` は集計対象 root を追加する
のみで degraded は解除しない)。
🤖 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-062-monthly-harness-roi-review.md` around lines 161 - 162, In
the ADR text around the `extra_roots` statement, remove the outdated reference
to “§ 決定 2 の運用指針と整合” and retain only the direct contract that `extra_roots` adds
aggregation roots but does not解除 degraded.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Monitor 分析 (GitHub Actions バックストップ)

  • トリガー: pull_request_review (submitted) / 実行 run
  • CI: analyze (本 workflow 自身) が pending のみ。CodeRabbit check は pass (Review completed)。他に失敗中 check なし。mergeStateStatus: UNSTABLE(必須レビュー未確定によるものと推測)、mergeable: MERGEABLE
  • レビュー状況:
    • CodeRabbit: レビュー完了 (COMMENTED, 2026-07-30T17:53:09Z)。インライン指摘 1 件 (Minor / Quick win)
    • 人間レビュアー: レビュー無し (reviewDecision 空)
  • Verdict: approved (フィルタ後の applicable findings 0 件)

Applicable Findings (Critical / High / Major)

該当なし

Applicable Findings (Medium 以下)

該当なし

Filtered (not applicable)

# File (Line) Issue Filter Reason
1 docs/adr/adr-062-monthly-harness-roi-review.md (161-162) § 決定 5 の extra_roots 記述末尾に残る「§ 決定 2 の運用指針と整合」という古い参照を削除すべき Scope mismatch: docs/adr/ は analyze-coderabbit.md Step 2 上の read-only zone (自動修正対象外)

次のアクション

  • フィルタ対象ではあるが内容自体は妥当な指摘: PR 本文で著者自身が「旧括弧書き『§ 決定 2 の運用指針と整合』は偽になっていた」と明言しており、CodeRabbit の指摘 (該当参照の削除) と一致している。ADR 本文の最終確定判断は人間が行うべきなので、マージ前に一行削除するかどうかを著者に確認することを推奨する。
  • 他に blocking な CI 失敗・人間レビュー指摘は無いため、上記の軽微な文言修正以外に対応事項なし。

…e B)

PR #333 の degraded 保守化 (extra_roots では degraded を解除しない) の文書波及漏れを解消する。

- § 決定 5: last-run 契約の「degraded は improve 実行 / extra_roots 追加で解消」を
  「improve 実行で解消 (extra_roots は集計 root 追加のみで degraded は解除しない)」に訂正。
  § 決定 2 は PR #333 で更新済みのため旧括弧書きは偽になっていた。
- § 決定 2: 運用帰結 (格納パス不整合が続く限り main は恒久 degraded / improve 実行が唯一の
  非 degraded 経路) を 1 文明記。

skills repo monthly-review/SKILL.md の 3 箇所 + 誤字 (ADR-028 ゲット→ゲート) は当該 repo で別途
commit 済み (deployed へ cp 同期・in-sync 確認済み)。memory monthly-review-degraded-from-main-workspace
は PR #333 保守化と整合済みのため確認のみ。

ADR-062
@aloekun
aloekun force-pushed the adr-062-degraded-doc-sync branch from 2b6fc3e to f3c3daa Compare July 30, 2026 18:07
@aloekun
aloekun merged commit 28ca095 into master Jul 30, 2026
1 check passed
@aloekun
aloekun deleted the adr-062-degraded-doc-sync branch July 30, 2026 18:32
aloekun added a commit that referenced this pull request Aug 1, 2026
* docs(todo): 月次 ROI レビュー (PR #335-338) post-merge feedback 採用候補を todo14 に登録

#336/#337/#338 の post-merge-feedback レポートの採用候補 (6 系統 13 項目、dedup 済) を
docs/todo14.md の現在進行中に 4 エントリとして登録する。ユーザー承認済み (全系統 = todo.md 登録)。

- cli-telemetry-report コード堅牢化 + 回帰テスト (系統1+2、resolve_snapshot 越境テスト等)
- telemetry 時間語義・不変条件・degraded 運用の文書補強 (系統3+5)
- jj workspace/bookmark semantics 文書 + pr-monitor 回帰テスト (系統4)
- 開発ワークフロー規約の補強 (系統6)

ADR-033 準拠 (本文に順位番号を書かず PR/Tier 参照のみ)。優先度 table (todo-summary2.md) の
行追加はユーザー判断のため本コミットでは行わない。実装は後日。

* docs(todo): CodeRabbit PR #339 指摘を反映 (checked_sub 計画化 / 検出限界の表記整合)

- verdict.rs 計画を debug_assert! 単独から checked_sub ベースの明示処理 +
  診断用 debug_assert! 併設に変更 (release build でも underflow 防止)。
  完了基準に release-mode 判定保証の回帰テストを追加
- pr-monitor 回帰テストの bullet を「既知の false negative を明示記録、
  検出改善はスコープ外」に修正し、対処案の seal 方針と表記を整合
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