Repository navigation
Conversation
) 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #580.
docs/windows.md:16 stated "10
_remember_forward_slashcall 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
docs/windows.md: removed the "10 ... call sites in total across ..." clause from the After #483's fix, logs/autonomous/session-end-*.log is never reclaimed: the -empty sweep was that directory's only retention #487/Bash's glob never splits on backslash: 7 more REMEMBER_DIR sweeps/checks silently miss on Windows (same class as #487) #517 sentence, replaced with a short parenthetical noting the total was dropped because it drifted twice (pointing at scripts/doctor.sh:467-469 globs REMEMBER_DIR raw, misreporting SessionEnd as never-fired on msys/Git Bash #524).tests/test_windows_doc_no_stale_total_580.py: new test, written first and watched fail red against the un-edited doc, asserting the doc states no absolute call-site total.changelog.d/580.fixed.md: new fragment.Self-review. Two independently spawned reviewers (an
Explorereviewer andoss: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
AssertionError: docs/windows.md still states an absolute call-site total ... found '10_remember_forward_slashcall sites in total'2 passed in 0.12s[AI-generated]