test: one red check, evidence for WR-12 (do not merge) #22
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/wr-12-red-demo"
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?
Evidence only — do not merge. This branch carries a deliberately broken copy of
pr-review-loop/tests/decide.test.js(one assertion: round 1 expected as 2), pushed to show that ared required check refuses a merge on
main. The rule was activated underWR-12; the real change is #21.
The PR is a draft on purpose and closes unmerged once the refusal is recorded.
olympus/workshop #22 · head
50f52aa· round 1/5 · axes: Standards + SpecRecommendation: fix
The branch must not land, and the state label is not a request to fix it. The broken assertion is the artefact. Do not restore
o.round, 1, and do not push anything tohermes/wr-12-red-demo: a green check on this branch destroys the thing the PR exists to record. The clearing action is closure — or dropping50f52aaso the branch is the real change's tree alone. (The head branch no longer exists on the host anyway; see Spec below.)Spec
Spec source: Vikunja WR-12 (task 63), named in the PR body, with #21 as the real change. Its acceptance criterion 3 reads: "A merge with a check red is refused, and the refusal is quoted." This PR is the vehicle for that quote.
pr-review-loop/tests/decide.test.js:78— the refusal is not recorded, and can no longer be produced from this PR.comments: 0, so no refusal is quoted anywhere. Worse,refs/heads/hermes/wr-12-red-demohas been deleted from the host —GET /repos/olympus/workshop/brancheslists onlymain,hermes/wr-12-status-checkand tworesearch/*branches, whilerefs/pull/22/headstill serves50f52aa. A merge attempt from here is now refused for a missing head branch, not for a red check, so a refusal quoted from this PR would not evidence AC3. Clearing action: restore the ref (push50f52aato a branch) and take the merge refusal before closing, or state on the ticket that the quote comes from #21's landing instead — and say which."draft": false,"state": "open". The consequence is not hypothetical: the loop's parser only skipspr.draft === true, so this PR was reviewed as a normal open PR — the dispatch you are reading is the proof. Clearing action: create the next evidence PR as a draft, or lean onengage_authorsinstead of a safeguard that isn't set.Standards
Standard:
docs/adr/0002§Decision, lines 48–50 — "The checks the repository defines gate the merge, on the revision that lands. Passing them is a precondition of merging…" The repo documents no further coding convention for this file; the smell baseline finds nothing in a one-token change.pr-review-loop/tests/decide.test.js:78— the assertion pins the wrong behaviour and reds the repository's own required suite.pr-review-loop/tests/decide.test.js:78.check('PR opened -> round 1', o.round, 2)now asserts a value the workflow does not produce. The suite goes 71/71 → 70/71, and the one failure is exactly the edited line:FAIL PR opened -> round 1 -> 1 (want 2). Line 95 of the same file still asserts...starting at round 1expects1for the same first-open path, so the file now contradicts itself. Under ADR-0002 the checks gate the merge on the revision that lands, andpr-checks / loop-decide (pull_request)is a live required context onmain— a merge of this branch would put a red suite onmain. Clearing action: none on the diff. Close unmerged, or remove50f52aaso nothing of it lands. Restoring the assertion is not the fix and would delete the evidence.Verified
git diff --name-status 034ed9f...50f52aa+1 −1,pr-review-loop/tests/decide.test.js:78node pr-review-loop/tests/decide.test.jsat50f52aa, then with the file at034ed9f70/71(FAIL … -> 1 (want 2)); base71/71GET /commits/50f52aa/statusespr-checks / loop-decide (pull_request)=failure, "Failing after 8s";protect-main=success/actions/runs/5/jobs/0/attempt/1/logsFAIL PR opened -> round 1 -> 1 (want 2)/70/71 checks passedmainis live and this check is requiredGET /repos/olympus/workshop/branches/main; PR page merge boxprotected: true,enable_status_check: true,status_check_contexts: ["pr-checks / *"],required_approvals: 1; both contexts render with the Required label,loop-decideshowing "Failing after 8s"python3 scripts/docs-check.pyat headall 3 assertions holdgit ls-remote origin refs/pull/22/headvs PRhead.sha50f52aa4ebce083a2b0f0ba77162544e74b334e9Not verified: that a merge attempt is actually refused by the red check. The endpoint wants admin, and I will not merge to find out. The merge box currently surfaces the approval gate first ("0 of 1 approvals granted"), so the page alone does not show the status-check refusal either — the required marking plus the
failurestate is the strongest read-only evidence, and the refusal itself is the step WR-12's AC3 still wants quoted.Checked and accepted
docs/automations/pr-checks.md:7-8still says "Nothing requires the checks yet", and the live rule now does. That is pre-existing drift onmain, not this diff's doing, and #21 owns it (its diff rewrites that page). Not charged. Same for the rule being set from the UI with thepr-checks / *wildcard while the repo tree has not caught up — #21's subject.Summary
decide.test.js:78reds a check that gatesmain.olympus/workshop #22 · fix response to the review at
50f52aa(round 1/5) · no commit: the BLOCKER is already satisfied by the closeI was dispatched to fix the BLOCKER at
pr-review-loop/tests/decide.test.js:78. I am not touching that line and I am not pushing anything. The PR is closed, unmerged, and no branch carries the head — that is the finding's own clearing action, and it already holds.o.round, 1is the one change the review says would delete the artefact, and a commit carrying it would land on no branch at all:hermes/wr-12-red-demois gone from the host.Findings
decide.test.js:78— an assertion pins a value the workflow does not produce, reding a required check"draft": falseThe BLOCKER: why there is no commit
The review's clearing action is "none on the diff. Close unmerged, or remove
50f52aaso nothing of it lands." Measured, not quoted:GET /repos/olympus/workshop/pulls/22state=closed merged=false draft=false closed_at=2026-10-29T09:06:33Zgit ls-remote origin 'refs/heads/*' 'refs/pull/22/*'main,hermes/wr-12-status-check,research/chain-auth,research/implementer-list— none at50f52aa; onlyrefs/pull/22/head=50f52aa, which is read-onlymaingit merge-base --is-ancestor 50f52aa origin/mainrc=1git diff --numstat --histogram 034ed9f origin/pr-22-head1 1 pr-review-loop/tests/decide.test.js—check('PR opened -> round 1', o.round, 1)→2The order of events is what made this dispatch look like a fix request:
pitclosed the PR at09:06:33Z, the review landed at09:07:35Z, and the reviewer wrotereview/needs-fixat09:07:42Z— 62 s and 69 s after the thing the PR existed to do was over. That label is the loop's own bookkeeping on a closed tree, not a request:Decidemaps a livereview/needs-fixto afixdispatch, and on a closed PR that write re-arms a fresh fixer on every later label event.review/needs-humanmaps tonotify, which is the state this PR is actually in, so that is what I set.What the tree is, run at the reviewed head
Every suite from a
git archive 50f52aa | tar -xcopy, so the tree driven is byte-identical to the branch:env -u ANSIBLE_CONFIG make docs-checkall 3 assertions hold·rc=0mise exec -- python3 nas-disk-report/tests/scan.test.py24 passed, 0 failed·rc=0mise exec -- python3 nas-disk-report/tests/render.test.py141 passed, 0 failed·rc=0mise exec -- node pr-review-loop/tests/decide.test.js70/71 checks passed·rc=1—FAIL PR opened -> round 1 -> 1 (want 2)mise exec -- scripts/tests/protect-main.test.shall 63 checks pass·rc=0mise exec -- scripts/tests/onboard-repo.test.shall 41 checks pass·rc=0At the base (
034ed9f, same file restored) the decide suite is71/71 checks passed,rc=0. So the tree is red in exactly one place, on exactly the intended assertion — the artefact working as designed, not a defect to repair.The status record at that head, re-read this round:
pr-checks / loop-decide (pull_request)=failure, "Failing after 8s";pr-checks / protect-main (pull_request)=success, "Successful in 11s"; combinedstate=failure total=2. Those rows hang off the commit and survive the branch's deletion, so they are still the read-only evidence the PR was built to leave behind.Left alone, with reasons
GET /pulls/21readsstate=open merged=false head=hermes/wr-12-status-check. The ticket (Vikunja task 63) is untouched since 2026-10-15, carries all five acceptance criteria unchecked and no comment, so nothing about AC3 has been recorded anywhere. This one needs a human, and it is not a tracker edit I can make truthfully today.draft=false, read above).The self-review
code-reviewasks for two parallel sub-agent passes; noclaude,codexoragentCLI exists in this environment, so both passes were mine, in one context, over the only artefact this round produces — the comment above. There is no diff to review. Every figure in it was re-derived this round from the API or from the branch's own tree; none is carried from the review's transcript.Nothing was force-pushed, nothing was merged, nothing was committed, and
mainwas not touched.Pull request closed