Repository navigation
docs(adr): regenerate the ADR summary counts - #2396
Merged
Merged
Conversation
Two ADR PRs landed close together (#2393 and #2370). Each regenerated the derived files against its own base, so the entries merged cleanly but the summary counts at the top of effective.md and graph.md were computed from a main that was one ADR short. The drift guard on main caught it. Regenerating only moves the counts: 311 -> 312 ADRs, 302 -> 303 effective. Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 8, 2026
kompiro
added a commit
that referenced
this pull request
Aug 8, 2026
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]>
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
Unbreaks
main— theADR validateworkflow is failing on5e066b3c.Summary
pnpm exec adr regenerate --checkreportseffective.mdandgraph.mdas stale on main. The drift is two lines: the summary counts at the top of each file.Cause
#2393 and #2370 landed close together. Each regenerated the derived ADR files against its own base, so the per-ADR entries merged cleanly — both ADR-2393's and ADR-2330's rows are present — but the aggregate counts in the headers were each computed from a main that was one ADR short. Git had no reason to flag a conflict, and neither PR's CI could see it because each validated against its own base.
Changes
Nothing else moved:
pnpm exec adr regenerate --checknow reports all 17 generated files up to date, andpnpm adr:validatepasses on 312 ADRs.Preview URL
N/A — generated docs only
Scope filter (new-feature PRs only)
Dependency & license impact
Manual Verification Checklist
ADR validateworkflowTPL impact
Related Docs
pnpm adr:regenerate)