Skip to content

feat(adr)!: drop the ADR front matter and adr-check - #301

Merged
furedea merged 4 commits into
mainfrom
feat/drop-adr-front-matter-and-adr-check
Dec 2, 2026
Merged

furedea merged 4 commits into
mainfrom
feat/drop-adr-front-matter-and-adr-check

Conversation

@furedea

@furedea furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

ADR から front matter を全廃し,adr-check(Nix パッケージ,編集時 hook を含む)を削除する.ADR の検証は reusable-workflows v2.0.0 の adr-lint だけにする.判断してほしい点は末尾「確認してほしい判断」.

Refs #293(計画コメント: https://github.com/furedea/agent-config/issues/293#issuecomment-7337316342)

dotfiles への影響: dotfiles の home-manager は agent-config.packages.<system>.adr-check をインストールしている.このパッケージを消すので,dotfiles が agent-config のこの変更を取り込むと壊れる.L3(dotfiles の更新)が終わるまで,dotfiles は agent-config の更新を取り込まない.

flowchart LR
  L2["L2 reusable-workflows v2.0.0(完了)"] --> L1["L1 agent-config(この PR)"]
  L1 -->|マージ・リリース| L3["L3 dotfiles"]
Loading
項目 変更前 変更後
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)

検証

  • ruff check,ruff format --check,ty,deptry,pre-commit hook: 成功
  • tests/hooks/test_lint_format.py: 70 件成功
  • 全テスト(8 並列): 3727 件成功,1 件失敗(test_guard_suppression_budget.py の処理時間を測るテスト.負荷の影響とみられ,単独では 6 件成功),ローカルでは 1 件失敗で停止
  • 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.ファイルは改名していない
範囲・前提
  • 範囲外: 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).! は残す指示を受けている.

確認してほしい判断

  • feat(adr): keep only current decisions in ADRs #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

Copilot AI balanced review requested due to automatic review settings December 2, 2026 13:08

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@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-02T13:38:55.040974Z b6da48d 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.

@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review: no blocking findings.

Checked:

  • No leftover references to adr-check, adr_check_scan or adrcheck outside CHANGELOG history and ADR-0033's rationale.
  • All reusable-workflows refs in ci.yml and release-please.yml use the same v2.0.0 SHA (bc856b7).
  • uv.lock has no adrcheck entry.
  • No date:/status: front matter remains in docs/adr/.
  • The Related: links point at existing files.
  • The model-rules fixtures keep their front matter on purpose; the PR lists them as out of scope.

Not verified (PR notes this too): adr-lint v2.0.0 has not run locally, so CI is the first real check. The dotfiles break from removing packages.<system>.adr-check is already called out and gated on L3.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: b33bafb067

ℹ️ 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 and others added 4 commits December 2, 2026 22:23
…-config-ref input

adr-lint v2.0.0 checks ADR files itself and has no agent-config-ref input.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ADR checks now live in the adr-lint workflow of reusable-workflows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…sion

Related ADRs become body links; ADR-0033 now decides on no front matter and no adr-check.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea
furedea force-pushed the feat/drop-adr-front-matter-and-adr-check branch from b33bafb to b6da48d Compare December 2, 2026 13:35
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review: no blocking findings (no P0/P1, no inline comments).

Checked on the PR head:

  • No adr-check / adr_check / adrcheck references remain, apart from ADR-0033 (Considered Options, More Information) and the auto-generated CHANGELOG.
  • tools/adr-check is gone, and so are the pyproject.toml workspace, deptry, vulture, ruff, ty and pytest path entries. The uv.lock has no adr-check entries left.
  • lint_format.py no longer imports adr_check_scan, and the module and its test are deleted together. The hook now calls only static_rule_scan.
  • flake.nix drops both the package and the check, and nix/adr_check.nix is deleted.
  • No docs/adr/*.md file starts with front matter, and every relative NNNN_*.md link in the ADRs points at an existing file.
  • All reusable-workflows pins are consistently moved to bc856b7 (v2.0.0), including nix-setup.

Residual risks (informational, not blocking):

  • P3: The adr-lint v2.0.0 run is unverified. The PR notes lychee and markdownlint were not run locally, so CI is the first real check. This includes the markdownlint list indentation in ADR-0033 and the template, which changed to 4-space continuation. Please confirm that job is green before merging.
  • P3: The dotfiles breakage from removing packages.<system>.adr-check is already documented in the PR. Keep dotfiles pinned until L3 lands.
  • P3: Two model-rule fixtures (clean_real_madr_with_reasons.md) still carry status/date/related front matter. They sit outside docs/adr, so adr-lint shouldn't scan them. Confirm that the v2.0.0 file check only looks at the ADR directory.

I did not run the tests or CI locally.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: b6da48d967

ℹ️ 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 971cccf into main Dec 2, 2026
29 checks passed
@furedea
furedea deleted the feat/drop-adr-front-matter-and-adr-check branch December 2, 2026 13:57
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.

2 participants