carlos / platform Public

host test: deadlock bound 30s, not 2s, in the launch verifier test

TestPlan14LaunchVerifierCallerOrder gave the caller 2 s after release.
guard-close and guard-rollback create and migrate a SQLite registry in
that window: 16 ms on a RAM disk, 58 ms on NVMe, and past 2 s on a CI
worker whose disk the shard's parallel tests share. It failed on every
run since about 18:40Z on 2026-11-10, main included (#851). The bound
detects a deadlock, which never finishes, so it is now 30 s.
Human

Prompt

Yse (look into #851: CI host test deadlock)

From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.

Summary

Raises the deadlock bound in TestPlan14LaunchVerifierCallerOrder from 2 s to 30 s; the guard cases are disk-bound and CI's shared disk pushed them past 2 s.
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 95a52a9d25e8b79cde4f4729a1eec558cc679aea parent 173c703
1 file changed, +11 −2
  • internal/host/plan14_launch_verifier_test.go +11 −2

CI passed — run details

Intent

Attributed to this commit: 30.9 g CO₂e (3,556,840 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on ci-host-deadlock-bound-851, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/internal/host/plan14_launch_verifier_test.go b/internal/host/plan14_launch_verifier_test.go
index 36fe2e445..2e0ffa7a6 100644
--- a/internal/host/plan14_launch_verifier_test.go
+++ b/internal/host/plan14_launch_verifier_test.go
@@ -52,6 +52,15 @@ func TestPlan14LaunchVerifierToken(t *testing.T) {
}
}
+// launchVerifierDeadlockBound is how long TestPlan14LaunchVerifierCallerOrder
+// waits for the holder, then the caller, after the release is let go. It
+// detects a deadlock, which never finishes, so it is far above any honest
+// latency: the guard-close and guard-rollback callers create and migrate a
+// SQLite registry in that window, about 16 ms on a RAM disk and 58 ms on an
+// NVMe disk, and past the old 2 s bound on a CI worker whose disk the
+// shard's parallel tests share (discussion #851).
+const launchVerifierDeadlockBound = 30 * time.Second
+
func TestPlan14LaunchVerifierCallerOrder(t *testing.T) {
t.Parallel()
for _, name := range []string{"idle", "begin", "end", "recover", "activation", "floor-begin", "floor-end", "system-begin", "system-clear", "system-recovery", "guard-close", "guard-rollback"} {
@@ -152,7 +161,7 @@ func TestPlan14LaunchVerifierCallerOrder(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- case <-time.After(2 * time.Second):
+ case <-time.After(launchVerifierDeadlockBound):
t.Fatal("release holder deadlocked")
}
select {
@@ -160,7 +169,7 @@ func TestPlan14LaunchVerifierCallerOrder(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- case <-time.After(2 * time.Second):
+ case <-time.After(launchVerifierDeadlockBound):
t.Fatal("caller deadlocked")
}
if verified == 0 {