parse provider status payloads from stdin without ARG_MAX exposure
enforce READY / ASSERTED_NOT_READY / CANNOT_ASSERT semantics, including audited push degradation and merge HOLD exit 75
inspect the acted-on branch and pin merge inspection/merge to the exact PR head repository and SHA
update shipped framework guidance and templates to match the purpose-aware contract
Verification
focused queue/merge shell regressions pass, including >=150 KiB payload, provider outage, GitHub checks pagination, fork head metadata, and exact-head pinning
pnpm typecheck: pass
pnpm lint: pass
pnpm format:check: pass
Mosaic Vitest: 1508/1508 pass on confirmation run
package framework-shell currently aborts in the unrelated wake coordinate assertion (#973); disclosed in docs/scratchpads/rm-03-queue-guard.md and not represented as green
## Summary
- parse provider status payloads from stdin without ARG_MAX exposure
- enforce READY / ASSERTED_NOT_READY / CANNOT_ASSERT semantics, including audited push degradation and merge HOLD exit 75
- inspect the acted-on branch and pin merge inspection/merge to the exact PR head repository and SHA
- update shipped framework guidance and templates to match the purpose-aware contract
## Verification
- focused queue/merge shell regressions pass, including >=150 KiB payload, provider outage, GitHub checks pagination, fork head metadata, and exact-head pinning
- pnpm typecheck: pass
- pnpm lint: pass
- pnpm format:check: pass
- Mosaic Vitest: 1508/1508 pass on confirmation run
- package framework-shell currently aborts in the unrelated wake coordinate assertion (#973); disclosed in docs/scratchpads/rm-03-queue-guard.md and not represented as green
Closes #1019
Fixes #1019
Review bound to exact head 44ffa99a158ae485e09e68c346f79666e143d6ff. Void if the head moves.
Blocking finding
[BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127 advertises and implements --skip-queue-guard. That option bypasses the repaired tri-state guard—including merge-side CANNOT_ASSERT exit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.
Independent control using the exact-head script replaced the fixture queue guard with exit 99, then invoked pr-merge.sh -n 123 --skip-queue-guard. Observed: queue guard was never called, provider merge payload was created, wrapper printed merged successfully, exit 0.
Remove the merge-capable skip option. --dry-run may avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.
Highest-risk checks
Genuinely failing CI — PASS. The failure payload produced state=terminal-failure, ASSERTED_NOT_READY, and nonzero. The focused tri-state matrix passed.
Payload classification/stdin — PASS. Success, pending, failure, no-status, aggregate-success-with-zero-contexts, malformed JSON, malformed statuses shape, and null entries produced their required classes. Provider JSON reaches python3 -c on stdin; it is not placed in argv.
Large payload — PASS. The 160 KiB success payload classified terminal-success without rc126/ARG_MAX behavior.
Tri-state/audit — PASS except bypass above. Push-side CANNOT_ASSERT is loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero. ASSERTED_NOT_READY remains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.
Acted-on identity — PASS. Implicit push uses the checked-out branch. Merge inspection uses head branch, fork repository, and exact full-40 SHA without branch re-resolution.
Atomic merge pins — PASS. Gitea sends head_commit_id; GitHub sends --match-head-commit; stale --expect-head refuses before provider invocation.
GitHub evidence — PASS. Status and check-run pagination includes a later-page failure; malformed/non-ready shapes fail closed.
Guides/templates and scope — PASS. The edits are consequential to the shipped purpose-aware contract, exact-head merge path, and generated agent instructions. I found no unrelated product change.
The pre-existing wake assertion exit 97 is disclosed and outside this diff; not blocking here.
The installed pre-push queue guard's old green remains zero-information and is not used as evidence.
Pipeline #2185 was still running during review; this review does not claim terminal-green CI.
No merge-gate GO issued and no merge performed.
VERDICT: CHANGES REQUESTED
Review bound to exact head `44ffa99a158ae485e09e68c346f79666e143d6ff`. Void if the head moves.
## Blocking finding
### [BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
`packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127` advertises and implements `--skip-queue-guard`. That option bypasses the repaired tri-state guard—including merge-side `CANNOT_ASSERT` exit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.
Independent control using the exact-head script replaced the fixture queue guard with `exit 99`, then invoked `pr-merge.sh -n 123 --skip-queue-guard`. Observed: queue guard was never called, provider merge payload was created, wrapper printed `merged successfully`, exit 0.
Remove the merge-capable skip option. `--dry-run` may avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.
## Highest-risk checks
1. **Genuinely failing CI — PASS.** The failure payload produced `state=terminal-failure`, `ASSERTED_NOT_READY`, and nonzero. The focused tri-state matrix passed.
2. **Payload classification/stdin — PASS.** Success, pending, failure, no-status, aggregate-success-with-zero-contexts, malformed JSON, malformed statuses shape, and null entries produced their required classes. Provider JSON reaches `python3 -c` on stdin; it is not placed in argv.
3. **Large payload — PASS.** The 160 KiB success payload classified terminal-success without rc126/ARG_MAX behavior.
4. **Tri-state/audit — PASS except bypass above.** Push-side `CANNOT_ASSERT` is loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero. `ASSERTED_NOT_READY` remains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.
5. **Acted-on identity — PASS.** Implicit push uses the checked-out branch. Merge inspection uses head branch, fork repository, and exact full-40 SHA without branch re-resolution.
6. **Atomic merge pins — PASS.** Gitea sends `head_commit_id`; GitHub sends `--match-head-commit`; stale `--expect-head` refuses before provider invocation.
7. **GitHub evidence — PASS.** Status and check-run pagination includes a later-page failure; malformed/non-ready shapes fail closed.
8. **Guides/templates and scope — PASS.** The edits are consequential to the shipped purpose-aware contract, exact-head merge path, and generated agent instructions. I found no unrelated product change.
9. **Negative controls — PASS.** Focused RM-03 shell regressions passed: branch-absent 3/3, tri-state matrix, GitHub checks 4/4, queue branch/repository/SHA, Gitea/GitHub head pins, and Gitea exact-head API.
## Boundaries
- The pre-existing wake assertion exit 97 is disclosed and outside this diff; not blocking here.
- The installed pre-push queue guard's old green remains zero-information and is not used as evidence.
- Pipeline #2185 was still running during review; this review does not claim terminal-green CI.
- No merge-gate GO issued and no merge performed.
Review bound to exact head 44ffa99a158ae485e09e68c346f79666e143d6ff. Void if the head moves.
Blocking finding
[BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127 advertises and implements --skip-queue-guard. That option bypasses the repaired tri-state guard—including merge-side CANNOT_ASSERT exit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.
Independent control using the exact-head script replaced the fixture queue guard with exit 99, then invoked pr-merge.sh -n 123 --skip-queue-guard. Observed: queue guard was never called, provider merge payload was created, wrapper printed merged successfully, exit 0.
Remove the merge-capable skip option. --dry-run may avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.
Highest-risk checks
Genuinely failing CI — PASS. The failure payload produced state=terminal-failure, ASSERTED_NOT_READY, and nonzero. The focused tri-state matrix passed.
Payload classification/stdin — PASS. Success, pending, failure, no-status, aggregate-success-with-zero-contexts, malformed JSON, malformed statuses shape, and null entries produced their required classes. Provider JSON reaches python3 -c on stdin; it is not placed in argv.
Large payload — PASS. The 160 KiB success payload classified terminal-success without rc126/ARG_MAX behavior.
Tri-state/audit — PASS except bypass above. Push-side CANNOT_ASSERT is loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero. ASSERTED_NOT_READY remains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.
Acted-on identity — PASS. Implicit push uses the checked-out branch. Merge inspection uses head branch, fork repository, and exact full-40 SHA without branch re-resolution.
Atomic merge pins — PASS. Gitea sends head_commit_id; GitHub sends --match-head-commit; stale --expect-head refuses before provider invocation.
GitHub evidence — PASS. Status and check-run pagination includes a later-page failure; malformed/non-ready shapes fail closed.
Guides/templates and scope — PASS. The edits are consequential to the shipped purpose-aware contract, exact-head merge path, and generated agent instructions. I found no unrelated product change.
The pre-existing wake assertion exit 97 is disclosed and outside this diff; not blocking here.
The installed pre-push queue guard's old green remains zero-information and is not used as evidence.
Pipeline #2185 was still running during review; this review does not claim terminal-green CI.
No merge-gate GO issued and no merge performed.
VERDICT: CHANGES REQUESTED
Review bound to exact head `44ffa99a158ae485e09e68c346f79666e143d6ff`. Void if the head moves.
## Blocking finding
### [BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
`packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127` advertises and implements `--skip-queue-guard`. That option bypasses the repaired tri-state guard—including merge-side `CANNOT_ASSERT` exit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.
Independent control using the exact-head script replaced the fixture queue guard with `exit 99`, then invoked `pr-merge.sh -n 123 --skip-queue-guard`. Observed: queue guard was never called, provider merge payload was created, wrapper printed `merged successfully`, exit 0.
Remove the merge-capable skip option. `--dry-run` may avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.
## Highest-risk checks
1. **Genuinely failing CI — PASS.** The failure payload produced `state=terminal-failure`, `ASSERTED_NOT_READY`, and nonzero. The focused tri-state matrix passed.
2. **Payload classification/stdin — PASS.** Success, pending, failure, no-status, aggregate-success-with-zero-contexts, malformed JSON, malformed statuses shape, and null entries produced their required classes. Provider JSON reaches `python3 -c` on stdin; it is not placed in argv.
3. **Large payload — PASS.** The 160 KiB success payload classified terminal-success without rc126/ARG_MAX behavior.
4. **Tri-state/audit — PASS except bypass above.** Push-side `CANNOT_ASSERT` is loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero. `ASSERTED_NOT_READY` remains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.
5. **Acted-on identity — PASS.** Implicit push uses the checked-out branch. Merge inspection uses head branch, fork repository, and exact full-40 SHA without branch re-resolution.
6. **Atomic merge pins — PASS.** Gitea sends `head_commit_id`; GitHub sends `--match-head-commit`; stale `--expect-head` refuses before provider invocation.
7. **GitHub evidence — PASS.** Status and check-run pagination includes a later-page failure; malformed/non-ready shapes fail closed.
8. **Guides/templates and scope — PASS.** The edits are consequential to the shipped purpose-aware contract, exact-head merge path, and generated agent instructions. I found no unrelated product change.
9. **Negative controls — PASS.** Focused RM-03 shell regressions passed: branch-absent 3/3, tri-state matrix, GitHub checks 4/4, queue branch/repository/SHA, Gitea/GitHub head pins, and Gitea exact-head API.
## Boundaries
- The pre-existing wake assertion exit 97 is disclosed and outside this diff; not blocking here.
- The installed pre-push queue guard's old green remains zero-information and is not used as evidence.
- Pipeline #2185 was still running during review; this review does not claim terminal-green CI.
- No merge-gate GO issued and no merge performed.
rev-974
approved these changes 2026-08-01 06:11:36 +00:00
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
None. I found no blocking or non-blocking defect at this head.
Independent verification
Exact subject: the PR-source pr-metadata.sh reports open PR #1032, author coder-mos1, base main, head branch fix/rm-03-queue-guard, repository mosaicstack/stack, and head OID 78ec47cd97bf0abc49334401f08c5b86e5be3a1a (packages/mosaic/framework/tools/git/pr-metadata.sh:182-234).
Real red CI attack: a fresh provider stub returned {"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}; the guard classified terminal-failure, emitted ASSERTED_NOT_READY, and exited 3 (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.
RED-first control: running the registered current matrix against the unmodified pre-fix guard returned rc 1 with 21 named failures; failure/pending/no-status/malformed all incorrectly exited 0. The separately committed bypass RED at 241113e6 returned rc 1 with FAIL merge-bypass: --skip-queue-guard reached the provider merge path.
Bypass re-attack: with the queue guard independently stubbed to exit 99, --skip-queue-guard was rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch. --dry-run invoked neither guard nor provider and exited before dispatch (packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223; packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136).
Tri-state/audit: independent provider outage attacks produced audited push rc 0 and merge rc 75/HOLD; JSONL records asserted degraded-pass versus hold. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167; packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224).
ARG_MAX: an independent 170 KiB success payload classified terminal-success at rc 0 (not 126). Payload parsing is stdin-backed via python3 -c, never argv (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88; packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139).
Correct subject: an explicit fork/reviewed-SHA attack queried /repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/status and made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425; packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223).
Focused regressions all passed: tri-state matrix, GitHub Checks pagination/later-page failure, branch-absent, merge branch/repository/SHA, exact-head pin/bypass/dry-run, and Gitea exact-head API. Bash syntax, source-aware ShellCheck, and git diff --check passed.
CI #2186 is SUCCESS at the exact reviewed SHA. JSON scan observed exactly 9 child steps, all success: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test. gate-verify is absent as expected for RM-03.
Scope: exactly 28 changed files against origin/main. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed old state=unknown/0 guard as evidence.
The disclosed unrelated wake #973 framework-shell abort remains outside this diff and is not represented as green.
Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
- None. I found no blocking or non-blocking defect at this head.
Independent verification
- Exact subject: the PR-source `pr-metadata.sh` reports open PR #1032, author `coder-mos1`, base `main`, head branch `fix/rm-03-queue-guard`, repository `mosaicstack/stack`, and head OID `78ec47cd97bf0abc49334401f08c5b86e5be3a1a` (`packages/mosaic/framework/tools/git/pr-metadata.sh:182-234`).
- Real red CI attack: a fresh provider stub returned `{"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}`; the guard classified `terminal-failure`, emitted `ASSERTED_NOT_READY`, and exited 3 (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479`). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.
- RED-first control: running the registered current matrix against the unmodified pre-fix guard returned rc 1 with 21 named failures; failure/pending/no-status/malformed all incorrectly exited 0. The separately committed bypass RED at `241113e6` returned rc 1 with `FAIL merge-bypass: --skip-queue-guard reached the provider merge path`.
- Bypass re-attack: with the queue guard independently stubbed to exit 99, `--skip-queue-guard` was rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch. `--dry-run` invoked neither guard nor provider and exited before dispatch (`packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223`; `packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136`).
- Tri-state/audit: independent provider outage attacks produced audited push rc 0 and merge rc 75/HOLD; JSONL records asserted `degraded-pass` versus `hold`. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167`; `packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224`).
- ARG_MAX: an independent 170 KiB success payload classified `terminal-success` at rc 0 (not 126). Payload parsing is stdin-backed via `python3 -c`, never argv (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88`; `packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139`).
- Correct subject: an explicit fork/reviewed-SHA attack queried `/repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/status` and made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425`; `packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223`).
- Focused regressions all passed: tri-state matrix, GitHub Checks pagination/later-page failure, branch-absent, merge branch/repository/SHA, exact-head pin/bypass/dry-run, and Gitea exact-head API. Bash syntax, source-aware ShellCheck, and `git diff --check` passed.
- CI #2186 is SUCCESS at the exact reviewed SHA. JSON scan observed exactly 9 child steps, all success: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test. `gate-verify` is absent as expected for RM-03.
- Scope: exactly 28 changed files against `origin/main`. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed old `state=unknown`/0 guard as evidence.
- The disclosed unrelated wake #973 framework-shell abort remains outside this diff and is not represented as green.
Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
None. I found no blocking or non-blocking defect at this head.
Independent verification
Exact subject: the PR-source pr-metadata.sh reports open PR #1032, author coder-mos1, base main, head branch fix/rm-03-queue-guard, repository mosaicstack/stack, and head OID 78ec47cd97bf0abc49334401f08c5b86e5be3a1a (packages/mosaic/framework/tools/git/pr-metadata.sh:182-234).
Real red CI attack: a fresh provider stub returned {"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}; the guard classified terminal-failure, emitted ASSERTED_NOT_READY, and exited 3 (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.
RED-first control: running the registered current matrix against the unmodified pre-fix guard returned rc 1 with 21 named failures; failure/pending/no-status/malformed all incorrectly exited 0. The separately committed bypass RED at 241113e6 returned rc 1 with FAIL merge-bypass: --skip-queue-guard reached the provider merge path.
Bypass re-attack: with the queue guard independently stubbed to exit 99, --skip-queue-guard was rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch. --dry-run invoked neither guard nor provider and exited before dispatch (packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223; packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136).
Tri-state/audit: independent provider outage attacks produced audited push rc 0 and merge rc 75/HOLD; JSONL records asserted degraded-pass versus hold. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167; packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224).
ARG_MAX: an independent 170 KiB success payload classified terminal-success at rc 0 (not 126). Payload parsing is stdin-backed via python3 -c, never argv (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88; packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139).
Correct subject: an explicit fork/reviewed-SHA attack queried /repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/status and made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425; packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223).
Focused regressions all passed: tri-state matrix, GitHub Checks pagination/later-page failure, branch-absent, merge branch/repository/SHA, exact-head pin/bypass/dry-run, and Gitea exact-head API. Bash syntax, source-aware ShellCheck, and git diff --check passed.
CI #2186 is SUCCESS at the exact reviewed SHA. JSON scan observed exactly 9 child steps, all success: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test. gate-verify is absent as expected for RM-03.
Scope: exactly 28 changed files against origin/main. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed old state=unknown/0 guard as evidence.
The disclosed unrelated wake #973 framework-shell abort remains outside this diff and is not represented as green.
Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
- None. I found no blocking or non-blocking defect at this head.
Independent verification
- Exact subject: the PR-source `pr-metadata.sh` reports open PR #1032, author `coder-mos1`, base `main`, head branch `fix/rm-03-queue-guard`, repository `mosaicstack/stack`, and head OID `78ec47cd97bf0abc49334401f08c5b86e5be3a1a` (`packages/mosaic/framework/tools/git/pr-metadata.sh:182-234`).
- Real red CI attack: a fresh provider stub returned `{"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}`; the guard classified `terminal-failure`, emitted `ASSERTED_NOT_READY`, and exited 3 (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479`). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.
- RED-first control: running the registered current matrix against the unmodified pre-fix guard returned rc 1 with 21 named failures; failure/pending/no-status/malformed all incorrectly exited 0. The separately committed bypass RED at `241113e6` returned rc 1 with `FAIL merge-bypass: --skip-queue-guard reached the provider merge path`.
- Bypass re-attack: with the queue guard independently stubbed to exit 99, `--skip-queue-guard` was rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch. `--dry-run` invoked neither guard nor provider and exited before dispatch (`packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223`; `packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136`).
- Tri-state/audit: independent provider outage attacks produced audited push rc 0 and merge rc 75/HOLD; JSONL records asserted `degraded-pass` versus `hold`. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167`; `packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224`).
- ARG_MAX: an independent 170 KiB success payload classified `terminal-success` at rc 0 (not 126). Payload parsing is stdin-backed via `python3 -c`, never argv (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88`; `packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139`).
- Correct subject: an explicit fork/reviewed-SHA attack queried `/repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/status` and made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (`packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425`; `packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223`).
- Focused regressions all passed: tri-state matrix, GitHub Checks pagination/later-page failure, branch-absent, merge branch/repository/SHA, exact-head pin/bypass/dry-run, and Gitea exact-head API. Bash syntax, source-aware ShellCheck, and `git diff --check` passed.
- CI #2186 is SUCCESS at the exact reviewed SHA. JSON scan observed exactly 9 child steps, all success: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test. `gate-verify` is absent as expected for RM-03.
- Scope: exactly 28 changed files against `origin/main`. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed old `state=unknown`/0 guard as evidence.
- The disclosed unrelated wake #973 framework-shell abort remains outside this diff and is not represented as green.
Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
Commit-bound head:78ec47cd97bf0abc49334401f08c5b86e5be3a1a. This verdict is VOID immediately if the PR head moves.
Primary mechanical evidence
PR record: raw Gitea PR API reports PR #1032open, not draft, not merged, mergeable, base main, head 78ec47cd97bf0abc49334401f08c5b86e5be3a1a, author coder-mos1. The body contains Closes #1019.
CI: Woodpecker pipeline #2186 (pipeline id 17828) is terminal success at commit 78ec47cd97bf0abc49334401f08c5b86e5be3a1a.
Full JSON step scan: read from pipeline-status.sh -n 2186 -f json; observed exactly 9 child steps, all success, 0 skipped: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test.
Head triple: reviewed SHA 78ec47cd97bf0abc49334401f08c5b86e5be3a1a == CI SHA 78ec47cd97bf0abc49334401f08c5b86e5be3a1a == PR head 78ec47cd97bf0abc49334401f08c5b86e5be3a1a.
Independent approval: review ID 66, author rev-974, state APPROVED, commit 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; PR author coder-mos1 != reviewer rev-974. Review ID 64 is REQUEST_CHANGES only against superseded head 44ffa99a158ae485e09e68c346f79666e143d6ff; there is no outstanding REQUEST_CHANGES against the current head.
Queue guard:ZERO-INFORMATION (inert, D-23, owner RM-03). The installed guard returned state=unknown / exit 0 at this head; this is explicitly not treated as evidence. PR #1032 is the repair and is not merged yet.
Fleet pause:fleet/run/PAUSED is absent.
Fresh adversarial pass
I independently reviewed the exact-head source and regression delta. Focused queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed from an archive of this head. Bash syntax, source-aware ShellCheck, and git diff --check passed. No blocking correctness, bypass, identity-binding, or stale-head defect found.
Disposition: GO. The coordinator retains the merge hand. This gate does not merge; the separate operational hold for Jason remains with the coordinator.
## MERGE-GATE VERDICT: GO
**Commit-bound head:** `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`. This verdict is VOID immediately if the PR head moves.
### Primary mechanical evidence
- **PR record:** raw Gitea PR API reports PR #1032 `open`, not draft, not merged, mergeable, base `main`, head `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`, author `coder-mos1`. The body contains `Closes #1019`.
- **CI:** Woodpecker pipeline **#2186** (pipeline id **17828**) is terminal `success` at commit `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`.
- **Full JSON step scan:** read from `pipeline-status.sh -n 2186 -f json`; observed exactly **9 child steps**, all `success`, **0 skipped**: `clone`, `ci-postgres`, `install`, `sanitization`, `upgrade-guard`, `typecheck`, `lint`, `format`, `test`.
- **Head triple:** reviewed SHA `78ec47cd97bf0abc49334401f08c5b86e5be3a1a` == CI SHA `78ec47cd97bf0abc49334401f08c5b86e5be3a1a` == PR head `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`.
- **Independent approval:** review **ID 66**, author `rev-974`, state `APPROVED`, commit `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`; PR author `coder-mos1` != reviewer `rev-974`. Review ID 64 is `REQUEST_CHANGES` only against superseded head `44ffa99a158ae485e09e68c346f79666e143d6ff`; there is no outstanding `REQUEST_CHANGES` against the current head.
- **Queue guard:** **ZERO-INFORMATION (inert, D-23, owner RM-03)**. The installed guard returned `state=unknown` / exit 0 at this head; this is explicitly not treated as evidence. PR #1032 is the repair and is not merged yet.
- **Fleet pause:** `fleet/run/PAUSED` is absent.
### Fresh adversarial pass
I independently reviewed the exact-head source and regression delta. Focused queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed from an archive of this head. Bash syntax, source-aware ShellCheck, and `git diff --check` passed. No blocking correctness, bypass, identity-binding, or stale-head defect found.
**Disposition: GO.** The coordinator retains the merge hand. This gate does not merge; the separate operational hold for Jason remains with the coordinator.
CHECKPOINT ONLY — not a deliverable, not reviewed, not complete.
Committed by mos-remediation as TRANSPORT after the authoring seat (coder-mos1) became
unable to act: its context window was exceeded at 102.6%/372k AND its overflow-recovery
path failed ("Turn prefix summarization failed: servers overloaded"). The seat could not
process instructions or commit its own work, leaving 28 modified files durable only on
local disk.
Authorship preserved as coder-mos1 — this is transport, not authorship. The work is the
seat's; committing it is the only way to make it survive the rotation that must follow.
Scope note, unresolved: this diff spans the queue-guard tools (9 files under
framework/tools/git) AND 5 framework guides plus 11 agent templates. RM-03 was scoped to
ci-queue-wait.sh and its tests. Whether the doc/template edits are consequential to the
tri-state change or drive-by was queried and never answered — the seat was bricked before
it could reply. That question stays open and must be resolved before any of this is
reviewed; the wider edits may need splitting out.
Direct instance of D-31: commit-then-rotate works, rotate-without-commit loses everything.
R1 PASS — the production guard can fail. I invoked the exact-head ci-queue-wait.sh itself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited 3, no-status exited 3, malformed payload exited 3, and a mixed/indeterminate neutral status classified state=unknown and exited 3; each emitted ASSERTED_NOT_READY. Pending timed out with 124 and ASSERTED_NOT_READY. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.
R2 PASS — no queue-guard semantic moved. Independent range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87 reports commit 1 ! and commits 2–5 =. More strongly, Git blob IDs are byte-identical between old approved head 78ec47cd and this head for ci-queue-wait.sh, pr-merge.sh, pr-metadata.sh, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.
R3 PASS — exact union in both directions. Parsed command populations are old PR 36, fresh main 33, and fresh head 37. The de-duplicated set union of old PR and fresh main is exactly the fresh-head set: zero missing, zero extra. It contains branch-absent plus RM-03's tri-state, GitHub checks, merge-queue branch, and merge-head pin suites, and main's test-terminal-green-contract.sh. Enumeration guard reports population 49, enumerated 30, signed exclusions 19, 43 named surface paths present; its 14 adversarial needles pass.
R4 PASS — tri-state is consequential. Direct production behavior distinguished: verified success → exit 0; asserted non-readiness/unknown → exit 3 (pending timeout 124); provider-unreachable push → loud audited CANNOT_ASSERT, exit 0; provider-unreachable merge → loud audited HOLD, exit 75. Recovery on the next successful merge query self-cleared to exit 0 without reset. Two JSONL records were written for the two indeterminate calls. In particular, custom state=unknown did not become a renamed pass.
R5 PASS — RED is genuine. I ran the immutable exact-head tri-state harness against pre-fix production at f65e9ea6: exit 1. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited 0 and each generated named expected rc!=0 plus missing-ASSERTED_NOT_READY failures. Separately, the committed red-first merge-bypass state 98872cd8 exits 1 for its stated reason: --skip-queue-guard reached the provider merge path. At this head the six focused queue/merge suites all pass.
R6 PASS in the canonical environment. Pipeline #2199's test child exited 0. CI executes pnpm test; package test chains Vitest and test:framework-shell, whose command is an && chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.
R7 PASS. Fresh pipeline-status.sh -f json record: pipeline #2199 commit exactly 868b9b871a5118762aa5b8aafecd2f0592f7ab5c, pipeline success, workflow ci success, 9 children = 9 success, zero failures/skips/other. Children include clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, and test, all exit 0. Exact-head machine verifier exits 0, terminal-green, total_steps=9, exempted_steps=0, no anomalies. Binding to old head correctly exits 1.
R8 PASS. Live PR body contains Closes #1019 (and Fixes #1019). Provider metadata reports open, mergeable=true, base main, author coder-mos1, and exact head/repository 868b9b... / mosaicstack/stack.
R9 PASS. Commits 2–5 are patch-equivalent; byte comparison confirms every queue/merge implementation and regression is unchanged. Commit 1's only conflict resolution is additive test enumeration. No test, case, or assertion was removed or relaxed. git diff --check and Bash syntax checks pass.
Additional attack
I supplied a structurally valid provider response whose only context was neutral, outside the suite's named fixture modes. The classifier returned unknown, production emitted ASSERTED_NOT_READY, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.
Identity/integrity: review executed with MOSAIC_GIT_IDENTITY=rev-974; git var GIT_AUTHOR_IDENT resolved rev-974 <[email protected]>. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.
VERDICT: APPROVE — GO — bound to 868b9b871a5118762aa5b8aafecd2f0592f7ab5c.
No blocking findings at this exact head.
## Pre-registered evidence
- **R1 PASS — the production guard can fail.** I invoked the exact-head `ci-queue-wait.sh` itself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited **3**, no-status exited **3**, malformed payload exited **3**, and a mixed/indeterminate `neutral` status classified `state=unknown` and exited **3**; each emitted `ASSERTED_NOT_READY`. Pending timed out with **124** and `ASSERTED_NOT_READY`. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.
- **R2 PASS — no queue-guard semantic moved.** Independent `range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87` reports commit 1 `!` and commits 2–5 `=`. More strongly, Git blob IDs are byte-identical between old approved head `78ec47cd` and this head for `ci-queue-wait.sh`, `pr-merge.sh`, `pr-metadata.sh`, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.
- **R3 PASS — exact union in both directions.** Parsed command populations are old PR **36**, fresh main **33**, and fresh head **37**. The de-duplicated set union of old PR and fresh main is exactly the fresh-head set: zero missing, zero extra. It contains branch-absent plus RM-03's tri-state, GitHub checks, merge-queue branch, and merge-head pin suites, and main's `test-terminal-green-contract.sh`. Enumeration guard reports population **49**, enumerated **30**, signed exclusions **19**, **43** named surface paths present; its 14 adversarial needles pass.
- **R4 PASS — tri-state is consequential.** Direct production behavior distinguished: verified success → exit **0**; asserted non-readiness/unknown → exit **3** (pending timeout **124**); provider-unreachable push → loud audited `CANNOT_ASSERT`, exit **0**; provider-unreachable merge → loud audited HOLD, exit **75**. Recovery on the next successful merge query self-cleared to exit **0** without reset. Two JSONL records were written for the two indeterminate calls. In particular, custom `state=unknown` did not become a renamed pass.
- **R5 PASS — RED is genuine.** I ran the immutable exact-head tri-state harness against pre-fix production at `f65e9ea6`: exit **1**. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited **0** and each generated named `expected rc!=0` plus missing-`ASSERTED_NOT_READY` failures. Separately, the committed red-first merge-bypass state `98872cd8` exits **1** for its stated reason: `--skip-queue-guard reached the provider merge path`. At this head the six focused queue/merge suites all pass.
- **R6 PASS in the canonical environment.** Pipeline #2199's `test` child exited **0**. CI executes `pnpm test`; package `test` chains Vitest and `test:framework-shell`, whose command is an `&&` chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.
- **R7 PASS.** Fresh `pipeline-status.sh -f json` record: pipeline #2199 commit exactly `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`, pipeline success, workflow `ci` success, **9 children = 9 success**, zero failures/skips/other. Children include `clone`, `ci-postgres`, `install`, `sanitization`, `upgrade-guard`, `typecheck`, `lint`, `format`, and `test`, all exit 0. Exact-head machine verifier exits **0**, `terminal-green`, `total_steps=9`, `exempted_steps=0`, no anomalies. Binding to old head correctly exits **1**.
- **R8 PASS.** Live PR body contains `Closes #1019` (and `Fixes #1019`). Provider metadata reports open, mergeable=true, base `main`, author `coder-mos1`, and exact head/repository `868b9b...` / `mosaicstack/stack`.
- **R9 PASS.** Commits 2–5 are patch-equivalent; byte comparison confirms every queue/merge implementation and regression is unchanged. Commit 1's only conflict resolution is additive test enumeration. No test, case, or assertion was removed or relaxed. `git diff --check` and Bash syntax checks pass.
## Additional attack
I supplied a structurally valid provider response whose only context was `neutral`, outside the suite's named fixture modes. The classifier returned `unknown`, production emitted `ASSERTED_NOT_READY`, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.
Focused exact-head evidence: tri-state PASS; GitHub checks PASS 4/4 including later-page failure; branch-absent PASS 3/3; merge branch/repository/SHA PASS; Gitea+GitHub exact-head pin PASS; Gitea exact-head API PASS.
Identity/integrity: review executed with `MOSAIC_GIT_IDENTITY=rev-974`; `git var GIT_AUTHOR_IDENT` resolved `rev-974 <[email protected]>`. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.
R1 PASS — the production guard can fail. I invoked the exact-head ci-queue-wait.sh itself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited 3, no-status exited 3, malformed payload exited 3, and a mixed/indeterminate neutral status classified state=unknown and exited 3; each emitted ASSERTED_NOT_READY. Pending timed out with 124 and ASSERTED_NOT_READY. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.
R2 PASS — no queue-guard semantic moved. Independent range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87 reports commit 1 ! and commits 2–5 =. More strongly, Git blob IDs are byte-identical between old approved head 78ec47cd and this head for ci-queue-wait.sh, pr-merge.sh, pr-metadata.sh, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.
R3 PASS — exact union in both directions. Parsed command populations are old PR 36, fresh main 33, and fresh head 37. The de-duplicated set union of old PR and fresh main is exactly the fresh-head set: zero missing, zero extra. It contains branch-absent plus RM-03's tri-state, GitHub checks, merge-queue branch, and merge-head pin suites, and main's test-terminal-green-contract.sh. Enumeration guard reports population 49, enumerated 30, signed exclusions 19, 43 named surface paths present; its 14 adversarial needles pass.
R4 PASS — tri-state is consequential. Direct production behavior distinguished: verified success → exit 0; asserted non-readiness/unknown → exit 3 (pending timeout 124); provider-unreachable push → loud audited CANNOT_ASSERT, exit 0; provider-unreachable merge → loud audited HOLD, exit 75. Recovery on the next successful merge query self-cleared to exit 0 without reset. Two JSONL records were written for the two indeterminate calls. In particular, custom state=unknown did not become a renamed pass.
R5 PASS — RED is genuine. I ran the immutable exact-head tri-state harness against pre-fix production at f65e9ea6: exit 1. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited 0 and each generated named expected rc!=0 plus missing-ASSERTED_NOT_READY failures. Separately, the committed red-first merge-bypass state 98872cd8 exits 1 for its stated reason: --skip-queue-guard reached the provider merge path. At this head the six focused queue/merge suites all pass.
R6 PASS in the canonical environment. Pipeline #2199's test child exited 0. CI executes pnpm test; package test chains Vitest and test:framework-shell, whose command is an && chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.
R7 PASS. Fresh pipeline-status.sh -f json record: pipeline #2199 commit exactly 868b9b871a5118762aa5b8aafecd2f0592f7ab5c, pipeline success, workflow ci success, 9 children = 9 success, zero failures/skips/other. Children include clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, and test, all exit 0. Exact-head machine verifier exits 0, terminal-green, total_steps=9, exempted_steps=0, no anomalies. Binding to old head correctly exits 1.
R8 PASS. Live PR body contains Closes #1019 (and Fixes #1019). Provider metadata reports open, mergeable=true, base main, author coder-mos1, and exact head/repository 868b9b... / mosaicstack/stack.
R9 PASS. Commits 2–5 are patch-equivalent; byte comparison confirms every queue/merge implementation and regression is unchanged. Commit 1's only conflict resolution is additive test enumeration. No test, case, or assertion was removed or relaxed. git diff --check and Bash syntax checks pass.
Additional attack
I supplied a structurally valid provider response whose only context was neutral, outside the suite's named fixture modes. The classifier returned unknown, production emitted ASSERTED_NOT_READY, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.
Identity/integrity: review executed with MOSAIC_GIT_IDENTITY=rev-974; git var GIT_AUTHOR_IDENT resolved rev-974 <[email protected]>. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.
VERDICT: APPROVE — GO — bound to 868b9b871a5118762aa5b8aafecd2f0592f7ab5c.
No blocking findings at this exact head.
## Pre-registered evidence
- **R1 PASS — the production guard can fail.** I invoked the exact-head `ci-queue-wait.sh` itself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited **3**, no-status exited **3**, malformed payload exited **3**, and a mixed/indeterminate `neutral` status classified `state=unknown` and exited **3**; each emitted `ASSERTED_NOT_READY`. Pending timed out with **124** and `ASSERTED_NOT_READY`. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.
- **R2 PASS — no queue-guard semantic moved.** Independent `range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87` reports commit 1 `!` and commits 2–5 `=`. More strongly, Git blob IDs are byte-identical between old approved head `78ec47cd` and this head for `ci-queue-wait.sh`, `pr-merge.sh`, `pr-metadata.sh`, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.
- **R3 PASS — exact union in both directions.** Parsed command populations are old PR **36**, fresh main **33**, and fresh head **37**. The de-duplicated set union of old PR and fresh main is exactly the fresh-head set: zero missing, zero extra. It contains branch-absent plus RM-03's tri-state, GitHub checks, merge-queue branch, and merge-head pin suites, and main's `test-terminal-green-contract.sh`. Enumeration guard reports population **49**, enumerated **30**, signed exclusions **19**, **43** named surface paths present; its 14 adversarial needles pass.
- **R4 PASS — tri-state is consequential.** Direct production behavior distinguished: verified success → exit **0**; asserted non-readiness/unknown → exit **3** (pending timeout **124**); provider-unreachable push → loud audited `CANNOT_ASSERT`, exit **0**; provider-unreachable merge → loud audited HOLD, exit **75**. Recovery on the next successful merge query self-cleared to exit **0** without reset. Two JSONL records were written for the two indeterminate calls. In particular, custom `state=unknown` did not become a renamed pass.
- **R5 PASS — RED is genuine.** I ran the immutable exact-head tri-state harness against pre-fix production at `f65e9ea6`: exit **1**. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited **0** and each generated named `expected rc!=0` plus missing-`ASSERTED_NOT_READY` failures. Separately, the committed red-first merge-bypass state `98872cd8` exits **1** for its stated reason: `--skip-queue-guard reached the provider merge path`. At this head the six focused queue/merge suites all pass.
- **R6 PASS in the canonical environment.** Pipeline #2199's `test` child exited **0**. CI executes `pnpm test`; package `test` chains Vitest and `test:framework-shell`, whose command is an `&&` chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.
- **R7 PASS.** Fresh `pipeline-status.sh -f json` record: pipeline #2199 commit exactly `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`, pipeline success, workflow `ci` success, **9 children = 9 success**, zero failures/skips/other. Children include `clone`, `ci-postgres`, `install`, `sanitization`, `upgrade-guard`, `typecheck`, `lint`, `format`, and `test`, all exit 0. Exact-head machine verifier exits **0**, `terminal-green`, `total_steps=9`, `exempted_steps=0`, no anomalies. Binding to old head correctly exits **1**.
- **R8 PASS.** Live PR body contains `Closes #1019` (and `Fixes #1019`). Provider metadata reports open, mergeable=true, base `main`, author `coder-mos1`, and exact head/repository `868b9b...` / `mosaicstack/stack`.
- **R9 PASS.** Commits 2–5 are patch-equivalent; byte comparison confirms every queue/merge implementation and regression is unchanged. Commit 1's only conflict resolution is additive test enumeration. No test, case, or assertion was removed or relaxed. `git diff --check` and Bash syntax checks pass.
## Additional attack
I supplied a structurally valid provider response whose only context was `neutral`, outside the suite's named fixture modes. The classifier returned `unknown`, production emitted `ASSERTED_NOT_READY`, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.
Focused exact-head evidence: tri-state PASS; GitHub checks PASS 4/4 including later-page failure; branch-absent PASS 3/3; merge branch/repository/SHA PASS; Gitea+GitHub exact-head pin PASS; Gitea exact-head API PASS.
Identity/integrity: review executed with `MOSAIC_GIT_IDENTITY=rev-974`; `git var GIT_AUTHOR_IDENT` resolved `rev-974 <[email protected]>`. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.
Commit-bound head:868b9b871a5118762aa5b8aafecd2f0592f7ab5c. This fresh verdict supersedes the void prior-head GO at 78ec47cd97bf0abc49334401f08c5b86e5be3a1a and is VOID immediately if the PR head moves.
Primary mechanical evidence
PR record: raw Gitea PR API reports PR #1032open, not draft, not merged, mergeable, base main, head 868b9b871a5118762aa5b8aafecd2f0592f7ab5c, author coder-mos1. The live body contains Closes #1019.
CI: Woodpecker pipeline #2199 (pipeline id 18014) is terminal success at commit 868b9b871a5118762aa5b8aafecd2f0592f7ab5c; workflow ci is success.
Full JSON step scan: read from pipeline-status.sh -n 2199 -f json; observed exactly 9 child steps, all success, 0 skipped: clone, ci-postgres, install, sanitization, upgrade-guard, typecheck, lint, format, test.
Head triple: reviewed SHA 868b9b871a5118762aa5b8aafecd2f0592f7ab5c == CI SHA 868b9b871a5118762aa5b8aafecd2f0592f7ab5c == PR head 868b9b871a5118762aa5b8aafecd2f0592f7ab5c.
Independent approval: review ID 74, author rev-974, state APPROVED, commit 868b9b871a5118762aa5b8aafecd2f0592f7ab5c; PR author coder-mos1 != reviewer rev-974. Review 74 is latest and current-head. Review 66 (APPROVED) binds only void old head 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; review 64 (REQUEST_CHANGES) binds only older head 44ffa99a158ae485e09e68c346f79666e143d6ff. There is no REQUEST_CHANGES against the current head.
Queue guard:ZERO-INFORMATION (inert, D-23, owner RM-03). The installed guard returned state=unknown / exit 0 at this exact head. PR #1032 contains the repair, but it is not installed until merge and re-sync; this result is explicitly not treated as evidence.
Fleet pause:fleet/run/PAUSED is absent.
Fresh adversarial pass
I independently reviewed the rebase result against current main. The three core-script diff is byte-identical to the previously reviewed RM-03 delta, and git diff --check passed. From an archive of this exact rebased head, the queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed. Bash syntax and source-aware ShellCheck passed. No rebase regression or blocking defect found.
Disposition: GO. The coordinator retains the head-pinned merge hand. I did not merge.
## MERGE-GATE VERDICT: GO
**Commit-bound head:** `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`. This fresh verdict supersedes the void prior-head GO at `78ec47cd97bf0abc49334401f08c5b86e5be3a1a` and is VOID immediately if the PR head moves.
### Primary mechanical evidence
- **PR record:** raw Gitea PR API reports PR #1032 `open`, not draft, not merged, mergeable, base `main`, head `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`, author `coder-mos1`. The live body contains `Closes #1019`.
- **CI:** Woodpecker pipeline **#2199** (pipeline id **18014**) is terminal `success` at commit `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`; workflow `ci` is `success`.
- **Full JSON step scan:** read from `pipeline-status.sh -n 2199 -f json`; observed exactly **9 child steps**, all `success`, **0 skipped**: `clone`, `ci-postgres`, `install`, `sanitization`, `upgrade-guard`, `typecheck`, `lint`, `format`, `test`.
- **Head triple:** reviewed SHA `868b9b871a5118762aa5b8aafecd2f0592f7ab5c` == CI SHA `868b9b871a5118762aa5b8aafecd2f0592f7ab5c` == PR head `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`.
- **Independent approval:** review **ID 74**, author `rev-974`, state `APPROVED`, commit `868b9b871a5118762aa5b8aafecd2f0592f7ab5c`; PR author `coder-mos1` != reviewer `rev-974`. Review 74 is latest and current-head. Review 66 (`APPROVED`) binds only void old head `78ec47cd97bf0abc49334401f08c5b86e5be3a1a`; review 64 (`REQUEST_CHANGES`) binds only older head `44ffa99a158ae485e09e68c346f79666e143d6ff`. There is no `REQUEST_CHANGES` against the current head.
- **Queue guard:** **ZERO-INFORMATION (inert, D-23, owner RM-03)**. The installed guard returned `state=unknown` / exit 0 at this exact head. PR #1032 contains the repair, but it is not installed until merge and re-sync; this result is explicitly not treated as evidence.
- **Fleet pause:** `fleet/run/PAUSED` is absent.
### Fresh adversarial pass
I independently reviewed the rebase result against current `main`. The three core-script diff is byte-identical to the previously reviewed RM-03 delta, and `git diff --check` passed. From an archive of this exact rebased head, the queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed. Bash syntax and source-aware ShellCheck passed. No rebase regression or blocking defect found.
**Disposition: GO.** The coordinator retains the head-pinned merge hand. I did not merge.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Verification
Closes #1019
Fixes #1019
VERDICT: CHANGES REQUESTED
Review bound to exact head
44ffa99a158ae485e09e68c346f79666e143d6ff. Void if the head moves.Blocking finding
[BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127advertises and implements--skip-queue-guard. That option bypasses the repaired tri-state guard—including merge-sideCANNOT_ASSERTexit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.Independent control using the exact-head script replaced the fixture queue guard with
exit 99, then invokedpr-merge.sh -n 123 --skip-queue-guard. Observed: queue guard was never called, provider merge payload was created, wrapper printedmerged successfully, exit 0.Remove the merge-capable skip option.
--dry-runmay avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.Highest-risk checks
state=terminal-failure,ASSERTED_NOT_READY, and nonzero. The focused tri-state matrix passed.python3 -con stdin; it is not placed in argv.CANNOT_ASSERTis loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero.ASSERTED_NOT_READYremains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.head_commit_id; GitHub sends--match-head-commit; stale--expect-headrefuses before provider invocation.Boundaries
VERDICT: CHANGES REQUESTED
Review bound to exact head
44ffa99a158ae485e09e68c346f79666e143d6ff. Void if the head moves.Blocking finding
[BLOCKER] The merge wrapper still exposes a complete queue-guard bypass
packages/mosaic/framework/tools/git/pr-merge.sh:29,38,58-60,119-127advertises and implements--skip-queue-guard. That option bypasses the repaired tri-state guard—including merge-sideCANNOT_ASSERTexit 75—and proceeds directly to the provider merge. This is an equivalent quality-gate skip switch, contradicts the no-degraded-merge requirement, and belongs to neither settled Option B nor RM-03. Break-glass is separately owned by RM-05.Independent control using the exact-head script replaced the fixture queue guard with
exit 99, then invokedpr-merge.sh -n 123 --skip-queue-guard. Observed: queue guard was never called, provider merge payload was created, wrapper printedmerged successfully, exit 0.Remove the merge-capable skip option.
--dry-runmay avoid the guard because it cannot merge, but a real merge must have no path around the guard. Add a regression that the former option is rejected and no provider operation occurs.Highest-risk checks
state=terminal-failure,ASSERTED_NOT_READY, and nonzero. The focused tri-state matrix passed.python3 -con stdin; it is not placed in argv.CANNOT_ASSERTis loud, audited, exit 0; merge-side is loud, audited, exit 75; audit-write failure is nonzero.ASSERTED_NOT_READYremains separate. The stateless rerun path permits recovery without manual clearing. The explicit merge bypass defeats this otherwise-correct behavior.head_commit_id; GitHub sends--match-head-commit; stale--expect-headrefuses before provider invocation.Boundaries
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
Independent verification
pr-metadata.shreports open PR #1032, authorcoder-mos1, basemain, head branchfix/rm-03-queue-guard, repositorymosaicstack/stack, and head OID78ec47cd97bf0abc49334401f08c5b86e5be3a1a(packages/mosaic/framework/tools/git/pr-metadata.sh:182-234).{"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}; the guard classifiedterminal-failure, emittedASSERTED_NOT_READY, and exited 3 (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.241113e6returned rc 1 withFAIL merge-bypass: --skip-queue-guard reached the provider merge path.--skip-queue-guardwas rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch.--dry-runinvoked neither guard nor provider and exited before dispatch (packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223;packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136).degraded-passversushold. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167;packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224).terminal-successat rc 0 (not 126). Payload parsing is stdin-backed viapython3 -c, never argv (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88;packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139)./repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/statusand made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425;packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223).git diff --checkpassed.gate-verifyis absent as expected for RM-03.origin/main. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed oldstate=unknown/0 guard as evidence.Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
VERDICT: APPROVED — bound exclusively to 78ec47cd97bf0abc49334401f08c5b86e5be3a1a; void if the PR head moves.
Findings
Independent verification
pr-metadata.shreports open PR #1032, authorcoder-mos1, basemain, head branchfix/rm-03-queue-guard, repositorymosaicstack/stack, and head OID78ec47cd97bf0abc49334401f08c5b86e5be3a1a(packages/mosaic/framework/tools/git/pr-metadata.sh:182-234).{"state":"failure","statuses":[{"context":"ci/test","status":"failure"}]}; the guard classifiedterminal-failure, emittedASSERTED_NOT_READY, and exited 3 (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88,454-479). Pending exited 124, no-status exited 3, malformed exited 3, and success exited 0.241113e6returned rc 1 withFAIL merge-bypass: --skip-queue-guard reached the provider merge path.--skip-queue-guardwas rejected at argument parsing with rc 1 and produced neither a guard call nor provider call. The ordinary merge-capable path invoked the guard and stopped at rc 99 without provider dispatch.--dry-runinvoked neither guard nor provider and exited before dispatch (packages/mosaic/framework/tools/git/pr-merge.sh:40-70,111-119,192-223;packages/mosaic/framework/tools/git/test-pr-merge-head-pin.sh:96-136).degraded-passversushold. The registered suite separately asserts push audit presence, an additional merge audit record, distinct rc 75 versus ASSERTED_NOT_READY rc 3/124, and refusal to degrade when audit writing fails (packages/mosaic/framework/tools/git/ci-queue-wait.sh:124-167;packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:140-166,211-224).terminal-successat rc 0 (not 126). Payload parsing is stdin-backed viapython3 -c, never argv (packages/mosaic/framework/tools/git/ci-queue-wait.sh:40-88;packages/mosaic/framework/tools/git/test-ci-queue-wait-tristate.sh:51-56,139)./repos/contributor/fork/commits/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/statusand made no branch-resolution request. The merge wrapper passes PR head branch/repository/full SHA and atomically pins provider merge (packages/mosaic/framework/tools/git/ci-queue-wait.sh:301-425;packages/mosaic/framework/tools/git/pr-merge.sh:92-119,130-139,210-223).git diff --checkpassed.gate-verifyis absent as expected for RM-03.origin/main. The five guides, shipped templates, merge wrapper, exact-head metadata normalization, six registered regressions, package registration, and scratchpad are consequential to the purpose-aware tri-state/exact-head contract; I found no drive-by change. The PR body does not cite the installed oldstate=unknown/0 guard as evidence.Disposition: approved review only. PR remains held for Jason; I did not merge or close anything.
MERGE-GATE VERDICT: GO
Commit-bound head:
78ec47cd97bf0abc49334401f08c5b86e5be3a1a. This verdict is VOID immediately if the PR head moves.Primary mechanical evidence
open, not draft, not merged, mergeable, basemain, head78ec47cd97bf0abc49334401f08c5b86e5be3a1a, authorcoder-mos1. The body containsCloses #1019.successat commit78ec47cd97bf0abc49334401f08c5b86e5be3a1a.pipeline-status.sh -n 2186 -f json; observed exactly 9 child steps, allsuccess, 0 skipped:clone,ci-postgres,install,sanitization,upgrade-guard,typecheck,lint,format,test.78ec47cd97bf0abc49334401f08c5b86e5be3a1a== CI SHA78ec47cd97bf0abc49334401f08c5b86e5be3a1a== PR head78ec47cd97bf0abc49334401f08c5b86e5be3a1a.rev-974, stateAPPROVED, commit78ec47cd97bf0abc49334401f08c5b86e5be3a1a; PR authorcoder-mos1!= reviewerrev-974. Review ID 64 isREQUEST_CHANGESonly against superseded head44ffa99a158ae485e09e68c346f79666e143d6ff; there is no outstandingREQUEST_CHANGESagainst the current head.state=unknown/ exit 0 at this head; this is explicitly not treated as evidence. PR #1032 is the repair and is not merged yet.fleet/run/PAUSEDis absent.Fresh adversarial pass
I independently reviewed the exact-head source and regression delta. Focused queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed from an archive of this head. Bash syntax, source-aware ShellCheck, and
git diff --checkpassed. No blocking correctness, bypass, identity-binding, or stale-head defect found.Disposition: GO. The coordinator retains the merge hand. This gate does not merge; the separate operational hold for Jason remains with the coordinator.
CHECKPOINT ONLY — not a deliverable, not reviewed, not complete. Committed by mos-remediation as TRANSPORT after the authoring seat (coder-mos1) became unable to act: its context window was exceeded at 102.6%/372k AND its overflow-recovery path failed ("Turn prefix summarization failed: servers overloaded"). The seat could not process instructions or commit its own work, leaving 28 modified files durable only on local disk. Authorship preserved as coder-mos1 — this is transport, not authorship. The work is the seat's; committing it is the only way to make it survive the rotation that must follow. Scope note, unresolved: this diff spans the queue-guard tools (9 files under framework/tools/git) AND 5 framework guides plus 11 agent templates. RM-03 was scoped to ci-queue-wait.sh and its tests. Whether the doc/template edits are consequential to the tri-state change or drive-by was queried and never answered — the seat was bricked before it could reply. That question stays open and must be resolved before any of this is reviewed; the wider edits may need splitting out. Direct instance of D-31: commit-then-rotate works, rotate-without-commit loses everything.78ec47cd97to868b9b871aVERDICT: APPROVE — GO — bound to
868b9b871a.No blocking findings at this exact head.
Pre-registered evidence
ci-queue-wait.shitself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited 3, no-status exited 3, malformed payload exited 3, and a mixed/indeterminateneutralstatus classifiedstate=unknownand exited 3; each emittedASSERTED_NOT_READY. Pending timed out with 124 andASSERTED_NOT_READY. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87reports commit 1!and commits 2–5=. More strongly, Git blob IDs are byte-identical between old approved head78ec47cdand this head forci-queue-wait.sh,pr-merge.sh,pr-metadata.sh, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.test-terminal-green-contract.sh. Enumeration guard reports population 49, enumerated 30, signed exclusions 19, 43 named surface paths present; its 14 adversarial needles pass.CANNOT_ASSERT, exit 0; provider-unreachable merge → loud audited HOLD, exit 75. Recovery on the next successful merge query self-cleared to exit 0 without reset. Two JSONL records were written for the two indeterminate calls. In particular, customstate=unknowndid not become a renamed pass.f65e9ea6: exit 1. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited 0 and each generated namedexpected rc!=0plus missing-ASSERTED_NOT_READYfailures. Separately, the committed red-first merge-bypass state98872cd8exits 1 for its stated reason:--skip-queue-guard reached the provider merge path. At this head the six focused queue/merge suites all pass.testchild exited 0. CI executespnpm test; packagetestchains Vitest andtest:framework-shell, whose command is an&&chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.pipeline-status.sh -f jsonrecord: pipeline #2199 commit exactly868b9b871a5118762aa5b8aafecd2f0592f7ab5c, pipeline success, workflowcisuccess, 9 children = 9 success, zero failures/skips/other. Children includeclone,ci-postgres,install,sanitization,upgrade-guard,typecheck,lint,format, andtest, all exit 0. Exact-head machine verifier exits 0,terminal-green,total_steps=9,exempted_steps=0, no anomalies. Binding to old head correctly exits 1.Closes #1019(andFixes #1019). Provider metadata reports open, mergeable=true, basemain, authorcoder-mos1, and exact head/repository868b9b.../mosaicstack/stack.git diff --checkand Bash syntax checks pass.Additional attack
I supplied a structurally valid provider response whose only context was
neutral, outside the suite's named fixture modes. The classifier returnedunknown, production emittedASSERTED_NOT_READY, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.Focused exact-head evidence: tri-state PASS; GitHub checks PASS 4/4 including later-page failure; branch-absent PASS 3/3; merge branch/repository/SHA PASS; Gitea+GitHub exact-head pin PASS; Gitea exact-head API PASS.
Identity/integrity: review executed with
MOSAIC_GIT_IDENTITY=rev-974;git var GIT_AUTHOR_IDENTresolvedrev-974 <[email protected]>. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.VERDICT: APPROVE — GO — bound to
868b9b871a.No blocking findings at this exact head.
Pre-registered evidence
ci-queue-wait.shitself against an isolated provider fixture, not merely its test harness. Provider-asserted terminal failure exited 3, no-status exited 3, malformed payload exited 3, and a mixed/indeterminateneutralstatus classifiedstate=unknownand exited 3; each emittedASSERTED_NOT_READY. Pending timed out with 124 andASSERTED_NOT_READY. This directly disproves the pre-fix zero-information behavior. I do not cite the installed/mandatory queue guard's own green.range-diff f65e9ea6..78ec47cd f4fd5967..868b9b87reports commit 1!and commits 2–5=. More strongly, Git blob IDs are byte-identical between old approved head78ec47cdand this head forci-queue-wait.sh,pr-merge.sh,pr-metadata.sh, all three queue tests, and all three merge tests. The sole old-head/new-head package diff adds main's terminal-green suite to the shell chain; it changes no guard implementation or assertion.test-terminal-green-contract.sh. Enumeration guard reports population 49, enumerated 30, signed exclusions 19, 43 named surface paths present; its 14 adversarial needles pass.CANNOT_ASSERT, exit 0; provider-unreachable merge → loud audited HOLD, exit 75. Recovery on the next successful merge query self-cleared to exit 0 without reset. Two JSONL records were written for the two indeterminate calls. In particular, customstate=unknowndid not become a renamed pass.f65e9ea6: exit 1. Pending, failure, no-status, aggregate-success/no-status, malformed payload, malformed statuses type, and malformed status-entry all actually exited 0 and each generated namedexpected rc!=0plus missing-ASSERTED_NOT_READYfailures. Separately, the committed red-first merge-bypass state98872cd8exits 1 for its stated reason:--skip-queue-guard reached the provider merge path. At this head the six focused queue/merge suites all pass.testchild exited 0. CI executespnpm test; packagetestchains Vitest andtest:framework-shell, whose command is an&&chain containing the complete union above. Thus canonical CI ran the framework shell chain to completion. I did not substitute a local passing variant; the known host-only Bash line-number limitation was not used as evidence.pipeline-status.sh -f jsonrecord: pipeline #2199 commit exactly868b9b871a5118762aa5b8aafecd2f0592f7ab5c, pipeline success, workflowcisuccess, 9 children = 9 success, zero failures/skips/other. Children includeclone,ci-postgres,install,sanitization,upgrade-guard,typecheck,lint,format, andtest, all exit 0. Exact-head machine verifier exits 0,terminal-green,total_steps=9,exempted_steps=0, no anomalies. Binding to old head correctly exits 1.Closes #1019(andFixes #1019). Provider metadata reports open, mergeable=true, basemain, authorcoder-mos1, and exact head/repository868b9b.../mosaicstack/stack.git diff --checkand Bash syntax checks pass.Additional attack
I supplied a structurally valid provider response whose only context was
neutral, outside the suite's named fixture modes. The classifier returnedunknown, production emittedASSERTED_NOT_READY, and exited 3. I also forced provider loss followed immediately by recovery: push degradation was auditable, merge held at 75, and the recovered exact same invocation succeeded without stale state. No silent degraded merge path or unknown-as-green path was found.Focused exact-head evidence: tri-state PASS; GitHub checks PASS 4/4 including later-page failure; branch-absent PASS 3/3; merge branch/repository/SHA PASS; Gitea+GitHub exact-head pin PASS; Gitea exact-head API PASS.
Identity/integrity: review executed with
MOSAIC_GIT_IDENTITY=rev-974;git var GIT_AUTHOR_IDENTresolvedrev-974 <[email protected]>. Reviewer differs from author. I wrote no repository config, source changes, or commits. This verdict is void if the PR head moves.MERGE-GATE VERDICT: GO
Commit-bound head:
868b9b871a5118762aa5b8aafecd2f0592f7ab5c. This fresh verdict supersedes the void prior-head GO at78ec47cd97bf0abc49334401f08c5b86e5be3a1aand is VOID immediately if the PR head moves.Primary mechanical evidence
open, not draft, not merged, mergeable, basemain, head868b9b871a5118762aa5b8aafecd2f0592f7ab5c, authorcoder-mos1. The live body containsCloses #1019.successat commit868b9b871a5118762aa5b8aafecd2f0592f7ab5c; workflowciissuccess.pipeline-status.sh -n 2199 -f json; observed exactly 9 child steps, allsuccess, 0 skipped:clone,ci-postgres,install,sanitization,upgrade-guard,typecheck,lint,format,test.868b9b871a5118762aa5b8aafecd2f0592f7ab5c== CI SHA868b9b871a5118762aa5b8aafecd2f0592f7ab5c== PR head868b9b871a5118762aa5b8aafecd2f0592f7ab5c.rev-974, stateAPPROVED, commit868b9b871a5118762aa5b8aafecd2f0592f7ab5c; PR authorcoder-mos1!= reviewerrev-974. Review 74 is latest and current-head. Review 66 (APPROVED) binds only void old head78ec47cd97bf0abc49334401f08c5b86e5be3a1a; review 64 (REQUEST_CHANGES) binds only older head44ffa99a158ae485e09e68c346f79666e143d6ff. There is noREQUEST_CHANGESagainst the current head.state=unknown/ exit 0 at this exact head. PR #1032 contains the repair, but it is not installed until merge and re-sync; this result is explicitly not treated as evidence.fleet/run/PAUSEDis absent.Fresh adversarial pass
I independently reviewed the rebase result against current
main. The three core-script diff is byte-identical to the previously reviewed RM-03 delta, andgit diff --checkpassed. From an archive of this exact rebased head, the queue tri-state, branch-absent, GitHub Checks pagination/later-page failure, exact-head queue subject, Gitea/GitHub atomic head pin, bypass rejection, and Gitea API-path regressions all passed. Bash syntax and source-aware ShellCheck passed. No rebase regression or blocking defect found.Disposition: GO. The coordinator retains the head-pinned merge hand. I did not merge.