Repository navigation
chore(deps): adopt adr-tools 0.0.11 and drop the ADR counts - #2407
Merged
Merged
Conversation
adr-tools 0.0.11 stops writing aggregate counts into the files `adr regenerate` produces. A count is a property of the whole ADR set, so two PRs that each regenerated against their own base left main with a header that was wrong in a way git had no reason to flag -- it only surfaced afterwards as a drift-check failure (#2396). Regenerating removes the count from the effective.md header, the graph.md header, and the '— N ADRs' suffix on graph.md's per-topic links. The links themselves stay. Progress is tracked outside these files, so nothing is lost by not storing the numbers; `adr extract effective | wc -l` and `adr validate` still report them on demand, and `adr visualize` keeps its count because that output is a query result rather than a versioned file. Refs kompiro/adr-tools#26 Co-Authored-By: Claude Fable 5 <[email protected]>
kompiro
enabled auto-merge (squash)
August 8, 2026 14:23
…-0.0.11 # Conflicts: # docs/adr/effective.md # docs/adr/graph.md
2 of 4 tasks
kompiro
added a commit
that referenced
this pull request
Aug 9, 2026
Two independent collisions with main. The generated ADR artifacts (effective.md, graph.md, graph/build.md) conflicted because adr-tools 0.0.11 dropped the ADR counts from their headers (#2407) while this branch had regenerated them with the counts still in. Took main's files and re-ran `pnpm adr:regenerate` rather than hand-resolving generated output. The real one was silent: main relocated the security floors to pnpm-workspace.yaml (#2411 / ADR-2401) and added a rules section saying so, explicitly warning that older security ADRs point at the dead location. The section this branch adds pointed at exactly that dead location, and git merged the two without a conflict. Retargeted the reachable state and the grep to pnpm-workspace.yaml, and added the lock check as step 4. ADR-2404 gets the same treatment: assumptions now grep pnpm-workspace.yaml (the old `grep: package.json :: "dompurify"` would fail now that the pnpm field is gone), and a note records that the fix moved location mid-flight, since leaving it in package.json would have made pnpm 11 ignore it silently. adr:validate 315/0 errors; check-assumptions both ADR-2404 entries pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This was referenced Aug 9, 2026
kompiro
added a commit
that referenced
this pull request
Aug 9, 2026
…#2416) 0.0.11 removed the ADR counts from effective.md and graph.md but left renderTopicMarkdown() writing "N ADRs in this topic" into all 15 committed docs/adr/graph/*.md pages, so those kept drifting between parallel branches. PR #2406 hit it: graph/build.md conflicted with 71 / 70 / 72. adr-tools 0.0.12 (kompiro/adr-tools#30) drops that fourth count and replaces the two named-file assertions with a sweep over every generated file, so a future output is covered without anyone remembering to list it. The lock diff is large but nothing moved version. Comparing name@version across the lock with peer suffixes stripped, the only resolution changes are adr-tools 0.0.11 -> 0.0.12 and the drop of @babel/helper-validator-identifier and @types/estree, which nothing needs any more. The remaining ~550 lines are pnpm re-keying peer suffixes; a fresh install on main is a no-op, so this is the graph change re-keying, not pre-existing drift. Refs #2407 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Adopts kompiro/adr-tools#26, released as 0.0.11. Follows up #2396, which was the fix-up commit this change prevents from being needed again.
Summary
adr regenerateno longer writes aggregate ADR counts into the files it produces. Regenerating removes them.Why
A count is a property of the whole ADR set. Two PRs that each regenerate against their own base produce headers that are individually correct and wrong once merged — and git has no reason to flag it, because the per-ADR rows sit on separate lines and merge cleanly. The stale count only surfaced on
mainafterwards, as a drift-check failure (#2396).Removing the only global value is the change proportional to the failure; the per-ADR rows were never the problem. Alternatives were considered and rejected: regenerating post-merge needs a bot writing to
main, which this repo has deliberately avoided (ADR-1370), and a merge queue needs an organization-owned repository —kompiro/karasuis owned by a personal account.Changes
@kompiro/adr-tools^0.0.10→^0.0.11pnpm adr:regenerateoutput:effective.mdheader —303 of 312 ADRs are currently status: accepted…→Lists the ADRs that are status: accepted…graph.mdheader —312 ADRs across 15 topics. Clusters group by topic…→Clusters group by topic…graph.mdper-topic links —- [renderer](graph/renderer.md) — 70 ADRs→- [renderer](graph/renderer.md); the links themselves stayOn losing the numbers
Progress is tracked outside these files, so nothing is lost by not storing them. They remain available on demand —
pnpm exec adr extract effective | wc -lgives the effective count andpnpm adr:validatereports the total — andadr visualizestill prints a count, because that output is a query result rather than a versioned file.Verification
pnpm exec adr regenerate --check— all 17 generated files up to datepnpm adr:validate— 312 ADRs, no errorspnpm exec adr check-assumptions --quiet— 647 checked, 0 failingpnpm run test:scripts— 262 passedPreview URL
N/A — tooling and generated docs
Scope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
ADR validateworkflowTPL impact
Related Docs