feat(scripts): --help/--version on cap-probe, score-checkpoint, force-claim#198
Merged
NagyVikt merged 1 commit intoMay 20, 2026
Merged
Conversation
…int, force-claim Wires a small shared lib/version.sh (FLEET_VERSION + handle_help_version_flags) into the three entry-point scripts so each accepts --help/-h and --version before its real argv parsing runs. Adds tests/scripts/test-script-help.sh as a smoke test that asserts exit 0 + non-empty, name-bearing output for every flag/script combination. Implements PROTOCOL.md section 22.4.1 (PROPOSED → done) without touching any other script logic.
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
Implements
docs/future/PROTOCOL.md§22.4.1 (PROPOSED → done): wires--help/-hand--versionflags into three previously flag-lessbash entry points via a tiny shared lib.
scripts/codex-fleet/lib/version.sh— new. ExposesFLEET_VERSION(env override > nearest git tag >
0.0.0-dev) andhandle_help_version_flags "$@".scripts/codex-fleet/{cap-probe,score-checkpoint,force-claim}.sh—each sources
lib/version.shand callshandle_help_version_flagsbefore its real argv parsing. Every existing flag / arg still passes
through unchanged.
tests/scripts/test-script-help.sh— new smoke test asserting exit 0--help/--versioninvocations.No existing logic was refactored; this is purely additive.
Acceptance evidence
shellcheckwas unavailable on the build host;bash -nparsed everymodified file cleanly. Pass-through sanity check:
bash scripts/codex-fleet/force-claim.sh --dry-runstill runsone_passand exits 0.
Test plan
--helpexits 0 with non-empty stdout for all three scripts--versionexits 0 and prints<basename> <version>for all threetests/scripts/test-script-help.shexits 0bash -non every touched file