fix(cheatsheets): point 9 in-page anchors at the heading IDs the site generates #2780
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2780"
general
weight: 0.35
Adarsh-Me
What this changes
Six in-page anchors whose target heading exists but whose fragment no longer matches it.
Every one of these is broken on both surfaces, which is the reason the other candidates
were dropped (see the last section):
| file:line | was | now | why it was dead everywhere |
|---|---|---|---|
|
Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.md:52|…Cryptographic_Storage_Cheat_Sheet.html#rule---use-cryptographically-secure-pseudo-random-number-generators-csprng|#secure-random-number-generation| absolute.htmllink; the site hasid="secure-random-number-generation", and### Rule - Use cryptographically…is no longer a heading in that file ||
Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.md:344|…#use-of-custom-request-headers|#employing-custom-request-headers-for-ajaxapi| absolute.htmllink; the site has nouse-of-custom-request-headersid ||
Network_Segmentation_Cheat_Sheet.md:48,49,50|#FRONTEND,#MIDDLEWARE,#BACKEND|#frontend,#middleware,#backend| the headings are### FRONTENDetc. (:52,:63,:75); both GitHub and Python-Markdown slug them lower-case, so the upper-case fragments never resolve ||
NodeJS_Docker_Cheat_Sheet.md:276|…Docker_Security_Cheat_Sheet.html#rule-9-use-static-analysis-tools|#rule-9-integrate-container-scanning-tools-into-your-cicd-pipeline| absolute.htmllink; that rule was retitled to### RULE \#9 - Integrate container scanning tools into your CI/CD pipeline. The link text still says "Use static analysis tools" — I only moved the target and left the prose. If it belongs under#rule-13-enhance-supply-chain-security, say so. |Checked on this host
npm ci --ignore-scripts,python -m venv venv && pip install -r scripts/link_check/requirements.txt,LINK_CHECK_PYTHONpointed at the venv python, all oncb9fe01e5ddf:| command | before | after |
|---|---|---|
|
npm run link-check -- --local-only --fresh| rc=1, 12 blocking (11missing-anchor+ 1missing-file) | rc=1, 6 blocking (5missing-anchor+ 1missing-file) ||
npm run lint-markdown| rc=0 | rc=0 ||
npm run lint-terminology| rc=0 | rc=0 |md-link-check.yml:82runs the checker with--base "$PR_BASE_SHA", so only new occurrencesare blocking in PR mode. All 6 remaining findings are pre-existing on
master, none isintroduced here, and this branch removes 6 of the 12.
The 6 findings I am deliberately not touching, and why
Three of them are the
---cases:GraphQL_Cheat_Sheet.md:186,Server_Side_Request_Forgery_Prevention_Cheat_Sheet.md:292andWebhook_Security_Cheat_Sheet.md:122. My first version of this PR "fixed" those, and @mackowski correctly pointed out the link then stops working in the repo view. Measured, both of us were right, about different surfaces:### Case 2 - Application can send requests to ANY external IP address or domain namewith iduser-content-case-2---application-can-send-requests-to-any-external-ip-address-or-domain-name(three hyphens) — so the old fragment works there.id="case-2-application-can-send-requests-to-any-external-ip-address-or-domain-name"on that heading and rewrites the relative link to…Cheat_Sheet.html#case-2---application-…— so the old fragment is dead there.CONTRIBUTING.md:143says local anchors should follow the site's Python-Markdown ids, andnpm run link-checkagrees (it reports those three asmissing-anchor). Butmarkdownlint'sMD051 validates fragments with GitHub's slug, which is why
Docker_Security_Cheat_Sheet.md:52and
:358cannot be made site-correct withoutnpm run lint-markdownexiting 1:So the two checkers encode two different conventions and no fragment can satisfy both for a
heading whose title contains
-. Making that call belongs to the project, not to a linkfix, so this PR keeps only the anchors that are wrong under both rules. Happy to take the
---set in whichever direction you pick (relax MD051, retitle the headings so both slugscollapse, or declare the repo view authoritative and leave the site links as they are).
The sixth,
Secrets_Management_Cheat_Sheet.md:202, is amissing-file: the MultifactorAuthentication cheat sheet is not part of the published site, so retargeting it would change
what the sentence claims.
One limitation
npm run test:link-checkfails on this Windows host with an identical set of 41 failing testnames before and after this change, so it gave no signal. Narrowing it to one interpreter left
local anchors follow the site's Python-Markdown heading IDsfailing atcb9fe01e5ddftoo.Nothing here is introduced by this PR, but I cannot claim that suite passes. The evidence above
is the
link-checkCLI andmarkdownlint, run in both states.Scope and sourcing (required)
pr-scope-check.ymlenforces (my first version touched 6 and failed that check).target file, the id sets from
npm run link-check, andmarkdownlintoutput. Noremembered slug rule and no outside citation.
lint-markdownrc=0.CONTRIBUTING.md#markdownfollowed — only fragments changed.assets/— n/a. Images in PNG — n/a.[TEXT](URL).findings are all pre-existing under
--base. I will report the actual run.AI Tool Usage Disclosure (required for all PRs)
agentic coding environment, driven from this machine. I cannot give a model version: the
product does not surface the underlying model identifier to the session, so any string I
wrote would be invented — that is the honest answer to @copilot-pull-request-reviewer's
second finding rather than a withheld value.
Prompt used, verbatim: run this repo's own link checker, fix the
missing-anchorfindings whose target heading still exists, and stop at anything that needs a repo-level
decision.
The anchor ids quoted above are the output of
npm run link-checkand of the published pages,not of a slug rule recited from memory.