Skip to content

docs: drop the stale absolute call-site total from docs/windows.md - #587

Merged
fdaviddpt merged 2 commits into
mainfrom
fix/580
Sep 5, 2026
Merged

fdaviddpt merged 2 commits into
mainfrom
fix/580

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Closes #580.

docs/windows.md:16 stated "10 _remember_forward_slash call sites in total", but a live grep on main now counts 15 -- the second time this exact number has drifted stale (the first was #524). The issue deferred picking a fix between two options: guard the total with a test that recomputes it, or drop it and let the per-issue breakdown carry the story. Per the maintainer's decision for this lane, this PR takes the second option: nothing recomputes a hand-maintained absolute total, and this is the second time it has gone stale, so the sentence is removed entirely rather than given a third guarded-total mechanism. The existing per-issue breakdown (which issue fixed which call site) is untouched and now carries the story on its own.

What changed

Self-review. Two independently spawned reviewers (an Explore reviewer and oss:auditor) both flagged that my first version of the guard test used a fixed-word-order regex that would miss a re-drift phrased differently from the exact sentence being removed here (e.g. "a total of 15 call sites"). I fixed it in place: replaced the regex with a co-occurrence check (a digit near both "call site" and "total" within a small window), which is order- and phrasing-independent, and rewrote the test's docstring to state plainly what it still cannot catch rather than overclaiming completeness.

Tests

  • Red: AssertionError: docs/windows.md still states an absolute call-site total ... found '10 _remember_forward_slash call sites in total'
  • Green (final): 2 passed in 0.12s
  • Full suite not run locally; CI is the merge gate for the whole matrix per this repo's CLAUDE.md.

[AI-generated]

fdaviddpt and others added 2 commits September 5, 2026 23:50
)

The "10 `_remember_forward_slash` call sites in total" sentence had
drifted stale for the second time -- a live grep on main now counts
15 -- after the same drift already happened once (#524). The issue
deferred picking between two fixes: guard the total with a recomputing
test, or drop it and let the per-issue breakdown carry the story. The
maintainer chose the latter, since nothing recomputes a hand-maintained
total and this is the second time it has gone stale.

Adds tests/test_windows_doc_no_stale_total_580.py, which asserts the
doc contains no sentence of that shape (paired with a positive-control
fixture per this repos CLAUDE.md), and a changelog.d fragment.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
Both spawned reviewers on #580s self-review independently flagged the
same gap: the first version of tests/test_windows_doc_no_stale_total_580.py
matched only the exact word order "N ... call sites in total", so a
re-drift phrased as "a total of N call sites" or "N total call sites"
would sail past it while the test kept reporting green -- the exact
false confidence #580 exists to remove.

Replaces the fixed-order regex with a co-occurrence check: for every
digit run in the doc, whether "call site" and "total" both occur within
a small whitespace-normalized window around it. Order- and
phrasing-independent rather than one more literal string to keep in
sync, and the docstring says plainly what it still cannot catch rather
than repeating the first versions overclaim. Positive control now
covers five phrasings instead of one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bv6BGZD2EdZ9EuJ7tPDTb7
@fdaviddpt
fdaviddpt merged commit b810ca5 into main Sep 5, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the fix/580 branch September 5, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs/windows.md claims 10 _remember_forward_slash call sites; there are 15

1 participant