Repository navigation
#2503: 0.1.1 polish WL2: WizLoops' comment-check proof from a shallow checkout and failure-tolerant settings - #34
Conversation
… or tolerates its failure
…s failure-tolerating settings
|
First successful push: 9063d14 at 2026-11-22T23:15:14Z |
|
launch-fleet: review started 9063d14 |
|
VERDICT: APPROVE at 9063d14 Full review by Codex, Sol 6.2, Medium. CI green on this commit: checks. Intent: Prove the comment-check workflow needs to fetch merge parents from a depth-1 checkout and reject settings that can mask a failed check, while keeping the direct wrapper cases.
Checked: Standards (owned paths, test value, base comment checker), Spec (openwizdev/OpenWiz#2503, openwizdev/OpenWiz#2286, openwizdev/OpenWiz#2313, openwizdev/OpenWiz#2314), and full diff sweep. GitHub returned no separate triage comments on the two follow-ups. Their issue bodies and the original review on #33 document the fixes. The change is test-only. Ran: Facts
Next: none open. It merges by the project's merge rules. |
Closes openwizdev/OpenWiz#2503
Closes openwizdev/OpenWiz#2313
Closes openwizdev/OpenWiz#2314
Summary
ci/test-comment-check.shnow runs the workflow's comment-check step the way GitHub does. Each workflow case clones the synthetic merge commit at depth 1 from a separate fixture repository, which acts asorigin. Deleting the step'sgit fetchnow fails the proof with the checker's exit 2 (HEAD^1missing). Before the step runs, the proof refuses a workflow that setscontinue-on-error(any value butfalse, step or job level, quoted key or not) or sets ashell:. Either setting would let a rejected comment pass the job. Three synthetic workflow copies are built from the real workflow: fetch deleted,continue-on-error: trueadded, andshell: bash {0}added. Each must be caught. The direct wrapper cases are unchanged.Evidence
Before (red commit
e63b39c: the new cases against the old harness, which runs the step in the full-history fixture repository and checks no settings). Synthetic temp paths and SHAs:After (head): all nine cases
ok, exit 0.Undoing the fix in a scratch copy (no shallow clone, no settings check) fails the three new cases, each at its own assertion, and leaves the six old cases green.
The issues' own mutations of the real
.github/workflows/checks.yml, each in a scratch copy:git fetchline deleted: exit 1. All three real-workflow cases get exit 2 withfatal: ambiguous argument 'HEAD^1...<sha>': unknown revision, which is the depth-1 failure Exercise the comment-check workflow from a shallow checkout (openwizdev/OpenWiz#2301, R1) OpenWiz#2313 describes.continue-on-error: trueon the step,continue-on-error: ${{ true }}on the job,"continue-on-error": true(quoted key), andshell: bash {0}on the step: each one exits 1, and every real-workflow case reportsgot exit toleratedwith the offending line.Merge danger
Door: two-way. Blast radius: test.
Rulings
continue-on-errorandshell:keys, not just the comment-check step. Why: a job-levelcontinue-on-erroror a workflowdefaults.run.shellchanges the step's outcome as much as a step-level key does, and the workflow has one job. Cost if wrong: low: a future, harmlessshell:orcontinue-on-erroron another step fails this test with a message naming the line, and the fix is to narrow the scan.shell:setting counts as failure-tolerating. Why: the proof runs the step as GitHub's defaultbash -e, so another shell (for examplebash {0}, which ignores a failinggit fetch) makes the proof model the wrong thing. Cost if wrong: low: someone who wants an explicit shell has to extend the proof first.Facts
room/2503-comment-check-shallow9063d145187fdba7c5ebd77f5c30fd11a0efdcc24a7da289f8b40eecbc1e0e958f85d1f075879197ci/test-comment-check.sh(owned). No supporting edits.ci/test-comment-check.sh):the workflow proof passes a comment-check step that never fetches the merge parents: catches: the workflow proof running with both merge parents already present, so a deletedgit fetchgoes unnoticed (Exercise the comment-check workflow from a shallow checkout (openwizdev/OpenWiz#2301, R1) OpenWiz#2313).the workflow proof passes a comment-check step that tolerates its own failure: catches:continue-on-errorletting the job succeed after the checker rejects a comment (Detect failure-tolerating settings on the comment-check step (openwizdev/OpenWiz#2301, R2) OpenWiz#2314).the workflow proof passes a comment-check step run in a shell that ignores a failing command: catches: ashell:override that the proof'sbash -erun does not model.e63b39c, log above (synthetic paths).continue-on-error: trueworkflow must fail.sh ci/test-comment-check.shgreen under dash;sh ci/comment-check.sh origin/mainok. The rest ofsh ci/check.shneedsopenwizat the pinned commit and runs in CI.sh ci/test-comment-check.shhad no-op stubs first on PATH, in a private temp dir. Each stub prints a refusal and exits 1. They coveredclaude codex cursor-agent agent pi opencode copilot goose gemini kimi qwen cline kilo crush vibe auggie kiro-cli junie amp agy oz sculpt hermes acpx droid, and all nine cases passed. The earlier runs came before this rule, and none of them started an agent CLI: the suite calls onlysh,git,awk,sed,grepandpython3, and it names no agent CLI. This repository has no driver kit or driver tests, and this change adds no fixture that calls a CLI.changes/line. The repository has nono-changeloglabel.checksgreen (run 45082252780).main9d0013c.Built with Cloudroom