Fail CI when a removed name is still cited by a doc line the change left alone #86
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 325 lines diff across 4 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.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #86"
general
weight: 0.35
gjermundgaraba
From a run of the
correctskill. Of the three mistake classes it was pointed at, stale facts in docs was the one with enough history to prove a check against.What it checks.
.github/stale-doc-names.ts, run in CI'scheckjob against the PR's base: a name that the change removes from the code (taken from the base versions of the files it touches, with comments stripped) must not still be cited in backticks by a Markdown line the change left unchanged. Forms it reads: a bare name, a dotted chain or call, a--flag, a removed file, andOwner.member, where the member is no longer declared beside its owner. That last form is howHome.lookis caught, becauselookis still an ordinary word elsewhere in the code.Upgrading fromsections are skipped, since they name removed things on purpose. It runs in under 2 s.Proof against real past mistakes. I ran it at each of the last 300 non-merge commits on main against that commit's parent. It fails 8 of them:
| Commit | Stale lines it would have refused | Found by hand in |
| --- | --- | --- |
| 5c498fc6 | README
--manages| a61563b4 || ca9727bb | bump-tart
Home.look×2 | 73c39c26 (#71's review) || 2bd8cd1c | README
pauseMachine×2, design note ×2 | 7635ce53 || f0a010d7 | bump-smolvm
resumable×3, bump-tartdiscards| 7635ce53 || 7d710507 | bump-smolvm
pauseOrStop| 7e45086f || a6f5b9d6 | bump-smolvm
restoreRam×2 (andboot_id, a false positive) | 7635ce53 || 35782712 | bump-tart
suspendWait| 7635ce53 || 1b76c56e |
libkrun(a false positive) | — |That is 17 real stale lines and 2 false positives in 300 commits. Both false positives are vendor names the code had held only inside a string. Editing a flagged line clears it, which shows up in the diff.
It passes on the fixes themselves (73c39c26, 7635ce53), on the comment-only sweeps (5c18446f, c1dc7177) and on main. A rename of
versionCheckplanted on this branch fails it, citingAGENTS.md:255and the design note.What it misses. Facts stated in words with no backticked name, such as a "45-minute bound"; a name that now means something else; and names cited outside backticks. The
AGENTS.mdbullet says so.Other changes.
tsconfig.jsonnow includes.github/*.ts, so the script is type-checked and linted with Node's types.AGENTS.mdgains a table pairing each rule with what enforces it.Overlap with #85. #85 removes the append-only step a few lines above the new step in
ci.yml. The two touch different hunks.Not run locally: the full
vp run ready.vp checkpasses, and CI runs the rest.