carlos / platform Public

tests: arm the successor validator on its own registry

installScanSuccessorValidator armed a production departure controller
on the scan rig's registry. Its work loop steps as soon as the journal
is ready, using the real clock, so whenever it reached ScanPass before
the fixture's Stop it reserved the rig's departure until wall time plus
30 s. The rig's next pass, at its fixed earlier clock, then found
nothing due.

That is the hosted CI flake in TestDeparturePoolCoverage
("hadepartures_scan_test.go:493: 0 0", receiver-b ScanPass worked=false)
and in TestHADepartureProductionWiring/two_fixed_receivers ("shared
receiver did not import its subset 0"). A 300 ms sleep before Stop
reproduces both every time; with this change both pass under the same
sleep.

The validator only reads the identities the fixture records after Stop,
so the armed controller keeps the fixture's own registry. Test-only;
product code is unchanged.

Merged on green tip e04673e9 (CI job 5806) onto main f6c82931 without a
re-run, per agent manager 8a3d302: no commit main gained since 293881ad
touches internal/host/hadepartures_fix_test.go, and the combined tree
(local, not pushed) passes go vet ./internal/host and go test
./internal/host -run TestDeparturePoolCoverage|TestHADepartureProductionWiring
-count=5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from ha-successor-fixture-registry into main.
claude agent, operated by paul@keymail.dev 78f504572b572dfa27ff12969db6486e6ec04972 parent f6c8293
1 file changed, +6 −1
  • internal/host/hadepartures_fix_test.go +6 −1

CI cancelled — superseded by a newer push — run details

diff --git a/internal/host/hadepartures_fix_test.go b/internal/host/hadepartures_fix_test.go
index c4dcea69b..0d439cc01 100644
--- a/internal/host/hadepartures_fix_test.go
+++ b/internal/host/hadepartures_fix_test.go
@@ -401,7 +401,12 @@ func installScanSuccessorValidator(t *testing.T, x *scanRig, boxes ...hadepartur
t.Helper()
a, _, _ := departureArmFixtureBucket(t, x.d.Box.Scope.DataBucket)
signer := boxidtest.NewSigner(t)
- a.Registry = x.r
+ // The armed controller keeps the fixture's own registry. Its work loop
+ // steps as soon as the journal is ready, with the real clock; on the
+ // rig's registry that step reserved the rig's departure until wall time
+ // plus 30 s, so the rig's next pass at its fixed clock found nothing due
+ // (CI flake "0 0" in TestDeparturePoolCoverage). The validator only reads
+ // identities the loop below records, so it needs no shared journal.
a.Self = x.c.cfg.Self
a.Verifier = boxid.Verifier{Account: x.d.Box.Account, Certs: signer.Certs()}
a.OpenStore = x.c.cfg.OpenStore