Add a --strict mode to the healthcheck and keep the pinned usage text honest #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Three phases, in this order.
Phase 1 —
--stricton the healthcheckscripts/orchestra_e2e_healthcheck.sh --strictmust reject an unrecognised flag: printunknown flag: <flag>on stderr and exit 2. Without--strictthe current silent-ignore behaviour is unchanged, and--helpstill wins over everything.Automated verification only:
Phase 2 — cover
--strictin the self-testExtend
scripts/orchestra_e2e_selftest.shso it asserts that--strict --nonsenseexits 2 and that--strictalone still exits 0.Automated verification only:
Phase 3 — keep the pinned usage text honest
scripts/test_healthcheck.shpins the healthcheck's exact--helpoutput in a hardcodedUSAGEvariable and compares with string equality. Phase 1 adds--strict, so that pinned text must be updated in place to match, and the pinned comparison must keep passing.Work from the
USAGEvariable that is already inscripts/test_healthcheck.sh. Do not rewrite the file's structure.Automated verification for this phase must run the pinned test itself:
Constraints
The project's verification policy allows exactly two command shapes:
A
run:line outside those is refused when the plan seals, not later.Research first
Establish at least three findings with distinct confidence: at least one
fact, oneinference, oneassumption. Cite at least two in References.