Repository navigation
Description
docs/windows.md:16 states "10 _remember_forward_slash call sites in total". Measured on main at f8a99b7 just now:
$ grep -o '_remember_forward_slash "' scripts/doctor.sh scripts/run-consolidation.sh \
scripts/session-start-hook.sh scripts/lib-case-divergence.sh | wc -l
15
The number has drifted twice, and the drift is documented in its own history: a lane working on #524 counted 12 against origin/main before its own changes and deliberately left the "10" alone rather than compound a wrong base into a wrong new total (logged in trap.d/524.readme-call-site-count-stale.md, curated today). It now reads 15. So the prose has been wrong since at least #524, and is wronger now.
The lane's own hypothesis for the original gap: the two storage-mode [[ == ]] comparisons in doctor.sh each call _remember_forward_slash twice (once for REMEMBER_DIR, once for PROJECT_DIR), so whoever wrote "10" may have counted places rather than raw call occurrences. That is plausible but unverified, and it matters, because it decides whether the fix is a new number or a different counting convention.
Why this is a defect and not a nit
That paragraph is the reference a future lane reads before touching the $OSTYPE/backslash family on Windows -- the exact family that has now produced #487, #517, #519, #524, #525 and #526. A reader who trusts "10" and finds 15 has no way to tell whether five sites were added since, or whether five were always uncounted and might still be unfixed. The sentence's job is to let someone check coverage, and at a wrong number it cannot do that job.
What would settle it
Either of these, not both:
- Drop the absolute total and let the per-issue breakdown carry the story. The paragraph already enumerates which issue fixed which site; the sum adds nothing except something to go stale.
- Keep a total and guard it. A test asserting the stated number equals the live
grepcount -- the same shape astests/test_windows_skip_triage_497.py, which recomputes the live set and diffs it against the doc's own list rather than trusting a hardcoded count. Note that module is itself the subject of a related finding in this release's audit, where the table stays guarded while four prose numbers drift unguarded -- the identical failure, in a neighbouring file.
I lean on dropping the total: this is the second documented drift, and a number that nothing recomputes will drift a third time.
Not fixed in a lane today because the fix is a judgement about counting convention, not a mechanical edit, and the trap fragment explicitly deferred that judgement to curation rather than taking it mid-lane.
[AI-generated]
Activity
chore(jit-context): curate the nine waiting trap.d fragments (#581)
docs: drop the stale absolute call-site total from docs/windows.md (#587