You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
fix(gates): scan the published catalog's references/ in role-word and corpus-claim-drift (#15073)
* fix(gates): scan the published catalog's references/ in role-word and corpus-claim-drift
Both gates walk ['content/docs', 'skills'] and carried `references` in a
directory-NAME skip set. The reason for that entry — the spec source is the
fix site for generated pages, so a finding in one names the wrong file — is
true of `content/docs/references/` and of nothing under `skills/`, where the
same directory name holds published catalog content: two hand-authored
companions that ship verbatim to third-party projects via `npx skills add`,
plus ten generator-owned index pages whose fix site is their generator.
A name cannot say which tree it means, so the correct exclusion for one root
was applied to the other and hid 12 of the 46 markdown files under `skills/`
(26%). Both gates ran, passed, and reported nothing about the files they
never opened.
The exclusion moves from SKIP_DIRS to a new SKIP_SUBTREES set matched by path
under the roots, so it names the generated tree it was always about. SKIP_DIRS
keeps only the installed-or-generated names (node_modules, .git, dist). No
carve-out follows for the generator-owned pages under `skills/` — that is the
refusal check-doc-authoring.mjs already records beside those same files.
Each self-test pins the population FROM THE WALK, in both directions: the walk
reaches the published reference pages under `skills/`, reaches nothing under
`content/docs/references/`, reaches more than those pages, every SKIP_DIRS
entry is declared installed-or-generated, and every SKIP_SUBTREES entry lies
under a configured root and exists. Never a typed file count — a count cannot
state "the scan reaches no reference page at all".
Populations, per each gate's own verdict line:
check-role-word 224 -> 236 (content/docs 190 -> 190, skills 34 -> 46)
check-corpus-claim-drift 224 -> 236 (content/docs 190 -> 190, skills 34 -> 46)
check-corpus-claim-drift stays GREEN: none of the four VOCABULARY spellings
occurs in the 12 newly visible files, so its baseline does not move.
check-role-word goes RED on skills/objectstack-data/references/data-hooks.md
(12 occurrences of the reserved word). That page is a hand-authored companion
and is deliberately NOT edited here, and the baseline path is marked
MAINTAINER-ONLY by the gate itself. The red is the dormant coverage becoming
visible; the remedy is the maintainer's call.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
* chore(role-word): baseline the quoted-history residue in data-hooks.md
The maintainer authorised the MAINTAINER-ONLY `--update` for this page's
residue and for this PR only, after PR #15186 rewrote the page into
ADR-0090 D3 vocabulary and left 3 occurrences that cannot be reworded
without falsifying what they document.
Both are quoted pre-rename history — D3's own named legitimate KIND:
line 350 **No role list** - `session.roles` was retired in 17.0.0: it
was declared but never produced, so every read was undefined
line 837 Never gate this on a session claim: ctx.session?.roles?.…
Naming the retired identifier is the sentence's entire content; renaming
it makes the sentence false.
`--update` rewrites the whole baseline from the current tree, so the
result was inspected key by key rather than skimmed. Exactly one entry
was added and nothing else moved:
entries 43 -> 44, occurrences 120 -> 123 (delta 3)
ADDED skills/objectstack-data/references/data-hooks.md: 3
REMOVED (none)
CHANGED (none)
check-role-word: green, 236 files across 2 roots, ledger 44 file(s) /
123 occurrence(s). check-corpus-claim-drift: green, ledger unchanged at
2 file(s). Both population pins hold: 236 walked, 12 published reference
pages, 0 under the generated content/docs/references/ tree.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
---------
Co-authored-by: os-steve <steve@objectstack.ai>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
0 commit comments