Repository navigation
Commit 01b29d9
authored
ci: pin the locale composition of llms.txt and llms-full.txt (#202)
Fixes #184
The same missing-language-argument defect reached three generated artifacts —
sitemap.ts (#169), llms.txt (#170), llms-full.txt (#177) — and every one was
green on every gate for its whole lifetime. #175 pinned the sitemap; this
extends the same harness to the other two.
The llms bodies never emit a page's own URL, so the sitemap's URL-set
comparison cannot be reused. ARTIFACTS entries now name a comparison
vocabulary: BY_URL for the sitemap, BY_LOCALE_EXCLUSIVE_TITLE for the llms
bodies. Every en-exclusive page title must be present and none from the other
six locales may be.
Only locale-exclusive titles are compared. Three pairs of English pages share a
title today, and any page growing an # heading would read as an extra page —
both would go red on a content PR that broke nothing, and a gate that cries
wolf on content growth gets deleted. Titles are read structurally (link text,
and # headings outside code fences) rather than by substring search, which
produces four false hits on the current tree.
Both entries assert composition, never sequence: llms-full.txt's page order was
non-deterministic across builds until #196 changed it on purpose.
Three new rules, each with a fixture: unexpected-locale-title,
missing-locale-title, and nothing-expected — the last closing the hole the
universe restriction opens, where a tree with no locale-exclusive title would
pass having compared nothing. The self-test now also asserts per artifact that
each one has been driven red on its own content, excluding artifact-missing so
a new entry cannot satisfy coverage without its reader ever running.
Ablations: restoring the pre-#170 bare getPages() blob turns the gate red with
199 findings and moves the built body; getPages('ja') fires 31 unexpected and
23 missing (23 because 37 English pages have no Japanese translation and still
fall back). The pre-change script re-run against the same build prints the
identical sitemap row, so this extends the harness rather than reshaping it.1 parent 1ebd7b7 commit 01b29d9
1 file changed
Lines changed: 554 additions & 54 deletions
0 commit comments