carlos / platform Public

census: roster binding overlay, 9B8 re-pins and ruling 6 pins (roster binding task 10)

Plan 14: plan14-root-reads-roster-binding.tsv, rev3=PROPOSED-roster-binding,
loaded last. 41 changed or stale units re-pinned at their existing class,
task and identity (productionClaimRoster.Actor folded from claim-ack-refresh);
12 new units at their callers' classes (var openRootMigrationState carries
the one moved read); servingPriorRevision removed; host, hostactors, hostbox
and hostguard envelopes re-pinned. No accepted-legacy row; the seal stands.
The input coverage inventory, which stops at activation-tools, carries a
PROPOSED exemption for the deleted servingPriorRevision.

9B8: six key-site units re-pinned at unchanged class and kinds in
plan14ClaimRosterBindingWriteCensusInventory. SettleObsoleteColdHandover
writes host-local guard state and the cold journal, not an instance or
sidecar record, and is not scanned, like its guard siblings.

Ruling 6: TestStep8CensusChangesReachOnlyClaimMode pins BoxBinding's callers,
the claim owners chain, the four SameBinding sites and the cold handover
Admit/Obsolete and settlement wiring across the module.

Proposal: "Roster binding" in census-proposal-claim-step8-readiness.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 22d6404b0416c09abc20628094519e243c353181 parent 7103ee0
7 files changed, +359 −1
  • docs/superpowers/notes/census-proposal-claim-step8-readiness.md +95 −0
  • internal/host/claimstep8_ruling6_test.go +125 −0
  • internal/provision/claim_empty_cohort_fix1_census_test.go +63 −0
  • internal/provision/plan14_input_inventory_test.go +4 −0
  • internal/provision/plan14_root_reads_test.go +12 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-roster-binding.tsv +59 −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 df746f816..75c19ba39 100644
--- a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
+++ b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md
@@ -204,3 +204,98 @@ Tests:
- `TestClaimAckRefreshProductionClient` runs against the real root broker and RootClient. It waits for one real renewal, confirms the token rotated, and checks that the refreshed ack keeps the first controller ID.
- `TestAcknowledgeExecutionExtendsOnlyTheSameLease` covers each hostclaim refusal.
- `TestSameVerifiedActorIgnoresOnlyRevision`, `TestClaimRegionalEnrollmentSurvivesRosterRevision` and `TestClaimRegionalEnrollmentFieldChanges` cover the regional check, on the production roster adapter for the revision bump and a quarantine and readmission.
+
+## Roster binding
+
+Status: PROPOSED (roster binding build, tasks 1 to 7 at 7103ee07, 2026-10-20), awaiting a ruling. The design is `design-roster-revision-holds.md`, rev 3 plus section 7 (B1 to B4). Installed claim state was stamped with, and compared against, the roster's write counter. Every hold, activation, enrollment attempt and role change bumps that counter, so ordinary roster traffic refused claim work. Installed state now binds to `hostactors.BoxBinding`: a digest of the deployment's binding facts and this box's row identity and state. It moves on a quarantine, readmission, re-enrolment, floor publish, home-region change or census-key bind, and on nothing else.
+
+The re-pins are in a new overlay, `internal/provision/testdata/plan14-root-reads-roster-binding.tsv`, loaded last and marked `rev3=PROPOSED-roster-binding`. It adds no accepted-legacy row, so the seal stands.
+
+- **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.
+- **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.
+
+Ruling 6: a claims-off or no-census box never builds a claim assembly or claim owners. So it computes no binding, compares none, writes no fence and no receipt, and settles nothing. `TestStep8CensusChangesReachOnlyClaimMode` now scans the whole module and pins these callers:
+
+- `BoxBinding` is called only from `productionClaimRoster.Actor` and `verifyClaimCleanupEnrollment`. The design also named `recoverRootInventoryStartup`, but that function takes the startup actor's binding and does not compute one.
+- `productionClaimRoster` is built and `verifyClaimCleanupEnrollment` called only in `ProductionClaimOwnerProvider.OpenClaimOwners`. `OpenClaimOwners` is called only from `OpenProductionClaimAssembly` and `migrateClaimJournalsWith`, both claim mode.
+- `SameBinding` is called only at four claim-mode sites: `claimRegionalEnrollment.VerifyRegional`, `claimBoundIdentity`, `ClaimOwnerBindings.claimEvidenceCoordinator` and `servingParkRoot.prepareOrCommitServingReboot`. The design named six; the scan finds these four calls, and the reboot preparation also stores the `Bound()` actor at its prepare and commit sites, which the N2 witness covers.
+- The cold handover's `Admit` is set only in `ClaimRootHTTP.coldHandover`, and `Obsolete` only in `ClaimRootHTTP.RecoverPending`, never in a literal. `SettleObsoleteColdHandover` is called only from `ColdHandover.settleObsolete`.
+- `obsoleteIntent` is called only from `RecoverPending` and `recoverRootInventory`, and `settleObsoleteIntent` only from `recoverRootInventory`. `claimRootHTTP` and `rootStopCoordinator` are called only from `NewProductionRootClaimStop`.
+
+The `sameVerifiedActor` pin was dropped in phase A, with the function.
+
+Changed units, re-pinned at their existing class:
+
+| Unit | Change | Class | Executing identity |
+|---|---|---|---|
+| `internal/host/claimproduction.go` `productionClaimRoster.Actor` | the actor carries `BoxBinding` of its row from the same verified read (folded from Ack refresh) | authority C,G,J4 (unchanged) | whoever opens claim owners: the claim assembly (agent uid carlos, or root instance-control uid 0) or journal-migrate (uid 0) |
+| `internal/host/claimcleanup_identity.go` `verifyClaimCleanupEnrollment` | the cleanup actor carries its row's binding from the same startup read | authority C,G,J4 (unchanged) | as above |
+| `internal/host/claimassembly.go` `ClaimAssembly.Build` | the install and census pins are the binding | authority C,G (unchanged) | agent uid carlos; root instance-control uid 0 |
+| `internal/host/claimconstruction.go` `OpenProductionClaimAssembly` | the launch owner's fence target carries the binding and `RosterRevision` | authority C,E3,J4 (unchanged) | root controller and service UID |
+| `internal/host/claimfilesseed_select.go` `inspectFilesSeed` | the actor must carry a binding | authority C,J4 (unchanged) | the claim assembly's process |
+| `internal/host/claimhandover_recovery.go` `claimCrossBoxHandover.installRecoveryInventory` | predecessor reused only at today's binding (R3); successor stamped with it | authority C,G,J1 (unchanged) | the claim assembly's process |
+| `internal/host/claimrecovery_remote.go` `claimCrossBoxHandover.installRecoveryRemote` | the rebind request's successor carries the binding | authority C,J1 (unchanged) | agent uid carlos, through root's socket |
+| `internal/host/claimjournal_proof.go` `legacyJournalProof` | the match tuple digests the receipt's `binding` | authority C,G,J4 (unchanged) | journal-migrate and the offline root migration, uid 0 |
+| `internal/host/claimlaunch_root.go` `ClaimLaunchRoot.startRecorded` | fresh binding equals the launch target's stamp | authority E1,E2,E3 (unchanged) | root claim, migration or adoption controller uid 0 |
+| `internal/host/claimroleassembly_linux.go` `ClaimRoleAssembly.PrepareState` | local wake compares the binding | authority C,J1 (unchanged) | agent uid carlos; root validates |
+| `internal/host/claimservinghandover.go` `ClaimRootHTTP.validateServingHandover` | binding equality for prior and successor | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservinglegacy.go` `validateServingLegacyStop` | the request carries `RosterRevision`; none is refused | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservinglegacyroot_linux.go` `servingParkRoot.retainLegacyNoProcess` | binding equality | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingparkroot_linux.go` `servingParkRoot.withRootInstallation` | the actor must carry a binding | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingreboot_prepare_linux.go` `servingParkRoot.prepareOrCommitServingReboot` | persists `Bound()`, rereads with `SameBinding` (N2) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimstop.go` `ClaimStopCoordinator.FenceAndStop` | numeral from the persisted fence, binding field; no numeral refused before any kill | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimstop.go` `ClaimStopCoordinator.witnessNoProcess` | numeral and binding from the witness target | authority C,G,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimstop_writers.go` `ClaimStopCoordinator.WritersStopped` | requires `roster_revision`, copied into the target | authority C,G,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimwakestop.go` `ClaimAssembly.collectCapturedStop` | binding fallback; the launch record's numeral, else the actor's counter | authority C,G,J4 (unchanged) | agent uid carlos |
+| `internal/host/rootexecution_authority.go` `ClaimRootHTTP.executionAuthority` | carries the fresh binding | authority C,E2,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/rootinventory.go` `ClaimRootHTTP.commitRootInventoryPending` | stamp equals the fresh `InventoryActor`'s binding | authority E2 (unchanged) | root instance-control uid 0 |
+| `internal/host/rootinventory.go` `ClaimRootHTTP.recoverRootInventory` | obsolete intents settled, never replayed (N3) | authority C,E1 (unchanged) | root instance-control or root participation/update, uid 0 |
+| `internal/host/rootrecovery_rebind.go` `ClaimRootHTTP.rebindRecoveryInventory` | successor and predecessor at the fresh binding (R3) | authority C (unchanged) | root instance-control uid 0 |
+| `internal/host/rootmigration_evidence.go` `readMigrationStop` | matches on `binding`; carries the numeral into `RosterRevision` | authority G,J4 (unchanged) | journal-migrate, offline operator, uid 0 |
+| `internal/hostbox/coldhandover.go` `ColdHandover.Run` | runs `Admit` first, for new and replayed handovers (N5, B1) | authority C,J2,J4 (unchanged) | root claim, migration or adoption controller uid 0 |
+| `internal/hostbox/coldhandover.go` `ColdHandover.Recover` | skips settled journals; settles obsolete ones (B3) | authority C (unchanged) | root instance-control uid 0 |
+| `internal/hostbox/coldhandover.go` `type ColdHandover` | adds `Admit` and `Obsolete` (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimassembly.go` `NewProductionRootClaimStop` | assembly moved into the two helpers below (declaration) | authority C,E2 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimhandover_transport.go` `ClaimRootHTTP.serveColdHandover` | uses `coldHandover` (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimlaunch_authority.go` `ClaimLaunchRoot.authorize` | fresh binding equals the target's stamp (declaration) | authority D,E2 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimretire_transport.go` `ClaimRootHTTP.RecoverPending` | fresh admission and obsolete settlement for cold handovers (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimretire_transport.go` `type ClaimRootHTTP` | adds `startupBinding` (declaration) | authority E1 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservinglegacyroot_linux.go` `servingParkRoot.validateLegacyRootEvidence` | binding equality (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingpark_transport.go` `ClaimRootHTTP.serveServingPark` | the actor must carry a binding (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingparkroot_linux.go` `servingRootStops` | binding equality (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingparksource_linux.go` `servingParkStateDirectory` | the inventory's stamp equals the binding (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingreboot_prepare_linux.go` `servingParkLedger.observeRebootPreparation` | the bound actor must carry a binding (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimservingreboot_prepare_linux.go` `type servingParkRebootAuthority` | comment only (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/claimstop_recovery.go` `ClaimStopCoordinator.RecoverStopped` | numeral required before any kill; receipt numeral and binding (declaration) | authority C,J4 (unchanged) | root instance-control uid 0 |
+| `internal/host/rootinventory_startup.go` `recoverRootInventoryStartup` | its read moved into `openRootMigrationState`; fresh `InventoryActor`, `startupBinding` (now a declaration) | authority C,G (unchanged) | root control startup and system recovery uid 0 |
+| `internal/host/rootmigration_startup.go` `verifyRootMigrationStartup` | its read moved into `openRootMigrationState` (now a declaration) | authority G,F,J4 (unchanged) | root instance-control startup and recovery uid 0 |
+
+New units, at the class of their callers:
+
+| Unit | What it is | Class | Executing identity |
+|---|---|---|---|
+| `internal/host/rootmigration_startup.go` `var openRootMigrationState` | the migration directory's read-only `rootstate.Open`, moved from its two callers | authority C,F,G,J4 (both callers' tasks) | root instance-control startup and recovery uid 0 |
+| `internal/host/claimassembly.go` `ClaimAssembly.rootStopCoordinator` | root's stop coordinator, moved (declaration) | authority C,E2 (`NewProductionRootClaimStop`'s) | root instance-control uid 0 |
+| `internal/host/claimassembly.go` `ClaimAssembly.claimRootHTTP` | root's handler: fresh `InventoryActor`, `startupBinding` (declaration) | authority C,E2 (`NewProductionRootClaimStop`'s) | root instance-control uid 0 |
+| `internal/host/claimhandover_transport.go` `ClaimRootHTTP.coldHandover` | the operation cold handover with `Admit` (declaration) | authority C,J4 (`serveColdHandover`'s and `RecoverPending`'s) | root instance-control uid 0 |
+| `internal/host/claimhandover_transport.go` `ClaimRootHTTP.admitColdSuccessor` | fresh successor admission (declaration) | authority C,J4 (as above) | root instance-control uid 0 |
+| `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/claimstop.go` `stopReceiptNumeral` | the receipt numeral from the fence target (declaration) | authority C,G,J4 (its three stop callers') | 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 |
+
+Removed: `internal/host/claimservinghandover.go` `servingPriorRevision` (`@remove`; renamed `servingPriorBinding`). `TestPlan14RootInputInventoryCoverage` reads only the overlays up to activation-tools, where seed's row for it still stands, so it carries a PROPOSED exemption naming the rename. The census owner may prefer another way to retire that row.
+
+Envelopes re-pinned: `internal/host`, `internal/hostactors`, `internal/hostbox`, `internal/hostguard`.
+
+9B8: the design expected no change. Six key-site units changed source, each because it compares or produces an installation stamp: `installRecoveryRemote`, `servingParkStateDirectory`, `executionAuthority`, `commitRootInventoryPending`, `recoverRootInventory` and `rebindRecoveryInventory`. Their kinds and class are unchanged, and none writes an instance or sidecar record. They are re-pinned in `plan14ClaimRosterBindingWriteCensusInventory`, on top of the merged inventory, and the test now uses it. B3's `SettleObsoleteColdHandover` is not a record write in 9B8's sense. It rewrites the guard's own host-local record (`recordDir.write`) and, through its callback, the cold handover journal; neither is an instance or sidecar record in the deployment store. The scanner does not see it, as it does not see the siblings that make the same guard write (`BeginColdHandover`, `CompleteColdHandover`, `AbandonColdHandover`). Plan 14 pins it.
+
+Tests: the build's witnesses are listed in the phase reports (L0 to L7, N1 to N5). For the census: `TestPlan14RootReadCensus`, `TestPlan14RootInputInventoryCoverage`, `TestPlan9B8RecordWriteCensus` and `TestStep8CensusChangesReachOnlyClaimMode` pass. A mutation that adds a `SameBinding` call outside the four sites fails the ruling 6 test.
diff --git a/internal/host/claimstep8_ruling6_test.go b/internal/host/claimstep8_ruling6_test.go
index 67b6bb60f..769dd1a62 100644
--- a/internal/host/claimstep8_ruling6_test.go
+++ b/internal/host/claimstep8_ruling6_test.go
@@ -85,6 +85,131 @@ func TestStep8CensusChangesReachOnlyClaimMode(t *testing.T) {
}
}
checkBackfillDoneCallers(t)
+ checkRosterBindingCallers(t)
+}
+
+// Ruling 6 for roster binding (design-roster-revision-holds.md, task 10): a
+// claims-off or no-census box never builds a claim assembly or claim owners,
+// so it computes no binding, compares none, and settles nothing. The binding
+// is computed only by the claim roster adapter and the cleanup identity, both
+// built only by OpenClaimOwners, which only the claim assembly and the claim
+// journal migration call. SameBinding is called only at the four claim-mode
+// sites; the cold handover's fresh admission and obsolete settlement are
+// wired only into root's claim handler. The whole module's non-test sources
+// are scanned, so a new caller anywhere fails here first.
+func checkRosterBindingCallers(t *testing.T) {
+ t.Helper()
+ callers := map[string][]string{}
+ fset := token.NewFileSet()
+ for _, root := range []string{"../..", "../../cmd", "../../internal"} {
+ err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error {
+ if err != nil {
+ return err
+ }
+ if d.IsDir() {
+ if path != root && (root == "../.." || strings.HasPrefix(d.Name(), ".") || d.Name() == "testdata" || d.Name() == "vendor") {
+ return filepath.SkipDir
+ }
+ return nil
+ }
+ if !strings.HasSuffix(path, ".go") || strings.HasSuffix(path, "_test.go") {
+ return nil
+ }
+ f, err := parser.ParseFile(fset, path, nil, parser.SkipObjectResolution)
+ if err != nil {
+ return err
+ }
+ rel, _ := filepath.Rel("../..", filepath.Dir(path))
+ for _, decl := range f.Decls {
+ fn, ok := decl.(*ast.FuncDecl)
+ if !ok || fn.Body == nil {
+ continue
+ }
+ name := rel + " " + fn.Name.Name
+ if fn.Recv != nil && len(fn.Recv.List) == 1 {
+ typ := fn.Recv.List[0].Type
+ if star, ok := typ.(*ast.StarExpr); ok {
+ typ = star.X
+ }
+ if id, ok := typ.(*ast.Ident); ok {
+ name = rel + " " + id.Name + "." + fn.Name.Name
+ }
+ }
+ ast.Inspect(fn.Body, func(n ast.Node) bool {
+ switch x := n.(type) {
+ case *ast.CallExpr:
+ callee := ""
+ switch f := x.Fun.(type) {
+ case *ast.Ident:
+ callee = f.Name
+ case *ast.SelectorExpr:
+ callee = f.Sel.Name
+ }
+ switch callee {
+ case "BoxBinding", "SameBinding", "verifyClaimCleanupEnrollment", "OpenClaimOwners", "SettleObsoleteColdHandover", "obsoleteIntent", "settleObsoleteIntent", "claimRootHTTP", "rootStopCoordinator":
+ callers[callee] = append(callers[callee], name)
+ }
+ case *ast.CompositeLit:
+ typ := ""
+ switch f := x.Type.(type) {
+ case *ast.Ident:
+ typ = f.Name
+ case *ast.SelectorExpr:
+ typ = f.Sel.Name
+ }
+ if typ == "productionClaimRoster" {
+ callers["productionClaimRoster{}"] = append(callers["productionClaimRoster{}"], name)
+ }
+ if typ == "ColdHandover" {
+ for _, el := range x.Elts {
+ if kv, ok := el.(*ast.KeyValueExpr); ok {
+ if k, ok := kv.Key.(*ast.Ident); ok && (k.Name == "Admit" || k.Name == "Obsolete") {
+ callers["ColdHandover{"+k.Name+"}"] = append(callers["ColdHandover{"+k.Name+"}"], name)
+ }
+ }
+ }
+ }
+ case *ast.AssignStmt:
+ for _, lhs := range x.Lhs {
+ if sel, ok := lhs.(*ast.SelectorExpr); ok && sel.Sel.Name == "Obsolete" {
+ callers["."+sel.Sel.Name+"="] = append(callers["."+sel.Sel.Name+"="], name)
+ }
+ }
+ }
+ return true
+ })
+ }
+ return nil
+ })
+ if err != nil {
+ t.Fatal(err)
+ }
+ }
+ want := map[string][]string{
+ "BoxBinding": {"internal/host productionClaimRoster.Actor", "internal/host verifyClaimCleanupEnrollment"},
+ "productionClaimRoster{}": {"internal/host ProductionClaimOwnerProvider.OpenClaimOwners"},
+ "verifyClaimCleanupEnrollment": {"internal/host ProductionClaimOwnerProvider.OpenClaimOwners"},
+ "OpenClaimOwners": {"internal/host OpenProductionClaimAssembly", "internal/host migrateClaimJournalsWith"},
+ "SameBinding": {"internal/host ClaimOwnerBindings.claimEvidenceCoordinator", "internal/host claimBoundIdentity", "internal/host claimRegionalEnrollment.VerifyRegional", "internal/host servingParkRoot.prepareOrCommitServingReboot"},
+ "ColdHandover{Admit}": {"internal/host ClaimRootHTTP.coldHandover"},
+ ".Obsolete=": {"internal/host ClaimRootHTTP.RecoverPending"},
+ "SettleObsoleteColdHandover": {"internal/hostbox ColdHandover.settleObsolete"},
+ "obsoleteIntent": {"internal/host ClaimRootHTTP.RecoverPending", "internal/host ClaimRootHTTP.recoverRootInventory"},
+ "settleObsoleteIntent": {"internal/host ClaimRootHTTP.recoverRootInventory"},
+ "claimRootHTTP": {"internal/host NewProductionRootClaimStop"},
+ "rootStopCoordinator": {"internal/host NewProductionRootClaimStop"},
+ }
+ for name, w := range want {
+ got := slices.Compact(sortedCopy(callers[name]))
+ if !slices.Equal(got, w) {
+ t.Errorf("%s is called from %v, want %v", name, got, w)
+ }
+ }
+ // 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 {
+ t.Errorf("ColdHandover{Obsolete} is set in %v, want nowhere", got)
+ }
}
// Ruling 6 for backfill-done (claim trial Option B): the new signer phase is
diff --git a/internal/provision/claim_empty_cohort_fix1_census_test.go b/internal/provision/claim_empty_cohort_fix1_census_test.go
index 0e7b8980b..32fd54b2a 100644
--- a/internal/provision/claim_empty_cohort_fix1_census_test.go
+++ b/internal/provision/claim_empty_cohort_fix1_census_test.go
@@ -43,3 +43,66 @@ func plan14ClaimMergeMovesOfflineWriteCensusInventory() []censusEntry {
}
return entries
}
+
+// plan14ClaimRosterBindingWriteCensusInventory is the record-write inventory
+// for the roster binding build (design-roster-revision-holds.md rev 3 and
+// section 7, tasks 1 to 7), PROPOSED (the ruling is owed;
+// docs/superpowers/notes/census-proposal-claim-step8-readiness.md, "Roster
+// binding"), on top of the merged inventory above. Six key-site units are
+// re-reviewed: each compares or produces an installation stamp, which is now
+// the box binding (hostactors.BoxBinding) in place of the roster write
+// counter. Their kinds are unchanged, none writes an instance or sidecar
+// record, and each keeps its class.
+//
+// - installRecoveryRemote: the rebind request's successor carries the
+// actor's binding. The request still names the record key and ETag it
+// read; root writes nothing to the record.
+// - servingParkStateDirectory: the actor must carry a binding, and the
+// inventory's stamp must equal it.
+// - executionAuthority: the authority carries the fresh actor's binding.
+// - commitRootInventoryPending: the inventory's stamp must equal the fresh
+// InventoryActor's binding.
+// - recoverRootInventory: a pending intent stamped under another binding
+// than the startup binding is settled through the guard's existing
+// AbandonRootInventory (host-local guard state), never replayed.
+// - rebindRecoveryInventory: the successor and the predecessor inventory
+// must both carry the fresh actor's binding.
+//
+// Not listed, and not a record write in this census's sense: B3's
+// hostguard Guard.SettleObsoleteColdHandover. It rewrites the guard's own
+// host-local record (recordDir.write: the <host>.json fence and stamp state
+// under root's guard directory) and, through its record callback, the cold
+// handover journal (writeColdJournal, under root's retire directory). Neither
+// is an instance or sidecar record in the deployment store, and the unit
+// names no Put-family method, record-key constructor or record literal, so
+// the scanner does not see it, exactly as it does not see its siblings that
+// make the same guard write (BeginColdHandover, CompleteColdHandover,
+// AbandonColdHandover). hostguard's writeRecord is listed only because its
+// name ends in writerecord. The Plan 14 overlay pins the new unit.
+func plan14ClaimRosterBindingWriteCensusInventory() []censusEntry {
+ replacements := []censusEntry{
+ {"internal/host/claimrecovery_remote.go", "claimCrossBoxHandover.installRecoveryRemote", "key-site", "key:RecordKey", "999a89cc8558d09465cbabb455f19a2974cef0ab92935536dcbe68c09db86b8f"},
+ {"internal/host/claimservingparksource_linux.go", "servingParkStateDirectory", "key-site", "lit:instances", "3596d8a75440c454d0acfa8033a8bf67cbae0625911925a0bb45140975d55baa"},
+ {"internal/host/rootexecution_authority.go", "ClaimRootHTTP.executionAuthority", "key-site", "key:RecordKey,lit:instances", "00818a660276f82be32f4753aae26edc547ef55654c51c6dec81fdd2e9404cdd"},
+ {"internal/host/rootinventory.go", "ClaimRootHTTP.commitRootInventoryPending", "key-site", "key:RecordKey", "95491a926852d6354b12179401138d2bc907806a915e13534485768bd6e1c1fb"},
+ {"internal/host/rootinventory.go", "ClaimRootHTTP.recoverRootInventory", "key-site", "key:RecordKey", "fe5db29d67c2011839b91dff70e1661560dce74d5a077a131766a6ca69e4e084"},
+ {"internal/host/rootrecovery_rebind.go", "ClaimRootHTTP.rebindRecoveryInventory", "key-site", "key:RecordKey", "0e9f3ee60e6077c46c5a951be7abe6878ec79f76a71f78872ac9e54d519a66f4"},
+ }
+ entries := plan14ClaimMergeMovesOfflineWriteCensusInventory()
+ for _, replacement := range replacements {
+ found := false
+ for i, entry := range entries {
+ if entry.File == replacement.File && entry.Unit == replacement.Unit {
+ if entry.Class != replacement.Class || entry.Kinds != replacement.Kinds {
+ panic("roster binding re-pin changes the class or kinds of " + entry.File + ":" + entry.Unit)
+ }
+ entries[i], found = replacement, true
+ break
+ }
+ }
+ if !found {
+ panic("roster binding re-pin of an unlisted unit " + replacement.File + ":" + replacement.Unit)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/plan14_input_inventory_test.go b/internal/provision/plan14_input_inventory_test.go
index 36bb1091d..5711580d2 100644
--- a/internal/provision/plan14_input_inventory_test.go
+++ b/internal/provision/plan14_input_inventory_test.go
@@ -358,6 +358,10 @@ var inputExemptions = map[string]inputExemption{
"internal/hostclaim/relocation.go:StartRelocation": {Ruling: "R-E2a"},
"internal/hostrelocate/participant.go:Participant.Sweep": {Ruling: "R-E2a"},
"internal/hostrelocate/worker.go:Worker.Start": {Ruling: "R-E2a"},
+ // This inventory stops at activation-tools, so seed's row outlives the
+ // deleted function; the roster-binding overlay removes it from the full
+ // census and declares servingPriorBinding at the same class.
+ "internal/host/claimservinghandover.go:servingPriorRevision": {Ruling: "PROPOSED-roster-binding: deleted, renamed servingPriorBinding (equality on the box binding), which takes over all its callers"},
}
// Update this checkpoint status when merging E's completion report. The 4a
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go
index 04fa67175..a4784bc2d 100644
--- a/internal/provision/plan14_root_reads_test.go
+++ b/internal/provision/plan14_root_reads_test.go
@@ -1045,6 +1045,18 @@ func TestPlan14RootReadCensus(t *testing.T) {
if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-claim-merge-main.tsv"), &inv, true); err != nil {
t.Fatal(err)
}
+ // Census overlay roster-binding (design-roster-revision-holds.md rev 3
+ // and section 7: installed state binds to hostactors.BoxBinding, not the
+ // roster write counter), loaded last. PROPOSED, awaiting a ruling
+ // (docs/superpowers/notes/census-proposal-claim-step8-readiness.md,
+ // "Roster binding"), marked rev3=PROPOSED-roster-binding. Changed units
+ // are re-pinned at their existing classes, new units take their callers'
+ // classes, servingPriorRevision is removed, and claim-ack-refresh's
+ // productionClaimRoster.Actor row is folded in. It adds no accepted-legacy
+ // row, so the seal stands.
+ if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-roster-binding.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/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 5705985d2..1f330708e 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := plan14ClaimMergeMovesOfflineWriteCensusInventory()
+ inventory := plan14ClaimRosterBindingWriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/testdata/plan14-root-reads-roster-binding.tsv b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv
new file mode 100644
index 000000000..e6be3034b
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv
@@ -0,0 +1,59 @@
+# 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 c3cd56042b2b998498efce4dc3e28902195b96db81cf202fcd54fb031abe0b24
+@coverage internal/hostactors 1af14a5c45dacffe3d5b1878fde611b6887b1f3fdf2604adad427c819818813b
+@coverage internal/hostbox 6a698fe2c67cf9096d341b558e3f151481221f4134f578fcd2b8dbfcb07f3b50
+@coverage internal/hostguard c15e0c64cd46fac2cbe0c4b0c7d7a50e12d2f49553a36ff4856cb95d344ff311
+internal/host/claimassembly.go ClaimAssembly.Build authority C,G rev3=PROPOSED-roster-binding;identity=agent uid carlos; root instance-control uid 0;basis=as before; the agent's install pin (Reconcile.DirectoryRevision) and its census pin are the startup actor's binding, not the roster write counter; reads unchanged file:Prepare@3791,file:Prepare@3824,file:Prepare@3840,file:Prepare@3857,file:Prepare@4606,file:Read@4536,whole:Timer@2044 cc979699a6390a04b76b1c02b8d53ff1f72b11a40191ad7e6951aed9cf21f9ba
+internal/host/claimcleanup_identity.go verifyClaimCleanupEnrollment authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;basis=the same read; the cleanup actor also carries hostactors.BoxBinding of its row in that startup read, which stamps only what the cleanup identity itself constructs; fresh authority is never this actor file:Read@173 dafa2d78591fccac8a3bd7d6b6faa5088e2f3fda665a9906e8b9ae128ade1908
+internal/host/claimconstruction.go OpenProductionClaimAssembly authority C,E3,J4 rev3=PROPOSED-roster-binding;identity=root controller and service UID using authenticated root projection;basis=as before; the launch owner's fence target is stamped with the actor's binding and carries the roster write counter as RosterRevision, the stop receipt's numeral; reads unchanged file:Read@10611,file:Read@4684,file:ReadFile@4228,registry:Host@10638,whole:Route@10726,whole:Route@11475 171e91d7bb19f31def2d0077694b0cc7fd4b4917d62b4b852c0a74b2d0d786b0
+internal/host/claimfilesseed_select.go inspectFilesSeed authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the actor must also carry a binding (a format check beside Revision == 0); reads unchanged file:Exec@1209,file:Read@753,registry:Account@1641,registry:App@1681,registry:Backing@1515,registry:Host@1354,registry:Replica@1436,registry:Seed@1498,registry:Tunnel@1570,registry:Unit@1535,whole:Route@1341,whole:Route@1786 cbb0022c535e70bf84bf1eadc2d6a5b14a75bd524abbe95eb6f415aa1e9184b8
+internal/host/claimhandover_recovery.go claimCrossBoxHandover.installRecoveryInventory authority C,G,J1 root-route;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;basis=the same read; the predecessor inventory is reused only when it is stamped with the fresh actor's binding (R3), else ErrTypedInventory before any reuse; the successor check and the restamp use the binding, not the write counter whole:Route@1727 3463339194c9f4680565db7c41e4ad1c974d5dbeb846ae9e90c3ce38c483f2c3
+internal/host/claimjournal_proof.go legacyJournalProof authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;basis=the same read; the proof's match tuple digests the receipt's binding field (the installation stamp) where it digested directory_revision, which is now the roster numeral; a receipt from before the change, without binding, no longer proves a legacy journal (the design's clean break) file:Read@817 87b6d60dcf5b22ca37cd5b35498021fb84d9df056cd77030ff74c17489c0f6a4
+internal/host/claimlaunch_root.go ClaimLaunchRoot.startRecorded authority E1,E2,E3 rev3=PROPOSED-roster-binding;identity=root claim, migration or adoption controller uid 0;basis=as before; the fresh actor's binding (non-empty) must equal the launch target's stamp, where the write counter's decimal had to; same read file:Read@4101 a19ad8299cd2aa9c9a896b4a8bc7a41ca0c95ea886a7272525f516c040b24b6e
+internal/host/claimproduction.go productionClaimRoster.Actor authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;basis=the same two reads; the verified actor carries hostactors.BoxBinding of this box's row in the verified roster (ErrChanged if the row is missing), which replaces claim-ack-refresh's QuarantineRevision field and covers it; folded from the claim-ack-refresh overlay file:Read@127,file:Read@674 ef21562903552bb5cd33b673b5e129ace76f5dce8071351de0265902e3be1588
+internal/host/claimrecovery_remote.go claimCrossBoxHandover.installRecoveryRemote authority C,J1 rev3=PROPOSED-roster-binding;basis=root installation and fence authority; recovery rebind and timer identity; the successor in root's rebind request is stamped with the actor's binding, not the write counter, and root checks it against its fresh binding; reads unchanged file:Read@2553,file:Read@912 999a89cc8558d09465cbabb455f19a2974cef0ab92935536dcbe68c09db86b8f
+internal/host/claimroleassembly_linux.go ClaimRoleAssembly.PrepareState authority C,J1 rev3=PROPOSED-roster-binding;identity=carlos agent uid carlos; root validates final inventory and launch;basis=as before; the local wake's inventory comparison uses the actor's binding where it used the write counter; reads unchanged file:Fstatat@2088,file:Fstatat@3171,file:Open@1572,file:Openat@1859 164ffd84af404da2913becdf160c88d565ba16eac9eee62347b66b1e49039ccf
+internal/host/claimservinghandover.go ClaimRootHTTP.validateServingHandover authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the fresh actor's binding must equal both the successor's and the prior's stamps (servingPriorBinding, equality, where servingPriorRevision was an ordering on the write counter); reads unchanged file:Read@2637,file:Read@3747,registry:ClaimIncarnation@1477,registry:ClaimOwner@1619,registry:ClaimRowID@1641,registry:ClaimStamp@1505,whole:Route@1744 d96f0ce0c0489833f46c0d110395b24ee0a1ed11268146cc00b6eda7def82488
+internal/host/claimservinglegacy.go validateServingLegacyStop authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the stop request carries the target's RosterRevision, and a target without one is refused; same exec file:Exec@413 0272d1329b83e9e532fa78f4acf96da35db4d8491a21a3ce7d36ba2f6f25b36d
+internal/host/claimservinglegacyroot_linux.go servingParkRoot.retainLegacyNoProcess authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the result target's stamp must equal the fresh actor's binding (servingPriorBinding) where it had to equal the write counter's decimal; same read file:Read@1197 1a3238ca4ea458af0e26481441465cd9ad346da190cf3edb7c03f4ca4a48d017
+internal/host/claimservingparkroot_linux.go servingParkRoot.withRootInstallation authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the fresh actor must also carry a binding; same read file:Read@2136 d32aea9959a65a8a5ff13259ce82b21c945f00daa9bf2064854b957f993aed3d
+internal/host/claimservingreboot_prepare_linux.go servingParkRoot.prepareOrCommitServingReboot authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the preparation and the commit persist the bound actor (Actor.Bound, write counter cleared) and the reread compares with SameBinding, so holds and other unrelated roster writes no longer refuse it while a quarantine, readmission or re-enrolment still does; same read file:Read@1513 ffccacf59482b5c25c95de1887009504bbdce4be8352a628efd74557f30147d3
+internal/host/claimstop.go ClaimStopCoordinator.FenceAndStop authority C,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=as before; the request must carry RosterRevision, persisted in the fence target; the receipt's directory_revision is the persisted target's numeral (stopReceiptNumeral, never the request's) and its binding field the target's stamp; a fence without a numeral is refused before any drain or kill; same read file:Read@1646 1e9ff3896cf20bca5845d459bc5d9808441964c261dda3cfef791a5dfb1e0e6d
+internal/host/claimstop.go ClaimStopCoordinator.witnessNoProcess authority C,G,J4 rev3=PROPOSED-roster-binding;basis=as before; the witness target carries the request's RosterRevision, the receipt's numeral, and the receipt's binding field is the target's stamp; refused without a numeral before the inventory read; same reads file:Exec@1881,file:Read@2794,file:Read@668 aaba48f3e1f4933385caff7944b7dd739be68c1ab6bacce25b1411cc3a66ef18
+internal/host/claimstop_writers.go ClaimStopCoordinator.WritersStopped authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-roster-binding;basis=the same reads; the request must carry roster_revision, copied into the observation's fence target; no receipt comes from it file:Read@1078,file:Read@2771 cb0fbe24c32dc361c4d3661a1f99dbcdedb26b5cc771263d424407f23304dc56
+internal/host/claimwakestop.go ClaimAssembly.collectCapturedStop authority C,G,J4 rev3=PROPOSED-roster-binding;basis=as before; with no launch record the expected stamp is the actor's binding; the request carries the launch record's roster numeral, or the actor's write counter when the record names none; same reads file:Exec@3264,file:Read@605 45c827a643468eeac5413de43546f0135d28e7d18b99aee31dcd290fd5fbad78
+internal/host/rootexecution_authority.go ClaimRootHTTP.executionAuthority authority C,E2,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=as before; the execution authority carries the fresh actor's binding as its DirectoryRevision; same reads file:Exec@1657,file:Read@553 00818a660276f82be32f4753aae26edc547ef55654c51c6dec81fdd2e9404cdd
+internal/host/rootinventory.go ClaimRootHTTP.commitRootInventoryPending authority E2 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=as before; the inventory's stamp must equal the binding of a fresh InventoryActor (root's inventory actor is Identity.Verify on every call, R2); same reads file:Read@1429,file:Read@3469,registry:Account@4833,registry:Account@4848,registry:App@4869,registry:App@4880,registry:ClaimIncarnation@4339,registry:ClaimOwner@4389,registry:ClaimOwner@5519,registry:ClaimOwnership@4931,registry:ClaimOwnership@4953,registry:ClaimOwnership@5835,registry:ClaimOwnership@8038,registry:ClaimRowID@4553,registry:ClaimRowID@4630,registry:ClaimStamp@4367,registry:DBPath@4897,registry:DBPath@4911,registry:Host@4803,registry:Host@4815,registry:Host@8502,registry:Name@8525,whole:ClaimOwnership@4935,whole:ClaimOwnership@4963,whole:ClaimOwnership@5845,whole:ClaimOwnership@8049,whole:Route@10292,whole:Route@3661,whole:Route@4044,whole:Route@4060,whole:Route@4115,whole:Route@4766,whole:Route@4779,whole:Route@4788,whole:Route@5026,whole:Route@5258,whole:Route@6092,whole:Route@6228,whole:Route@6452,whole:Route@7894,whole:Route@9557,whole:Route@9618,whole:Timer@8510,whole:Timer@8533 95491a926852d6354b12179401138d2bc907806a915e13534485768bd6e1c1fb
+internal/host/rootinventory.go ClaimRootHTTP.recoverRootInventory authority C,E1 rev3=PROPOSED-roster-binding;basis=as before (E16, E46); a pending inventory or rebind intent stamped under a binding other than root's startup binding is obsolete: it is settled, one intent at a time, through the guard's existing AbandonRootInventory (settleObsoleteIntent), logged, never replayed and never an assembly abort (N3); same reads. Executing identity: root instance-control or root participation/update file:Read@1887,file:Read@888 fe5db29d67c2011839b91dff70e1661560dce74d5a077a131766a6ca69e4e084
+internal/host/rootmigration_evidence.go readMigrationStop authority G,J4 rev3=PROPOSED-roster-binding;identity=carlos system journal-migrate offline operator uid 0;basis=as before; the wanted receipt is matched on its binding field; a receipt whose directory_revision is not a canonical non-zero numeral is skipped, and the numeral is carried into the target's RosterRevision; same read file:Read@592 e16256c1a4c6807b32e55a0617bbc6e17d12ff708a7fcaa765af9b35226c61b7
+internal/host/rootrecovery_rebind.go ClaimRootHTTP.rebindRecoveryInventory authority C rev3=PROPOSED-roster-binding;basis=retain fresh claim and inventory checks and refuse a box listed Lost; the successor must be stamped with the fresh actor's non-empty binding, and the predecessor inventory must carry that binding too (R3) before any reuse; same reads file:Exec@2625,file:Read@1519,file:Read@2129,registry:Account@3346,registry:App@3383,registry:ClaimIncarnation@3446,registry:ClaimOwner@3626,registry:ClaimRowID@3648,registry:ClaimStamp@3474,registry:Host@3318,whole:Route@3767 0e9f3ee60e6077c46c5a951be7abe6878ec79f76a71f78872ac9e54d519a66f4
+internal/hostbox/coldhandover.go ColdHandover.Run authority C,J2,J4 rev3=PROPOSED-roster-binding;identity=root claim, migration or adoption controller uid 0;basis=as before; when Admit is set (root's handler and startup recovery), it runs first, before any successor state, for a new handover and for every replay (N5, B1); same reads file:Exec@1114,file:Lstat@10883,file:OpenRoot@10805,file:Read@1466,registry:Addr@3741,registry:Addrs@3759,registry:Backing@3778,registry:Canary@3835,registry:ClaimIncarnation@3619,registry:ClaimIncarnation@4121,registry:ClaimOwner@11633,registry:ClaimOwner@4203,registry:ClaimOwner@4223,registry:ClaimOwner@6098,registry:ClaimOwner@7190,registry:ClaimOwner@8444,registry:ClaimOwnership@11225,registry:ClaimOwnership@3589,registry:ClaimOwnership@4567,registry:ClaimOwnership@4785,registry:ClaimOwnership@4818,registry:ClaimRowID@11523,registry:ClaimRowID@11604,registry:ClaimRowID@4241,registry:ClaimRowID@4849,registry:ClaimRowID@7149,registry:ClaimRowID@8469,registry:ClaimStamp@3664,registry:ClaimStamp@4168,registry:Host@7026,registry:Host@8406,registry:Kind@3697,registry:Name@4903,registry:Name@7041,registry:Name@8425,registry:Platform@3819,registry:Registration@4267,registry:Registration@7106,registry:Registration@8494,registry:Replica@3849,registry:Route@11225,registry:Route@4567,registry:Route@4818,registry:Route@5349,registry:Route@6098,registry:Timers@4766,registry:Timers@4785,registry:Timers@4849,registry:Timers@4903,registry:Timers@6978,registry:Timers@8281,registry:Tunnel@3799,registry:Unit@3723,whole:ClaimOwnership@11239,whole:ClaimOwnership@3593,whole:ClaimOwnership@4579,whole:ClaimOwnership@4801,whole:ClaimOwnership@4830,whole:ColdRows@11227,whole:ColdRows@12339,whole:ColdRows@12349,whole:ColdRows@5064,whole:ColdRows@5072,whole:ColdRows@5080,whole:ColdRows@5087,whole:ColdRows@5351,whole:ColdRows@6100,whole:ColdRows@6980,whole:ColdRows@8283,whole:Route@11233,whole:Route@3574,whole:Route@3934,whole:Route@4366,whole:Route@4374,whole:Route@4425,whole:Route@4433,whole:Route@4573,whole:Route@4824,whole:Route@5358,whole:Route@6107,whole:Timer@4105,whole:Timer@4379,whole:Timer@4387,whole:Timer@4438,whole:Timer@4476,whole:Timer@4772,whole:Timer@4791,whole:Timer@4855,whole:Timer@4909,whole:Timer@6987,whole:Timer@8290 14778af6e9553d5d386ad88c48c5331e7312e0bc94d48e8ad8e72a8d3e8b06fa
+internal/host/claimassembly.go NewProductionRootClaimStop authority C,E2 rev3=PROPOSED-roster-binding;identity=root claim, migration or adoption controller uid 0;basis=the stop coordinator and root handler assembly moved unchanged into ClaimAssembly.rootStopCoordinator and ClaimAssembly.claimRootHTTP, where root's InventoryActor became the fresh Identity.Verify (R2) 2012b280fe8a23ccec695ce795f089a65560b001913a04b9ad524e1e4c647359
+internal/host/claimhandover_transport.go ClaimRootHTTP.serveColdHandover authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the handover comes from ClaimRootHTTP.coldHandover, which wires the fresh successor admission (admitColdSuccessor) 99ebffd31a008e177d995ab5a10c337f903f89de52963e0176ae0c80cba6a036
+internal/host/claimlaunch_authority.go ClaimLaunchRoot.authorize authority D,E2 rev3=PROPOSED-roster-binding;basis=as before (E47); the fresh actor's non-empty binding must equal the launch target's stamp, where the write counter's decimal had to 68b8cebb7841224b3901a873691d68b9693d1395d01e6604f47b18b915691177
+internal/host/claimretire_transport.go ClaimRootHTTP.RecoverPending authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; its cold handover comes from coldHandover, so startup resumes a journaled handover only through the fresh successor admission (B1); Obsolete settles one whose successor was stamped under a binding other than the startup binding instead of resuming it (B3), logged 2737d7777ea6ad1b28e0e3e93d621eb43a1d0ac33c0f57348d68e3ad6b281874
+internal/host/claimretire_transport.go type ClaimRootHTTP authority E1 rev3=PROPOSED-roster-binding;identity=root claim, migration or adoption controller uid 0;basis=as before, plus startupBinding: this box's binding in root's startup roster read, used only to decide that a pending intent or a journaled cold handover is obsolete adb1886705a64f9129b59ec03e11cda983f9579e6e0317e5d76910e1620493f5
+internal/host/claimservinglegacyroot_linux.go servingParkRoot.validateLegacyRootEvidence authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the saved target's stamp must equal the fresh actor's binding (servingPriorBinding, equality), where it had to be a numeral no newer than the actor's fe6d47a93058783384652fc63a65bf01fcf9ce153c73305815cc39c1077b65ad
+internal/host/claimservingpark_transport.go ClaimRootHTTP.serveServingPark authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the fresh actor must also carry a binding 486b2d97192b5dc6503d5cfa0b557b0e039141fc2993dbfe057c545366ebfeea
+internal/host/claimservingparkroot_linux.go servingRootStops authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; each retained receipt's stamp must equal the active actor's binding (servingPriorBinding), where it had to be a numeral no newer than the actor's 32842c26d8b5e8f9e8daaea561780a40a9ee627475632ea8ee5a82990d3bf65b
+internal/host/claimservingparksource_linux.go servingParkStateDirectory authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the actor must carry a binding, and the installation inventory's stamp must equal it where it had to equal the write counter 3596d8a75440c454d0acfa8033a8bf67cbae0625911925a0bb45140975d55baa
+internal/host/claimservingreboot_prepare_linux.go servingParkLedger.observeRebootPreparation authority C,J4 rev3=PROPOSED-roster-binding;basis=as before; the persisted bound actor must carry a binding (Actor.Bound clears Revision, so its zero check is dropped) cbada9ad7ce2730aa022679cf7c024954c7d3f451ce45038df26ee6f8a49c85c
+internal/host/claimservingreboot_prepare_linux.go type servingParkRebootAuthority authority C,J4 rev3=PROPOSED-roster-binding;basis=comment only: Actor is the bound actor (Actor.Bound), so a preparation survives unrelated roster writes and still moves with the binding ba0cc635a2fd0c1dd4a753736137a6284a44e73127f17299227b870436cae6c2
+internal/host/claimstop_recovery.go ClaimStopCoordinator.RecoverStopped authority C,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=as before; the fence target must carry a roster numeral, refused before any kill; the recovered receipt's directory_revision is that numeral and its binding field the target's stamp 804edb1c8f315facf1685993a48c1ffe514e23dbe04f8e66e92deae13a709e05
+internal/host/rootinventory_startup.go recoverRootInventoryStartup authority C,G rev3=PROPOSED-roster-binding;identity=root control startup and system recovery uid 0;basis=as before; its one read, rootstate.Open of the migration directory, moved unchanged into var openRootMigrationState; the census pin is the startup actor's binding; the recovery handler's InventoryActor is the fresh Identity.Verify and its startupBinding the startup actor's binding (N3) 2e6647bbc6121ce3333e129e89304f1a6494abb9ccc11b17aeb3439c936de83a
+internal/host/rootmigration_startup.go verifyRootMigrationStartup authority G,F,J4 rev3=PROPOSED-roster-binding;identity=root instance-control startup and recovery uid 0;basis=as before; its one read, rootstate.Open of the migration directory, moved unchanged into var openRootMigrationState 774782a59be9b9b22efd7a1be61ebad17c88a808ed2a9ef95a515f023605ad2e
+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 8665b7c841f45df5e1a2bc57f3bf377a0d90c2b9888176eb69354633fc782101
+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
+internal/hostbox/coldhandover.go ColdHandover.settleObsolete authority C rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: settles a journaled handover in phase prepared, parked or complete through the guard's SettleObsoleteColdHandover, whose record step rewrites the journal as settled (B3); ColdHandover.Recover is its only caller, and its class ecdbb6d7e71426e782a2007e730d3e06c46d3a7113290768286a78f64a1aaa70
+internal/hostguard/coldhandover.go Guard.SettleObsoleteColdHandover authority C rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: under the host lock, on the guard record it already reads, requires the prior's completed fence receipt, active stamp and the matching barrier, retires the successor stamp, clears the barrier, restores the prior's completed fence to the deny slot, writes the record, then records; an already settled record only records; ColdHandover.settleObsolete is its only caller, and its class a342cd17b58ec7d4afdee1d5666b675ced000e4a3ef68bf938651e4229fa7f78
+internal/host/rootinventory.go ClaimRootHTTP.obsoleteIntent authority C,E1,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: reports a stamp other than startupBinding (empty startupBinding never); no read; the class of its callers recoverRootInventory (C,E1) and RecoverPending (C,J4) 0e47d85d007b8f56b5a9f7ec87abc7b5085f0ebebb9da5310a34304dd207730e
+internal/host/rootinventory.go ClaimRootHTTP.settleObsoleteIntent authority C,E1 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: abandons an obsolete pending intent through the guard's existing AbandonRootInventory (same host lock, exact intent bytes), logged; never consults InventoryActor; recoverRootInventory is its only caller, and its class af90c834619a1ff0be4decad2498de6a2a4be0f69b55c41adefaee7dca510d03
+internal/host/claimstop.go stopReceiptNumeral authority C,G,J4 rev3=PROPOSED-roster-binding;identity=root instance-control uid 0;basis=new: the receipt numeral from the fence target's persisted RosterRevision, zero refused; no read; the class of its callers FenceAndStop, witnessNoProcess and RecoverStopped b1776ff85789af138c7215cd3fc4beb758823fdbcd4a98d802b3de29b8490439
+internal/host/claimstop.go receiptRosterRevision authority G,J4 rev3=PROPOSED-roster-binding;identity=carlos system journal-migrate offline operator uid 0;basis=new: parses a receipt's directory_revision as a canonical non-zero decimal; no read; its root caller is readMigrationStop, and its class (the agent's validateTransportStop also uses it) 40f6c90cdfdf0d03bc3f2e30d7739d9ec5001ad1c412ab2ceb8a27c9d4583009
+internal/host/claimservinghandover.go servingPriorBinding authority C,J4 rev3=PROPOSED-roster-binding;basis=new name for servingPriorRevision (removed below), now equality: the recorded stamp is the actor's non-empty binding, where it was a numeral no newer than the write counter; the removed row's class dfbda3bd8e6095f76488e3f6926e8579de9c023b6f4935a81b6c8a554c961007
+@remove internal/host/claimservinghandover.go servingPriorRevision