Repository navigation
docs: document the rules each lexicon actually ships (#1312) - #1331
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #1325. Suppressing the duplicate generated
rulestable 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.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 (
buildSidebardeclines to linkruleswhen alint-rulesextraPage 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:
The gcp fix landed in the lexicon's codegen config, not its emitted page. My first attempt edited the
.mdxand 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