orchestra: TASK.md

This commit is contained in:
2026-08-29 17:36:49 +04:00
parent a09fd607a4
commit d3acd4989a
+40 -5
View File
@@ -1,18 +1,53 @@
# Task 06G4JX6MSQEP7N0D5JWW9EP5X4
# Task 06G4VF5HZW7Q4JBM3TTY7W1Y64
Late handoff rig: add a --version line to the healthcheck usage text
Add ten named checks to the healthcheck, in five phases
- Project: test-e2e
- Source: burnin/late-handoff-1
- Source: burnin/run18-implement-successor
- Priority: 0
## Instructions
Add the version string to the usage text printed by scripts/orchestra_e2e_healthcheck.sh --help. Keep every existing line and exit status unchanged, and keep scripts/test_healthcheck.sh passing.
scripts/orchestra_e2e_healthcheck.sh currently runs a single check. Grow it to ten named checks, each implemented as its own shell function, each reported by name.
The ten checks, all read-only and all satisfiable inside this repository:
1. repo_root_readable, 2. scripts_dir_present, 3. healthcheck_executable_bit, 4. selftest_present, 5. test_healthcheck_present, 6. readme_present, 7. no_crlf_line_endings, 8. no_tabs_in_scripts, 9. shebang_is_bash, 10. usage_text_mentions_every_flag.
Each check is a function named check_<name> that returns 0 for pass and 1 for fail, prints nothing on its own, and records its name and outcome in the existing results state.
Plan this as FIVE phases:
1. Checks 1 to 3, with the dispatch loop that runs a list of check functions and records each outcome.
2. Checks 4 to 6.
3. Checks 7 to 8.
4. Checks 9 to 10.
5. Update the usage text in --help to list every check name, and extend scripts/test_healthcheck.sh with one assertion per check plus an assertion that all ten names appear in the output.
## Work one phase at a time
This is a hard requirement. Implement phase N, request its verification, and only then begin phase N+1. Do not write the whole change first and verify the phases afterwards.
## Behaviour that must not change
The existing success line, the --quiet, --json and --help flags, and the exit status all keep their current behaviour when every check passes.
## Verification policy for this project
Only two commands may appear on a run: line, exactly:
- ["bash", "-n", "<path>"]
- ["bash", "scripts/orchestra_e2e_healthcheck.sh"]
Anything else is refused when you seal the plan. Give every phase at least one automated check from that list, and add a manual check where a human should confirm the printed text.
## Research first
Establish at least three findings with distinct confidence: at least one `fact`, one `inference`, one `assumption`.
Establish at least three findings with distinct confidence: at least one fact, one inference, one assumption.
## Handoff behaviour
Behave normally throughout this task. If Orchestra asks you to write a handoff report, write it and stop.
## Quality gate