carlos / platform Public

census review 2: journal-migrate refuses settled installations; stale wording; drop the stop-bound fallback; pin seam reassignments (roster binding fix round 2)

Condition 1: rootMigrationCollector.collect also consumes
MigrationInstallations, which now lists settled records. It refuses any
Settled view with ErrFenced (refuseSettledInstallations), as
MigrationInstallations refused every quarantined record before, so a
settled installation the claim still names never enters the migration
snapshot or the census report as a local item. Startup's
verifyRootMigrationStartup still inspects them.
TestPlan14RootMigrationCollectorRefusesSettled: a claim on this box naming
the installation; settled -> ErrFenced, the unsettled control enters the
snapshot (without the refusal the settled view does too). The startup
regression checks the same views refuse the collector while startup
proceeded.

Condition 2: the overlay header and the proposal's "Obsolete state"
bullet and settleObsoleteIntent row name SettleObsoleteRootInventory.

Recommended (a): rootStopCoordinator drops the Identity.Verify fallback;
without a cleanup enrollment the bound stays nil and every stop refuses.
The lifecycle rootrunner fixture, which opens no cleanup enrollment, sets
the bound itself. (b): ruling 6 fails on a production reassignment of
openRootMigrationState or rootMigrationStartupFloors (checked with a
planted reassignment).

Census: collect re-pinned at G,J4, refuseSettledInstallations new at
G,J4, rootStopCoordinator re-pinned; marker stays PROPOSED-roster-binding;
inputExemptions unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 52ac5c5a5cc8361f41afa1b37183051adc80859a parent 4cdc6e3
8 files changed, +131 −15
  • docs/superpowers/notes/census-proposal-claim-step8-readiness.md +11 −3
  • internal/host/claim_binding_startup_linux_test.go +5 −0
  • internal/host/claimassembly.go +2 −9
  • internal/host/claimstep8_ruling6_test.go +11 −0
  • internal/host/plan14_lifecycle_root_linux_test.go +7 −0
  • internal/host/rootmigration_census.go +18 −0
  • internal/host/rootmigration_census_linux_test.go +72 −0
  • internal/provision/testdata/plan14-root-reads-roster-binding.tsv +5 −3

CI cancelled — superseded by a newer push — 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 156d370b6..ee2d21cef 100644
--- a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
+++ b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
@@ -214,7 +214,7 @@ The re-pins are in a new overlay, `internal/provision/testdata/plan14-root-reads
- **No new read.** The binding is computed from the roster object that `productionClaimRoster.Actor` and `verifyClaimCleanupEnrollment` already read and verify. Root's startup binding comes from the existing startup read. So every changed unit keeps its class, task and identity; only its basis, sites and digest move.
- **Root's two identities (R2).** Root's inventory actor is now a fresh `Identity.Verify` on every call. The startup actor pins only the census and supplies `startupBinding`.
- **Receipts (N1, B2).** A stop receipt's `directory_revision` is the roster numeral persisted in the fence target (`FenceTarget.RosterRevision`), so the v0.28.4 console's bound still holds. The binding goes in a new `binding` field. A fence without a numeral is refused before any drain or kill.
-- **Obsolete state (N3, B1, B3).** At root startup, a pending inventory or rebind intent stamped under another binding than the startup binding is settled through the guard's existing `AbandonRootInventory`, never replayed. A journaled cold handover whose successor is stamped under another binding is settled through the new fenced `SettleObsoleteColdHandover`, never resumed. Every cold handover, new or replayed, first passes the fresh successor admission.
+- **Obsolete state (N3, B1, B3).** At root startup, a pending inventory or rebind intent stamped under another binding than the startup binding is settled through the guard's `SettleObsoleteRootInventory` (fix round 1; the build first used `AbandonRootInventory`), never replayed. The installation stays quarantined and is marked settled: only startup's migration census inspects it. A journaled cold handover whose successor is stamped under another binding is settled through the new fenced `SettleObsoleteColdHandover`, never resumed. Every cold handover, new or replayed, first passes the fresh successor admission.
- **Recovery (R3).** A predecessor inventory is reused only when it carries today's binding.
- **Folded from Ack refresh.** That overlay's `productionClaimRoster.Actor` row (the actor carries `QuarantineRevision`) is superseded: the field is gone and the binding covers it. The row is re-pinned here. The Ack refresh overlay stays loaded where it is, and its other two rows are unchanged.
- **New units** take the class of the callers that execute them. `var openRootMigrationState` is the only one with a read: the `rootstate.Open` of the migration directory, moved unchanged out of its two callers into a variable so tests can stand in for the root-owned directory. It takes both callers' tasks. The others are declarations with no read, pinned so a later change is reviewed.
@@ -287,7 +287,7 @@ New units, at the class of their callers:
| `internal/hostbox/coldhandover.go` `ColdHandover.settleObsolete` | settles an obsolete journaled handover (declaration) | authority C (`Recover`'s) | root instance-control uid 0 |
| `internal/hostguard/coldhandover.go` `Guard.SettleObsoleteColdHandover` | the fenced guard settlement (declaration) | authority C (`settleObsolete`'s) | root instance-control uid 0 |
| `internal/host/rootinventory.go` `ClaimRootHTTP.obsoleteIntent` | compares a stamp with `startupBinding` (declaration) | authority C,E1,J4 (`recoverRootInventory`'s and `RecoverPending`'s) | root instance-control uid 0 |
-| `internal/host/rootinventory.go` `ClaimRootHTTP.settleObsoleteIntent` | abandons an obsolete intent through `AbandonRootInventory` (declaration) | authority C,E1 (`recoverRootInventory`'s) | root instance-control uid 0 |
+| `internal/host/rootinventory.go` `ClaimRootHTTP.settleObsoleteIntent` | settles an obsolete intent through `SettleObsoleteRootInventory` (declaration; fix round 1, replacing `AbandonRootInventory`) | authority C,E1 (`recoverRootInventory`'s) | root instance-control uid 0 |
| `internal/host/claimstop.go` `stopReceiptNumeral` | the receipt numeral from the fence target (declaration) | authority C,G,J4 (its three stop callers', and its fourth caller `verifyRetirementReceipt`, claimretire_transport.go:200; class unchanged) | root instance-control uid 0 |
| `internal/host/claimstop.go` `receiptRosterRevision` | parses a receipt numeral (declaration) | authority G,J4 (`readMigrationStop`'s) | journal-migrate uid 0; the agent's transport check also uses it |
| `internal/host/claimservinghandover.go` `servingPriorBinding` | binding equality, replacing `servingPriorRevision` (declaration) | authority C,J4 (the removed row's) | root instance-control uid 0 |
@@ -309,7 +309,7 @@ Status: PROPOSED with the rest of Roster binding (`rev3=PROPOSED-roster-binding`
3. **Numeral bound.** `FenceAndStop` and `witnessNoProcess` call the new `ClaimStopCoordinator.boundRosterRevision`: 0 < n <= `VerifiedRosterRevision`, which `rootStopCoordinator` binds to the new `claimCleanupEnrollment.rosterRevision` (root's own signed-roster read, quarantined or not; the fresh identity when there is no cleanup enrollment).
4. **B1 witness.** Test only.
-Changed units, re-pinned at their latest class: `recoverRootInventory`, `settleObsoleteIntent`, `obsoleteIntent`, `commitRootInventoryPending`, `verifyRootMigrationStartup`, `FenceAndStop`, `witnessNoProcess`, `rootStopCoordinator`, `type ClaimStopCoordinator`, and in hostguard `Guard.locked`, `Guard.AbandonRootInventory`, `Guard.CommitRootInventoryArtifacts`, `Guard.RebindRootInventory`, `RootAuthority.read`, `RootAuthority.write`, `RootAuthority.viewLocked`, `RootAuthority.MigrationInstallations` (each only sets, clears or reads the settled mark).
+Changed units, re-pinned at their latest class: `recoverRootInventory`, `settleObsoleteIntent`, `obsoleteIntent`, `commitRootInventoryPending`, `verifyRootMigrationStartup`, `FenceAndStop`, `witnessNoProcess`, `rootStopCoordinator`, `type ClaimStopCoordinator`, and in hostguard `Guard.locked`, `Guard.AbandonRootInventory`, `Guard.CommitRootInventoryArtifacts`, `Guard.RebindRootInventory`, `RootAuthority.read`, `RootAuthority.write`, `RootAuthority.viewLocked`, `RootAuthority.MigrationInstallations` (each sets, clears or reads the settled mark; `MigrationInstallations` now lists settled records instead of refusing, which journal-migrate's collector refuses again in fix round 2).
New units, at their callers' class:
@@ -327,3 +327,11 @@ New units, at their callers' class:
### Roster binding, fix round 2
Status: PROPOSED with the rest of Roster binding. The superseded-claim abandonment (`Guard.AbandonRootInventory`, reached from `recoverRootInventory`) now ends in the same terminal state as an obsolete-intent settlement. It keeps its exact-intent and fresh-claim checks, reconciles a landed commit through the same `applied` callback, and leaves the record quarantined and settled. Before, it left a quarantine the startup census refused on every restart. Both entry points now share the new `Guard.resolveRootInventory` (authority C,E1, a declaration with no read of its own). Re-pinned: `recoverRootInventory` (also in 9B8; kinds and class unchanged), `AbandonRootInventory`, `SettleObsoleteRootInventory`.
+
+Census review 2 conditions (folded into fix round 2):
+
+- **Condition 1.** `rootMigrationCollector.collect` (journal-migrate, G,J4) consumes `MigrationInstallations` too, and would have admitted a settled installation the claim still names as a live local item. It now refuses any `Settled` view with `ErrFenced` (`refuseSettledInstallations`, new, G,J4), as `MigrationInstallations` refused every quarantined record before. Startup's `verifyRootMigrationStartup` still inspects them. Re-pinned: `collect` at G,J4.
+- **Condition 2.** The overlay header and the two entries above now name `SettleObsoleteRootInventory`.
+- **Recommended (a).** `rootStopCoordinator` no longer falls back to `Identity.Verify`: without a cleanup enrollment the bound stays nil and every stop refuses. Its row's "no read" now holds. The lifecycle rootrunner fixture, whose owners open no cleanup enrollment, sets the bound itself.
+- **Recommended (b).** Ruling 6 also fails on any production reassignment of `openRootMigrationState` or `rootMigrationStartupFloors`.
+- **Condition 3** (the `inputExemptions` tag) is left for the ruling.
diff --git a/internal/host/claim_binding_startup_linux_test.go b/internal/host/claim_binding_startup_linux_test.go
index f7fbd8b07..2653528c2 100644
--- a/internal/host/claim_binding_startup_linux_test.go
+++ b/internal/host/claim_binding_startup_linux_test.go
@@ -524,6 +524,11 @@ func TestRootStartupInspectsSupersededIntents(t *testing.T) {
if v := settled[recA.Host]; v.Installation.InventoryRevision != beforeA+1 {
t.Fatalf("landed write not recorded: %d", v.Installation.InventoryRevision)
}
+ // Startup proceeded over these views; journal-migrate's collector, the
+ // census's other consumer, still refuses them (census condition 1).
+ if err := refuseSettledInstallations(views); !errors.Is(err, hostguard.ErrFenced) {
+ t.Fatal("the collector would admit settled installations:", err)
+ }
// The stop service is up and stops A's moved-on operation session.
if _, err := w.root.Stop.Coordinator.FenceAndStop(ctx, w.priorStop(moved, b0.Binding)); err != nil {
t.Fatal("stop service after abandonment:", err)
diff --git a/internal/host/claimassembly.go b/internal/host/claimassembly.go
index 4de0210b6..2beb6b39e 100644
--- a/internal/host/claimassembly.go
+++ b/internal/host/claimassembly.go
@@ -396,17 +396,10 @@ func (assembly *ClaimAssembly) rootStopCoordinator(store release.Store) ClaimSto
coordinator.Evidence = store
// The numeral bound is root's own fresh verified roster read (fix
// round 1, finding 3): the cleanup enrollment's, which still reads a
- // quarantined box's roster. An assembly without one (not instance-control
- // as production builds it) bounds by the fresh identity instead, which
- // refuses while quarantined.
+ // quarantined box's roster. Production instance-control always has one;
+ // without it the bound stays nil and every stop refuses.
if assembly.cleanupEnrollment != nil {
coordinator.VerifiedRosterRevision = assembly.cleanupEnrollment.rosterRevision
- } else {
- identity := assembly.Identity
- coordinator.VerifiedRosterRevision = func(ctx context.Context) (uint64, error) {
- actor, err := identity.Verify(ctx)
- return actor.Revision, err
- }
}
return coordinator
}
diff --git a/internal/host/claimstep8_ruling6_test.go b/internal/host/claimstep8_ruling6_test.go
index 98df126c0..f3c5d975b 100644
--- a/internal/host/claimstep8_ruling6_test.go
+++ b/internal/host/claimstep8_ruling6_test.go
@@ -177,6 +177,12 @@ func checkRosterBindingCallers(t *testing.T) {
if sel, ok := lhs.(*ast.SelectorExpr); ok && sel.Sel.Name == "Obsolete" {
callers["."+sel.Sel.Name+"="] = append(callers["."+sel.Sel.Name+"="], name)
}
+ // The seams stand in for root-owned state only in
+ // tests: a production reassignment would disable
+ // the migration directory read or the floor check.
+ if id, ok := lhs.(*ast.Ident); ok && (id.Name == "openRootMigrationState" || id.Name == "rootMigrationStartupFloors") {
+ callers[id.Name+"="] = append(callers[id.Name+"="], name)
+ }
}
}
return true
@@ -215,6 +221,11 @@ func checkRosterBindingCallers(t *testing.T) {
t.Errorf("%s is called from %v, want %v", name, got, w)
}
}
+ for _, seam := range []string{"openRootMigrationState=", "rootMigrationStartupFloors="} {
+ if got := callers[seam]; len(got) != 0 {
+ t.Errorf("%s is reassigned in production by %v, want nowhere", strings.TrimSuffix(seam, "="), got)
+ }
+ }
// Obsolete is set only by the assignment above, never in a literal. (An
// Admit assignment is not pinned: other types' Admit fields share the name.)
if got := callers["ColdHandover{Obsolete}"]; len(got) != 0 {
diff --git a/internal/host/plan14_lifecycle_root_linux_test.go b/internal/host/plan14_lifecycle_root_linux_test.go
index 054f74133..95d374efd 100644
--- a/internal/host/plan14_lifecycle_root_linux_test.go
+++ b/internal/host/plan14_lifecycle_root_linux_test.go
@@ -968,6 +968,13 @@ func TestPlan14LifecycleControlProcessPayload(t *testing.T) {
wrapped, err := WithProductionClaimLaunch(ctx, root)
lifecycleCheck(t, "launch constructor", err)
rootHTTP := wrapped.(ClaimRootWithLaunch)
+ // lifecycleOwners opens no cleanup enrollment, so production wiring
+ // leaves the stop numeral bound unset (every stop refuses); the fixture
+ // bounds by its identity's roster revision instead.
+ rootHTTP.Root.Stop.Coordinator.VerifiedRosterRevision = func(ctx context.Context) (uint64, error) {
+ actor, err := assembly.Identity.Verify(ctx)
+ return actor.Revision, err
+ }
rootHTTP.Root.Stop.Coordinator.Kernel = &lifecycleStopTrace{claimUnitStopKernel: rootHTTP.Root.Stop.Coordinator.Kernel.(claimUnitStopKernel), t: t}
rootHTTP.Launch.Kernel = lifecycleKernelTrace{rootHTTP.Launch.Kernel, t}
rootHTTP.Launch.Units = lifecycleUnitsTrace{rootHTTP.Launch.Units, t}
diff --git a/internal/host/rootmigration_census.go b/internal/host/rootmigration_census.go
index 70f7f6aa4..f1f13098f 100644
--- a/internal/host/rootmigration_census.go
+++ b/internal/host/rootmigration_census.go
@@ -139,6 +139,9 @@ func (c rootMigrationCollector) collect(ctx context.Context) (rootMigrationSnaps
if err != nil {
return s, err
}
+ if err := refuseSettledInstallations(retained); err != nil {
+ return s, err
+ }
if c.retirements != nil {
retired, err := c.retirements(ctx)
if err != nil {
@@ -269,3 +272,18 @@ func (c rootMigrationCollector) collect(ctx context.Context) (rootMigrationSnaps
s.Report.Complete = true
return s, nil
}
+
+// refuseSettledInstallations keeps journal-migrate's collector deciding as
+// it did before roster binding's fix rounds: an installation root resolved
+// terminally (settled: an obsolete-binding or superseded-claim intent,
+// quarantined) refuses the collection with ErrFenced, exactly as
+// MigrationInstallations itself refused every quarantined record. Only
+// startup's verifyRootMigrationStartup inspects settled installations.
+func refuseSettledInstallations(views []hostguard.FenceView) error {
+ for _, v := range views {
+ if v.Settled {
+ return hostguard.ErrFenced
+ }
+ }
+ return nil
+}
diff --git a/internal/host/rootmigration_census_linux_test.go b/internal/host/rootmigration_census_linux_test.go
index 8d167ea4d..860eadcbe 100644
--- a/internal/host/rootmigration_census_linux_test.go
+++ b/internal/host/rootmigration_census_linux_test.go
@@ -5,10 +5,12 @@ import (
"context"
"crypto/ed25519"
"encoding/json"
+ "errors"
"testing"
"time"
"github.com/carlosframework/platform/internal/hostbox"
+ "github.com/carlosframework/platform/internal/hostclaim"
"github.com/carlosframework/platform/internal/hostguard"
"github.com/carlosframework/platform/internal/hostops"
"github.com/carlosframework/platform/internal/registry"
@@ -93,3 +95,73 @@ func TestPlan14RootMigrationCensusSeeds(t *testing.T) {
})
}
}
+
+// Census condition 1 (fix round 2): journal-migrate's collector refuses a
+// settled installation with ErrFenced, as MigrationInstallations refused
+// every quarantined record before settlement existed. The installation is
+// one the claim still names on this box, so without the refusal it would
+// enter the migration snapshot as a live, local item. The control is the
+// same view, not settled: it does enter the snapshot.
+func TestPlan14RootMigrationCollectorRefusesSettled(t *testing.T) {
+ ctx := t.Context()
+ store, _, owners, _ := fix4JournalFixture(t)
+ actor, err := owners.Identity.Verify(ctx)
+ if err != nil {
+ t.Fatal(err)
+ }
+ r := leoRecords(t)[0]
+ var body struct {
+ Region string `json:"region"`
+ CreatedAt time.Time `json:"created_at"`
+ }
+ if err := json.Unmarshal(r.Body, &body); err != nil {
+ t.Fatal(err)
+ }
+ if _, err := store.Put(ctx, r.Holder.Key, r.Body, ""); err != nil {
+ t.Fatal(err)
+ }
+ absent, err := hostclaim.Read(ctx, store, r.Holder.Host)
+ if err != nil {
+ t.Fatal(err)
+ }
+ o, err := hostclaim.Update(ctx, store, absent, hostclaim.BeginCreate(hostclaim.NewHolder{Family: "instance", Key: r.Holder.Key, Account: r.Holder.Account, App: r.Holder.App, Host: r.Holder.Host, Region: "ie", RecordRegion: body.Region, CreatedAt: body.CreatedAt}, r.Body, "create", "console", time.Now()))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if o, err = hostclaim.Update(ctx, store, o, hostclaim.CompleteCreate("create", actor.Box)); err != nil {
+ t.Fatal(err)
+ }
+ // TEST-ONLY transition: a writer session on this box.
+ if o, err = hostclaim.Update(ctx, store, o, func(c *hostclaim.Claim) error { c.Holder.Session, c.Holder.WriterBox = 1, actor.Box; return nil }); err != nil {
+ t.Fatal(err)
+ }
+ r, err = hostops.ReadRecord(ctx, store, r.Holder.Key)
+ if err != nil {
+ t.Fatal(err)
+ }
+ plan := hostops.BackfillPlan{V: 1, ID: "migration", Phase: "collecting", DirectoryRevision: 1, CreatedAt: time.Now(), Hosts: map[string]hostops.BackfillHost{r.Holder.Host: {Key: r.Holder.Key, ETag: r.ETag, Acquisition: r.Holder.Acquisition}}}
+ raw, err := release.SignRootEnvelope(release.RootSigner(ed25519.NewKeyFromSeed(bytes.Repeat([]byte{1}, ed25519.SeedSize))), plan)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err := store.Put(ctx, hostops.BackfillKey, raw, ""); err != nil {
+ t.Fatal(err)
+ }
+ h := o.Claim.Holder
+ view := hostguard.FenceView{Schema: 1, Host: o.Host, Captured: hostguard.Captured{Incarnation: h.Incarnation, Stamp: h.Stamp}, Installation: hostguard.RootInstallation{Host: o.Host, Incarnation: h.Incarnation, Stamp: h.Stamp, Account: h.Account, App: h.App, Record: h.Key, Box: actor.Box, Enrollment: actor.Enrollment, Migration: 1, InventoryRevision: 2}}
+ for _, settled := range []bool{false, true} {
+ v := view
+ v.Settled = settled
+ c := rootMigrationCollector{store: store, directory: owners.RetirementAuthority.Directory, identity: rootMigrationIdentity{Deployment: actor.ControlBucket, Box: actor.Box, Enrollment: actor.Enrollment, Generation: 1}, seeds: &migrationSeeds{}, installations: func(context.Context) ([]hostguard.FenceView, error) { return []hostguard.FenceView{v}, nil }, launches: func(context.Context) ([]hostbox.LaunchInventory, error) { return nil, nil }, reservations: func(context.Context) ([]release.GenerationReservation, error) { return nil, nil }, boot: func() (string, error) { return "boot", nil }}
+ s, err := c.collect(ctx)
+ if settled {
+ if !errors.Is(err, hostguard.ErrFenced) {
+ t.Fatalf("collector admitted a settled installation: %v, items %+v", err, s.Items)
+ }
+ continue
+ }
+ if err != nil || len(s.Items) != 1 || s.Items[0].Installation != view.Installation {
+ t.Fatalf("control: the unsettled view: %v, items %+v", err, s.Items)
+ }
+ }
+}
diff --git a/internal/provision/testdata/plan14-root-reads-roster-binding.tsv b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv
index 4aaa06d0b..86ed6e1b0 100644
--- a/internal/provision/testdata/plan14-root-reads-roster-binding.tsv
+++ b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv
@@ -1,5 +1,5 @@
-# Census overlay roster-binding (roster binding, design-roster-revision-holds.md rev 3 plus section 7, tasks 1 to 7 at 7103ee07): installed state is stamped with and compared against hostactors.BoxBinding, a digest of the box's roster row and the deployment's binding facts, instead of the roster write counter, so holds and other unrelated roster writes no longer refuse claim work while a quarantine, readmission, re-enrolment, floor, home or census-key change still does. The binding is computed from the reads the claim roster adapter and the cleanup identity already make; root's inventory actor is the fresh Identity.Verify; stop receipts take their directory_revision numeral from the fence's persisted RosterRevision and carry the binding in a new field; root startup settles obsolete inventory and rebind intents through the existing abandonment write and obsolete cold-handover barriers through the new fenced SettleObsoleteColdHandover; the cold handover admits only a fresh successor. Changed units are re-pinned at their existing class, task and identity; new units take the class of the callers that execute them; servingPriorRevision is removed (renamed servingPriorBinding). productionClaimRoster.Actor is folded from the claim-ack-refresh overlay, which stays loaded before this one. No accepted-legacy row, so the seal stands. PROPOSED, awaiting a ruling (docs/superpowers/notes/census-proposal-claim-step8-readiness.md, "Roster binding").
-@coverage internal/host 2f1e867cf9128498d39f12c3203942e6b3c077d4029928893153f0bb6796b9da
+# Census overlay roster-binding (roster binding, design-roster-revision-holds.md rev 3 plus section 7, tasks 1 to 7 at 7103ee07, plus code-review fix rounds 1 and 2): installed state is stamped with and compared against hostactors.BoxBinding, a digest of the box's roster row and the deployment's binding facts, instead of the roster write counter, so holds and other unrelated roster writes no longer refuse claim work while a quarantine, readmission, re-enrolment, floor, home or census-key change still does. The binding is computed from the reads the claim roster adapter and the cleanup identity already make; root's inventory actor is the fresh Identity.Verify; stop receipts take their directory_revision numeral from the fence's persisted RosterRevision and carry the binding in a new field; root startup settles obsolete inventory and rebind intents through the guard's SettleObsoleteRootInventory (and a superseded-claim abandonment ends in the same settled state), a quarantine only the startup migration census inspects, and obsolete cold-handover barriers through the new fenced SettleObsoleteColdHandover; the cold handover admits only a fresh successor. Changed units are re-pinned at their existing class, task and identity; new units take the class of the callers that execute them; servingPriorRevision is removed (renamed servingPriorBinding). productionClaimRoster.Actor is folded from the claim-ack-refresh overlay, which stays loaded before this one. No accepted-legacy row, so the seal stands. PROPOSED, awaiting a ruling (docs/superpowers/notes/census-proposal-claim-step8-readiness.md, "Roster binding").
+@coverage internal/host 666e36a0028965ba28349018b3958f9f448dcf3d66ea2b0d6f6bb48ea639c7a3
@coverage internal/hostactors 1af14a5c45dacffe3d5b1878fde611b6887b1f3fdf2604adad427c819818813b
@coverage internal/hostbox 6a698fe2c67cf9096d341b558e3f151481221f4134f578fcd2b8dbfcb07f3b50
@coverage internal/hostguard d3483cd67d197851473583e9ef941ff73d7007aa15d048c4b315d45185ec2764
@@ -45,7 +45,7 @@ internal/host/rootmigration_startup.go verifyRootMigrationStartup authority G,F,
internal/hostbox/coldhandover.go ColdHandover.Recover authority C rev3=PROPOSED-roster-binding;basis=a provably superseded cold admission can abandon its barrier without discarding its receipt; a settled journal is skipped, and a journaled successor that Obsolete reports is settled through settleObsolete instead of resumed; a failed settlement does not stop the other journals d28f0ac7dee5f858be05175e24338818069deb902f26e38b81170966b710d9b9
internal/hostbox/coldhandover.go type ColdHandover authority C,J4 rev3=PROPOSED-roster-binding;basis=as before, plus Admit (root's fresh successor admission) and Obsolete (root's startup obsolescence test); with both nil, Run and Recover are as before ae1abb4422718e4b72401a43ff2a239f060274397e6c904e696cfacb67ba55a6
internal/host/rootmigration_startup.go var openRootMigrationState authority C,F,G,J4 rev3=PROPOSED-roster-binding;identity=root instance-control startup and recovery uid 0;basis=new: rootstate.Open of rootMigrationDir, read-only, moved unchanged out of recoverRootInventoryStartup (C,G) and verifyRootMigrationStartup (G,F,J4) into a variable so tests can stand in for the root-owned directory; its only callers are those two, and it takes both their tasks file:Open@71 4564c16cd8ec2d403e99191a94f67ba1655abe8642eaa3660234c104c3f5ac6d
-internal/host/claimassembly.go ClaimAssembly.rootStopCoordinator authority C,E2 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: NewProductionRootClaimStop's stop coordinator assembly, moved unchanged; NewProductionRootClaimStop is its only caller, and its class; fix round 1 (finding 3): sets the coordinator's VerifiedRosterRevision to the cleanup enrollment's fresh roster read (claimCleanupEnrollment.rosterRevision); an assembly without a cleanup enrollment bounds by the fresh Identity.Verify's Revision instead, which refuses while quarantined; no read 9e2539c2d720065bdd96bf90cf847c20f09ed3dcca61ceaf9e418a9548d49274
+internal/host/claimassembly.go ClaimAssembly.rootStopCoordinator authority C,E2 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: NewProductionRootClaimStop's stop coordinator assembly, moved unchanged; NewProductionRootClaimStop is its only caller, and its class; fix round 1 (finding 3): sets the coordinator's VerifiedRosterRevision to the cleanup enrollment's fresh roster read (claimCleanupEnrollment.rosterRevision); without a cleanup enrollment the bound stays nil and every stop refuses (fix round 2 dropped the Identity.Verify fallback, unreachable in production); no read 4fc76cfcc5639668f8c2da88ae168371c0b801f61a92eb7685e5d58c562cb884
internal/host/claimassembly.go ClaimAssembly.claimRootHTTP authority C,E2 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: NewProductionRootClaimStop's root handler assembly; InventoryActor is the fresh Identity.Verify (R2), startupBinding and the census pin are the startup actor's binding; NewProductionRootClaimStop is its only caller, and its class b231e1b9bb854a667fdab64d21e011d644d8cba26bcb3730c1bb433986ba28c0
internal/host/claimhandover_transport.go ClaimRootHTTP.coldHandover authority C,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: the operation cold handover that serveColdHandover and RecoverPending both build, as before plus Admit = admitColdSuccessor; the class of those two callers 067248e06d68c2e4f3ceeb449ce37ce99b2cc4d0b66f9c5d31266d59c086d6da
internal/host/claimhandover_transport.go ClaimRootHTTP.admitColdSuccessor authority C,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: RequireNewWork, then the successor's box, enrollment and stamp against a fresh InventoryActor (non-empty binding); refuses without InventoryActor; runs before any successor state (N5, B1); executed by ColdHandover.Run for coldHandover's callers, their class 72681b40f684ac60e937c8c40984fe97951af92770de9a5d73c1ac5bbbab34eb
@@ -74,3 +74,5 @@ internal/host/claimstop.go type ClaimStopCoordinator authority C,G,J4 rev3=PROPO
internal/host/claimstop.go ClaimStopCoordinator.boundRosterRevision authority C,G,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new (fix round 1, finding 3): refuses an agent-sent RosterRevision outside 0 < n <= VerifiedRosterRevision's value, nil refusing; no read of its own; the class of its callers FenceAndStop (C,J4) and witnessNoProcess (C,G,J4) ddd535a321268d90f9058388304a417d81320d64b468a2ce5a9d65d3789902d3
internal/host/claimcleanup_identity.go claimCleanupEnrollment.rosterRevision authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new (fix round 1, finding 3): root's own read of the signed roster (hostactors Directory.Read verifies the deployment signature) at the moment of a stop, never the startup read; the box's row must still name this enrollment; returns the roster's write counter whether or not the box is quarantined, so historical cleanup keeps working; the same read configureSigner makes; reached only through rootStopCoordinator's VerifiedRosterRevision, so the class of boundRosterRevision's callers file:Read@157 42b607901a37ef0dcd3e3dad7f0c053beab426c3f2acec0457a65800a0fd7f22
internal/hostguard/root.go Guard.resolveRootInventory authority C,E1 rev3=PROPOSED-roster-binding;identity=root instance-control or root participation/update uid 0;basis=new (fix round 2): the one terminal resolution of a pending root inventory intent, under the host lock with the exact intent bytes; for a superseded claim it reads the fresh claim through the guard and requires superseded; reconciles a landed commit through applied; clears the intent and marks the record quarantined and settled; reads through the guard's record directory; the class of its callers AbandonRootInventory and SettleObsoleteRootInventory (both reached from recoverRootInventory) 5549be9c521f8ad6514f4c79a39bbcc2442c644641b1f21786f0c94ea54612a6
+internal/host/rootmigration_census.go rootMigrationCollector.collect authority G,J4 rev3=PROPOSED-roster-binding;identity=carlos system journal-migrate, offline operator CLI, uid 0;basis=signed collecting manifest and actor directory bound complete records/claims census; registry Seeds are refusal-only; with the agent stopped and masked, a legacy route row is reported as a route installation only when legacyRouteRow matches it to its frozen record, which only nominates this box for that record's adoption (checked again by the adopter against the signed census and the committed domain claim) and installs nothing; any other row refuses; fix round 2 (census review 2, condition 1): refuses with ErrFenced any installation MigrationInstallations lists as Settled (refuseSettledInstallations), so a settled, quarantined installation still refuses the collection exactly as before settlement existed and never enters the snapshot or the census report as a local item; reads unchanged file:Exec@4765,file:Read@2868,file:Read@689,registry:Host@6305,registry:Host@6457,registry:Host@6659,registry:Host@6791,whole:Route@6274,whole:Route@6496 0818335a24d2b54b852ef4ce79abe731d58925dc5d3b784640023c825fffb4e8
+internal/host/rootmigration_census.go refuseSettledInstallations authority G,J4 rev3=PROPOSED-roster-binding;identity=carlos system journal-migrate, offline operator CLI, uid 0;basis=new (fix round 2, census review 2 condition 1): ErrFenced for any Settled census view; no read; the class of its caller rootMigrationCollector.collect 0938feca28af6a906ab4d1a32be3140bff5da29eaadb346404f5f52b7ae35708