test: one red check, evidence for WR-12 (do not merge) #22

Closed
pit wants to merge 1 commit from hermes/wr-12-red-demo into main
Owner

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 a
red required check refuses a merge on main. The rule was activated under
WR-12; the real change is #21.

The PR is a draft on purpose and closes unmerged once the refusal is recorded.

**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 a red required check refuses a merge on `main`. The rule was activated under [WR-12](https://vikunja.thepit.space/tasks/63); the real change is #21. The PR is a draft on purpose and closes unmerged once the refusal is recorded.
test: one red check, evidence for WR-12 (do not merge)
Some checks failed
pr-checks / loop-decide (pull_request) Failing after 8s
pr-checks / protect-main (pull_request) Successful in 11s
50f52aa4eb
pit closed this pull request 2026-10-29 09:06:33 +00:00
bot-minos left a comment

olympus/workshop #22 · head 50f52aa · round 1/5 · axes: Standards + Spec

Recommendation: 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 to hermes/wr-12-red-demo: a green check on this branch destroys the thing the PR exists to record. The clearing action is closure — or dropping 50f52aa so 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.

ADVISORY pr-review-loop/tests/decide.test.js:78 — the refusal is not recorded, and can no longer be produced from this PR.
ADVISORY PR body, paragraph 2 — "The PR is a draft on purpose" is refuted by the PR object.
  • ADVISORY — the refusal clause of WR-12's AC3 is unmet. The criterion's first half holds and I reproduced it (see Verified). The second half does not: the PR has comments: 0, so no refusal is quoted anywhere. Worse, refs/heads/hermes/wr-12-red-demo has been deleted from the host — GET /repos/olympus/workshop/branches lists only main, hermes/wr-12-status-check and two research/* branches, while refs/pull/22/head still serves 50f52aa. 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 (push 50f52aa to 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.
  • ADVISORY — the declared safeguard does not exist. The body says the PR is a draft on purpose; the object says "draft": false, "state": "open". The consequence is not hypothetical: the loop's parser only skips pr.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 on engage_authors instead 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.

BLOCKER pr-review-loop/tests/decide.test.js:78 — the assertion pins the wrong behaviour and reds the repository's own required suite.
  • BLOCKER — 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 1 expects 1 for the same first-open path, so the file now contradicts itself. Under ADR-0002 the checks gate the merge on the revision that lands, and pr-checks / loop-decide (pull_request) is a live required context on main — a merge of this branch would put a red suite on main. Clearing action: none on the diff. Close unmerged, or remove 50f52aa so nothing of it lands. Restoring the assertion is not the fix and would delete the evidence.

Verified

Claim / behaviour How Result
One assertion changed, nothing else git diff --name-status 034ed9f...50f52aa 1 file, +1 −1, pr-review-loop/tests/decide.test.js:78
Red at head, green at base node pr-review-loop/tests/decide.test.js at 50f52aa, then with the file at 034ed9f head 70/71 (FAIL … -> 1 (want 2)); base 71/71
The red check is real and is the claimed one GET /commits/50f52aa/statuses pr-checks / loop-decide (pull_request) = failure, "Failing after 8s"; protect-main = success
It fails for the claimed reason, not a toolchain break job log, /actions/runs/5/jobs/0/attempt/1/logs FAIL PR opened -> round 1 -> 1 (want 2) / 70/71 checks passed
The rule on main is live and this check is required GET /repos/olympus/workshop/branches/main; PR page merge box protected: true, enable_status_check: true, status_check_contexts: ["pr-checks / *"], required_approvals: 1; both contexts render with the Required label, loop-decide showing "Failing after 8s"
The rest of the tree is unaffected python3 scripts/docs-check.py at head all 3 assertions hold
Reviewed revision git ls-remote origin refs/pull/22/head vs PR head.sha both 50f52aa4ebce083a2b0f0ba77162544e74b334e9

Not 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 failure state 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-8 still says "Nothing requires the checks yet", and the live rule now does. That is pre-existing drift on main, 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 the pr-checks / * wildcard while the repo tree has not caught up — #21's subject.

Summary

  • Standards: 1 finding — 1 BLOCKER. Worst: decide.test.js:78 reds a check that gates main.
  • Spec: 2 findings — 0 BLOCKER, 2 ADVISORY. Worst: WR-12's AC3 quote is unrecorded, and the deleted head branch now puts it out of reach from this PR.
  • No finding across either axis is pre-existing and blocking, and no nit is dressed as a defect.
<!-- minos review-loop: repo=olympus/workshop pr=22 head=50f52aa4ebce083a2b0f0ba77162544e74b334e9 round=1/5 axes=standards,spec --> **olympus/workshop #22** · head `50f52aa` · round 1/5 · axes: Standards + Spec Recommendation: 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 to `hermes/wr-12-red-demo`: a green check on this branch destroys the thing the PR exists to record. The clearing action is closure — or dropping `50f52aa` so 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](https://vikunja.thepit.space/tasks/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. | | | | --- | --- | | **ADVISORY** | `pr-review-loop/tests/decide.test.js:78` — *the refusal is not recorded, and can no longer be produced from this PR.* | | **ADVISORY** | PR body, paragraph 2 — *"The PR is a draft on purpose"* is refuted by the PR object. | - **ADVISORY — the refusal clause of WR-12's AC3 is unmet.** The criterion's first half holds and I reproduced it (see Verified). The second half does not: the PR has `comments: 0`, so no refusal is quoted anywhere. Worse, `refs/heads/hermes/wr-12-red-demo` has been **deleted from the host** — `GET /repos/olympus/workshop/branches` lists only `main`, `hermes/wr-12-status-check` and two `research/*` branches, while `refs/pull/22/head` still serves `50f52aa`. 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 (push `50f52aa` to 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. - **ADVISORY — the declared safeguard does not exist.** The body says the PR is a draft on purpose; the object says `"draft": false`, `"state": "open"`. The consequence is not hypothetical: the loop's parser only skips `pr.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 on `engage_authors` instead of a safeguard that isn't set. ## Standards Standard: [`docs/adr/0002`](https://forgejo.thepit.space/olympus/workshop/src/branch/main/docs/adr/0002-every-olympus-repos-main-rejects-direct-pushes.md) §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. | | | | --- | --- | | **BLOCKER** | `pr-review-loop/tests/decide.test.js:78` — the assertion pins the wrong behaviour and reds the repository's own required suite. | - **BLOCKER — `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 1` expects `1` for the same first-open path, so the file now contradicts itself. Under ADR-0002 the checks gate the merge on the revision that lands, and `pr-checks / loop-decide (pull_request)` is a live required context on `main` — a merge of this branch would put a red suite on `main`. *Clearing action:* none on the diff. Close unmerged, or remove `50f52aa` so nothing of it lands. Restoring the assertion is **not** the fix and would delete the evidence. ## Verified | Claim / behaviour | How | Result | | --- | --- | --- | | One assertion changed, nothing else | `git diff --name-status 034ed9f...50f52aa` | 1 file, `+1 −1`, `pr-review-loop/tests/decide.test.js:78` | | Red at head, green at base | `node pr-review-loop/tests/decide.test.js` at `50f52aa`, then with the file at `034ed9f` | head `70/71` (`FAIL … -> 1 (want 2)`); base `71/71` | | The red check is real and is the claimed one | `GET /commits/50f52aa/statuses` | `pr-checks / loop-decide (pull_request)` = `failure`, "Failing after 8s"; `protect-main` = `success` | | It fails for the claimed reason, not a toolchain break | job log, `/actions/runs/5/jobs/0/attempt/1/logs` | `FAIL PR opened -> round 1 -> 1 (want 2)` / `70/71 checks passed` | | The rule on `main` is live and this check is required | `GET /repos/olympus/workshop/branches/main`; PR page merge box | `protected: true`, `enable_status_check: true`, `status_check_contexts: ["pr-checks / *"]`, `required_approvals: 1`; both contexts render with the **Required** label, `loop-decide` showing "Failing after 8s" | | The rest of the tree is unaffected | `python3 scripts/docs-check.py` at head | `all 3 assertions hold` | | Reviewed revision | `git ls-remote origin refs/pull/22/head` vs PR `head.sha` | both `50f52aa4ebce083a2b0f0ba77162544e74b334e9` | **Not 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 `failure` state 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-8` still says *"Nothing requires the checks yet"*, and the live rule now does. That is pre-existing drift on `main`, 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 the `pr-checks / *` wildcard while the repo tree has not caught up — #21's subject. ## Summary - **Standards: 1 finding — 1 BLOCKER.** Worst: `decide.test.js:78` reds a check that gates `main`. - **Spec: 2 findings — 0 BLOCKER, 2 ADVISORY.** Worst: WR-12's AC3 quote is unrecorded, and the deleted head branch now puts it out of reach from this PR. - No finding across either axis is pre-existing and blocking, and no nit is dressed as a defect.
Member

olympus/workshop #22 · fix response to the review at 50f52aa (round 1/5) · no commit: the BLOCKER is already satisfied by the close

I 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, 1 is 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-demo is gone from the host.

Findings

Axis Severity Finding Disposition
Standards BLOCKER decide.test.js:78 — an assertion pins a value the workflow does not produce, reding a required check Satisfied, nothing landed — the close is the clearing change
Spec ADVISORY WR-12 AC3's merge-refusal quote is unrecorded, and unreachable from this PR Left alone — needs a human, see below
Spec ADVISORY The body's "draft on purpose" is refuted by "draft": false Left alone — the remedy is forward-looking

The BLOCKER: why there is no commit

The review's clearing action is "none on the diff. Close unmerged, or remove 50f52aa so nothing of it lands." Measured, not quoted:

Claim Command Output
Closed, not merged GET /repos/olympus/workshop/pulls/22 state=closed merged=false draft=false closed_at=2026-10-29T09:06:33Z
No branch carries the head git ls-remote origin 'refs/heads/*' 'refs/pull/22/*' four heads — main, hermes/wr-12-status-check, research/chain-auth, research/implementer-list — none at 50f52aa; only refs/pull/22/head = 50f52aa, which is read-only
The commit is not on main git merge-base --is-ancestor 50f52aa origin/main rc=1
The diff is one line and nothing else git diff --numstat --histogram 034ed9f origin/pr-22-head 1 1 pr-review-loop/tests/decide.test.js — check('PR opened -> round 1', o.round, 1) → 2

The order of events is what made this dispatch look like a fix request: pit closed the PR at 09:06:33Z, the review landed at 09:07:35Z, and the reviewer wrote review/needs-fix at 09: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: Decide maps a live review/needs-fix to a fix dispatch, and on a closed PR that write re-arms a fresh fixer on every later label event. review/needs-human maps to notify, 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 -x copy, so the tree driven is byte-identical to the branch:

Command Result
env -u ANSIBLE_CONFIG make docs-check all 3 assertions hold · rc=0
mise exec -- python3 nas-disk-report/tests/scan.test.py 24 passed, 0 failed · rc=0
mise exec -- python3 nas-disk-report/tests/render.test.py 141 passed, 0 failed · rc=0
mise exec -- node pr-review-loop/tests/decide.test.js 70/71 checks passed · rc=1 — FAIL PR opened -> round 1 -> 1 (want 2)
mise exec -- scripts/tests/protect-main.test.sh all 63 checks pass · rc=0
mise exec -- scripts/tests/onboard-repo.test.sh all 41 checks pass · rc=0

At the base (034ed9f, same file restored) the decide suite is 71/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"; combined state=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

  • AC3's refusal quote is unrecorded. The review offered two clearing changes; neither is reachable from here, and I am not going to fake either. Restore the ref and take the refusal before closing — the PR is already closed, a merge attempt from it would now be refused for the closed state rather than for the red check (so the quote would evidence nothing), and the dispatch forbids me to merge. State on WR-12 that the quote comes from #21's landing instead — that is not true yet: GET /pulls/21 reads state=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.
  • The "draft on purpose" sentence. The remedy the review states — create the next evidence PR as a draft — has no clearing change on this one, and the body of a closed evidence PR is the record: rewriting a past sentence so it reads better costs the account of what was actually attempted. The evidence for the finding stands (draft=false, read above).

The self-review

code-review asks for two parallel sub-agent passes; no claude, codex or agent CLI 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 main was not touched.

<!-- fix-meta repo=olympus/workshop pr=22 head=50f52aa4ebce083a2b0f0ba77162544e74b334e9 round=1/5 disposition=no-change-escalated --> **olympus/workshop #22** · fix response to the review at `50f52aa` (round 1/5) · **no commit: the BLOCKER is already satisfied by the close** I 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, 1` is 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-demo` is gone from the host. ## Findings | Axis | Severity | Finding | Disposition | | --- | --- | --- | --- | | Standards | **BLOCKER** | `decide.test.js:78` — an assertion pins a value the workflow does not produce, reding a required check | **Satisfied, nothing landed** — the close is the clearing change | | Spec | ADVISORY | WR-12 AC3's merge-refusal quote is unrecorded, and unreachable from this PR | **Left alone** — needs a human, see below | | Spec | ADVISORY | The body's "draft on purpose" is refuted by `"draft": false` | **Left alone** — the remedy is forward-looking | ## The BLOCKER: why there is no commit The review's clearing action is *"none on the diff. Close unmerged, or remove `50f52aa` so nothing of it lands."* Measured, not quoted: | Claim | Command | Output | | --- | --- | --- | | Closed, not merged | `GET /repos/olympus/workshop/pulls/22` | `state=closed merged=false draft=false closed_at=2026-10-29T09:06:33Z` | | No branch carries the head | `git ls-remote origin 'refs/heads/*' 'refs/pull/22/*'` | four heads — `main`, `hermes/wr-12-status-check`, `research/chain-auth`, `research/implementer-list` — none at `50f52aa`; only `refs/pull/22/head` = `50f52aa`, which is read-only | | The commit is not on `main` | `git merge-base --is-ancestor 50f52aa origin/main` | `rc=1` | | The diff is one line and nothing else | `git diff --numstat --histogram 034ed9f origin/pr-22-head` | `1 1 pr-review-loop/tests/decide.test.js` — `check('PR opened -> round 1', o.round, 1)` → `2` | The order of events is what made this dispatch look like a fix request: `pit` closed the PR at `09:06:33Z`, the review landed at `09:07:35Z`, and the reviewer wrote `review/needs-fix` at `09: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: `Decide` maps a live `review/needs-fix` to a `fix` dispatch, and on a closed PR that write re-arms a fresh fixer on every later label event. `review/needs-human` maps to `notify`, 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 -x` copy, so the tree driven is byte-identical to the branch: | Command | Result | | --- | --- | | `env -u ANSIBLE_CONFIG make docs-check` | `all 3 assertions hold` · `rc=0` | | `mise exec -- python3 nas-disk-report/tests/scan.test.py` | `24 passed, 0 failed` · `rc=0` | | `mise exec -- python3 nas-disk-report/tests/render.test.py` | `141 passed, 0 failed` · `rc=0` | | `mise exec -- node pr-review-loop/tests/decide.test.js` | `70/71 checks passed` · **`rc=1`** — `FAIL PR opened -> round 1 -> 1 (want 2)` | | `mise exec -- scripts/tests/protect-main.test.sh` | `all 63 checks pass` · `rc=0` | | `mise exec -- scripts/tests/onboard-repo.test.sh` | `all 41 checks pass` · `rc=0` | At the base (`034ed9f`, same file restored) the decide suite is `71/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"; combined `state=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 - **AC3's refusal quote is unrecorded.** The review offered two clearing changes; neither is reachable from here, and I am not going to fake either. *Restore the ref and take the refusal before closing* — the PR is already closed, a merge attempt from it would now be refused for the closed state rather than for the red check (so the quote would evidence nothing), and the dispatch forbids me to merge. *State on WR-12 that the quote comes from #21's landing instead* — that is not true yet: `GET /pulls/21` reads `state=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. - **The "draft on purpose" sentence.** The remedy the review states — *create the next evidence PR as a draft* — has no clearing change on this one, and the body of a closed evidence PR is the record: rewriting a past sentence so it reads better costs the account of what was actually attempted. The evidence for the finding stands (`draft=false`, read above). ## The self-review `code-review` asks for two parallel sub-agent passes; no `claude`, `codex` or `agent` CLI 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 `main` was not touched.
Some checks failed
pr-checks / loop-decide (pull_request) Failing after 8s
Required
Details
pr-checks / protect-main (pull_request) Successful in 11s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/workshop!22
No description provided.