Skip to content

chore(deps): adopt adr-tools 0.0.12 and drop the per-topic ADR counts - #2416

Merged
kompiro merged 1 commit into
mainfrom
chore/adr-tools-0-0-12
Aug 9, 2026
Merged

kompiro merged 1 commit into
mainfrom
chore/adr-tools-0-0-12

Conversation

@kompiro

@kompiro kompiro commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Refs #2407

Summary

#2407 adopted adr-tools 0.0.11 to stop writing ADR counts into generated files. It only got three of the four. renderTopicMarkdown() still wrote N ADRs in this topic into every one of the 15 committed docs/adr/graph/*.md pages, so those kept drifting exactly as before.

It is not hypothetical: #2406 conflicted on docs/adr/graph/build.md with 71 / 70 / 72 ADRs in this topic — two branches regenerating against different bases, each locally correct, under 0.0.11.

Fixed upstream in kompiro/adr-tools#30, released as 0.0.12. This adopts it and regenerates.

Changes

  • package.json — @kompiro/adr-tools: ^0.0.11 → ^0.0.12
  • docs/adr/graph/*.md — 15 files, one line each: the count drops out of the header, leaving "Solid nodes belong to <topic>; gray dashed nodes are ghosts ..."
  • pnpm-lock.yaml — see below

About the lock diff

551 lines. Four transitive resolutions move, in addition to adr-tools itself:

Package Before After Reached via
shiki 4.2.0 4.4.1 @astrojs/[email protected], @expressive-code/[email protected]
picomatch 4.0.4 4.0.5 @astrojs/[email protected] / 0.10.2
@types/estree 1.0.8 1.0.9 estree-walker, @mdx-js/mdx, @rollup/pluginutils, and ~10 more
@babel/helper-validator-identifier 7.28.5 7.29.7 @babel/[email protected], @babel/[email protected]

All four are consumers switching to a version already present in the graph — a dedupe, not a fresh upgrade. Everything else in the diff is pnpm rewriting peer suffixes (([email protected]) and friends).

Only shiki has user-visible output: it is docs-site's syntax highlighter, and nothing in PR CI builds docs-site (pnpm build stops at cli; pages.yml fires on push to main), so a regression there would land post-merge. Verified by hand instead:

  • Built docs-site at this branch's merge base (ba971a8b) and at this branch, then diffed the two dist trees
  • Raw diff: 71 HTML files plus one CSS file. All of it is generated-identifier churn — astro's scoped-style class hashes (astro-imp3cvv2 → astro-j4iriv6c) and the matching asset content hash
  • After normalising those two identifier families away, all 71 HTML files and the CSS are byte-identical. The highlighting markup shiki emits does not change
  • The remaining asset difference is pagefind-entry.json, whose en / ja keys are emitted in the other order; hashes and page counts are equal
  • The build is deterministic within a tree (two consecutive builds of the same checkout produce identical dist), so the comparison above is measuring the dependency change and not build noise

Correction

An earlier revision of this description claimed "nothing moved version", based on comparing the set of name@version package keys. That method is structurally blind to this class of change: when a consumer switches to a version that already exists in the graph, the key set is unchanged or even shrinks, while the actual resolution moves. Caught in review. The table above comes from diffing the dependency edges inside the snapshots instead.

Why upstream got a test change too

The upstream bug was not "one file was forgotten" — it was that the assertions were per-file, so coverage depended on someone enumerating the outputs. 0.0.12 replaces them with a sweep over everything buildGeneratedFiles returns, with a length guard so it cannot pass vacuously. A new generated file is covered by default now.

Verification

  • pnpm adr:regenerate → no N ADRs string remains anywhere under docs/adr/
  • pnpm adr:validate — 315 ADRs, 0 errors
  • pnpm adr:check-assumptions — 649 OK, 0 failing
  • pnpm build (exit 0), pnpm test (9 suites, exit 0)
  • pnpm --filter @karasu-tools/docs-site run build (exit 0, 71 pages) — not run by CI on PRs, see above
  • pnpm changeset status --since=main — no packages to bump

Scope filter (new-feature PRs only)

  • N/A — not a new-feature PR

Dependency & license impact

  • N/A — no production dependency added or bumped across a major version

Manual Verification Checklist

  • docs-site renders correctly once deployed from main (the shiki move is not exercised by PR CI)

TPL impact

Disposition: N/A — tooling bump plus regenerated output.

Related Docs

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]>
@kompiro
kompiro merged commit b58a967 into main Aug 9, 2026
12 checks passed
@kompiro
kompiro deleted the chore/adr-tools-0-0-12 branch August 9, 2026 15:26

This branch was successfully deployed

1 active deployment
preview — 9e78d094 Deployed Aug 9, 2026 by github-actions[bot]
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