Skip to content

fix: agent --help text rotted in feature, build and bug - #703

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/agent-help-text-rot
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/agent-help-text-rot

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

feature.sh, build.sh and bug.sh printed --help by slicing their own header with hardcoded sed line ranges, which had rotted: feature --help leaked set -uo pipefail, build --help stopped before --rehearsal-run-id, --dry-run, --json and the exit codes, and bug --help leaked an internal comment. All three now use the header-help awk already used by health.sh, rehearse.sh, validate.sh and nightly.sh (print the comment block after the shebang, stop at the first non-comment line).

Closes #702

API Changes

None — internal. --help output of the three agents changes (now the full header, nothing after it).

Test Plan

  • Witness: new tests/test_agent_help_text.py runs each of the three with --help, asserts no line starts with set and the help ends with the exit codes; build's output names --rehearsal-run-id, --dry-run, --json and the exit codes. Control: on the old code 3 of its 4 tests fail.
  • Full suite in the task worktree: 2454 passed, 1 skipped.
  • Heart dev-ship gate for PyAutoBrain read STALE only because Heart's CI poll hit a TLS timeout on this network; gh run list shows 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

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>
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.

fix: agent --help text rotted in feature, build and bug

1 participant