Repository navigation
Commit 1708115
<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ83E4C5pqznRerdLyMs7ArET)_
Fixes #26611
## What changes
Two code comments, no code.
1. `scripts/doc-line-anchors.mjs`, header section "Today, since #15921":
it said the `line-anchors` comparator is "selected by that page's
`mixed` field" and that the census `--fix` "regenerates only the page's
declared counts". It now says the comparator is the one a
`REGEN_ARTIFACTS` row *would* select with `mixed: 'line-anchors'`, that
no row carries `mixed` since the page left the driver at #22927, and
that `check-system-context-census.mjs --fix` is retired (exit 2, names
`--write`, which rebuilds the #26442 site register and touches no
anchor).
2. `scripts/regen-artifacts.mjs`, `NOT_DRIVER_MANAGED` entry
`docs/audits/**`: it called the strictness counts "The ONE exception".
It now names both generated-whole files under `docs/audits/`: the
strictness ledger's `.counts/` shards (routed, the row above; the old
text's `.counts.md` spelling predates their sharding) and
`2026-08-tenant-audit-write-call-sites.counts.md` (not routed), with the
reason.
## Why
Item 2 asked for a decision: route the tenant-audit `.counts.md` like
the strictness one, or record why not. **Not routed, recorded.** A
`REGEN_ARTIFACTS` row needs a `gen:`/`check:` pair in the manifest it
names as owner, and no manifest declares one for this census (it runs
straight from `lint.yml`, step `tenant-audit-census-matches-the-tree`);
the driver runs only in a local merge, never in GitHub's server-side
merge or the queue's; and `check-tenant-audit-census.mjs` already holds
the file to its `--write` output on every PR, so a clean-and-wrong text
merge is red, never silent. That is the reasoning the file's own
generated header (`renderCountsFile` in
`scripts/tenant-audit-census.mjs`) already prints; the ledger entry now
agrees with it instead of contradicting it. Routing would be a manifest
+ `.gitattributes` + row change with the regen gate in the PR, which is
a separate, larger card if anyone wants it.
## Verification
- `node scripts/pm/dispatch-gates.mjs --commands
scripts/doc-line-anchors.mjs scripts/regen-artifacts.mjs` derived 35
commands. 31 exit 0, plus `node scripts/git-merge-regen.mjs --self-test`
(exit 0) and `node --check` on both files (exit 0).
- 4 derived gates exit 3 (PREREQUISITE NOT MET, no `dist/` in this
container): `check:dts-closure`, `check:dual-build-cjs-loads`,
`check:lean-entry-closure`, `check:sourcemap-no-sources-content`. They
read built package output, which comment edits in two root `scripts/`
files cannot change; CI runs them after its build.
- `skip-changeset`: both files are root tooling and publish from no
released package.
Clause-②: no
Metadata-protocol: none
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind. (no names
added)
- [ ] 3. No formatter ran; `pnpm lint` passes. (no formatter ran; `pnpm
lint` not run locally, CI's lint job is the verdict)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (publishes
nothing: `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01JQwxbXz4CLkqrp9ANVLuPH
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 247a088 commit 1708115
2 files changed
Lines changed: 23 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
874 | 881 | | |
875 | 882 | | |
876 | 883 | | |
| |||
0 commit comments