carlos / platform Public

provision: log the binding row read; name-class it (#511)

Drill 1 review round 1, Fable M7, and CI on f32f4704
(TestGroupNameClassCensus). The stateless binding's re-read of the
converged row logs its error instead of dropping it; the row is bound
next pass. The group-name census inventories Reconcile's new digest:
same class, since the binding's host, fleet and boxes are as before and
no name is derived, minted or published.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9458535ab5b4ad6d6c428e5c8e7367fd421a531b parent 5201624
2 files changed, +10 −2
  • internal/host/group_names_test.go +6 −1
  • internal/provision/reconcile.go +4 −1
diff --git a/internal/host/group_names_test.go b/internal/host/group_names_test.go
index a457cef18..35b21ef34 100644
--- a/internal/host/group_names_test.go
+++ b/internal/host/group_names_test.go
@@ -466,7 +466,12 @@ var groupNameProducerInventory = map[string]string{
"../edge/platformalias.go:PlatformAliasFold": "a18e4963cf88320ef3fb94b666b02838dc12cc3e9b2df3f2cbe2576ca682735f",
"../edge/regional.go:*Edge.foldRegional": "2c52d0d9147ab4b426649a78573a8550e0ba1073e2f5e5ef10e894f2570e9a8d",
"../provision/forward.go:forwardRowFor": "e7294d6a3c96e51646257200f5cedb26aaf491afea23be3d943b3e3f742c4db4",
- "../provision/reconcile.go:Reconcile": "1a56897323c0b0b26c6e7346b66bca03c95eeb56faded94b598082ae3eeff848",
+ // Stateless replicas #511 drill 1 (F4): the stateless binding callback
+ // is handed the row as convergeOwned left it (one local registry Get
+ // of the same host; a failed read is logged and bound next pass). The
+ // binding's host, fleet and boxes are the record's and row's as
+ // before; no name is derived, minted or published; same class.
+ "../provision/reconcile.go:Reconcile": "4890bce3357e26a3ab40fd7a642a60df275a2c5c14cc4adc2099cf860074f2ee",
// Resident replicas use nested local paths; exact-route names and owners do not change.
"../provision/reconcile.go:RouteFor": "f42827f4faca3572837e627a694c72928048e245573c50a75c357a44be28bb8d",
"../provision/reconcile.go:mintHeld": "9fe4ad876c727af36cc06bd0105baf344748c61e6f21ced48e5288a323851344",
diff --git a/internal/provision/reconcile.go b/internal/provision/reconcile.go
index 7a0fae556..72e988df7 100644
--- a/internal/provision/reconcile.go
+++ b/internal/provision/reconcile.go
@@ -2296,7 +2296,10 @@ func Reconcile(ctx context.Context, s release.Store, reg *registry.Registry, cfg
// read again is bound on the next pass.
bound := &existing
if rec.ReplicaAssignment != nil || existing.FleetBoxes != "" {
- bound, _ = reg.Get(rec.Host)
+ var err error
+ if bound, err = reg.Get(rec.Host); err != nil {
+ log.Printf("provision: stateless binding %s: read the converged row: %v (bound on the next pass)", rec.Host, err)
+ }
}
if bound != nil {
if err := cfg.StatelessBinding(ctx, rec, *bound); err != nil {