Skip to content

docs: document the rules each lexicon actually ships (#1312) - #1331

Merged
lex00 merged 1 commit into
mainfrom
docs/lexicon-rule-coverage
Aug 2, 2026
Merged

lex00 merged 1 commit into
mainfrom
docs/lexicon-rule-coverage

Conversation

@lex00

@lex00 lex00 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Follows #1325. Suppressing the duplicate generated rules table there made each lexicon's hand-written page the only rules documentation it has, so its coverage now matters in a way it did not before. Checking every documented rule id against the ids the source registers turned up three lexicons short.

Lexicon Documented before Registered Missing
gcp 20 26 WGC111/112/113, WGC401/402/403
helm 23 25 WHM004, WHM005
aws 26 50 the whole WAW032+ hardening pass

gcp and helm are straightforward — the missing entries are added, and both pages are now complete against source.

aws gets a different fix. Those 24 rules are already documented on the main site's audit rules reference, so copying their descriptions into the lexicon page would have created a third copy to drift — the disease this issue is about. Instead aws stops suppressing its generated table, which is complete by construction, links to it from the prose page, and gives it an explicit sidebar entry (buildSidebar declines to link rules when a lint-rules extraPage exists, so it needs one). That is the overview-plus-reference pairing temporal already uses, and it leaves the prose page free to explain the common rules in depth without owning the full list.

Corrected while verifying:

  • gcp's skills page claimed 17 post-synth checks against 23.
  • The completeness checklist's reference implementations were stale on every count they gave: k8s at 20 post-synth checks and 3 skills against 29 and 9, azure at 3 skills and 11 doc pages against 4 and 14.
  • The k8s "3 initTemplates" claim is dropped rather than restated. The plugin exposes a default set and one named variant, so the number was wrong — and tier 2 asks for 3, which makes quietly writing "2" there a claim worth someone looking at rather than something to paper over.

The gcp fix landed in the lexicon's codegen config, not its emitted page. My first attempt edited the .mdx and the next regen ate it — the provenance marker added in #1325 is what caught that, on me, within a minute.

Verification: all twelve lexicons regenerate with zero unreachable-page warnings, all twelve pass the tier-1 contract check, aws now documents 50/50 rules across its two pages, 553 tests pass, main docs site builds at 149 pages.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ

Suppressing the duplicate generated `rules` table made each lexicon's
hand-written page the only rules documentation it has, so its coverage now
matters in a way it did not before. Checking every documented rule id against
the ids the source registers turned up three lexicons short.

gcp was missing six — WGC111/112/113 (correctness) and WGC401/402/403 (spec
schema validation) — and helm two, WHM004 and WHM005. Both pages are now
complete against their source.

aws is the larger gap and gets a different fix. Its prose page explains 26 of
the lexicon's 50 rules; the entire WAW032+ security-hardening pass had no entry
there. Those rules are already documented on the main site's audit-rules
reference, so copying 24 descriptions into the lexicon page would have created
a third copy to drift — the disease this issue is about. Instead aws stops
suppressing its generated table, which is complete by construction, links to it
from the prose page, and gives it an explicit sidebar entry (buildSidebar
declines to link `rules` when a `lint-rules` extraPage exists). Same
overview-plus-reference pairing temporal already uses.

Also corrected while verifying: gcp's skills page claimed 17 post-synth checks
against 23, and the completeness checklist's reference implementations were
stale on every count it gave — k8s at 20 post-synth checks and 3 skills against
29 and 9, azure at 3 skills and 11 doc pages against 4 and 14. The k8s
"3 initTemplates" claim is dropped rather than restated: the plugin exposes a
default set and one named variant, so the number was wrong and tier 2 wants 3.

The gcp fix landed in the lexicon's codegen config, not its emitted page — the
provenance marker added earlier is what caught the first attempt being
overwritten by the next regen.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ
@lex00
lex00 merged commit a523e2c into main Aug 2, 2026
6 checks passed
@lex00
lex00 deleted the docs/lexicon-rule-coverage branch August 3, 2026 19:21
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