carlos / platform Public

claim unit-shape policy: a fresh install's missing row is checked as an empty route (harness G10, 2026-10-21)

leo's first claim create reached serving but never installed: every pass
logged "selected authority changed", root's inventory stayed at revision 1
with no route entry, and no registry row was written. claimUnitShapePolicy,
the unit-shape refusal on every production claim policy, refused with
ErrChanged whenever the host had no registry row, and a fresh install has
none until registerRemote's second work.With writes it.

With no row the refusal now checks registry.Route{Host: s.Host}, as
rootClaimRestartShape does. checkClaimUnitShape (instance-control, adopt) and
root's boundInputs (agent) still refuse a configured shape or a saved unit
binding; a row for another host still refuses.

TestClaimFreshInstallUnderProductionPolicy installs fresh through root's real
commitRootInventory under the production policy and fails on 27303f54 with
"selected authority changed". The binding witnesses now run the production
policy instead of allow-all (all seven fail against the old refusal). Policy
unit tests cover the no-row, configured-shape, saved-binding, other-host and
matching-row cases in both modes' readers.

Census: overlay plan14-root-reads-claim-fresh-install.tsv, loaded last,
re-pins claimUnitShapePolicy at authority/E2 and the internal/host envelope,
rev3=PROPOSED-claim-fresh-install; the seal stands, 9B8 unchanged. Proposal
section "Fresh install" in census-proposal-claim-step8-readiness.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 4dd4c4367e133bbd3b6e790d7cea28667b19031d parent b20882e
8 files changed, +265 −4
  • docs/superpowers/notes/census-proposal-claim-step8-readiness.md +26 −0
  • internal/host/claim_binding_assembly_linux_test.go +3 −2
  • internal/host/claim_binding_witness_linux_test.go +4 −1
  • internal/host/claim_fresh_install_policy_linux_test.go +84 −0
  • internal/host/claimunit_policy.go +10 −1
  • internal/host/claimunit_policy_test.go +126 −0
  • internal/provision/plan14_root_reads_test.go +9 −0
  • internal/provision/testdata/plan14-root-reads-claim-fresh-install.tsv +3 −0

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
index c188cca21..cdad9a6f0 100644
--- a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
+++ b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
@@ -355,3 +355,29 @@ At 8.2 the harness's G10 re-run (2026-10-20, 23:25Z) stopped with `migration cen
**Tests.**
- `TestMigrationCensusKeepsRouterCache` accepts a cache file and refuses a symlinked one.
- With the class removed, it reproduces the harness's exact error.
+
+## Fresh install
+
+Status: PROPOSED (rev3=PROPOSED-claim-fresh-install).
+
+The harness's first claim-mode create on leo (G10, 2026-10-21) reached serving at 08:42:03Z, but leo never installed it. Each pass, the agent logged `provision: claim install claimtrial2.dev.harness.test: hostbox: selected authority changed`. Root's inventory stayed at revision 1 with no route entry, and no registry row was written.
+
+**Cause.** `claimUnitShapePolicy` (the unit-shape refusal that `productionClaimUnitShapePolicy` adds to every production claim policy) refused with `ErrChanged` whenever the host had no registry row. A fresh install has no row until `registerRemote`'s second `work.With` writes it, and the policy runs on every `work.With` before that. So every fresh claim install refused before its route entry reached root. The non-remote `Reconciler.Install` path refused the same way. The binding witnesses used an allow-all policy and never ran the refusal.
+
+**Fix.** With no row, the refusal now checks an empty route for the selected host, as `rootClaimRestartShape` already does.
+- **Still refused.** The same independent binding read refuses a host with a configured shape or a saved unit binding. That read is `checkClaimUnitShape` in instance-control and adopt modes, and root's `boundInputs` in agent mode. A row for another host also still refuses.
+- **No change for existing rows.** A row that exists is checked as before.
+
+**Census.** Overlay `plan14-root-reads-claim-fresh-install.tsv`, loaded last, re-pins `claimUnitShapePolicy` at its existing class and task (authority, E2). Its one new site is the empty route literal. The overlay also re-pins the `internal/host` envelope. No accepted-legacy row, so the seal stands. 9B8 has no change.
+
+**Ruling 6.** No new caller. The refusal is reached only from the production claim policy, as before.
+
+**Tests.**
+- `TestClaimFreshInstallUnderProductionPolicy`: an L2-style fresh remote install through root's real `commitRootInventory`, under the production policy (`hostbox.Policy` with the hold policy, `.WithRefusals(productionClaimUnitShapePolicy(...))`). Against the pre-fix refusal it fails with `install: hostbox: selected authority changed, effects=0`.
+- `TestClaimUnitShapePolicyFreshInstall` covers instance-control mode:
+ - with no row, it passes when there is no shape and no binding, or no binding store at all;
+ - it refuses a configured shape (`ErrUnsupported`) and a saved binding, with or without the shape;
+ - it refuses a row for another host;
+ - matching rows pass as before.
+- `TestClaimUnitShapePolicyFreshInstallAgentReader` covers agent mode: root's `boundInputs` receives the empty route. It passes with no binding and no shape, and refuses a configured shape or a saved binding.
+- The binding witnesses (the `claim_binding_*` L2/L3 worlds and the assembly-wired agent) now run the production policy instead of allow-all. All seven fail against the pre-fix refusal.
diff --git a/internal/host/claim_binding_assembly_linux_test.go b/internal/host/claim_binding_assembly_linux_test.go
index bcd23882e..91d71ea22 100644
--- a/internal/host/claim_binding_assembly_linux_test.go
+++ b/internal/host/claim_binding_assembly_linux_test.go
@@ -259,8 +259,9 @@ func (w *assemblyWorld) agent(pinned hostbox.Actor) *bindingAgent {
})
guard := hostguard.Guard{DataDir: w.r.DataDir, LockDir: w.locks, Claims: hostguard.StoreReader{Store: w.store}, FenceView: w.assembly.Guard.Root.View}
census := &hostbox.EmptyInstallationCensus{Inventory: journals.Inventory, Registry: w.reg, Launches: w.assembly.Launches, Box: pinned.Box, Enrollment: pinned.Enrollment, DirectoryRevision: pinned.Binding, Roots: w.assembly.ManagedRoots, SharedPaths: map[string][]string{"data": {"hostguard"}}}
- allow := func(context.Context, *hostclaim.Claim, hostbox.Selection, hostwrite.Identity) error { return nil }
- source := hostbox.WorkSource{Guard: guard, Box: pinned.Box, Region: "ie", Now: time.Now, Policy: allow, Local: func(context.Context, *hostclaim.Claim, hostbox.Selection) error { return nil }}
+ // The production policy, unit-shape refusal included (G10).
+ policy, _ := witnessPolicy(w.t, w.reg)
+ source := hostbox.WorkSource{Guard: guard, Box: pinned.Box, Region: "ie", Now: time.Now, Policy: policy, Local: func(context.Context, *hostclaim.Claim, hostbox.Selection) error { return nil }}
adapter := hostbox.ReconcileAdapter{Registry: w.reg, Inventory: remote, Box: pinned.Box, Enrollment: pinned.Enrollment, DirectoryRevision: pinned.Binding, Census: census, Reconciler: hostbox.Reconciler{Claims: w.store, Guard: guard, Box: pinned.Box, Region: "ie", Now: time.Now, Writes: hostwrite.Config{Enabled: true, Selector: source}, Local: park.Local{Guard: guard, Claims: w.store, DataDir: guard.DataDir, Box: pinned.Box}, CheckRecord: func(context.Context, hostbox.RecordSelection) error { return nil }, CheckLocal: func(context.Context, hostclaim.Observed, hostbox.RecordSelection) error { return nil }}}
return &bindingAgent{w: w, pinned: pinned, adapter: adapter, remote: remote, source: source, guard: guard, census: census}
}
diff --git a/internal/host/claim_binding_witness_linux_test.go b/internal/host/claim_binding_witness_linux_test.go
index 5dcbce8e4..18bd1406c 100644
--- a/internal/host/claim_binding_witness_linux_test.go
+++ b/internal/host/claim_binding_witness_linux_test.go
@@ -92,7 +92,10 @@ func (w *bindingInstallWorld) start(t *testing.T) {
})
w.guard = w.f.guard
w.guard.FenceView = w.rootAuth.View
- w.source = hostbox.WorkSource{Guard: w.guard, Box: pinned.Box, Region: "ie", Now: time.Now, Policy: func(context.Context, *hostclaim.Claim, hostbox.Selection, hostwrite.Identity) error { return nil }, Local: func(context.Context, *hostclaim.Claim, hostbox.Selection) error { return nil }}
+ // The production policy, unit-shape refusal included (G10): an allow-all
+ // policy here hid the refusal of every fresh install.
+ policy, _ := witnessPolicy(t, w.reg)
+ w.source = hostbox.WorkSource{Guard: w.guard, Box: pinned.Box, Region: "ie", Now: time.Now, Policy: policy, Local: func(context.Context, *hostclaim.Claim, hostbox.Selection) error { return nil }}
w.adapter = hostbox.ReconcileAdapter{Registry: w.reg, Inventory: w.remote, Box: pinned.Box, Enrollment: pinned.Enrollment, DirectoryRevision: pinned.Binding, Census: w.census, Reconciler: hostbox.Reconciler{Claims: w.f.claims, Guard: w.guard, Box: pinned.Box, Region: "ie", Now: time.Now, Writes: hostwrite.Config{Enabled: true, Selector: w.source}, Local: park.Local{Guard: w.guard, Claims: w.f.claims, DataDir: w.guard.DataDir, Box: pinned.Box}, CheckRecord: func(context.Context, hostbox.RecordSelection) error { return nil }, CheckLocal: func(context.Context, hostclaim.Observed, hostbox.RecordSelection) error { return nil }}}
}
diff --git a/internal/host/claim_fresh_install_policy_linux_test.go b/internal/host/claim_fresh_install_policy_linux_test.go
new file mode 100644
index 000000000..9e0faa14a
--- /dev/null
+++ b/internal/host/claim_fresh_install_policy_linux_test.go
@@ -0,0 +1,84 @@
+//go:build linux
+
+package host
+
+import (
+ "context"
+ "testing"
+
+ "github.com/carlosframework/platform/internal/hostbox"
+ "github.com/carlosframework/platform/internal/hostclaim"
+ "github.com/carlosframework/platform/internal/hostguard"
+ "github.com/carlosframework/platform/internal/hostwrite"
+ "github.com/carlosframework/platform/internal/registry"
+ "github.com/carlosframework/platform/internal/rootstate"
+)
+
+// witnessPolicy is the production claim policy as claimconstruction.go
+// composes it (hostbox.Policy with the registry hold policy, then
+// WithRefusals) carrying claimproduction.go's unit-shape refusal from
+// productionClaimUnitShapePolicy. The witnesses used an allow-all policy,
+// which hid that the refusal refused every fresh install (harness G10,
+// 2026-10-21).
+//
+// The refusal runs in instance-control mode: agent mode asks root's
+// boundInputs over the role-launch socket, which these in-process worlds do
+// not serve. Both modes share the row lookup this pins, and
+// TestClaimUnitShapePolicyFreshInstallAgentReader covers root's reader. The
+// unit-binding store and claim-units configuration are empty seams: no
+// configured shape and no saved binding, as on a box with no bound units.
+// missing counts the lookups that found no row.
+func witnessPolicy(t *testing.T, reg *registry.Registry) (policy func(context.Context, *hostclaim.Claim, hostbox.Selection, hostwrite.Identity) error, missing *int) {
+ t.Helper()
+ oldOpen, oldShapes := openClaimUnitBindingsRead, productionClaimUnitShapes
+ t.Cleanup(func() { openClaimUnitBindingsRead, productionClaimUnitShapes = oldOpen, oldShapes })
+ openClaimUnitBindingsRead = func() (rootstate.Store, error) { return &rollbackMemory{files: map[string][]byte{}}, nil }
+ productionClaimUnitShapes = func() (map[string]claimUnitShape, error) { return map[string]claimUnitShape{}, nil }
+ missing = new(int)
+ route := func(host string) (*registry.Route, error) {
+ rt, err := reg.Get(host)
+ if err == nil && rt == nil {
+ *missing++
+ }
+ return rt, err
+ }
+ return hostbox.Policy{Held: hostbox.RegistryHoldPolicy(reg)}.WithRefusals(productionClaimUnitShapePolicy("instance-control", route)).Check, missing
+}
+
+// G10 (harness, 2026-10-21): the first claim install on an empty box, through
+// the remote path into root's real commitRootInventory, under the production
+// policy. The install's first work.With (inventory_registration.go's route
+// entry) runs before the registry row exists; the unit-shape refusal used to
+// answer ErrChanged there on every attempt, leaving root's inventory at
+// revision 1 with no route entry and no row.
+func TestClaimFreshInstallUnderProductionPolicy(t *testing.T) {
+ w := newBindingInstallWorld(t)
+ policy, missing := witnessPolicy(t, w.reg)
+ w.source.Policy = policy
+ w.adapter.Reconciler.Writes = hostwrite.Config{Enabled: true, Selector: w.source}
+ if row, err := w.reg.Get(w.rec.Host); err != nil || row != nil {
+ t.Fatalf("not a fresh install: row %v, %v", row, err)
+ }
+
+ w.install(t)
+
+ if *missing == 0 {
+ t.Fatal("the unit-shape refusal never saw the fresh install's missing row")
+ }
+ in, revision := w.inventory(t)
+ if revision != 3 || len(in.Entries) != 1 || in.Entries[0].Kind != "route" || in.Entries[0].Materialization != "materialized" || in.DirectoryRevision != w.pinned.Binding {
+ t.Fatalf("inventory revision %d, entries %+v, stamp %q", revision, in.Entries, in.DirectoryRevision)
+ }
+ row, err := w.reg.Get(w.rec.Host)
+ if err != nil || row == nil || row.ClaimOwnership != w.route.ClaimOwnership || row.ClaimRowID != in.Entries[0].RowIdentity {
+ t.Fatalf("registry row %+v, %v", row, err)
+ }
+ holder := w.f.read().Claim.Holder
+ if row.ClaimIncarnation != holder.Incarnation || row.ClaimStamp != holder.Stamp {
+ t.Fatalf("row owned by %s/%d, holder %s/%d", row.ClaimIncarnation, row.ClaimStamp, holder.Incarnation, holder.Stamp)
+ }
+ view, err := w.rootAuth.View(t.Context(), w.rec.Host, hostguard.Captured{Incarnation: holder.Incarnation, Stamp: holder.Stamp})
+ if err != nil || view.Installation.InventoryRevision != revision {
+ t.Fatalf("guard inventory revision %d (journal %d), %v", view.Installation.InventoryRevision, revision, err)
+ }
+}
diff --git a/internal/host/claimunit_policy.go b/internal/host/claimunit_policy.go
index 9d76513a5..c7cd23a39 100644
--- a/internal/host/claimunit_policy.go
+++ b/internal/host/claimunit_policy.go
@@ -29,7 +29,16 @@ func claimUnitShapePolicy(route func(string) (*registry.Route, error), read clai
if err != nil {
return err
}
- if rt == nil || rt.Host != s.Host {
+ if rt == nil {
+ // A fresh install has no row until registerRemote's second
+ // work.With writes it, and every work.With before that runs this
+ // policy (harness G10, 2026-10-21). Check an empty route for the
+ // host instead, as rootClaimRestartShape does: a host with a
+ // configured shape or a saved unit binding still refuses through
+ // checkClaimUnitShape (root's boundInputs in agent mode).
+ rt = &registry.Route{Host: s.Host}
+ }
+ if rt.Host != s.Host {
return hostbox.ErrChanged
}
return read(ctx, *rt, s)
diff --git a/internal/host/claimunit_policy_test.go b/internal/host/claimunit_policy_test.go
index caa7a1f7d..bb0a6731a 100644
--- a/internal/host/claimunit_policy_test.go
+++ b/internal/host/claimunit_policy_test.go
@@ -2,6 +2,7 @@ package host
import (
"context"
+ "errors"
"os"
"strings"
"testing"
@@ -217,3 +218,128 @@ func TestPlan14BoundRestartShapeRefusal(t *testing.T) {
}
}
}
+
+// A fresh install has no registry row until registerRemote's second
+// work.With writes it, and the unit-shape refusal runs on every work.With
+// before that (harness G10, 2026-10-21). With no row the refusal checks an
+// empty route for the host: it passes only when the host has no configured
+// shape and no saved unit binding.
+func TestClaimUnitShapePolicyFreshInstall(t *testing.T) {
+ oldOpen, oldShapes := openClaimUnitBindingsRead, productionClaimUnitShapes
+ defer func() { openClaimUnitBindingsRead, productionClaimUnitShapes = oldOpen, oldShapes }()
+ for _, tc := range []struct {
+ name string
+ row string // "", "other", "matching"
+ shape bool
+ binding bool
+ storeless bool
+ want error
+ }{
+ {name: "no row, no shape, no binding", want: nil},
+ {name: "no row, no binding store", storeless: true, want: nil},
+ {name: "no row, configured shape", shape: true, want: hostbox.ErrUnsupported},
+ {name: "no row, saved binding", shape: true, binding: true, want: hostbox.ErrChanged},
+ {name: "no row, saved binding, shape removed", binding: true, want: hostbox.ErrChanged},
+ {name: "row for another host", row: "other", want: hostbox.ErrChanged},
+ {name: "matching row", row: "matching", shape: true, binding: true, want: nil},
+ {name: "matching ordinary row", row: "ordinary", want: nil},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ b, in, shape := plan14UnitBindingFixture(t, "console.service", "", "")
+ if tc.binding {
+ if _, err := b.establish(t.Context(), in.Host); err != nil {
+ t.Fatal(err)
+ }
+ }
+ openClaimUnitBindingsRead = func() (rootstate.Store, error) {
+ if tc.storeless {
+ return nil, os.ErrNotExist
+ }
+ return b.state, nil
+ }
+ productionClaimUnitShapes = func() (map[string]claimUnitShape, error) {
+ if tc.shape {
+ return map[string]claimUnitShape{in.Host: shape}, nil
+ }
+ return map[string]claimUnitShape{}, nil
+ }
+ var row *registry.Route
+ switch tc.row {
+ case "other":
+ r := registry.Route{Host: "sibling.example", Kind: "instance"}
+ row = &r
+ case "matching":
+ r := shape.route()
+ row = &r
+ case "ordinary":
+ r := registry.Route{Host: in.Host, Account: in.Account, App: in.App, Kind: "instance", DBPath: "/data/instances/shop/data.db", Addr: "127.0.0.1:8090"}
+ row = &r
+ }
+ lookups := 0
+ p := productionClaimUnitShapePolicy("instance-control", func(host string) (*registry.Route, error) {
+ lookups++
+ if host != in.Host {
+ t.Fatal("looked up", host)
+ }
+ return row, nil
+ })
+ s := hostbox.Selection{Host: in.Host, Box: in.Box, Action: "reconcile", Kind: hostclaim.KindServing, Captured: hostguard.Captured{Incarnation: in.Incarnation, Stamp: in.Stamp}}
+ err := p(t.Context(), &hostclaim.Claim{Host: in.Host, Op: hostclaim.Op{Kind: hostclaim.KindServing}}, s, hostwrite.Identity{})
+ if lookups != 1 {
+ t.Fatal("route lookups", lookups)
+ }
+ if tc.want == nil && err != nil {
+ t.Fatal("refused:", err)
+ }
+ if tc.want != nil && !errors.Is(err, tc.want) {
+ t.Fatalf("got %v, want %v", err, tc.want)
+ }
+ })
+ }
+}
+
+// The agent's reader is root's boundInputs (claimunit_policy.go's agent
+// branch, over the role-launch socket). It receives the empty route a fresh
+// install checks and passes it only when root has no binding and no
+// configured shape for the host.
+func TestClaimUnitShapePolicyFreshInstallAgentReader(t *testing.T) {
+ var seen []registry.Route
+ p := claimUnitShapePolicy(func(string) (*registry.Route, error) { return nil, nil }, func(_ context.Context, rt registry.Route, _ hostbox.Selection) error {
+ seen = append(seen, rt)
+ return nil
+ })
+ if err := p(t.Context(), nil, hostbox.Selection{Host: "shop.example"}, hostwrite.Identity{}); err != nil || len(seen) != 1 || seen[0] != (registry.Route{Host: "shop.example"}) {
+ t.Fatal(err, seen)
+ }
+ for _, tc := range []struct {
+ name string
+ binding, shape bool
+ want error
+ }{
+ {"no binding, no shape", false, false, nil},
+ {"configured shape", false, true, os.ErrPermission},
+ {"saved binding", true, true, os.ErrPermission},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ b, in, shape := plan14UnitBindingFixture(t, "console.service", "", "")
+ if tc.binding {
+ if _, err := b.establish(t.Context(), in.Host); err != nil {
+ t.Fatal(err)
+ }
+ }
+ if !tc.shape {
+ b.canonical = func(context.Context, string) (claimUnitShape, error) { return claimUnitShape{}, os.ErrNotExist }
+ } else {
+ b.canonical = func(context.Context, string) (claimUnitShape, error) { return shape, nil }
+ }
+ h := &ClaimLaunchRoot{unitBindings: b, unitProgram: func(claimUnitShape) (claimUnitProgram, error) { return claimUnitProgram{}, nil }}
+ inputs, err := h.boundInputs(t.Context(), registry.Route{Host: in.Host})
+ if tc.want == nil && (err != nil || inputs != nil) {
+ t.Fatal(inputs, err)
+ }
+ if tc.want != nil && !errors.Is(err, tc.want) {
+ t.Fatalf("got %v, want %v", err, tc.want)
+ }
+ })
+ }
+}
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go
index 575b9737c..389f75bb8 100644
--- a/internal/provision/plan14_root_reads_test.go
+++ b/internal/provision/plan14_root_reads_test.go
@@ -1101,6 +1101,15 @@ func TestPlan14RootReadCensus(t *testing.T) {
if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-claim-router-cache.tsv"), &inv, true); err != nil {
t.Fatal(err)
}
+ // Census overlay claim-fresh-install (harness G10, 2026-10-21: the
+ // unit-shape refusal refused every fresh claim install, which has no
+ // registry row until its own row write), loaded last. claimUnitShapePolicy
+ // re-pinned at its existing class: a missing row is checked as an empty
+ // route for the host. Marked rev3=PROPOSED-claim-fresh-install; envelope
+ // re-pinned; the seal stands.
+ if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-claim-fresh-install.tsv"), &inv, true); err != nil {
+ t.Fatal(err)
+ }
errs := append(compareRootReads(got, inv), checkRootReadLegacy(inv, seal)...)
errs = append(errs, checkRootReadDeclarations(got, inv)...)
if len(errs) > 0 {
diff --git a/internal/provision/testdata/plan14-root-reads-claim-fresh-install.tsv b/internal/provision/testdata/plan14-root-reads-claim-fresh-install.tsv
new file mode 100644
index 000000000..89d189756
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-claim-fresh-install.tsv
@@ -0,0 +1,3 @@
+# Census overlay claim-fresh-install (harness G10, 2026-10-21: leo's first claim create never installed; the agent logged "selected authority changed" on every pass). claimUnitShapePolicy refused with ErrChanged whenever the host had no registry row, and a fresh install has no row until registerRemote's second work.With writes it, so the production policy refused every fresh claim install before its route entry reached root. With no row the refusal now checks an empty route for the host, as rootClaimRestartShape already does: the same reader (checkClaimUnitShape in instance-control and adopt, root's boundInputs in agent mode) still refuses a host with a configured shape or a saved unit binding, and a row for another host still refuses. Re-pinned at its existing class and task (authority, E2); the new site is the empty route literal. Envelope re-pinned. No accepted-legacy row, so the seal stands. PROPOSED-claim-fresh-install (docs/superpowers/notes/census-proposal-claim-step8-readiness.md, "Fresh install").
+internal/host/claimunit_policy.go claimUnitShapePolicy authority E2 rev3=PROPOSED-claim-fresh-install;basis=as E50: root/agent policy uses a registry candidate only to request independent binding validation, and a wrong host refuses every operation; a missing row (a fresh install before its own row write) is validated as an empty route for the selected host, which the independent binding read refuses when the host has a configured shape or a saved unit binding registry:Host@817,whole:Route@361,whole:Route@773,whole:Route@890 256da02e4de3b36d6c4094f6d3509c449645e10b5b4f6a1d0605b49146912401
+@coverage internal/host 023cf5b8535957f9f5bda6e29386a6a0dfa28df242fa27a4ea88aa702d4e4e66