Add a --strict mode to the healthcheck #13
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 from any position.Phase 2 — cover
--strictin the existing self-testExtend
scripts/orchestra_e2e_selftest.sh, which already asserts the plain and--jsonruns. Add assertions that--strict --nonsenseexits 2 and that--strictalone exits 0. Keep its existingfail()helper and its existing assertions.Phase 3 — keep the pinned usage text honest
scripts/test_healthcheck.shpins the healthcheck's exact--helpoutput in a hardcodedUSAGEvariable. Phase 1 changes nothing about--help, so this phase only confirms the pin still holds.Verify this phase by running the pinned test itself:
Constraints
The project's verification policy allows exactly two command shapes:
Research first
Establish at least three findings with distinct confidence: at least one
fact, oneinference, oneassumption. Cite at least two in References.