Repository navigation
fix: agent --help text rotted in feature, build and bug - #703
Merged
Merged
Conversation
Replace the hardcoded sed line ranges with the header-help awk that health.sh, rehearse.sh, validate.sh and nightly.sh use: it prints the comment block after the shebang and stops at the first non-comment line. feature --help no longer leaks 'set -uo pipefail', build --help now reaches --rehearsal-run-id, --dry-run, --json and the exit codes, and bug --help no longer leaks an internal comment. Adds a test for all three. Closes #702 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
This was referenced Nov 22, 2026
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.
Summary
feature.sh,build.shandbug.shprinted--helpby slicing their own header with hardcodedsedline ranges, which had rotted:feature --helpleakedset -uo pipefail,build --helpstopped before--rehearsal-run-id,--dry-run,--jsonand the exit codes, andbug --helpleaked an internal comment. All three now use the header-helpawkalready used byhealth.sh,rehearse.sh,validate.shandnightly.sh(print the comment block after the shebang, stop at the first non-comment line).Closes #702
API Changes
None — internal.
--helpoutput of the three agents changes (now the full header, nothing after it).Test Plan
tests/test_agent_help_text.pyruns each of the three with--help, asserts no line starts withsetand the help ends with the exit codes; build's output names--rehearsal-run-id,--dry-run,--jsonand the exit codes. Control: on the old code 3 of its 4 tests fail.gh run listshows Brain Tests and Brain Board green on main at 428fe1e. Organism door: YELLOW (unrelated euclid_assistant reason).Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code