← Back to Pull requests

Fail CI when a removed name is still cited by a doc line the change left alone #86

Closed
unknown closed this pull request without merging on Nov 25, 2026 21:57 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 20:04 UTC
Author

From a run of the correct skill. 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's check job 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, and Owner.member, where the member is no longer declared beside its owner. That last form is how Home.look is caught, because look is still an ordinary word elsewhere in the code. Upgrading from sections 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-tart discards | 7635ce53 |
| 7d710507 | bump-smolvm pauseOrStop | 7e45086f |
| a6f5b9d6 | bump-smolvm restoreRam ×2 (and boot_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 versionCheck planted on this branch fails it, citing AGENTS.md:255 and 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.md bullet says so.

Other changes. tsconfig.json now includes .github/*.ts, so the script is type-checked and linted with Node's types. AGENTS.md gains 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 check passes, and CI runs the rest.

Diff: 325 lines (+243 / -82) across 4 files Reviewer: gjermundgaraba Review duration: 112m
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
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42% (MEDIUM) · Higher = larger blast radius
42%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.6% · Safe to merge
16.6%