Repository navigation
feat(adr): keep only current decisions in ADRs - #294
Conversation
adr-check now requires only `date` in the front matter and reports the legacy keys (status, supersedes, superseded-by, partly-superseded-by, amended) as errors that say to remove the key and to delete a replaced ADR. It no longer protects accepted bodies or forbids deleting ADRs, and no longer checks supersession consistency. With --base it fails when an ADR added since the base takes an ID that history added and removed before it. BREAKING CHANGE: ADR front matter with status, supersedes, superseded-by, partly-superseded-by, or amended is now an error; consumers of adr-lint must migrate their ADRs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The adr skill and template drop status, supersession, and amended. A decision is written in the change that implements it, a replacement is a new ADR that names the dropped approach plus the deletion of the old ADR, and a deleted ID is never reused. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Add ADR-0033 in place of ADR-0025 and ADR-0026. Fold the superseded ADR-0002, ADR-0004, and ADR-0007 into their successors, narrow the partly superseded ADR-0010, ADR-0013, ADR-0020, ADR-0021, and ADR-0031 to what still holds, and remove every legacy front-matter key. 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 summaryI reviewed the Findings
Otherwise
🤖 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: af325dd6ba
ℹ️ 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".
An ADR added under an ID that a file at the base already had is a reuse, and a shallow clone cannot show the removed IDs, so the check now exits with an error instead of passing silently. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only) No P0 or P1 findings.
What I checked:
I did not run the test suite myself. The PR description reports it passing. 🤖 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: 7387936f0c
ℹ️ 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 I read the
The other logic looked correct on reading: the legacy-key rejection, the Not a finding: the hook tests and model-rule fixtures still contain 🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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) Scope: the
Checked and fine:
I did not run the test suite. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…a reuse Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary (read-only, no edits): I found no P0 or P1 issues, and I'm posting no inline comments. I read
🤖 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: e01eaee603
ℹ️ 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".
…e stateless rule Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
Review summaryNo P0–P3 findings. I left no inline comments. What I checked
Known trade-off, already documented in ADR-0033
I did not run the test suite. This review was read-only. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4939bff386
ℹ️ 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 blocking findings. I read the The ID-reuse check handles these cases correctly:
The tests cover each of those cases plus unknown bases and a base without the directory. P3, optional: stale wording left behind
Note, not a defect: nothing in |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9a8067c99
ℹ️ 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 P0 or P1 findings, so I posted no inline comments. I read I did not run the tests, and I could not read the PR's CI results ( Checked and found sound
P3, optional
|
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
The repository that ships adr-check lints its ADRs with that commit, so a breaking adr-check change and the ADR migration it needs land together. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Review summary: no findings. I read the
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
ADR から front matter を全廃し,`adr-check`(Nix パッケージ,編集時 hook を含む)を削除する.ADR の検証は reusable-workflows v2.0.0 の `adr-lint` だけにする.判断してほしい点は末尾「確認してほしい判断」. Refs #293(計画コメント: #293 (comment)) > **dotfiles への影響**: dotfiles の home-manager は `agent-config.packages.<system>.adr-check` をインストールしている.このパッケージを消すので,dotfiles が agent-config のこの変更を取り込むと壊れる.L3(dotfiles の更新)が終わるまで,dotfiles は agent-config の更新を取り込まない. ```mermaid flowchart LR L2["L2 reusable-workflows v2.0.0(完了)"] --> L1["L1 agent-config(この PR)"] L1 -->|マージ・リリース| L3["L3 dotfiles"] ``` | 項目 | 変更前 | 変更後 | | --- | --- | --- | | ADR の front matter | `date` 必須,`related` 任意 | なし(残っていると `adr-lint` がエラー) | | 関連 ADR | front matter の `related` | 本文末尾の `Related:` リンク(lychee が検査) | | ADR の検査 | `adr-lint` + `adr-check`(SHA 固定,`agent-config-ref`) | `adr-lint` v2.0.0 のみ(agent-config に依存しない) | | 編集時の検査 | hook が `adr-check` を実行 | なし(PR の CI で検出) | | `reusable-workflows` の参照 | v1.6.0 | v2.0.0(`bc856b7`,全 workflow と `nix-setup`) | ## 検証 - [x] `ruff check`,`ruff format --check`,`ty`,`deptry`,pre-commit hook: 成功 - [x] `tests/hooks/test_lint_format.py`: 70 件成功 - [x] 全テスト(8 並列): 3727 件成功,1 件失敗(`test_guard_suppression_budget.py` の処理時間を測るテスト.負荷の影響とみられ,単独では 6 件成功),ローカルでは 1 件失敗で停止 - [x] `grep -ri "adr-check\|adr_check"`: ADR-0033 の Considered Options と More Information 以外に残りなし - [ ] CI(`adr-lint` v2.0.0 を含む).ローカルに `lychee` と `markdownlint` がないため `adr-lint` は CI で初めて走る ## 削除・変更した ADR #294 で削除済み: 0002,0004,0007(0003,0009 に畳んだ),0025,0026(0033 に置き換え).この PR では ADR を削除していない. | 変更 | 内容 | | --- | --- | | ADR-0033 | Chosen option(今有効な決定だけを置き,置き換えは削除)は変わらないのでその場で修正.front matter 全廃と `adr-check` 廃止を決定にし,「`date`/`related` を `adr-check` で検査」案と #294 の `ci.yml` 回避策を,やめた理由とともに Considered Options と More Information へ移した | | 全 ADR | front matter を削除.`related` は末尾の `Related:` リンクへ.dotfiles の ADR へのリンクは dotfiles `dbda061` の permalink.ファイルは改名していない | <details><summary>範囲・前提</summary> - 範囲外: dotfiles(L3),`adr-lint` を呼ぶほかのリポジトリ,Jev の model-rule fixture(`status: accepted` を含む入力).fixture のうち historic ADR の写し 2 件は,`adr-check` を含む 1 行だけ書き換えた. - `reusable-workflows` v2.0.0 の破壊的変更は `adr-lint` の 2 件だけ(CHANGELOG 確認).`madr-from: 27` は変えていない. - `agents/skills/source-of-truth/SKILL.md` は元から "replacing" の文言のため変更していない. - `model_rules_files.py` の front matter 読み取りは,front matter のない ADR を全文本文として扱うので,そのまま残した. - コミット: `build(ci)!`(v2.0.0 の参照),`feat(adr)!`(`adr-check` 削除),`docs(adr)`(skill・template),`docs(adr)!`(front matter 削除と ADR-0033).`!` は残す指示を受けている. </details> ## 確認してほしい判断 - #294 の判断はそのまま: ADR-0023 は実装済み扱い,ADR-0010 は T3 Code の一文を足して残す.ただし ADR-0023 の「実装済み」の根拠に `adr-check` を挙げていた.`adr-check` はこの PR で消えるが,hook など ADR-0023 の原則に沿う機構は残るので,判断は変えていない. - `Related:` の補足(「refines it」「who supplies the token」など)は,元の `related` 行のコメントから書き起こした(0008,0011,0016,0017,0018,0019,0022). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2026-12-02) ### ⚠ BREAKING CHANGES * **adr:** drop the ADR front matter and adr-check ([#301](#301)) ### Features * **adr:** drop the ADR front matter and adr-check ([#301](#301)) ([971cccf](971cccf)) * **adr:** keep only current decisions in ADRs ([#294](#294)) ([f27eb15](f27eb15)) * **delegation:** herdr-core のレーンを --no-parent ではなく --no-notify で起動する ([#297](#297)) ([34d251b](34d251b)) * **settings:** allow GitHub Actions log host in Claude sandbox network policy ([#304](#304)) ([e832155](e832155)) ### Performance Improvements * **delegation:** speed up lane CI waits and polling intervals ([#300](#300)) ([f68c8a2](f68c8a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
ADR を「今有効な決定だけ」にし,
statusと supersede 系のキーをやめる.決定の置き換えは,新しい ADR の Considered Options に旧案とやめた理由を書き,旧 ADR を削除する.agent-config 側(L1)の変更で,reusable-workflows(L2)と dotfiles(L3)はこの PR のマージ・リリース後に続く.Refs #293(計画コメント: https://github.com/furedea/agent-config/issues/293#issuecomment-7337316342)
status必須,supersedes等dateのみ必須.related等は任意status,supersedes,superseded-by,partly-superseded-by,amended)adr-checkがエラー(キーを消し,置き換えた ADR は削除と案内)--baseで拒否--baseで,過去に追加され削除された ID を新 ADR が使うと拒否proposedで書く検証
uv run pytest tools/adr-check tests/hooks/test_adr_check_scan.py tests/hooks/test_model_rules_adrs.py: 58 件成功(旧キー拒否,削除の許可,ID 再利用検出,relatedの参照切れをテストで追加)nix run .#adr-check -- docs/adr,nix run .#adr-check -- --base origin/main docs/adr: 指摘なしruff check,ruff format --check,ty check: 成功lychee --offlineをdocs/adr,docs/DESIGN.md,README.mdに実行: リンク切れなしadr-lintを含む)削除した ADR → 内容の行き先
docs/DESIGN*.mdのリンクを 0009 に付け替え--base)と Considered Options(bash の composite action,markdownlint のみ)一部だけ置き換えられていた ADR は決定 (2) に従い,Chosen option が今も正しいので置き換えられた細部だけを削った.
npx実行とバックエンド抽象化(ADR-0021 が置き換え)を削除.タイトルとファイル名をadopt_jev_lint_for_rules_only_a_model_can_judgeに変更その他:
proposedだった ADR-0020,0021 は実装済み(jev-lintの Nix パッケージ,Stop フック,編集時の静的ルール)なのでキーだけ外した.ADR-0023 は原則の決定で,対応する機構(adr-check,フック)が存在するためキーだけ外した(未実装と判断する場合は Issue に戻す).amendedの内容は本文に残る必要があるもの(ADR-0005 のログ範囲)だけ本文へ移し,ほかは本文に既にあるため削除した.範囲・前提
domain-modelingskill,Jev の model-rule の fixture(status: acceptedを含む入力).feat(adr-check)!(旧キーを拒否する破壊的変更),feat(adr)(skill・template),docs(adr)(ADR の移行).adr-check,自身の ADR,source-of-truth)を満たす.adr-lintの更新(L2)と dotfiles の移行(L3)が残るのでRefs.🤖 Generated with Claude Code
追記: adr-lint の参照
adr-lintはci.ymlのagent-config-refでこの PR の head SHA を指し,この PR 自身のadr-checkで ADR を検査する.agent-config-ref既定値(138c542)は古いままで,他のリポジトリ向けには L2 で更新が必要.