Skip to content

feat(adr): keep only current decisions in ADRs - #294

Merged
furedea merged 11 commits into
mainfrom
feat/keep-only-current-decisions-in-adrs
Dec 2, 2026
Merged

furedea merged 11 commits into
mainfrom
feat/keep-only-current-decisions-in-adrs

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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)

flowchart LR
  A["L1 agent-config(この PR)"] -->|マージ・リリース| R[L2 reusable-workflows]
  R --> D[L3 dotfiles]
Loading
状況 変更前 変更後
front matter status 必須,supersedes 等 date のみ必須.related 等は任意
旧キー(status,supersedes,superseded-by,partly-superseded-by,amended) 許可 adr-check がエラー(キーを消し,置き換えた ADR は削除と案内)
accepted の ADR の削除・本文変更 --base で拒否 許可
ID の再利用 「最大 + 1」の指示のみ --base で,過去に追加され削除された ID を新 ADR が使うと拒否
実装前の決定 proposed で書く 実装する変更の中で書く.ある ADR はすべて有効

検証

  • 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 に実行: リンク切れなし
  • CI(adr-lint を含む)

削除した ADR → 内容の行き先

削除した ADR 行き先
ADR-0002(起動前の検証登録.0003 に置き換え済み) ADR-0003 の本文に,やめた案(ランチャー所有の baseline)とその理由,引き継ぐ実行ポリシーを追記
ADR-0004(可逆性による許可.0007 に置き換え済み) ADR-0009 の本文に,やめた案と理由を追記.強い拒否は forbidden ルールと dangerous-Git ガードが引き継ぐ
ADR-0007(サンドボックス外の影響だけ確認.0009 に置き換え済み) ADR-0009 の本文に,やめた案と理由を追記.0006,0008,docs/DESIGN*.md のリンクを 0009 に付け替え
ADR-0025(MADR と front matter) ADR-0033 の Considered Options と More Information(MADR を選んだ理由,Y-Statement・Nygard・ADR CLI をやめた理由,status 付き front matter をやめた理由)
ADR-0026(adr-check を Nix の Python コマンドにする) ADR-0033 の Decision Outcome(スキーマ検証,Nix パッケージ化,編集時に実行,CI は --base)と Considered Options(bash の composite action,markdownlint のみ)

一部だけ置き換えられていた ADR は決定 (2) に従い,Chosen option が今も正しいので置き換えられた細部だけを削った.

  • ADR-0013: ホストがトークンを発行する点は残し,GitHub ドメインを sandbox で開く部分(ADR-0031 が置き換え)を削除
  • ADR-0020: jev-lint を採用する点は残し,npx 実行とバックエンド抽象化(ADR-0021 が置き換え)を削除.タイトルとファイル名を adopt_jev_lint_for_rules_only_a_model_can_judge に変更
  • ADR-0021: 静的ルールが編集時にブロックする点は残し,昇格してゲートにする記述(ADR-0027 が置き換え)を削除
  • ADR-0031: ルート宣言の方式は残し,置き換えられたファイル名(ADR-0032 が置き換え)を削除
  • ADR-0010: Herdr パネルの許可は残し,T3 Code が既定になった(ADR-0028)ことを 1 文で追記

その他: proposed だった ADR-0020,0021 は実装済み(jev-lint の Nix パッケージ,Stop フック,編集時の静的ルール)なのでキーだけ外した.ADR-0023 は原則の決定で,対応する機構(adr-check,フック)が存在するためキーだけ外した(未実装と判断する場合は Issue に戻す).amended の内容は本文に残る必要があるもの(ADR-0005 のログ範囲)だけ本文へ移し,ほかは本文に既にあるため削除した.

範囲・前提
  • 範囲外: reusable-workflows,dotfiles,domain-modeling skill,Jev の model-rule の fixture(status: accepted を含む入力).
  • コミット: feat(adr-check)!(旧キーを拒否する破壊的変更),feat(adr)(skill・template),docs(adr)(ADR の移行).
  • ID の再利用検出は git 履歴を読むため,履歴が浅い clone では検出できない(ADR-0033 の Consequences に記載).
  • この PR は feat(adr): keep only current decisions in docs/adr and drop the front matter and adr-check #293 の受け入れ条件のうち agent-config 側(skill,template,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 を検査する.
  • reusable-workflows の agent-config-ref 既定値(138c542)は古いままで,他のリポジトリ向けには L2 で更新が必要.

furedea and others added 3 commits December 2, 2026 16:50
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]>
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T10:25:03.284869Z d5fd38a Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary

I reviewed the adr-check changes: legacy-key rejection, the `related`-only reference check, and the new ID-reuse check in `history.py`. I also read the ADR skill and template edits.

Findings

  • P2: The ID-reuse check passes silently on a shallow clone, because `git log` only sees the truncated history. It should fail with exit 2 instead. Details are in the inline comment.

Otherwise

  • The tests cover the new behaviour: legacy keys, deleting accepted ADRs, ID reuse, renames, and an unknown base.
  • I found no correctness or security problems in the code.
  • I did not check the bulk ADR front-matter edits line by line. The `test_this_repositorys_adrs_pass` test covers them.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
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]>
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary (read-only)

No P0 or P1 findings.

  • P3 (inline, tools/adr-check/src/adrcheck/history.py:56): the ID-reuse check skips every rename, including one that changes the ID. Renaming a file onto an ID that was used and then removed passes --base. This is from reading the code, not a run.

What I checked:

  • The legacy-key rejection (status, supersedes, etc.) and the schema in document.py and front_matter.schema.json.
  • related resolution in references.py, including prefixed IDs.
  • The --base history logic.
  • Dangling references to the ADRs this PR deletes (0002, 0004, 0007, 0025, 0026). The only live hits are lint fixtures, which are test data, and dotfiles/ADR-0026 in ADR-0016, which is another repository and is correctly left alone.

I did not run the test suite myself. The PR description reports it passing.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary

I read the adr-check changes (history.py, document.py, references.py, directory.py, cli.py) and the schema. I did not run the tests. I found one real issue and no blockers.

  • P2 (inline): --base ID-reuse detection uses git diff <base>, which ignores untracked files. A new, not-yet-added ADR that reuses a removed ID is not flagged. Committed or staged files, which is what CI checks, are covered.

The other logic looked correct on reading: the legacy-key rejection, the related reference resolution, the shallow-clone guard, and rename handling (a rename counts as an addition only when the ID changes).

Not a finding: the hook tests and model-rule fixtures still contain status: front matter. They do not appear to run through adr-check, so they only look stale.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 989e33da24

ℹ️ 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".

@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary (read-only)

Scope: the adr-check change (legacy keys rejected, --base now detects ID reuse instead of protecting accepted ADRs) and the ADR/doc rewrites that go with it.

  • No P0 or P1 findings.
  • P2 (inline, tools/adr-check/src/adrcheck/history.py): a same-ID rename combined with a heavy body rewrite falls below git's 50% rename-similarity threshold. It is seen as delete + add, and --base then falsely reports ID reuse. Accepted ADRs can now be rewritten, so this is plausible. There is no test for it.

Checked and fine:

  • Legacy-key filtering in shape_errors works for dict and non-dict front matter.
  • The NUL-separated --name-status parsing is bounded correctly.
  • related reference checking is equivalent to the old existence check.
  • The shallow-clone hard failure (exit 2) is intentional and tested.

I did not run the test suite.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: c873f35fc0

ℹ️ 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".

@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary (read-only, no edits): I found no P0 or P1 issues, and I'm posting no inline comments.

I read tools/adr-check (history.py, directory.py, document.py, references.py, the schema and the CLI) and grepped the rest of the repo for leftover uses of the old front matter. I did not run the tests or adr-check myself, because the sandbox blocked the commands. The PR description reports the test run as passing.

  • Legacy keys: they are rejected before schema validation, so the advice message is clear. additionalProperties: false then covers any other unknown key.
  • ID reuse (--base): the ls-tree plus log --diff-filter=A union and the rename handling look correct. A shallow clone fails with exit 2 instead of passing silently, which is the safe choice.
  • P3, optional: git log base -- ./ uses default history simplification. An ADR added and deleted on a side branch that never reached the merge result may not show up in used. Adding --full-history would close that gap. It matters little if merges are squashed.
  • P3, optional: the model-rule fixtures under agents/hooks/lint/model-rules/markdown/adr-*/fixtures/ and tests/test_model_rule_files.py:517 still use status: accepted. They are not real ADRs, so nothing breaks. They do show the old format as the example of a good ADR, and the clean_real_madr_with_reasons.md fixtures still describe the status/supersedes keys in their text.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
Comment thread agents/skills/adr/SKILL.md Resolved
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary

No P0–P3 findings. I left no inline comments.

What I checked

  • history.py: the reuse check takes the IDs at base (ls-tree) plus the IDs removed in history up to base (log --diff-filter=D --no-renames), then compares them with the files added since base. I traced these cases and they behave as the new tests expect: a rename that keeps the ID, a rename that changes the ID, an untracked new file, a staged add, and delete-then-add under a different file name. A heavy rewrite that git reports as D+A is flagged, and the message explains how to avoid it.
  • document.py and schema.json: the legacy keys are reported with migration advice, and they are stripped before schema validation, so each legacy key gets one clear error instead of an additionalProperties error.
  • references.py: related is still resolved for unprefixed IDs, and <repo>/ADR-NNNN IDs are left alone.
  • Dangling references: the repo has no links to the deleted ADR files (0002, 0004, 0007, 0025, 0026) or to the old 0020 file name. The only remaining mentions are Jev model-rule fixtures, which the PR lists as out of scope. .lycheeignore is removed together with the only ADR that needed it.
  • The edit-time hook (adr_check_scan) runs without --base, so the new ID-reuse rule takes effect only where CI passes --base. That is the L2 follow-up the PR describes.

Known trade-off, already documented in ADR-0033

  • --base now exits 2 on a shallow clone. A CI job that passes --base with the default fetch-depth: 1 will fail, so the L2 workflow needs fetch-depth: 0.

I did not run the test suite. This review was read-only.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary (read-only): no blocking findings.

I read the adr-check changes: the legacy-key rejection in document.py, the schema, the --base reuse check in history.py, the CLI and directory wiring, and the tests. I did not run the test suite. I found no correctness or security bugs.

The ID-reuse check handles these cases correctly:

  • additions, renames that change the ID, and untracked files
  • file names that differ but share an ID
  • shallow clones, which exit 2 instead of passing silently

The tests cover each of those cases plus unknown bases and a base without the directory.

P3, optional: stale wording left behind

  • agents/skills/tsdd/SKILL.md:27 still says the adr skill owns "status, supersession". That no longer matches the new model. This file isn't in the diff, so I couldn't comment inline.
  • tests/test_model_rule_files.py:517 writes an ADR fixture with status: accepted. It is harmless if that test never runs adr-check on it, but it models the old format.

Note, not a defect: nothing in .github runs adr-check --base yet. The PR description says the L2 reusable-workflows change follows this one, so the ID-reuse guard is not enforced in CI until then.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread tools/adr-check/src/adrcheck/history.py Resolved
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary

No P0 or P1 findings, so I posted no inline comments. I read history.py, references.py, directory.py, cli.py, document.py and the schema, and compared them with their tests.

I did not run the tests, and I could not read the PR's CI results (gh pr checks was not approved here).

Checked and found sound

  • ID reuse (history.check): used covers IDs present at base plus IDs deleted anywhere in history up to base. Using -m and --no-renames also catches deletions made by merge commits. A rename that keeps its ID is not counted as an addition. Shallow clones fail with exit 2 instead of passing silently.
  • Legacy keys: shape_errors reports the old status, supersedes and similar keys with migration advice, then validates the remaining keys, so there is no double reporting.
  • Tests: they cover legacy-key rejection, deletion being allowed, renames, untracked files, merge commits, shallow clones and an unknown base. That is good coverage for the changed behavior.

P3, optional

  • agents/skills/tsdd/SKILL.md:27 still says the adr skill owns "status, supersession". That is stale now that both are gone. Not in this diff, so I could not attach an inline comment.
  • Some fixtures still carry status: front matter: tests/hooks/test_model_rules_adrs.py:18 (status: proposed) and tests/test_model_rule_files.py:517 (status: accepted). They are never run through adr-check, so nothing breaks. They would mislead anyone copying them as examples.
  • .github/workflows/ci.yml:293 pins adr-lint to reusable-workflows v1.6.0. Before the L2 follow-up, that workflow may still enforce the old schema (status, madr-from: 27) against ADRs that no longer have status. I could not confirm whether the adr-lint check passes or fails on this PR. If it fails, the merge ordering described in the PR would need to account for that.
  • --base only guards ID reuse when CI fetches full history. A shallow checkout gives exit 2 instead of a pass. The reusable workflow must use fetch-depth: 0 when it adopts --base.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 0174ca8fb8

ℹ️ 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".

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]>
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary: no findings.

I read the adr-check changes (history.py, cli.py, directory.py, document.py, references.py, the schema) and the ADR skill and template changes. I did not run the test suite in this review.

  • ID-reuse check: the --base logic looks correct. It covers files present at the base, files removed in history (merge commits included), renames that change the ID, and untracked files. It also fails with exit 2 on a shallow clone instead of passing silently.
  • Legacy keys: they are reported with migration advice, and related references to deleted ADRs are caught by the new reference check.
  • Dangling references: I found no links to the removed ADRs (0002, 0004, 0007, 0025, 0026) outside test and lint fixtures.
  • Skill guidance: the ADR skill tells authors to skip deleted IDs, which matches the new check.
  • Follow-up, not a defect in this PR: the --base check only runs once reusable-workflows (L2) passes it. That checkout will need full history (fetch-depth: 0), or it will exit 2 on the shallow-clone guard.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: d5fd38a243

ℹ️ 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".

@furedea
furedea merged commit f27eb15 into main Dec 2, 2026
29 checks passed
@furedea
furedea deleted the feat/keep-only-current-decisions-in-adrs branch December 2, 2026 10:43
furedea added a commit that referenced this pull request Dec 2, 2026
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]>
furedea pushed a commit that referenced this pull request Dec 2, 2026
🤖 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>
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