$ BASH_ENV="$PWD/ops/runtime-evidence/swarm-threads-0909-coarse.bash" bash .github/workflows/scripts/swarm-gate.test.sh
== verdict extraction ==
  ok   a bare REVIEW_FAILED is FAILED
  ok   a bare REVIEW_PASSED is PASSED
  ok   trailing blank lines do not hide the marker
  ok   surrounding whitespace is trimmed
  ok   a marker followed by a sign-off is UNCLEAR (PR #240 bug)
  ok   REVIEW_FAILED is never upgraded by surrounding prose
  ok   an empty transcript is UNCLEAR, not PASSED
  ok   a transcript merely containing the word is UNCLEAR
== lens selection ==
  ok   no reviews directory yields MISSING
  ok   an absent transcript yields MISSING
  ok   a transcript predating the run yields STALE
  ok   a transcript with the marker's exact mtime yields STALE
  ok   the newest fresh transcript wins
== swarm-post.sh end to end ==
  ok   one lens REVIEW_FAILED fails the gate (exit 1)
  ok   the objection is reported as FAILED, not STALE
  ok   a failing run still reports its verdict to the PR
  ok   three clean passes pass the gate (exit 0)
  ok   an UNCLEAR lens fails the gate
  ok   a lens with no transcript at all fails the gate
  ok   an empty sync fails the gate (exit 1)
  ok   the empty-sync reason reaches the step log

21 passed, 0 failed

EXIT_CODE=0
