Skip to content

Delete docs/windows-skip-triage.md's hand-maintained prose counts (#613) - #615

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/613
Sep 7, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
fix/613

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Fixes #613.

What

docs/windows-skip-triage.md restated four of its own table's counts as
hand-maintained prose (the total module count, three times, plus the
convertible/not-convertible/unclear verdict counts, once each) right
next to a table that already carries all four as structured, countable
data. A reactive consistency test
(tests/test_windows_skip_triage_prose_totals_595.py) checked the two
against each other and still let the numbers drift out of sync three times
in quick succession (#595, #596, and a follow-up commit on #611) -- every
time because a PR adding one new table row was reviewed and merged green
against its own stale base, before a sibling PR's prose-sync fix had
landed. A same-PR test structurally cannot see a drift introduced by a
different, concurrently-developed PR's base.

Why deletion, not a generator

The issue named two options: generate the prose from the table, or delete
the redundant prose numbers. I chose deletion. A generator still needs
someone to remember to run it when a table row changes -- the exact
discipline gap that produced all three drifts for the hand-written
numbers. It would also need its own CI --check leg to catch a forgotten
invocation, which just relocates the reactive backstop rather than
removing it. Deleting removes the state entirely: the table becomes the
only place any of these four counts live, so there is nothing left for a
PR, however based, to leave out of sync.

What changed

  • docs/windows-skip-triage.md: the six hardcoded-count fragments are
    removed from the heading, the "finds N modules" sentence, the three
    verdict bullets, and the "bulk of these N reasons" sentence. A new
    paragraph explains the removal and points at the new guard test.
  • tests/test_windows_skip_triage_prose_totals_595.py is deleted -- its
    whole premise (checking a hand-written number against the table) no
    longer applies once the numbers are gone.
  • tests/test_windows_skip_triage_no_stale_prose_counts_613.py is added:
    asserts the doc's prose never again matches any of the six patterns that
    would indicate a hardcoded count crept back in, with positive controls
    proving the detector still fires on reconstructed instances of the
    original docs/windows-skip-triage.md states 98 modules / 78 unclear; the live set is 101 / 81, and the new stale-total guard reads only the sibling doc #595 sentences (so this cannot pass merely because the patterns
    stopped matching anything at all).
  • Comments in scripts/windows_skip_triage_497.py and
    tests/test_windows_skip_triage_497.py that referenced the now-deleted
    test file are updated to explain why it is gone.
  • changelog.d/613.fixed.md added.

TDD

Wrote the new test first and ran it before touching the doc: 1 failed (the
negative assertion, since the doc still had all six stale patterns), 2
passed (the positive controls, proving the detector works before the fix
existed). After removing the numbers from the doc, re-ran: 3 passed.

AssertionError: docs/windows-skip-triage.md restates a table count as hand-maintained
prose again ...: ## The count: \d+; finds \*\*\d+\*\* modules on this tree; supply on a
Windows runner via Git Bash\. \d+ modules\.; path-format incompatibility\. \d+ modules\.;
not that read\. \d+ modules\.; bulk of these \d+ reasons
1 failed, 2 passed in 0.31s

(after the doc edit)
3 passed in 0.08s

Also ran the full windows-skip-triage test group
(test_windows_skip_triage_497.py,
test_windows_skip_triage_no_stale_prose_counts_613.py,
test_report_windows_skip_floor_507.py): 17 passed. Did not run the
repo's whole test_command -- CI is the merge gate for that (per
CLAUDE.md's own note on this).

Self-review

Two independent reviewers (Explore and oss:auditor) ran against the
committed diff, both FINDINGS: 0, classified no-findings by
scripts/review_return.py. A tree snapshot taken before both spawns and
compared after confirms clean -- the tree's status and HEAD are unchanged.
Full transcripts are in the run's note file
(notes/fix-613-20260907T010607Z.md), not repeated here.

Docs / diagnostic

docs_targets (README.md) does not mention this doc or its counts --
no-change-needed. No repo-specific diagnostic references this convention
(checked .claude/jit-context/tools/00-manual/win32-skip-triage-entry.md
and CONTRIBUTING.md; both only require adding a table row in the same
commit, never a prose-count sync step, so nothing there implied a
hand-sync duty that needed removing).

Below-bar note

No below-bar findings from either reviewer or my own reading; nothing to
anchor here.

🤖 Generated with Claude Code

[AI-generated]

The doc restated four of its own table's counts (total module count, three
times; convertible/not-convertible/unclear verdict counts, once each) as
free prose next to the table that already carries them as structured data.
A reactive test (#595) caught a mismatch after the fact, but the numbers
still drifted three times in quick succession (#595, #596, a follow-up on
#611) -- each time because a PR adding one table row was reviewed and
merged green against its own stale base, before a sibling PR's prose fix
had landed. A same-PR test cannot see a drift introduced by a different
PR's base.

This removes the class rather than the next instance: the prose numbers are
deleted, so the table is the only place any of these counts live and there
is nothing left for a PR to leave out of sync. The old reactive test
(tests/test_windows_skip_triage_prose_totals_595.py) is replaced by
tests/test_windows_skip_triage_no_stale_prose_counts_613.py, which guards
against one of these numbers creeping back into the prose by hand, with a
positive control proving the detector still fires on #595's own original
sentences.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
@fdaviddpt
fdaviddpt merged commit 53965a5 into main Sep 7, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the fix/613 branch September 7, 2026 01:24
fdaviddpt added a commit that referenced this pull request Sep 7, 2026
…622) (#623)

#617: the changelog.d/595.fixed.md fragment this issue named was already
folded into CHANGELOG.md and deleted by PR #605's release (0.29.1, cut
today). Verified with the two greps the issue itself suggests: no numeric
prose totals remain in docs/windows-skip-triage.md, and
tests/test_windows_skip_triage_prose_totals_595.py does not exist -- both
removed three commits later, in the same release, by #613 (PR #615). There
is nothing left under changelog.d/ to amend, so this adds a new fragment
(changelog.d/617.fixed.md) documenting the correction instead of hand-editing
the already-released CHANGELOG.md entry: read the #595 entry as history of
what PR #605 did, and the #613 entry a little further down the same release
section as the current description.

#622: _gh_unlabelled_issue_counts in .oss/statusline.py joined each issue's
label names with "," in a gh api --jq call and split the line back apart in
Python. A GitHub label name may legally contain a comma, so a label like
"blocked,lane-storage" split into two names, one of which could collide with
a real declared lane -- undercounting no_lane/no_priority, the opposite of
this function's documented convention. Switched the wire format to one JSON
array of label names per line (tojson server-side, json.loads in Python), a
delimiter no label name can contain. .oss/statusline.py had zero test
coverage before this change; added a first, narrow test file covering this
one function by stubbing _run, rather than broader module coverage -- the
smallest fix proportionate to what was reported. TDD: both tests written and
shown red against the old comma-joined format before the fix, green after.


Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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-skip-triage.md's prose totals keep drifting from its own table -- recurring pattern, not a one-off (see #612)

1 participant