Skip to content

The triad lane-tooling bench takes any directory holding lclaude, pclaude or claude-profile off its PATH, so a real launcher can no longer change the restart line the t018 golden compares - #31

Merged
brettheap merged 1 commit into
mainfrom
fix/t405-bench-filter-claude-names
Nov 10, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/t405-bench-filter-claude-names

Conversation

@brettheap

@brettheap brettheap commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-5
Claim: none (no issue; lane 3's T405 note, handed to lane 5 in opensoft/openRepoTools#165 6767535266)

One commit, 51a5028, on code main ecd1bce. It adds lclaude, pclaude and claude-profile to the names whose directories the triad lane-tooling Bench drops from its PATH, so a real launcher on the host can no longer change the restart line that the t018 golden compares. It has no issue: it is lane 3's T405 note (opensoft/openRepoTools#165, 6767463594), which lane 3 handed to lane 5 in 6767535266 under Brett's "Yes, extend it (Recommended)": "Any lane may write a lane-tooling fix. Lane 3 reviews it and lands it under the standing word once it is READY and every check is green."

READY for lane 3's review. CI ran the whole suite on this head, 51a5028, and all 14 checks are green.

The defect

The Bench in tests/test_triad_lane_tooling.py drops from its PATH every directory that holds one of its tools or lanes-index, so that no real tool is found beside the copies it installs. It did not name the three launchers that lane-handoff looks up with command -v, in the order lclaude, pclaude, claude-profile. On a workstation whose launcher directory holds none of the tools, such as /workspace/projects/workBenches/scripts on Eagle, that directory stayed on the bench's PATH, lane-handoff found the real lclaude, and the READY line's restart command was lclaude <profile> where the golden has pclaude --lane repoS-1 <profile>. test_t018_single_repository_outputs_are_c45a452s_byte_for_byte failed on it.

The fix

  • tests/test_triad_lane_tooling.py: the PATH filter now also drops a directory that holds lclaude, pclaude or claude-profile, with a two-line comment that says why. One file, 4 insertions and 1 deletion.
  • lane-handoff and every other file are unchanged.

Checked

  • The run.sh verify: tests/run.sh -k 'test_triad_lane_tooling or repo_hygiene' (its log's command line: python3 -m pytest tests -q -p no:cacheprovider -k test_triad_lane_tooling or repo_hygiene) exited 0 with 246 passed, 61 skipped, 3976 deselected in 83.96s (0:01:23).
  • The tree it tested is this commit's tree: git diff --binary HEAD on the worktree, taken when the run started and again just before the commit, has the sha256 100445be1d2b585e2e63952c7619609749285be2dd7c9e3e5b163f3a058e4dc8, on HEAD ecd1bce.
  • CI: all 14 checks are green on 51a5028, including SonarCloud.

🤖 Generated with Claude Code

Summary by Sourcery

Isolate triad lane-tooling tests from host Claude launchers so their restart output remains deterministic.

Bug Fixes:

  • Prevent triad lane-tooling tests from using host-side Claude launchers that can alter the expected restart command.

Enhancements:

  • Make the test bench PATH isolation cover lclaude, pclaude, and claude-profile directories.

…pclaude` or `claude-profile` off its PATH, so a real launcher can no longer change the restart line the t018 golden compares

The Bench in tests/test_triad_lane_tooling.py drops from its PATH every directory that holds one of its tools or `lanes-index`, so that no real tool is found beside the copies it installs. It did not name the three launchers that `lane-handoff` looks up with `command -v`, in the order `lclaude`, `pclaude`, `claude-profile` (lane-handoff `supervise_argv` and the `lane_profile_word` line before its LATE branch). On a workstation whose launcher directory holds none of the tools, such as /workspace/projects/workBenches/scripts on Eagle, that directory stayed on the bench's PATH, `lane-handoff` found the real `lclaude`, and the READY line's restart command was `lclaude <profile>` where the golden has `pclaude --lane repoS-1 <profile>`. test_t018_single_repository_outputs_are_c45a452s_byte_for_byte failed on it, with that directory first on PATH; with the three names in the filter it passes.

This is lane 3's T405 note (opensoft/openRepoTools#165, 6767463594: "lane 3 adds `lclaude`, `pclaude` and `claude-profile` to the `Bench` filter, in a one-line PR on code `main`"), handed to lane 5 in 6767535266 under Brett Heap's "Yes, extend it (Recommended)": "Any lane may write a lane-tooling fix. Lane 3 reviews it and lands it under the standing word once it is READY and every check is green." It has no issue.

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Reviewer's Guide

Tests

Extend the triad bench PATH filter to exclude directories containing the launchers that could alter the restart command in the t018 golden output, and document why.

  • tests/test_triad_lane_tooling.py L113-118

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 21 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit fbda9d1 into main Nov 10, 2026
15 checks passed
@brettheap
brettheap deleted the fix/t405-bench-filter-claude-names branch November 10, 2026 22:08
brettheap added a commit that referenced this pull request Nov 11, 2026
…eeping both test blocks, #27's first

The merge brings #28, #29, #31 and #33 onto this
branch, on top of the #27 that lane 3 checked at 10799a5.

One conflict, at the end of tests/test_a23_lane_handoff.py: #27
appended its test_the_no_tmux_refusal_names_its_mode_not_both_words block
there, and this branch appended the #118 block (the _closed and _held helpers
and the three test_118 cases) at the same place. Resolved by keeping both,
unchanged and with two blank lines between them: code#27's block first, then
this branch's. No other file conflicted; lane-handoff merged by itself.

The resolved tests/test_a23_lane_handoff.py is blob
3927b53, the blob lane 3 computed on 10799a5.
No commit after 10799a5 on code main touches that file or lane-handoff
(git diff 10799a5 749e969 -- tests/test_a23_lane_handoff.py is empty), so the
blob is the same.

Checked before this commit: bash -n lane-handoff passes; each of the five test
ids of the two blocks passes, run one at a time (2 for code#27's block, 3 for
this branch's).

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[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.

1 participant