Repository navigation
feat(hooks): check ADR file names and metadata after each ADR edit - #209
furedea-agent[bot] wants to merge 15 commits into
Conversation
Report naming, ID uniqueness, title, status, metadata vocabulary, ADR references and supersession consistency as edit feedback. Drop the skill prose the check now enforces and add Partly superseded by and Amended to the skill. Move the status reference of ADR-0004 to a Superseded by line. Refs #169 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryTwo findings, one of them blocking:
The rest looks correct to me: the 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e39994bdf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Parallel branches reserve ADR numbers, so main legitimately holds a gap until the earlier PR merges (ADR-0023 landed before ADR-0022). Uniqueness still catches reuse. Refs #169 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
レビュー結果
フックへの統合( ブロッキング: 1 件(P1) |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76a1115c72
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Read the whole directory but filter findings to the edited ADRs so repositories with another ADR convention are not flooded, and keep references after a joining word such as "and". Refs #169 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) I found no blocking issues and posted no inline comments. What I checked:
Merge-order note (already mentioned in the PR body): |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7ccdf3698
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…hyphenated keys Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
レビュー概要ブロッキングな指摘はありません(P0/P1: 0 件).
確認した点: パスの解決( このレビューでは pytest を実行していません(コマンドの実行が許可されなかったため). 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0cc8a6a104
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… by status Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) No blocking findings. What I checked:
I found no correctness, security or test-coverage problems serious enough to report. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2922b1f112
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
レビュー結果マージを止める指摘(P0/P1)はありません.
テストは,変更した動作をおおむね網羅しています.ADR-0004 のメタデータ修正も,ADR-0007 の 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e6caec0d18
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ed with immutability Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryNo blocking issues (P0/P1: 0).
I also checked:
Tests were not run locally (read-only review). |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d79612eeaf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only)
No P0 or P1 findings. I read through the reference parsing, supersession and duplicate-ID checks, how deletions are handled, the 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 539ef6c74c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) Findings: 0 × P0, 0 × P1, 1 × P2.
The rest looks correct to me:
Merge-order note: once #198 lands, its ADR-0022 ( 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e51699b7a6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…lacement Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
レビュー結果(読み取りのみ)ブロッカーなし(P0/P1: 0 件).インラインで指摘する事項もありません. 確認した点:
注意(指摘に至らない程度): スキルから Status 値の一覧を削除したため, |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 251c07c0c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryNo blocking or non-blocking findings. Checked:
Minor note, not a finding: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c1c23ef6da
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| (line, match.group(2)) | ||
| for line, name, value in self.metadata | ||
| if name == key | ||
| for match in REFERENCE.finditer(LINK_TARGET.sub("", value)) |
There was a problem hiding this comment.
- Related: https://example.test/docs/ADR-0042.md や同じ URL の自動リンク形式では,LINK_TARGET が ](...) 形式しか除去しないため,URL 内の ID がローカル参照として抽出され,存在しない ADR の診断が誤って出ます.既存の Markdown リンク先ケースは修正されていますが,裸 URL と自動リンクが依然として走査されることが新しい根拠です.
Useful? React with 👍 / 👎.
| for line, name, value in self.metadata | ||
| if name == key | ||
| for match in REFERENCE.finditer(LINK_TARGET.sub("", value)) | ||
| if match.group(1) is None or match.group(1) in JOINERS |
|
この PR は閉じます(#169 の判断).
|
… a brief (#236) ## 概要 `herdr-delegation` の「Prepare a Self-Contained Brief」の既存の項目に,2 点を加えた.あわせて `Scope and Dependencies` に 1 文を加えた.新しい節や仕組みは作っていない. - **Scope and focus**: 範囲外の一覧と脅威モデル(入力の出所と,判断を誤ったときの損失)を brief を書く時点で決める.lane は範囲外の P2・P3 の指摘にこの一覧を引いて答え,P0・P1 は常に直す(`development-cycle` の `delivery.md` と同じ). - **Input**: 実装では方法を決める前に既存の道具(標準ライブラリ,既に入っている依存,de facto の外部ツール)を調べ,選んだ理由(または合うものが無い理由)を brief に書く. - **Scope and Dependencies**: 承認済みの plan の独立した lane は,それぞれ別の Herdr worktree で順番待ちせず並行して走らせる.同じ行を変える lane だけは例外で,順番に走らせる.並行にできる機会があるだけでは委任を許可しない,という既存の規則は残している. #209 では範囲と脅威モデルが無く,指摘が範囲外まで広がった.#212 では既存の道具を調べずに自作して作り直しになった. ## 重複の確認 `development-cycle` には brief を書く手順の重複が無い.`delivery.md` は lane が範囲外の指摘に答える側の規則で,brief に書く側の規則は `herdr-delegation` の 1 か所にまとまっている.`branches.md` は `herdr-delegation` へのリンクのみ. ## 確認 - `nix flake check --no-build`: 通過 ## 範囲外の指摘 - 並行 lane の文を 1 つの PR に含めることへの指摘: ユーザーがこの PR に加えるよう指示した変更で,本文の概要に記載した.lane が同じ行を変えるかは plan の lane 分割(`issue_plan.md`)で決まり,承認済みの plan の lane だけが対象なので,「委任を推論しない」という既存の文とは矛盾しない. - 同じ行を変える lane を 1 つにまとめる,または stacked-branch 手順を要求する指摘: ユーザーの指示は「順番に走らせる」で,lane 分割の見直しと stacked-branch 手順は本変更の範囲外(P2). Closes #233 Refs #169 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
概要
docs/adr/を持つ任意のリポジトリで ADR を編集すると,ファイル名・ID・タイトル・Status・メタデータ語彙・ADR 参照・supersession の整合を静的に検査し,編集後のフィードバックとして報告します(ブロックはしません,ADR-0021).adrスキルから,このチェックが担う機械的な規則を削除し,Partly superseded byとAmendedを公式語彙として追加しました.ユーザーが決めるのは,既存 ADR の語彙(Originallyなど)を正式な語彙として残す点と,ADR-0004 のメタデータ修正です.規則とチェックの対応(ADR-0021 の prose-to-check mapping)
agents/skills/adr/SKILL.md)test_file_name_must_start...,test_any_naming_style...test_duplicate_id_...mainは ADR-0022(#198 未マージ)が欠けたまま ADR-0023 を含む.重複検査が再利用を防ぐtest_gaps_in_ids_are_not_reported...# ADR-NNNN: <Decision title>test_title_...- Status:の存在と 4 値test_status_...- Supersedes: ADR-NNNN/ change the old ADR status toSupersededSupersedesの相手がStatus: Supersededtest_supersedes_...Amendedは<YYYY-MM-DD> (<what>)test_unknown_metadata_key...,test_amended_...ADR-NNNNが存在することtest_reference_...スキルに残したのは,Decision Test,リポジトリ調査,supersede の判断,Writing Rules,テンプレート,Non-Goals と,チェックを指す 1 行のポインタです.
Partly superseded byとAmendedは 1 文ずつ使いどころを足しました.チェックの設定(語彙と形式)はagents/hooks/lib/adr_metadata.pyが唯一の正本です.既存 ADR の結果
Superseded by [ADR-0007](...)が混在し,ADR-0007 のSupersedes: ADR-0004との整合も崩れていた).- Status: Supersededと- Superseded by: ...)に直しました.Superseded by,Refines,Related,Originally,Historical sourcesを語彙に含め,dotfiles ADR-0016のように他リポジトリを指す参照や複数行の値は検査対象外としています.README.mdも対象外です.- Amended with: ADR-0021 (...)が未知キーとして報告されます(Amended: <日付> (<内容>)への書き換えが必要で,docs(adr): judge agent commands by their effect #198 側の修正事項です).範囲と設計メモ
lint_format.pyのdiagnosticsの 1 行(adr_metadata.diagnostics(paths))で,feat(hooks): block edits on static rule errors and guard ast-grep-ignore #203 とのリベース時の衝突を小さくしています.source-of-truthのCLAUDE.md不在規則.Superseded byを持つ ADR はStatus: Supersededであることも検査します(既存履歴は適合).test_this_repositorys_adr_history_conformsで CI が検査します.検証
uv run pytest: 4930 passed, 1 skipped(新規 42 件)uv run ruff check/ruff format --check/ty check: 通過Refs #169
🤖 Generated with Claude Code