Repository navigation
Merged
Conversation
…622) #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. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
fdaviddpt
added a commit
to Digital-Process-Tools/claude-oss
that referenced
this pull request
Sep 7, 2026
…ma-name undercount (#1181, #1226) (#1283) * fix: consolidate lane-other's four disagreeing readers, close the comma-name undercount (#1181, #1226) `_gh_unlabelled_issue_counts` in scripts/statusline.py built one line per open issue as "L:" + join(",") over label names and split it back apart in Python -- a label name containing a literal comma split into two names, one of which could coincidentally match a real declared lane, silently undercounting no_lane/no_priority. The wire format is now one JSON array of label names per line (tojson server-side, json.loads client-side), ported from the identical fix already reviewed in Digital-Process-Tools/claude-remember#623 (#1226). labels.lane_other (#1130) had four independent readers disagreeing on whether a declared spelling counts as "this issue is triaged into a lane": oss_config.classify_labels's prefix regex read it as a lane, doctor.py inherited that, statusline.py's exact-membership test excluded it (so a correctly lane-other-tagged issue rendered as untriaged in the status line's nl count forever, and the count could never be driven to zero by triaging correctly), and select_issues.py treated it as a real, dispatchable sixth lane on its own. oss_config.effective_lane_labels is now the one place a caller holding a loaded config derives the answer (labels.lanes plus labels.lane_other when declared); statusline.py (vendored standalone, cannot import oss_config) mirrors the same result locally, and select_issues.py now calls the shared helper instead of re-deriving it a fourth way. doctor.py gains a new check (scripts/doctor_check_lane_other_label.py, per the per-check module convention) reporting whether a declared labels.lane_other spelling actually exists as a label on the forge, in the same declared-and-present / declared-and-absent / not-declared / could-not-tell shape labels.filed_by_loop's own check already has -- nothing checked that before, so a declared spelling with no matching label made select_issues.py find zero lane-other candidates forever, indistinguishable from a lane that fills correctly and simply has none today (#1181). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VcWCnjquYw5WYq8xPBewqc * fix: filter non-string labels.lanes entries in statusline's vendored lane_labels copy (#1181 self-review) Self-review finding from the Explore reviewer spawn: statusline.py's refresh() claimed to be "a vendored copy of oss_config.effective_lane_ labels's own logic", but effective_lane_labels filters labels.lanes down to string entries before appending lane_other while this copy only type-checked the list itself, not its elements. oss_config.validate checks labels.lanes is a list but never that every element is a string, so a malformed config (e.g. a stray integer) could carry a non-string entry through validation and produce divergent "is this a lane" answers between statusline.py (which would keep it, later stringified by _gh_unlabelled_issue_counts) and select_issues.py/effective_lane_labels (which drops it) -- reopening the exact "readers disagree" defect #1181 fixed. Closed by filtering to string entries here too, with a red/green test proving the divergence and the fix. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VcWCnjquYw5WYq8xPBewqc * fix: baseline the ruff_ratchet F401 for doctor_check_lane_other_label.lane_other_label_state (#1181 CI fix) CI's lint leg failed on PR #1283: `scripts/doctor.py` imports `lane_other_label_state` from `doctor_check_lane_other_label` but never calls it directly. This is not a real defect -- it is the same deliberate, already-established pattern every sibling `*_state` function in doctor.py's per-check modules follows (branch_protection_state, clone_head_state, codeql_scan_state, and ~15 others already sit in scripts/ruff_ratchet_baseline.txt for the identical reason): the import makes the function reachable as doctor.lane_other_label_state so tests can `monkeypatch.setattr(doctor, ...)` and call it that way -- tests/test_doctor_lane_other_label_1181.py::test_lane_other_label_state_four_states_directly does exactly that, matching e.g. tests/test_doctor_branch_protection_759.py's own doctor.branch_protection_state(...) calls for the sibling check. Confirmed nothing calls it inside main() either, the same as every other sibling *_state function -- only its check_* wrapper is wired into main(). Regenerated via `python3 scripts/ruff_ratchet.py --write-baseline`, per that script's own documented rule for a deliberate, argued addition -- the diff is the single expected line, in sorted position, and a re-run reports "OK: 98 finding(s), none new against the baseline snapshot." Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VcWCnjquYw5WYq8xPBewqc --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
fdaviddpt
added a commit
to Digital-Process-Tools/claude-supertool
that referenced
this pull request
Sep 9, 2026
…2490) `gh pr diff N -R owner/repo` and the equivalent `gh issue view -R` matched the same `replaces` entry as the same-repo form, so the raw-command guard's refusal named the same-repo-only `gh-pr:NUMBER:diff` -- silently dropping the `-R` target rather than pointing at the cross-repo route (`repo:OWNER/NAME` chained ahead of the op) that already reaches it. Verified live against Digital-Process-Tools/claude-remember#623 that `repo:OWNER/NAME gh-pr:N:diff` already works end to end -- the gap was narrower than "no cross-repo form exists": it existed and worked, but the guard's own refusal never told a caller about it, so every natural workaround (`-R`, the guard's own `guard:` escape hatch, a full PR URL) was refused and the only route that worked was an unguarded raw `gh api` call. `_guard_repo_hint()` prefixes the `use` hint with `repo:OWNER/NAME ` when the blocked command carries `-R`/`--repo`, the matched op actually reads `SUPERTOOL_REPO` (`_repo_target_ops()`), and the flag's value survives the same shape check the `repo:` op's own dispatch applies -- a malformed value is omitted rather than echoed back as a working alternative. The same-repo form is unchanged. Claude-Session: https://claude.ai/code/session_0153NCZ8Lz2QFWvAV8mCSpqJ 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.
Two unrelated issues bundled in one lane because their fixed cost is otherwise duplicated; each keeps its own test story and its own changelog fragment.
#617 -- stale changelog claim
changelog.d/595.fixed.md, the fragment the issue named, no longer exists in this tree: it was already folded intoCHANGELOG.mdand deleted by the 0.29.1 release commit (1f5d3f9), which was cut earlier the same day this lane ran. Verified independently with the two greps the issue itself suggests:Both agree with the issue text.
git log --oneline --follow -- changelog.d/595.fixed.mdshows the fragment was created by7819c5e(PR #605, closing #595) and deleted only by the release commit -- so there is nothing left underchangelog.d/to amend. Three commits later, still before that release, PR #615 (closing #613) removed the doc's hand-maintained prose numbers entirely and replaced the guard test withtests/test_windows_skip_triage_no_stale_prose_counts_613.py. Both the #595 entry and the #613 entry that supersedes it ended up folded into the sameCHANGELOG.mdrelease section (0.29.1) -- the #595 entry (lines ~12-25) states the stale claim as fact, and the #613 entry (lines ~103-114) further down the same section already documents the correction.Rather than hand-editing an already-released
CHANGELOG.mdentry (againstchangelog.d/README.md's own convention of never hand-editing the assembled file), this adds a new fragment,changelog.d/617.fixed.md, that records the correction as an erratum: read the #595 entry as history of what PR #605 did at the time, not as a claim about the doc's state at HEAD, and read the #613 entry as the current description. No code, doc, or test file changed for #617 -- only the new fragment.#622 -- comma-splitting lane undercount
_gh_unlabelled_issue_countsin.oss/statusline.pybuilt one line per open issue viagh api --jqas"L:" + ([.labels[].name] | join(",")), then split that line on,in Python. A GitHub label name may legally contain a comma -- a label literally named e.g.blocked,lane-storagewould split into two names, one of which (lane-storage) could coincidentally match a real declared lane, so the issue silently counted as placed in a lane when no triage sweep had actually placed it there. The direction of the error was an under-count ofno_lane/no_priority, the opposite of this function's own documented convention (never under-count), and the existinglen(lines) != totalcross-check could not catch it, because the line count stayed correct -- only the per-line parse was wrong.Fixed by switching the wire format to one JSON array of label names per line (
[.labels[].name] | tojsonserver-side,json.loadsclient-side) -- a delimiter no label name can contain, rather than trying to escape or reject commas after the fact. This also removes the old"L:"-prefix trick and its trailing-empty-line hazard:tojsonof an empty label list is[], never an empty line, so there is nothing left to guard against there.TDD:
tests/test_statusline_gh_unlabelled_issue_counts_622.pywas written first, stubbingstatusline._rundirectly (noghcalls, no GitHub label-creation rights needed) with a comma-bearing label name containing a real declared lane as a substring after the comma. Run against the pre-fix code: both tests failed (red) --Nonereturned instead of the expected counts, because the stub's JSON-array output does not start with the old"L:"prefix the pre-fix code required. After the fix: both pass (green). Paired with a positive control (test_ordinary_comma_free_labels_still_count_correctly) so the fix does not break the ordinary case..oss/statusline.pyhad zero test coverage in this repo before this change (confirmed: 0 hits across all test files). Judgment call: added a first, narrow test file covering only this one function, rather than broader coverage for the module -- the smallest fix proportionate to what was actually reported.Adjacent, reported for filing
.oss/statusline.pycarries a header stating it is vendored verbatim from theossplugin and overwritten on every/oss:scaffoldrun; a byte-for-byte diff against the plugin cache'sscripts/statusline.py(version 0.26.0) confirms this file is identical apart from that header comment. The comma-splitting defect this PR fixes therefore also exists in the plugin's own source, atDigital-Process-Tools/claude-oss(perdoctor.loop_repository()), and will be silently reintroduced into this repo's.oss/statusline.pyat the next/oss:scaffoldunless it is fixed upstream too. Out of this lane's blast radius to fix here (would need its own PR and review in that repository) -- reported for filing againstDigital-Process-Tools/claude-oss,scripts/statusline.py, same function, same fix.Tests
Narrowed run only (
tests/test_statusline_gh_unlabelled_issue_counts_622.py), plus the changelog fragment checker (python3 .oss/assemble_changelog.py --check, both fragments pass). Fulltest_command(pytest) intentionally not run -- CI is the merge gate and covers the full matrix (3 OS x 4 interpreters, 12 legs) this run's own platform cannot speak for.Review
Two self-review spawns (Explore and oss:auditor) against the committed diff, both returned NO FINDINGS -- independently re-verified the #595/#613 factual claims and the #622 fix's edge cases (unicode, quotes, empty label lists, JSON round-tripping) rather than trusting the commit message. Both final messages classified
no-findingsbyreview_return.py. Tree-mutation check (tree_snapshot.py) verdict: clean.Closes #617, closes #622.
🤖 Generated with Claude Code
[AI-generated]