census: ack refresh ruled accepted; pin the migration seams' callers; stopReceiptNumeral's fourth caller (census owner rulings, platform-d8)
- plan14-root-reads-claim-ack-refresh.tsv: rev3=PROPOSED-claim-ack-refresh becomes rev3=census-ruling-claim-ack-refresh (accepted); its loader comment and the proposal's "Ack refresh" status say so. - Ruling 6 (checkRosterBindingCallers) pins openRootMigrationState's two callers, as ruling (a) requires, so a third caller fails the test (checked with a planted caller). It also pins fix round 1's new seams and entry points: rootMigrationStartupFloors, SettleObsoleteRootInventory and boundRosterRevision. - plan14-root-reads-roster-binding.tsv: stopReceiptNumeral's basis names its fourth caller, verifyRetirementReceipt (claimretire_transport.go:200); class unchanged. The overlay stays PROPOSED-roster-binding, and the inputExemptions entry stays PROPOSED-roster-binding. - The proposal's Roster binding section gains a "fix round 1" summary of the changed and new units.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 files changed,
+47
−12
docs/superpowers/notes/census-proposal-claim-step8-readiness.md+27 −3internal/host/claimstep8_ruling6_test.go+13 −3internal/provision/plan14_root_reads_test.go+3 −2internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv+3 −3internal/provision/testdata/plan14-root-reads-roster-binding.tsv+1 −1
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 75c19ba39..2f9ea51b3 100644 |
| --- a/docs/superpowers/notes/census-proposal-claim-step8-readiness.md |
| +++ b/docs/superpowers/notes/census-proposal-claim-step8-readiness.md |
| @@ -178,9 +178,9 @@ Tests: |
| ## Ack refresh |
| -Status: PROPOSED (G10 fix, 2026-10-20), awaiting a ruling. The harness's first claim-mode create on a freshly activated box never completed. The console's one in-request `Complete` ran before the box's ack, and its only retry is recovery at `started_at + 5 min`. The box's ack carried its first lease's 90 s expiry and was write-once, so every recovery saw an expired ack, got `ErrPending`, and the create stayed `creating`. Separately, the agent's regional worker pinned the roster-wide revision at startup, so the create's own actor hold stopped it with `ErrChanged` until the agent restarted. |
| +Status: ACCEPTED (G10 fix, 2026-10-20). Ruled by platform-d8, accepted; the overlay is marked `rev3=census-ruling-claim-ack-refresh`. The harness's first claim-mode create on a freshly activated box never completed. The console's one in-request `Complete` ran before the box's ack, and its only retry is recovery at `started_at + 5 min`. The box's ack carried its first lease's 90 s expiry and was write-once, so every recovery saw an expired ack, got `ErrPending`, and the create stayed `creating`. Separately, the agent's regional worker pinned the roster-wide revision at startup, so the create's own actor hold stopped it with `ErrChanged` until the agent restarted. |
| -The re-pins are in a new overlay, `internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv`, loaded last and marked `rev3=PROPOSED-claim-ack-refresh`. It adds no accepted-legacy row, so the seal stands. |
| +The re-pins are in a new overlay, `internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv`, loaded last and now marked `rev3=census-ruling-claim-ack-refresh`. It adds no accepted-legacy row, so the seal stands. |
| - **The hostclaim rule.** `AcknowledgeExecution` lets an existing ack be replaced only by one with the same op, enrollment, boot and controller, a lease ETag and a strictly later expiry. Byte-identical is still `ErrAckAlreadyApplied`. Anything else is still `ErrWrongState`, including an undecodable previous ack. |
| - **The box refresh.** `acknowledgeOperation` hands an existing ack to `refreshAcknowledgement`. Once fewer than `ackRefreshBefore` (60 s, two-thirds of the lease TTL) remain, it writes a refreshed ack from the controller's current `Ready` state, under the same checks as the first ack. |
| @@ -288,7 +288,7 @@ New units, at the class of their callers: |
| | `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` `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 | |
| @@ -299,3 +299,27 @@ Envelopes re-pinned: `internal/host`, `internal/hostactors`, `internal/hostbox`, |
| 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. |
| + |
| +### Roster binding, fix round 1 |
| + |
| +Status: PROPOSED with the rest of Roster binding (`rev3=PROPOSED-roster-binding`). Four code-review findings were fixed; the same overlay is updated in place. |
| + |
| +1. **Settled installations stay inspectable.** Startup settlement now uses the new `Guard.SettleObsoleteRootInventory`, which leaves the record quarantined and marked settled. Only the migration census reads a settled record (`RootAuthority.readView` with `census`, view marked `Settled`); every execution read still refuses it. An interrupted commit that already landed is recorded as that commit would have recorded it. `verifyRootMigrationStartup` skips a settled first install that never got an inventory, and its floor check goes through the new `var rootMigrationStartupFloors`. |
| +2. **Target stamp checked.** `commitRootInventoryPending` refuses a non-empty target stamp that differs from the validated inventory stamp, before any intent. `obsoleteIntent` takes one stamp, validated evidence only. |
| +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). |
| + |
| +New units, at their callers' class: |
| + |
| +| Unit | What it is | Class | |
| +|---|---|---| |
| +| `internal/hostguard/root.go` `Guard.SettleObsoleteRootInventory` | the settlement write (host lock, exact intent) | authority C,E1 | |
| +| `internal/hostguard/rootview.go` `RootAuthority.readView` | viewLocked's read plus the census exception | authority C,G,J4 | |
| +| `internal/host/rootinventory.go` `ClaimRootHTTP.inventoryIntentApplied`, `rebindIntentUnapplied` | whether the interrupted commit landed | authority C,E1 | |
| +| `internal/host/rootmigration_startup.go` `var rootMigrationStartupFloors` | the floor check's test seam | authority G,F,J4 | |
| +| `internal/host/claimstop.go` `ClaimStopCoordinator.boundRosterRevision` | the numeral bound | authority C,G,J4 | |
| +| `internal/host/claimcleanup_identity.go` `claimCleanupEnrollment.rosterRevision` | root's fresh signed-roster read (one `Read`) | authority C,G,J4, root-input kept C,G | |
| + |
| +9B8: `commitRootInventoryPending` and `recoverRootInventory` re-pinned again; kinds and class unchanged. Ruling 6 now also pins the callers of `openRootMigrationState` (its two), `rootMigrationStartupFloors`, `SettleObsoleteRootInventory` and `boundRosterRevision`. |
diff --git a/internal/host/claimstep8_ruling6_test.go b/internal/host/claimstep8_ruling6_test.go| index 769dd1a62..98df126c0 100644 |
| --- a/internal/host/claimstep8_ruling6_test.go |
| +++ b/internal/host/claimstep8_ruling6_test.go |
| @@ -95,8 +95,10 @@ func TestStep8CensusChangesReachOnlyClaimMode(t *testing.T) { |
| // 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. |
| +// wired only into root's claim handler. The migration-state and floor seams, |
| +// the obsolete-intent settlement and the stop numeral bound keep their |
| +// callers. 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{} |
| @@ -146,7 +148,8 @@ func checkRosterBindingCallers(t *testing.T) { |
| callee = f.Sel.Name |
| } |
| switch callee { |
| - case "BoxBinding", "SameBinding", "verifyClaimCleanupEnrollment", "OpenClaimOwners", "SettleObsoleteColdHandover", "obsoleteIntent", "settleObsoleteIntent", "claimRootHTTP", "rootStopCoordinator": |
| + case "BoxBinding", "SameBinding", "verifyClaimCleanupEnrollment", "OpenClaimOwners", "SettleObsoleteColdHandover", "obsoleteIntent", "settleObsoleteIntent", "claimRootHTTP", "rootStopCoordinator", |
| + "openRootMigrationState", "rootMigrationStartupFloors", "SettleObsoleteRootInventory", "boundRosterRevision": |
| callers[callee] = append(callers[callee], name) |
| } |
| case *ast.CompositeLit: |
| @@ -198,6 +201,13 @@ func checkRosterBindingCallers(t *testing.T) { |
| "settleObsoleteIntent": {"internal/host ClaimRootHTTP.recoverRootInventory"}, |
| "claimRootHTTP": {"internal/host NewProductionRootClaimStop"}, |
| "rootStopCoordinator": {"internal/host NewProductionRootClaimStop"}, |
| + // The root-owned migration directory's seam (census ruling (a), |
| + // platform-d8) and fix round 1's floor seam: a third caller fails. |
| + "openRootMigrationState": {"internal/host recoverRootInventoryStartup", "internal/host verifyRootMigrationStartup"}, |
| + "rootMigrationStartupFloors": {"internal/host verifyRootMigrationStartup"}, |
| + // Fix round 1: the obsolete-intent settlement and the numeral bound. |
| + "SettleObsoleteRootInventory": {"internal/host ClaimRootHTTP.settleObsoleteIntent"}, |
| + "boundRosterRevision": {"internal/host ClaimStopCoordinator.FenceAndStop", "internal/host ClaimStopCoordinator.witnessNoProcess"}, |
| } |
| for name, w := range want { |
| got := slices.Compact(sortedCopy(callers[name])) |
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go| index a4784bc2d..fe55d7721 100644 |
| --- a/internal/provision/plan14_root_reads_test.go |
| +++ b/internal/provision/plan14_root_reads_test.go |
| @@ -1002,8 +1002,9 @@ func TestPlan14RootReadCensus(t *testing.T) { |
| // Census overlay claim-ack-refresh (G10: the box refreshes its own |
| // execution acknowledgement while the op waits on the console, and the |
| // regional enrollment check ignores the roster-wide revision but carries |
| - // the row's quarantine revision), loaded last. PROPOSED, awaiting a |
| - // ruling (docs/superpowers/notes/census-proposal-claim-step8-readiness.md, |
| + // the row's quarantine revision), loaded last. |
| + // census-ruling-claim-ack-refresh: Ruled by platform-d8, accepted |
| + // (docs/superpowers/notes/census-proposal-claim-step8-readiness.md, |
| // "Ack refresh"); no accepted-legacy row, so the seal stands. |
| if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv"), &inv, true); err != nil { |
| t.Fatal(err) |
diff --git a/internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv b/internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv| index 52e1289cf..491d9059e 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-claim-ack-refresh.tsv |
| @@ -2,6 +2,6 @@ |
| @coverage internal/host e65e013f2a3b196b4876cf358229c15d02c4ca9d564054371c9d17361eec508d |
| @coverage internal/hostbox 7f872271f2ee9babee13d764a54c6603fb383b7ec01143ca03c73298be5fe6e5 |
| @coverage internal/hostclaim ab7011859f49b2282ddfbdd98817437852163bddb0e9cf81c12150b66b970afa |
| -internal/host/claimproduction.go productionClaimRoster.Actor authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=PROPOSED-claim-ack-refresh;basis=the same two reads; the verified actor also carries the roster row's QuarantineRevision, so the regional enrollment check can ignore the roster-wide revision and still refuse a box quarantined since startup file:Read@127,file:Read@674 f930f8c38f722d67f41ffe65bca4c2ef5f7ef6bb5959a7da24099fc20a1c35e8 |
| -internal/host/rootexecution_client.go productionClaimLocal.acknowledgeOperation authority C rev3=PROPOSED-claim-ack-refresh;identity=agent uid carlos;basis=publishes only the required participant own active root-client tuple under claim CAS; checks host incarnation operation box enrollment; an existing acknowledgement is no longer left as is but handed to refreshAcknowledgement, which only extends this controller's own bf01c7d9ac473f9152af37d3117da67b1af63f6b2e61f32bc3d67e0f7662b767 |
| -internal/host/rootexecution_client.go productionClaimLocal.refreshAcknowledgement authority C rev3=PROPOSED-claim-ack-refresh;identity=agent uid carlos;basis=extends only an acknowledgement this slot's controller wrote (same op, enrollment, boot and first controller id) once fewer than ackRefreshBefore (60 s) remain, from the controller's current Ready state under the first acknowledgement's checks, under claim CAS; hostclaim refuses anything but a strictly later expiry e236c26943abbab67d29451a9d7a0f880af1b6f97ed0a7c9df7238f91b353aff |
| +internal/host/claimproduction.go productionClaimRoster.Actor authority C,G,J4 root-input;kept=C,G;scope=protected-decision-only;rev3=census-ruling-claim-ack-refresh;basis=the same two reads; the verified actor also carries the roster row's QuarantineRevision, so the regional enrollment check can ignore the roster-wide revision and still refuse a box quarantined since startup file:Read@127,file:Read@674 f930f8c38f722d67f41ffe65bca4c2ef5f7ef6bb5959a7da24099fc20a1c35e8 |
| +internal/host/rootexecution_client.go productionClaimLocal.acknowledgeOperation authority C rev3=census-ruling-claim-ack-refresh;identity=agent uid carlos;basis=publishes only the required participant own active root-client tuple under claim CAS; checks host incarnation operation box enrollment; an existing acknowledgement is no longer left as is but handed to refreshAcknowledgement, which only extends this controller's own bf01c7d9ac473f9152af37d3117da67b1af63f6b2e61f32bc3d67e0f7662b767 |
| +internal/host/rootexecution_client.go productionClaimLocal.refreshAcknowledgement authority C rev3=census-ruling-claim-ack-refresh;identity=agent uid carlos;basis=extends only an acknowledgement this slot's controller wrote (same op, enrollment, boot and first controller id) once fewer than ackRefreshBefore (60 s) remain, from the controller's current Ready state under the first acknowledgement's checks, under claim CAS; hostclaim refuses anything but a strictly later expiry e236c26943abbab67d29451a9d7a0f880af1b6f97ed0a7c9df7238f91b353aff |
diff --git a/internal/provision/testdata/plan14-root-reads-roster-binding.tsv b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv| index 807188f8a..335566b2c 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-roster-binding.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-roster-binding.tsv |
| @@ -53,7 +53,7 @@ internal/hostbox/coldhandover.go ColdHandover.settleObsolete authority C rev3=PR |
| 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); fix round 1 (finding 2): takes one stamp, validated binding evidence only (an inventory's or a successor's), so an agent-sent target stamp can never mark an intent obsolete; no read 215523d8427b282d262453a45727effa40641a697169baa577e5d30df57e4582 |
| 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; fix round 1 (finding 1): settles through the guard's SettleObsoleteRootInventory instead of AbandonRootInventory, so the installation is quarantined and marked settled, inspectable by the migration census and still refused for execution; no read afe2fea20a0b5368d8762664bd812908f6ae16536acefc735a7c340e2fc4c5c4 |
| -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 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, and of its fourth caller verifyRetirementReceipt (claimretire_transport.go:200), which compares a retirement receipt's directory_revision with the target's numeral; class unchanged 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 |