Repository navigation
Conversation
The doc's table (guarded against the live tree by tests/test_windows_skip_triage_497.py) grew to 102 modules / 82 unclear across #589/#591, but four prose sentences next to it still said 98/78 -- nothing recomputed them. Update the prose to 102/82 and add tests/test_windows_skip_triage_prose_totals_595.py, which ties each of those sentences to the table's own row count rather than to another hardcoded number. Co-Authored-By: Max <noreply>
Reviewer flagged that the doc separately states "8 modules" (convertible) and "12 modules" (not-convertible) right next to the same table, left uncovered by the first version of the guard -- the identical staleness risk, half-fixed. Add both patterns. Auditor flagged that the guard's row-parsing regex was an independent second copy of tests/test_windows_skip_triage_497.py's own row regex, with nothing tying the two together. Factor both into a shared scripts.windows_skip_triage_497.parse_doc_table_rows helper. Co-Authored-By: Max <noreply>
Add the missing positive-control tests for the not-convertible and unclear prose patterns -- the prior commit's message claimed both new counts (convertible, not-convertible) got a dedicated fire-test, but only convertible did; unclear had none from the first commit either. All four prose patterns now have one. Reformat the noqa-suppressed import in tests/test_windows_skip_triage_497.py into ruff's own multi-line form instead of silencing the rule -- the rule turned out not to be enforced by any CI workflow here, but suppressing an inert check is still worse than not needing to. Co-Authored-By: Max <noreply>
fdaviddpt
added a commit
that referenced
this pull request
Sep 7, 2026
…ne row further by #610 CI on PR #611 (windows-latest, py3.11) failed in tests/test_windows_skip_triage_prose_totals_595.py: this PR's own new row (tests/test_post_tool_dry_flag_injection_610.py) grew the table to 104 rows / 84 unclear, but four prose sentences elsewhere in the doc still cited the pre-existing stale totals (102 / 82) -- a pre-existing drift already filed as #612 (two earlier PRs, #605 and #606, each merged green against their own base and left the prose one row further behind), which this PR's own table addition made one row worse and is why the failure surfaced specifically on this branch. Re-derived the correct totals directly from the table itself (104 total rows, 84 unclear, 8 convertible, 12 not-convertible -- the latter two already matched) rather than trusting any externally-reported numbers, and updated all four prose citations: "## The count: 104, not 107", "finds **104** modules", "not that read. 84 modules.", "bulk of these 104 reasons". Confirmed against the live table rather than assumed. tests/test_windows_skip_triage_prose_totals_595.py: 3 failed, 2 passed before this fix (confirmed locally); 7 passed (that module plus its sibling table-diff guard, test_windows_skip_triage_497.py) after. This also resolves the concern #612 was filed for -- the prose now matches the table exactly, with no residual drift. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
fdaviddpt
added a commit
that referenced
this pull request
Sep 7, 2026
…611) * Reject a leading dash in post-tool-hook.sh's session_id guard (#610) STDIN_SESSION_ID reaches save-session.sh's argv on the background nohup save path (`nohup "$SAVE_SCRIPT" "$SESSION_ID" ... &`), and that script's own arg loop reads a leading-dash value as a FLAG rather than a positional session id -- the character class this guard applied (`[!A-Za-z0-9._-]`) already allowed a leading dash, so a session_id shaped exactly like "--dry", paired with a real transcript_path, passed through untouched and was trusted by the STDIN_SESSION_ID_TRUSTED branch (which verifies only that a transcript_path was supplied, not that this id actually names it -- an established #468 trust decision this fix does not revisit). save-session.sh's own auto-detect fallback then correctly identified the real session from the transcript_path, but with DRY_RUN silently true: no summary written, no position advanced, log line reads like an ordinary run. Third call site in this class, after #576 (agy-stop-hook.sh) and #600 (session-end-hook.sh). A new end-to-end fixture drives the real post-tool-hook.sh and reaps the forked save-session.sh, pinned red against the unpatched guard (the "=== DRY RUN ===" banner reaching the autonomous log for a crafted session_id) and green after, with a positive control proving an ordinary session_id still produces a genuine save. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c * Fix stale line numbers and #600 merge-status overclaim in the #610 fix Self-review (Explore) caught the new test's docstrings/messages citing pre-comment-insertion line numbers for post-tool-hook.sh (off by +15, the exact width of the #610 rationale comment this same commit inserted). Corrected to the actual committed line numbers: the guard case statement at 419-421 (was cited 404-406), STDIN_SESSION_ID_TRUSTED at 564-576 (was 549-557), and the nohup dispatch at 908 (was 893). Audit (oss:auditor) caught a second, more substantive overclaim: the original commit message, changelog fragment and test docstring described #576 and #600 as both "already closed" siblings. #576 (agy-stop-hook.sh) is merged into this branch's history; #600 (session-end-hook.sh, PR #609) is not -- `git merge-base --is-ancestor 511e3d3 HEAD` fails, and #609 is still open. session-end-hook.sh in this tree still carries the pre-#600 vulnerable pattern; that is a fact about an unmerged sibling PR, not something this commit introduces or is responsible for fixing, but this commit's own prose should not have implied it was already fixed. Both are documentation-only corrections: the guard fix and its test's assertions are unchanged and still pass (2 passed). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c * Fix docs/windows-skip-triage.md prose-vs-table drift (#612), pushed one row further by #610 CI on PR #611 (windows-latest, py3.11) failed in tests/test_windows_skip_triage_prose_totals_595.py: this PR's own new row (tests/test_post_tool_dry_flag_injection_610.py) grew the table to 104 rows / 84 unclear, but four prose sentences elsewhere in the doc still cited the pre-existing stale totals (102 / 82) -- a pre-existing drift already filed as #612 (two earlier PRs, #605 and #606, each merged green against their own base and left the prose one row further behind), which this PR's own table addition made one row worse and is why the failure surfaced specifically on this branch. Re-derived the correct totals directly from the table itself (104 total rows, 84 unclear, 8 convertible, 12 not-convertible -- the latter two already matched) rather than trusting any externally-reported numbers, and updated all four prose citations: "## The count: 104, not 107", "finds **104** modules", "not that read. 84 modules.", "bulk of these 104 reasons". Confirmed against the live table rather than assumed. tests/test_windows_skip_triage_prose_totals_595.py: 3 failed, 2 passed before this fix (confirmed locally); 7 passed (that module plus its sibling table-diff guard, test_windows_skip_triage_497.py) after. This also resolves the concern #612 was filed for -- the prose now matches the table exactly, with no residual drift. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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]>
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.
What
docs/windows-skip-triage.md's table (guarded against the live tree by
tests/test_windows_skip_triage_497.py) grew to 102 modules / 82 unclear across
#589/#591, but four prose sentences next to the table still said 98/78 --
nothing recomputed them when the table grew.
Contents
sentence to the table's own row count rather than to another hardcoded
number -- so a future table change cannot leave the prose stale again.
"8 modules" (convertible) / "12 modules" (not-convertible) mentions next to
the same table -- the identical staleness risk, left half-fixed by the
first version. Factor the row-parsing regex, previously duplicated between
the guard and tests/test_windows_skip_triage_497.py, into a shared
scripts.windows_skip_triage_497.parse_doc_table_rows helper.
and unclear prose patterns, alongside the existing must-not-fire cases.
into ruff's own multi-line form instead of silencing the rule.
Verification
and pass green against the fix (self-review: Explore + oss:auditor per the
commit history).
Changelog
changelog.d/595.fixed.md added.
Closes #595
This PR was assembled by a maintainer tick from three already-committed and
pushed commits (a developer lane dispatched in a prior tick whose handback
never opened the pull request) -- the commit messages above are that
developer's own record of the work and its self-review.
🤖 Generated with Claude Code
https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
[AI-generated]