design: installed claim state binds to a per-box binding digest, not the roster write counter (G10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+184
−0
docs/superpowers/notes/design-roster-revision-holds.md+184 −0
CI passed — run details
diff --git a/docs/superpowers/notes/design-roster-revision-holds.md b/docs/superpowers/notes/design-roster-revision-holds.md| new file mode 100644 |
| index 000000000..cc117ca94 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/design-roster-revision-holds.md |
| @@ -0,0 +1,184 @@ |
| +# Design: roster revision vs hold churn (host claims, G10) |
| + |
| +Status: PROPOSED (2026-10-20). Branch `claim-empty-cohort-done` at 500741f4. Static reading only; nothing built or run. |
| + |
| +## The gap |
| + |
| +`control/host-actors.json` (`hostactors.Roster`) has one counter, `Revision`, and `Directory.Replace` bumps it on every write (`internal/hostactors/roster.go:252`). The console's per-operation holds are roster writes, so every create or delete anywhere in the deployment moves `Revision` twice (reserve, release). Boxes bind installed state to that counter as the string `DirectoryRevision`, and root compares the stored value with the current roster at wake, launch, inventory write and handover. After any roster write, every installed instance on every claim box refuses to wake (`hostbox.ErrTypedInventory`), and an agent restart cannot help because the inventory keeps the old stamp. |
| + |
| +Fixes 1 and 2 (79db17be, 7b805720) cover the ack and the regional check. This note is the design for the rest. |
| + |
| +## 1. Survey |
| + |
| +### 1.1 Writers |
| + |
| +Every roster write goes through `Directory.Replace` (`internal/hostactors/roster.go:211-286`) except `BindCensusKey`, which bumps on its own. Both sign the whole object with the deployment root key (`release.SignRootEnvelope`, `roster.go:277`, `censuskey.go:83`) and CAS on the S3 ETag. |
| + |
| +| Writer | file:line | What changes | Bumps Revision | Membership fact | |
| +|---|---|---|---|---| |
| +| `Initialize` | hostactors/roster.go:343 | fresh roster, `Revision: 1` | n/a | yes | |
| +| `Enroll`, `EnrollAWS`, `EnrollAutomatic` | hostactors/enroll.go:28-80, enrollment_confirmation.go:34 | `Boxes[+ref]`; consumes the attempt | yes | yes (new row) | |
| +| `BeginEnrollmentAttempt` (region HA auto-enrol) | hostactors/enrollment_confirmation.go:103-124 | `EnrollmentAttempts[ref]` | yes | no | |
| +| `Quarantine` | hostactors/roster.go:293-306; caller hostresolve/service.go:290 | row `State`, `QuarantineRevision++`, `LossIDs` | yes, exactly one (hostops/move_loss_grant.go:312 admits `before+1`) | yes | |
| +| Readmission | hostresolve/readmit.go:131-136 | row `State: active` | yes | yes | |
| +| Retire | no writer in the tree; `Validate` accepts the state (roster.go:122), `Replace` refuses un-retiring (roster.go:270) | row `State: retired` | yes, when one lands | yes | |
| +| `SetBoxRole`, `SetGroupRole` | hostactors/roles.go:76-91, 114-138; console/apiboxroles.go:147,187 | row `Role`, `Regions[r].Role` | yes | placement only | |
| +| `PublishFloor` | hostactors/publication.go:14-78 | `Publication`, `FloorSHA256` (two writes: :31, :77) | yes, twice | yes | |
| +| `BindCensusKey` | hostactors/censuskey.go:25-95 (`next.Revision++` at :78) | row `CensusPublicKey` (write-once) | yes | yes | |
| +| Hold reserve (`ReserveLifecycle` -> `Reserve`) | hostactors/lifecycle.go:135-155, census.go:246-294 (:293); caller hostops/production_held_start.go:32 | `Holds[+id]` | yes | no | |
| +| Hold release (`ReleaseFinishedHold`, `CancelHold`) | hostactors/lifecycle.go:157-180, reservations.go:69-110; callers console/claim_hold_recovery.go:40,46, production_held_start.go:35,51 | `Holds[-id]` | yes | no | |
| +| Activation reserve (`Reserve(activation=true)`) | census.go:246-294 (:281); console/hostactivation.go:193 | `Activations[+id]` | yes | no | |
| +| Activation release, cancel | hostactors/activation_complete.go:13-57, activation_publication.go:22-50; console/hostreports.go:91, hostactivation.go:330 | `Activations[-id]` | yes | no | |
| +| Activation runner phases configure, home, enroll-console | claimactivation/runner.go:194, 203, 268 | `Regions`+`RequestLimitNS`; `HomeRegion`; `Consoles[id]` | yes | yes | |
| + |
| +Not roster writes: `Invite` (invitation.go:30) and `InviteConsole` (console_invitation.go:15) write their own objects. |
| + |
| +So it is not only holds. Activations are written on every platform promote (`reserveHostUpdate`) and released by the console's report loop; enrollment attempts are written by region HA autoscaling; role changes are operator actions. Under today's binding every one of them strands every installed instance in the deployment. |
| + |
| +### 1.2 Readers of `Revision` and `DirectoryRevision` |
| + |
| +"Hold churn should invalidate" is the design answer, not the current behaviour. |
| + |
| +Box agent (pinned once at assembly): |
| + |
| +| Reader | file:line | Compares | Protects | Hold churn should invalidate | |
| +|---|---|---|---|---| |
| +| assembly pin | host/claimassembly.go:179-180 (`Reconcile.DirectoryRevision`, census), :381 (root's reconcile census from `actorForRoot`) | stamp source for every inventory this process writes | the installation is made by this enrollment under this roster | no | |
| +| `claimBoundIdentity` | host/claimmoveparks.go:97-110; wired at claimassembly.go:186-188 (data store), :243 (leases), :273 (move fence, move parks) | fresh actor == pinned actor, whole struct | the regional engine, moves and leases act only as the verified enrollment | no (still pinned; the regional worker dies on the first create, fix report concern 1) | |
| +| `VerifyRegional` | host/claimassembly.go:281-301 | `sameVerifiedActor` (all fields except `Revision`) since 7b805720 | same | no (done) | |
| +| install, route register | hostbox/reconcile_adapter.go:139; inventory_registration.go:80, 140, 249 | stored inventory == pinned stamp | an inventory this process did not write is refused | no | |
| +| local census | hostbox/empty_census.go:109, 135, 370 | same | same | no | |
| +| retirement | hostbox/reconcile_adapter.go:301 | inventory == fence target | the retirement parks only what root's inventory names | no (record to record) | |
| +| sanity | hostbox/identity.go:86 (`Revision > 0`), host/claimfilesseed_select.go:38, claimservingpark_transport.go:158, claimservingparkroot_linux.go:75 | non-zero | a roster row was read | no | |
| +| launch owner | host/claimconstruction.go:327 (`FenceTarget.DirectoryRevision` from the construction actor), claimroleassembly.go:58 | stamp into launch and fence records | a launch is tied to the enrollment that made it | no | |
| +| stop, retire, receipts | host/claimwakestop.go:34,49,308-313; claimstop.go:223,256,269,335,399,412,433; claimstop_writers.go:39,86,109,119,239-247; claimstop_recovery.go:64,82; claimstop_transport.go:207-211; claimretire_transport.go:145,180; claimjournal_proof.go:106,114; rootmigration_evidence.go:40; claimservinglegacy.go:48-49 | request == inventory == receipt (record to record) | a stop receipt proves the stop of exactly the installation it names | no, and these never read the live roster | |
| +| relocation effects | host/relocationeffects.go:38, 168, 275 | expected = fresh actor | a relocation stop runs under the current enrollment | no | |
| +| execution authority | host/rootexecution_authority.go:79; hostexec/rootbroker.go:254 (non-empty) | stamp into the lease authority | forensic | no | |
| +| journal digests | hostbox/journalservice.go:184, 208 (v1 tuple, frozen); journalmigration_linux.go:606, 680 (`legacyToken`: any printable ASCII up to 256) | hashed as a string | the journal request is bound to its target | n/a | |
| + |
| +Root (fresh actor against the stored stamp): |
| + |
| +| Reader | file:line | Compares | Protects | Hold churn should invalidate | |
| +|---|---|---|---|---| |
| +| inventory write | host/rootinventory.go:61-67; actor from `actorForRoot` (claimcleanup_identity.go:70-74: fresh, or the pinned cleanup actor in instance-control mode, :38) | `in.DirectoryRevision == fresh` | root records only inventories made under the roster it sees | no (this is G10's next stop) | |
| +| wake | host/rootinventory_state_linux.go:38 (remote), claimroleassembly_linux.go:373 (local), :47, :128 (target == inventory) | same | the instance wakes only under the roster it was installed under | no | |
| +| launch authorize | host/claimlaunch_authority.go:82, claimlaunch_root.go:180, 216 | fresh == `FenceTarget` (construction-time pin) | a launch runs only for the enrollment that reserved it | no | |
| +| serving handover | host/claimservinghandover.go:29-32; `servingPriorRevision` :136-139 (`prior <= fresh`, `next == fresh`); hostbox/servinghandover.go:50, 83, 140 | the prior may be older, the successor must be current, the inventory is re-stamped | a swap re-binds the installation to the current roster | no | |
| +| serving park, legacy | host/claimservingparkroot_linux.go:131, claimservingparksource_linux.go:41, claimservinglegacyroot_linux.go:44, 65, 102 | `prior <= fresh`, inventory == fresh | same | no | |
| +| cold handover, rebind | host/claimhandover_recovery.go:224, 243; claimhandover_transport.go:110; claimrecovery_remote.go:54; rootrecovery_rebind.go:35, 68; hostbox/coldhandover.go:122, 141, 336; generationhandover.go:19, 23 | successor stamp = fresh; re-stamps the inventory | same | no | |
| +| generations | host/rootgeneration_inventory.go:227 (non-empty), rootgeneration_parked.go:48, rootgeneration_handover.go:101, rootexecution_settle.go:96 | inventory == target | record to record | no | |
| +| startup census | host/rootinventory_startup.go:45 | pinned to the startup actor | same as the agent's census | no | |
| + |
| +Console and hostops: |
| + |
| +| Reader | file:line | Compares | Protects | Hold churn should invalidate | |
| +|---|---|---|---|---| |
| +| backfill census `expectedRevision` | hostops/backfill.go:187-193; callers backfill_publish.go:32, 370, 437 and backfill.go:327 with `p.DirectoryRevision`; `Census()` for production create uses 0 (backfill.go:274-275, no pin) | `roster.Revision == plan.DirectoryRevision`, else `ErrPending` | the plan and every box report were taken against one membership | no. Today a hold in flight returns `ErrPending`, and once it releases the plan can never match again | |
| +| census reports | hostops/backfill.go:242, backfill_publish.go:169 (`Done`), 339, 395; claimactivation/backfill.go:159, 171, 203, 214, 246, 265; box side host/rootmigration_census.go:70-79 | `report.DirectoryRevision == roster.Revision` | a box-signed report is for this membership | no (same) | |
| +| stop evidence | hostops/evidence.go:123-124 (console), wake_reset_transport.go:318-319 (box) | `0 < recorded <= roster.Revision` | a receipt is not from the future | no (a sanity bound, never an authority) | |
| +| move loss grant | hostops/move_loss_grant.go:312-317 | the quarantine write is exactly `before.Revision+1` and changes one row | the loss grant's roster write is scoped | n/a (a write counter is right here) | |
| +| relocation start | hostactors/census.go:296-321 (`CheckBoxStart` returns `Revision`), :425-440 (`CensusBoxRelocation` re-reads and requires equality); hostrelocate/worker.go:341, 358; hostclaim/relocation.go:476, 511 (intent `directory_revision`, no reader) | change detection between two reads; forensic intent | nothing read it back | no (ETag would do) | |
| +| moves fence binding | hostfence/claim_fence.go:32 -> hostclaim/fence.go:75 (non-zero) -> relocating.go:136, 306 (journal `roster_revision`) | non-zero; journaled | forensic | no | |
| +| roles | console/apiboxroles.go:153, 193 | `next != o` means the write happened | logging | n/a | |
| +| activation CLI | claimactivation/runner.go:132, 143, 322; host/activation_command_linux.go:117, 237; activation_console_report_linux.go:240 | operator-supplied expected revision | offline CAS between phases; claims off, so no holds | n/a | |
| +| region HA | writers only (auto-enrol, roles); no reader | | | | |
| +| seeds | host/claimfilesseed_select.go:38 | non-zero | sanity | no | |
| + |
| +### 1.3 Findings |
| + |
| +1. The roster is strict-decoded (`release.VerifyRootEnvelope` -> `strictCanonicalJSON`, release/rootenvelope.go:72-90: `DisallowUnknownFields` plus a canonical re-marshal). A new roster field, even `omitempty`, makes every older binary refuse `Directory.Read` once it is first written. The established pattern is I2 (censuskey.go:49-52): write the field only after a published floor excludes the older binaries. The `Roster` struct is byte-identical between v0.28.4 and this branch. |
| +2. `DirectoryRevision` is a string everywhere it is stored (inventory, fence target, launch record, stop request, receipt, execution authority) and is hashed as a string in the frozen journal v1 tuple. Only three readers parse it as a number for ordering: `servingPriorRevision` and the two stop-evidence sanity bounds. |
| +3. Handover and rebind already treat the stamp as re-bindable (they tolerate an older prior and write the fresh value). Wake and launch do not. That inconsistency is the defect's shape: a stamp that is a write counter can only ever be "current" by luck. |
| +4. The regional pin (`claimBoundIdentity`) and the install pin are the same pin: the `hostbox.Actor` struct carries `Revision`, so whole-actor equality carries the write counter. |
| +5. The cleanup (instance-control) actor is pinned at root construction (claimcleanup_identity.go:38), so root's inventory write compares a pin against a pin there and a pin against fresh elsewhere. |
| + |
| +## 2. Options |
| + |
| +Common to all three: the roster stays root-signed; a hold write re-signs the whole object with the console's root key (console/claim_runtime.go:75 `Signer: release.RootSigner(s.cfg.Key)`), as today; boxes hold only the public key. Nothing new is signed by any option. Census reports stay box-signed and keep pinning `roster.Revision`. |
| + |
| +### A. Holds stop bumping `Revision`; the S3 ETag tracks hold changes |
| + |
| +`Replace` sets `next.Revision = before.Revision + 1` only when the roster minus `Holds` (and, to be useful, minus `Activations` and `EnrollmentAttempts`) differs; a reservation-only write keeps `Revision` and relies on the ETag CAS it already uses. `CensusBoxRelocation` compares ETags instead. Nothing reads `Revision` to detect a hold change (section 1.2), so no second counter is needed. |
| + |
| +| Aspect | A | |
| +|---|---| |
| +| Code | console side only: `Replace`, `CensusBoxRelocation`, hostactors tests that assert `+1` (roles_test.go:147, 218; autoenroll_test.go:678; plan11_fix1_enrolled_test.go:29). Box, root, hostops untouched | |
| +| v0.28.4 console | its `Replace` keeps bumping on holds, so the defect persists until the console is updated. Order: console first; boxes need no release. Flagship is claims-off and writes no holds, so no exposure there | |
| +| Migration | none: stamps stay numerals and stay valid while membership is unchanged | |
| +| Signing | unchanged | |
| +| Security | quarantine, readmission, retire, re-enrol, floor, home, census key: all still bump. But so does every other box's enrolment, every console enrolment, every role change. Region HA replacements would strand every installed instance in the deployment, and nothing re-stamps at wake | |
| + |
| +A is cheap and compatible, and it fixes the G10 symptom, but it leaves `Revision` as a deployment-wide counter that still moves for reasons unrelated to the box. |
| + |
| +### B. Holds move to their own object |
| + |
| +`control/host-holds.json` carries `Holds`; the roster keeps membership and activations. |
| + |
| +| Aspect | B | |
| +|---|---| |
| +| Code | hostactors `Reserve`, `Start`, `CheckHold`, `CancelHold`, `ReleaseFinishedHold`, `Validate` (the hold/activation non-overlap rule at roster.go:173-179 and census.go:264-290 spans both objects), console hold recovery, `PublishFloor`'s "no holds" gate, every test that builds a roster with holds | |
| +| v0.28.4 console | writes holds into the roster. New code must read both places until it is gone; the overlap rule cannot be atomic across two objects while both exist | |
| +| Migration | existing holds (none at rest in a healthy deployment) copied or drained first | |
| +| Signing | a second root-signed object, re-signed on every hold write | |
| +| Security | the non-overlap of holds and activations loses its single CAS. Membership changes still bump `Revision`, so B fixes only holds, like A, at ten times the cost | |
| + |
| +Rejected. |
| + |
| +### C. Boxes bind to a membership binding computed from the roster |
| + |
| +The box computes its binding from the signed roster it already reads, and that binding becomes the `DirectoryRevision` it stamps and compares. Two shapes: |
| + |
| +C1, a per-box digest, no roster change. `hostactors.BoxBinding(r Roster, ref string) string` is sha256 over a frozen v1 tuple: the deployment facts (`DeploymentBucket`, `HomeRegion`, `RequestLimitNS`, `Publication`, `FloorSHA256`) and the row's identity and state (`Enrollment`, `Namespace`, `BoxID`, `Region`, `Pool`, `Cloud`, `EvidenceSHA256`, `State`, `QuarantineRevision`, `CensusPublicKey`). Not in the tuple: `Revision`, `Holds`, `Activations`, `EnrollmentAttempts`, `Consoles`, `Regions`, other rows, `Role`, `Label`, `Group`, `LossIDs` (covered by `QuarantineRevision`), `EnrolledAt`. |
| + |
| +C2, a stored counter. A new `membership_revision` (deployment-wide) or per-row `binding` field, bumped by `Replace` when the tuple above changes, read by boxes as today's `Revision`. |
| + |
| +| Aspect | C1 (digest) | C2 (stored counter) | |
| +|---|---|---| |
| +| Code, box and root | `hostbox.Actor.Revision` becomes `Binding string`; `productionClaimRoster.Actor` (claimproduction.go:396) and `verifyClaimCleanupEnrollment` (claimcleanup_identity.go:38) compute it; the 22 `fmt.Sprint(actor.Revision)` / `strconv.FormatUint(actor.Revision, 10)` stamp and compare sites use `actor.Binding`; `servingPriorRevision` becomes equality; `actorMatches` and the four `Revision == 0` sanity checks become `Binding != ""`; `sameVerifiedActor` is deleted (whole-actor equality no longer carries the counter) | same sites, but they keep numerals: `Actor.Revision` reads the new field, falling back to `Revision` while it is absent | |
| +| Code, console | hostops/evidence.go:123 and wake_reset_transport.go:318 accept a well-formed binding (64 hex) instead of parsing a bound. Nothing else | `Replace` and `BindCensusKey` maintain the field; a floor gate before the first write (I2 pattern) | |
| +| v0.28.4 console | fully compatible in any order: the old console's hold writes move `Revision`, which no box reads any more. The console must be on the new release before moves are switched on (its evidence check parses the stamp as a number). A v0.28.4 box stays broken by any console's holds until it is updated | the first write of the new field makes every v0.28.4 box and console refuse the roster. Order: every box and console updated, floor re-published with the new minimum, then the first write. Until then boxes behave as today | |
| +| Migration | an inventory, fence target or launch record stamped with a numeral never equals a digest: refused with `ErrTypedInventory` or `ErrChanged`, and the instance is reinstalled. Today there is nothing to migrate: leo is empty (trial Option B) and flagship is claims-off | the counter is seeded from `Revision` at the first write, so a stamp equals the seed only if no write happened since the install. Same practical answer: nothing to migrate today | |
| +| Signing | unchanged; the binding is derived from the verified payload | unchanged; the field rides in the signed payload | |
| +| Security, must invalidate | retire (`State`), re-enrol (`Enrollment`), quarantine (`State`, `QuarantineRevision`), readmission (`QuarantineRevision` only grows, so the post-readmit binding never equals the pre-quarantine one), floor publish (`FloorSHA256`, `Publication`), home region (`HomeRegion`), census key bind: all change the digest | same, by the bump rule | |
| +| Security, must not invalidate | holds, activations, enrollment attempts, console rows, region roles, other boxes, this box's role or label: not in the tuple | same, by the bump rule; a deployment-wide counter still moves for other boxes' rows unless it is per-row | |
| +| Ordering checks | the two stop-evidence bounds (`recorded <= Revision`) become format checks. They were never an authority: the receipt's signature, enrollment, op, host, incarnation and fence bind it, and any numeral at or below the current counter passed. `servingPriorRevision` becomes equality, which is what wake already requires | unchanged | |
| +| Cross-version mixing | the binding is computed and compared on one box by one binary. The only cross-party comparison is the console's evidence format check | same | |
| + |
| +## 3. Recommendation |
| + |
| +C1: the per-box binding digest, no roster change. |
| + |
| +**Invariant.** Installed state binds to `BoxBinding(roster, box)`, the digest of the deployment's binding facts (bucket, home region, request limit, publication, floor) and this box's row identity and state (enrollment, namespace, box id, region, pool, cloud identity, evidence digest, state, quarantine revision, census key). `BoxBinding` changes only when one of those facts changes. Holds, activations, enrollment attempts, consoles, regions, other boxes' rows, this box's role and label, and the roster's write counter never change it. |
| + |
| +Corollaries that fall out without special cases: |
| + |
| +- `hostbox.Actor` carries `Binding` instead of `Revision`, so `claimBoundIdentity` and `VerifyRegional` go back to plain whole-actor equality and still refuse a box quarantined, readmitted, re-enrolled or moved since startup (fix report concern 1 closes; `sameVerifiedActor` and its ruling 6 pin go). |
| +- `Revision` keeps its one honest meaning, a signed write counter: CAS for the activation CLI, the loss grant's `+1` scope, the backfill pins, logs. |
| +- Wake, launch, inventory write and handover all compare the same thing the same way: stored binding == current binding. |
| + |
| +Why not A: it is a half fix (every membership write anywhere still strands every instance) and its compatibility story is worse (console-side, so v0.28.4 consoles keep breaking new boxes). Why not C2: it costs a floor gate and a fleet-wide release ordering to keep three numeral comparisons that carried no decision. |
| + |
| +Deferred, not blocked by this: the backfill and census pins on `Revision` (hostops/backfill.go:193, backfill_publish.go:169, claimactivation/backfill.go) should pin a membership digest of the whole roster (the same tuple without the per-row part, plus every row) so a hold in flight cannot strand a plan. The dev backfill runs claims-off, so it can wait for its own proposal. |
| + |
| +## 4. Build plan |
| + |
| +Order matters: 1 and 2 are pure and testable alone; 3 is the box and root rewrite; 4 is the console; 5 is the witness; 6 the census; 7 the roll. |
| + |
| +| # | Task | Files | Test that pins it | |
| +|---|---|---|---| |
| +| 1 | `hostactors.BoxBinding(r Roster, ref string) (string, bool)` and `hostactors.ValidBinding(s string) bool`. Frozen v1 tuple, encoded like journalservice.go:184 (an ordered `[]any` with a version tag, JSON-marshalled, sha256, lower hex). A comment in the style of journalservice.go: never extend the tuple; a new field is v2 | hostactors/binding.go | `TestBoxBindingTuple`: a golden vector for a fixed roster; a table that mutates each tuple field and expects a new digest; a table that mutates each excluded field (`Revision`, `Holds`, `Activations`, `EnrollmentAttempts`, `Consoles`, `Regions`, a sibling row, `Role`, `Label`, `Group`, `LossIDs`, `EnrolledAt`) and expects the same digest; an unknown box returns false | |
| +| 2 | `hostbox.Actor`: drop `Revision`, add `Binding string`; `actorMatches` requires `Binding != ""` | hostbox/identity.go | `TestIdentityVerifyRequiresBinding` (extends the existing `Verify` tests); `TestMoveParksVerifiedIdentityAndRealEngine` "revision" case becomes "binding", and a new "revision" case asserts a roster write with the same binding is accepted | |
| +| 3 | Box and root: `productionClaimRoster.Actor` and `verifyClaimCleanupEnrollment` compute `Binding` from the roster they read; every stamp and compare site uses `actor.Binding` (claimassembly.go:179-180, 381; claimconstruction.go:327; claimroleassembly.go:58; rootinventory.go:67; rootinventory_state_linux.go:38; claimroleassembly_linux.go:373; claimlaunch_authority.go:82; claimlaunch_root.go:216; claimservinghandover.go:29-32; claimservingparkroot_linux.go:131; claimservingparksource_linux.go:41; claimservinglegacyroot_linux.go:44, 102; claimhandover_recovery.go:224, 243; claimhandover_transport.go:110; claimrecovery_remote.go:54; rootrecovery_rebind.go:68; relocationeffects.go:275; rootexecution_authority.go:79; rootinventory_startup.go:45; claimfilesseed_select.go:38; claimservingpark_transport.go:158). `servingPriorRevision` becomes `prior == actor.Binding`. Delete `sameVerifiedActor`; `VerifyRegional` compares `a != e.actor` again | internal/host | existing suites re-pointed; `TestClaimRegionalEnrollmentSurvivesRosterRevision` kept as is (it is the regional half of the witness); `TestSameVerifiedActorIgnoresOnlyRevision` deleted; `TestServingPriorBindingIsEquality` for the three former `<=` sites | |
| +| 4 | Console: hostops/evidence.go:123 and wake_reset_transport.go:318 use `ValidBinding` instead of parse-and-bound | internal/hostops | the existing evidence tests gain a "numeral stamp refused, binding accepted" case; `TestVerifyStopEvidenceSurvivesQuarantine`: a receipt stays valid after `Directory.Quarantine` of its box | |
| +| 5 | Production-wired witness, linux, in internal/host: `release.NewDirStore`, root signer, `hostfloor.Publish`, a one-box roster written through `Directory.Replace`; `productionClaimRoster` + `IdentityProvider.Verify` (the fixtures of claim_regional_revision_test.go:64-98); the real `ReconcileAdapter.Install` + `EmptyInstallationCensus.Initialize` writing a `StopInventory` through the real `JournalService` inventory in a temp dir; then the real comparisons: `ReconcileAdapter.CheckLocal`, `ClaimRoleAssembly.PrepareState` (local path, claimroleassembly_linux.go:373) and `ClaimRootHTTP.validateServingHandover`. Steps: (a) install at binding B0; (b) real `Directory.Reserve`, `ReleaseFinishedHold`, `Reserve(activation=true)`, `ReleaseActivation`, `BeginEnrollmentAttempt`, `SetBoxRole`: `Revision` moves by six, every comparison still passes, `Verify` returns an actor equal to the pinned one; (c) real `Directory.Quarantine`: `Verify` refuses (`ErrChanged`); readmit by `Replace` (State active, as hostresolve/readmit.go:131-136): `Verify` passes, every installed-state comparison refuses (`ErrTypedInventory`); (d) re-enrol: a fresh row with a new `Enrollment` for the same box id: refused; (e) floor and home: `Replace` refuses both after publication (membership.go:241, roster.go:216-217), so the witness writes a signed roster with a new `FloorSHA256`, then one with a new `HomeRegion`, straight to the store as claim_regional_revision_test.go:81-91 does: every installed-state comparison refuses. Mutation checks, run and recorded in the fix report: add `Holds` to the tuple and (b) fails; drop `QuarantineRevision` and (c) passes wrongly; drop `Enrollment` and (d) passes wrongly; restore `<=` in `servingPriorRevision` and the handover step of (c) passes wrongly | internal/host/claim_binding_witness_linux_test.go | `TestClaimBindingSurvivesHoldChurnAndRefusesMembershipChange` | |
| +| 5b | Root-only comparisons (`commitRootInventoryPending`, `ClaimLaunchRoot.authorize`) run on the dev root runner with the existing `rootrunner` fixtures: the same (b) and (c) through `ClaimRootHTTP` with `InventoryActor` wired to the production actor | internal/host/*_rootrunner_linux_test.go | `TestClaimBindingRootComparisons` | |
| +| 6 | Census. Plan 14: new overlay `internal/provision/testdata/plan14-root-reads-roster-binding.tsv`, `rev3=PROPOSED-roster-binding`, loaded last; re-pin every root-read unit task 3 touches (the test names them; classes unchanged, no new read: the binding is computed from the roster read that already exists) and `@coverage` for internal/host, internal/hostbox, internal/hostops. 9B8: no record write changes; run `TestPlan9B8RecordWriteCensus` and expect it unchanged. Ruling 6: `BoxBinding` is reached only from `productionClaimRoster.Actor`, `verifyClaimCleanupEnrollment` and the two hostops evidence checks, all claim-mode; extend the module-wide scan in claimstep8_ruling6_test.go (the `checkBackfillDoneCallers` shape) to pin `BoxBinding` callers and drop the `sameVerifiedActor` pin. A claims-off or no-census box never builds a claim assembly, never reads the roster as an actor and never stamps an inventory, so its effects are unchanged. Proposal section "Roster binding" in census-proposal-claim-step8-readiness.md, after "Ack refresh" | provision testdata, host test, notes | `TestPlan14RootReadCensus`, `TestPlan9B8RecordWriteCensus`, `TestStep8CensusChangesReachOnlyClaimMode` | |
| +| 7 | Roll and check. Dev box (leo) first, then the dev console, then the G10 harness. Before the roll: on each claim box, list root's installed inventories and confirm every `DirectoryRevision` is absent (expected: none on leo). After the roll: a create's hold moves `Revision` and `journalctl` shows no `ErrTypedInventory` or `selected authority changed` on the regional or provision lines; the first install's inventory carries a 64-hex stamp | runbook | harness G10 | |
| + |
| +Local tests: changed packages only (hostactors, hostbox, host `-run 'Binding|Regional|MoveParks|Serving|Handover|Identity'`, hostops `-run 'Evidence|WakeReset'`, provision census tests); CI runs the full suite. Go cache at its default. |
| + |
| +## 5. Open questions for Paul |
| + |
| +1. Installed inventories under the old stamp. The plan builds no rebind: an inventory, fence target or launch record stamped with a numeral is refused and the instance is reinstalled. Confirm no claim box has an installed inventory today (leo is empty by trial Option B; flagship and the dev console are claims-off). Recommended answer: confirmed, no rebind code. |
| +2. The tuple. `Role`, `Label`, `Group`, `LossIDs`, `EnrolledAt`, consoles, regions and other boxes are out; `State`, `QuarantineRevision` and `CensusPublicKey` are in. The one judgement call is `Role`: a placement role change leaves installed instances running. Recommended answer: as listed. |
| +3. The stop-evidence bounds (hostops/evidence.go:124, wake_reset_transport.go:319) become format checks rather than equality with the current binding, so a receipt written before its box was quarantined still verifies, as it does today. Recommended answer: format check; the signature and the record bindings are the authority. |