carlos / platform Public

Claims cleanup: dependency-ordered removal map (R6a onwards)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 928832b251e3629541fa26a7d650620d37f1a27d parent c4ad771
1 file changed, +696 −0
  • docs/superpowers/notes/claims-removal-order.md +696 −0

CI failed — run details

diff --git a/docs/superpowers/notes/claims-removal-order.md b/docs/superpowers/notes/claims-removal-order.md
new file mode 100644
index 000000000..f8cf69718
--- /dev/null
+++ b/docs/superpowers/notes/claims-removal-order.md
@@ -0,0 +1,696 @@
+# Claims cleanup: removal order, recut (R4a to R9)
+
+Read-only analysis of origin/main at `ddf3b929` (2026-10-26). Nothing was changed, committed or pushed. Held branches looked at: `self-serve-moves-4` (tip `b84a8ddb`, its effective file set against main), `rootfs-apps-3-lifecycle` (local `057ee3a3`; its code is not written yet, so its file set comes from the plan's "File structure" table), `design-region-ha-no-claims` (`d316e3f1`, spec rev 1).
+
+## How this was worked out
+
+- `go list` gave the package import graph. On top of that a small `go/packages` tool built a declaration-level reference graph for the whole module (linux and darwin builds merged, tests separate): 291k edges of the form "declaration A in file F uses declaration B in file G".
+- Every claim file was given a home branch. Region HA (the R3 list from the inventory plus §15 of the no-claims spec), nearest-region (`regionpicker.go`, `regionclaim.go`, `regionconfig.go`) and the claims-off seeds floor (`seedsfloor.go`, `movesfloorgate*.go`, console `seedfloor.go`) are kept roots that are never cut.
+- The branches were then simulated in order. Each branch cuts the live callers of its home code, the tool recomputes what is still reachable from the `main` functions and the kept roots, and the branch owns everything that is dead and whose home is not a later branch. A declaration used by a later branch's code moves to that later branch, so **no branch deletes anything a later branch still uses**. Edit sites are given at the branch that deletes the callee.
+- The reachability is conservative. Exported methods of a reachable type count as reachable, so the "pinned" totals are upper bounds. Interface-only uses can still be missed, so every branch needs `go build` and `go vet` on linux, darwin and windows before review. Line counts are declaration spans, comments included.
+
+## What changed from the plan's R rows
+
+1. **R3 on hold pins about 41,000 of the 102,000 claim lines still on main.** Region HA relocation is not a leaf. `hostrelocate` and `host/relocation*.go` are written as methods on `ClaimAssembly` and call into hostclaim, hostbox, hostguard, genselect, park, hostops, hostactors, hostfence, hostexec, hostfloor, rootparticipation, hostwrite, the activator's `claimwake`/`rolelaunch`, `claimstop*`, the Phase 1 build/install code in `internal/moves` and `lease/versioned.go`. `joinroot`/`joinmode`/`installchannel` use the guard and floor code. So while R3 is held, **no claim library package can be deleted whole**. The plan's R6 (hostops, hostfence, hostactors, historyreadback, hostevidence, hostquarantine), R7b (hostbox, hostguard, genselect, park, hostclaim), R7d (hostexec), R8 (rootparticipation) and R9 (hostwrite) can only trim their packages until R3 is decided.
+2. **The plan's rows are not acyclic.** R7b's host files, R8's root files, R7c's `claimstop*` and the Phase 1 files all use each other, and the root adopt pass, agent startup and root `instance-control` startup all reach one shared core in `internal/host`. That core dies only when all three entry paths are cut. The recut below has two kinds of branch:
+ - **cut branches** edit live callers and delete what that edit kills;
+ - **sweep branches** delete code that is already dead, with few or no live edits.
+3. **R4b as planned cannot happen.** `hostfloor` is also used by region HA (installchannel, joinroot, joinmode, autoenroll). `movesfloor*.go` holds the floor-file mechanism that the seeds floor *and* installchannel use. The recut R4b (branch 13) deletes only the moves-floor half and the root floor mode.
+4. **Phase 1 is much larger than the inventory's file list.** Many `host/moves*.go` files the inventory treats as live (movesarchive, movesabort, movesprobeattempts, movespaging, movesloss, and parts of movesfiles, movesfinal, movesrevert, movesreport, movessources, movesstage, movesevents) are Phase 1 only. They die with R4a. In total R4a is about 17,500 lines, split here into six branches.
+5. **Live code still sits inside claim-named files** (R1 did not move it). It has to be renamed, inlined or moved before its file goes. See the next section.
+
+## Shared code: never delete, or split out first
+
+**Seeds floor (kept).** The claims-off seeds floor needs these from the moves-floor files, so split them into their own file (for example `floorfiles.go`) before branch 13:
+- from `movesfloor.go`: `withFloorLock`, `withPrevLock`, `prevLockFile`, `prevLockWait`/`prevLockPoll`, `prevVersionPath`, `prevAllowedPath`, `writePrevVersion`, `readLine`, `readLineFrom`, `readBeneathLine`, `removeDurable`, `errFloorWrite`, `errFloorLockBusy`, `floorLockWait`, `movesFloorMaxBytes`, `movesDirName`, `validFloorRelease`, `floorRegression`;
+- all of `movesfloor_linux.go` and `movesfloor_other.go` except `floorLockCannotExist` (`movesDir`, `openMovesDir`, `lockNamed*`, `flockWithin`, `fchownToService`, `syncParent`, `writeHook`, `floorLockFile`);
+- `movesfloorgate*.go` and the `system floor-allows-prev` verb (the units' seeds clause calls it);
+- `moves.Floor`, `moves.PrevVersionFile`, `moves.PrevAllowedFile` from `internal/moves/floor.go`. `ReadFloor`, `FloorKey`, `ProtocolVersion`, `ConsoleKey` and `ConsoleRecord` can go.
+
+The builder's other items (the edges file's `PrevRelease`, and the refresh loop's seeds half `seedsFloorRefresh`) are LIVE code outside the floor files and stay.
+
+**Seeds floor root mode: a decision for Paul.** `rootseedsfloor*.go` (about 270 lines) runs only when `rootMovesFloorIdentity` finds a root census (`rootparticipation.OpenForUpdate` returns `required`). It is claims-on code that shares `rootmovesfloor*`/`rootfloor_*` and the root generation census. Branch 13 deletes it together with the moves root mode. If "the seeds floor stays" is meant to include its root mode, branch 13 shrinks and the root generation census (about 3,000 lines in `host/rootgeneration_*`) can never go.
+
+**Region HA 2a/2b (held).** Everything in the R3 deletion list stays, and so does everything it reaches (the "pinned" lines in each branch). The no-claims spec (§15.1) would keep `termfence`, `lbhealth`, `edge/lbhealth.go`, `homemap.go`'s `privateDial`, `edgesfile/private.go`, `awsaddr.go`, `boxaddress.go`, `headroom.go`, `boxrecord.go`, `boxreference.go`, `boxchoice`, `hostfiles`, `hostenv` and `installchannel.go` *minus its guard and floor checks*. That last part is the split to make first: installchannel uses `hostfloor.{Floor,Disk,Report}`, `guardarm.go`, `withPrevLock`/`writePrevVersion`/`movesDir` and `rootMovesFloorIdentity` (and through it rootparticipation).
+
+**Nearest-region (kept).** It pins no claim code; R1 moved `park`'s region helpers to `regionname`. `regionclaim.go` is a nearest-region file, not a claim file. Leave it out of any `claim*` glob.
+
+**Live code inside claim-named files: move, rename or inline before deleting the file.**
+- `hostclaim_cli.go`: `runOps` (the live `carlos ops` passthrough to `internal/ops`) and `hostClaimEnabled`.
+- `host/claimstop_run.go`: root `instance-control` startup. It is a live entry point that five branches edit (10, 14, 15, 18, 19); never delete the file.
+- `host/claimunit.go`: `claimUnitContent` renders every embedded unit at bootstrap, system apply and `ensureSystemUnits`. Claims off it returns the content unchanged; branch 17 inlines that.
+- console: `appMutation`, `claimAppMutation`, `claimAppCall`, `updateAppTelemetry`, `serviceCredentialWrite`, `relayAppMutation`, `relayGated`, `retireInstanceRecord`, `withAutoAppSQL`, `withMailAppSQL`, `claimMailStore`; mail: `ClaimMailStore`, `WithClaimMailResource`. Claims off these are pass-through wrappers called from about 40 live doors.
+- `lease/versioned.go`: `UsableVersionID` and `apiCode`, used by `lease/mirror.go`, `lockstate.go` and `tombstone.go` (offline moves, hibernation).
+- `moves/budget.go`: the estimate types `moves/readiness.go` uses. `stopevidence` uses `moves.StoppedReport`.
+- host: `localLTXPosition` (movescut.go, used by movesoffline.go), `withHeldStageLock` (movesheld*, used by heldstage.go), and `movesWorker.now`, `pathIdentity`, `syncPath`, `writeFileAtomic` (Phase 1 files, used by live moves files).
+- `release/rootfs_ship.go` `IsRootfsArtifactKey`: rootfs Plan 1 code, used today only by `hostops`. Leave it for the rootfs owner.
+- `rootstate`: keep whole (D3 health, `EnsurePublicDir`). The graph shows `OpenAuthorityDirectory`, `OpenAuthorityFile`, `HoldLive` and `ObjectIdentity` going dead; leave them unless D3's owner agrees.
+- `registry` claim rows (`ClaimOwnership` is a field of `registry.Route`, scanned in `scanRoute`, migrated in `migrate`) and `provision.ClaimOwnership`: kept out of every branch here. Removing them changes the registry schema pinned by `@fields`, and the tables stay in live databases. That needs its own census ruling.
+- `appconfig/claimsync.go`, `schedule/claim{timers,delivery}.go`, `release/claims.go`: their live callers branch on `hostwrite.Enabled`. They go with R9.
+
+## Ordered list (tier 1: possible while R3 is held)
+
+Sizes are declaration lines this branch deletes. "Pinned" is home code that must stay because region HA (or the seeds floor) still uses it.
+
+| # | Row | Branch | Lines | Waits for |
+|---|---|---|---|---|
+| 1 | R6a | CLI claim verbs (`hostclaim_cli`, `proof_cli`, `history_cli`, `move.go` declareLost) | 540 | nothing |
+| 2 | R6b | console claim doors, workers, coordinators | 4,800 | self-serve merge (16 shared files) |
+| 3 | R6c | console SQL claim gate, mail claim gate | 3,030 | after 2; self-serve |
+| 4 | R7d-1 | system-apply guard, guard/files/journal-migrate verbs, claim files seed | 2,030 | rootfs Task 15 shares systemapply.go |
+| 5 | R7a | activator claim wake | 940 (580 pinned) | **rootfs Group A** |
+| 6 | R4a-1 | Phase 1 console (movesrecovery) | 830 | **self-serve** |
+| 7 | R4a-2 | Phase 1 box cut (round dispatch, abort) | 440 | **self-serve** |
+| 8 | R4a-3 | sweep: cut, install, guard, wake source | 3,370 | **self-serve** |
+| 9 | R4a-4 | sweep: land, rollback | 3,190 | **self-serve** |
+| 10 | R4a-5 | sweep: recovery, held release, loss | 7,650 | **self-serve** |
+| 11 | R4a-6 | `internal/moves` Phase 1 + lease claimgeneration/versioned/staging | 1,430 (1,580 pinned) | **self-serve**; db push decision |
+| 12 | R8a | root census cut (history, generation pins, restart requests, failures, caps) | 3,520 | **rootfs Group A** |
+| 13 | R4b | root floor mode (moves and seeds), moves-floor half, hostfloor begun | 3,750 (1,960 pinned) | 12; dev undo U; Paul on root seeds mode |
+| 14 | R7c-1 | instance-control claim routes cut | 70 (1,300 pinned) | 12 |
+| 15 | R7b-1 | agent claim wiring cut | 5,030 (2,070 pinned) | 14 |
+| 16 | R7b-2 | sweep: claim serving | 3,090 | 15 |
+| 17 | R7b-3 | claim control unit rendering cut | 380 | 16 |
+| 18 | R7c-2 | sweep: claim launch, journal, exec; instancectl claim files | 5,220 | 17 |
+| 19 | R7b-4 | sweep: remaining host claim files, release root generations | 7,180 (2,730 pinned) | 18 |
+| 20 | R6d | trim hostops/hostfence/historyreadback | 4,000 (11,660 pinned) | 19 |
+| 21 | R7d-2 | trim hostexec | 1,130 (1,400 pinned) | 20 |
+| 22 | R7b-5 | trim hostbox/hostclaim/hostguard/park/genselect | 2,700 (15,230 pinned) | 21 |
+
+Tier 1 total: about 63,000 lines. About 41,000 stay until R3 is decided.
+
+Order notes:
+- 1 can go now. 2 to 4 are free of held work except for file collisions; land them after self-serve merges, or rebase.
+- 5 and 12 wait for rootfs Group A. 6 to 11 wait for self-serve.
+- Branches 14 to 22 can run before R4a. The simulation with R4a moved to the end is still consistent, but then the R7b sweeps shrink, and about 18,000 lines collect in R4a-5 because Phase 1 code keeps the shared core alive. With R4a in place 6 to 11 the sizes stay even, as in the table.
+- R7a (5) and R4a (6 to 11) do not depend on each other; swap them if one of the held branches lands first.
+- Tests: tier 1 deletes code that about 1,270 test-file references point at (a file can count in several branches; counts per branch below). Before each branch, move the claims-off witness tests out of the files it deletes (the inventory names about 38). Retire J4 witness families with the branch that deletes their last rows, using R0's rule: E1, E2, G and D with 12 and 19, F (`rootmovesfloor_root_linux_test.go`) with 13, and C (`hostguard/plan14_root_fences_test.go`) in tier 2, since hostguard is pinned.
+
+## Tier 2: after Paul decides R3
+
+If the no-claims spec is accepted, the tier 2 simulation leaves only §15.1's code and about 2,000 lines of floor code installchannel uses (until its guard and floor checks come out). In order:
+
+1. **R3-cut**: console `hostclaimexecutor.go`, the region HA half of `hostclaimops.go`/`nocapacity.go`, `enrollpass.go`, `awsmembership.go`; host `relocatepass.go` wiring, `joining.go`/`joinmode.go`/`joinroot.go`, `system join`, the join units (and their removal from boxes in `system apply`); installchannel's guard and floor checks. About 10,600 lines of R3's own code, plus whatever dies with it.
+2. **R3-sweep**: `internal/hostrelocate`, `host/relocation*.go`, `hostclaim/relocat*.go`, `hostactors/{autoenroll,membershipread,enrollment_confirmation,roles}.go`, `hostops/chosen.go`, `hostactors/awsmembership`. The tier 2 simulation puts R3-cut and R3-sweep together at about 23,900 lines, so cut it at least in two.
+3. **Package sweeps, importers first** (go list order): `hostresolve` (550) → `hostops` without its `fencerelease` subpackages, because hostclaim imports `hostops/fencerelease` (9,650) → `historyreadback`, `hostfence` (220) → `hostactors` (1,620) → `hostexec` (1,400) → `hostquarantine`, `hostevidence` (140) → `hostbox` (6,780) → `park` (1,890) → `genselect` (520) → `hostguard` (2,440) → `hostfloor` (680) → `hostclaim` (3,600) → `hostops/fencerelease` and `hostops/internal/fencerelease` → host claim leftovers (about 9,000 in `internal/host`, swept with the packages they use) → `rootparticipation` (490).
+4. **Registry claim rows** (`ClaimOwnership`, `claimrows.go`, `claimtimers.go`, `claimtransaction.go`, `claimhold.go`): needs a census `@fields` ruling. Do not drop the tables.
+5. **R9**: `hostwrite`, `CARLOS_HOST_CLAIM*` in hostenv, and the `hostwrite.Enabled` branches in activator (swap.go, swapadmit.go, swaphold.go), appconfig, release (adopt.go, claims.go), schedule, registry timers and rootrestart.go. That is about 50 live files. Rootfs Group A shares 9 of them.
+
+## Caveats
+
+- One `GOOS` pair (linux, darwin) was analysed. Windows-only files were not; the cross-compile gate covers them.
+- Interface dispatch is approximated. A method that is only reached through an interface may show as dead. The compiler catches that, and the branch would then keep the method.
+- The self-serve file set is the branch's tree diff against main, so it over-counts. The rootfs set is the plan's table; its code is not written yet.
+- The branch lists below are generated by the simulation. The scratch worktree and scripts were removed after the run, so rerun the analysis on a fresh main before trusting line numbers on a later tip.
+
+## Branch details (tier 1)
+
+### 1. R6a: CLI claim verbs
+
+Size: about 543 lines of declarations (2 whole files, 2 trimmed); 5 test files reference what it deletes. Sim id `B1-cli`.
+
+Deletes whole files:
+
+ - `(root)`: history_cli.go, proof_cli.go
+
+Trims (declarations only): `hostclaim_cli.go`, `internal/release/proof.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/release/proof.go GetProofPending`
+
+Callers to edit:
+ - `hostclaim_cli.go:37` (runOpsHost)
+ - `main.go:180` (runProof)
+ - `move.go:896,902,949,955` (declareHostLoss, errHostLossNotConfirmed, hostLossDoor, hostLossInspect+)
+
+Keep identical: The `carlos ops` passthrough (`runOps` in hostclaim_cli.go: move it to its own file first, it is live); `carlos move` without the resolve door; every other verb.
+
+Blocked or bounded by: Free now. No held-branch file touched. Deletes `declareLost`/`--declare-lost` (R4a in the old plan) because it only reaches the resolve door.
+
+### 2. R6b: Console claim doors, workers, purge and create coordinators
+
+Size: about 4,799 lines of declarations (31 whole files, 13 trimmed); 82 test files reference what it deletes. Sim id `B2-console-doors`.
+
+Deletes whole files:
+
+ - `internal/console`: apihostclaim.go, claim_alias.go, claim_app_enroll.go, claim_app_mutation.go, claim_backends.go, claim_create.go, claim_first_route.go, claim_geoip.go, claim_hold_recovery.go, claim_loss_pages.go, claim_materialize.go, claim_pending.go, claim_pending_views.go, claim_placement.go, claim_relay.go, claim_response.go, claim_restore.go, claim_retire.go, claim_retire_helpers.go, claim_route_writes.go, claim_routes.go, claim_runtime.go, claim_sidecarwake.go, claim_workers.go, hostclaimbackfill.go, hostclaimops.go, hostreports.go, hostreports_process_linux.go, hostreports_process_other.go, hostwakereset.go, hostwakereset_production.go
+
+Trims (declarations only): `internal/console/apidbclaim.go`, `internal/console/claim_app_admission.go`, `internal/console/claim_app_identity.go`, `internal/console/claim_purge.go`, `internal/console/claim_purge_backend.go`, `internal/console/claim_store_effects.go`, `internal/console/store_gate.go`, `internal/domains/claims.go`, `internal/mail/domainclaim.go`, `internal/mail/sender.go`, `internal/provision/provision.go`, `internal/provision/retirement.go`, `internal/provision/sidecar.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/console/store_gate.go Store.bootDB`; `internal/domains/claims.go AttachClaimProven Claim.pendingLive ClaimPendingTTL DetachClaim claimRawDetachClaim`; `internal/mail/domainclaim.go DomainClaimKey`; `internal/mail/sender.go SenderOwnsUserName validSenderSlug`; `internal/provision/provision.go DeleteRecord`; `internal/provision/retirement.go ClaimRetirer ErrClaimRetirer RetireOptions RetireRecord`; `internal/provision/sidecar.go DeleteSidecarRecord`
+
+Callers to edit:
+ - `cmd/console/main.go:546,596,679` (NewProductionWakeRetryReset, Server.ConfigureClaimRuntime, Server.RunClaimWorker)
+ - `internal/console/analyticsview.go:113` (Server.updateAppTelemetry)
+ - `internal/console/apidb.go:155,228,301,303,349,351,363,405` (Server.dbClaim, Server.dbClaimFailure, Server.listDBVersions, Server.pinnedDBReader, dbFileHandle, dbVersionHeaders, ...)
+ - `internal/console/apidomains.go:358,537,557,562,633,955,1016,1017,1018,1021,1029` (Server.attachDomainClaim, Server.detachDomainClaim, Server.retireInstanceRecord, Server.writeClaimPending, claimAliasRefusal, claimRefusalText, ...)
+ - `internal/console/apidoorkeys.go:97` (Server.appMutation)
+ - `internal/console/apierrors.go:152` (Server.updateAppTelemetry)
+ - `internal/console/apiinstancemove.go:353,577,663,1191,1245` (claimRenameUnsupportedMsg,claimTransferUnsupportedMsg,claimMoveUnsupportedMsg, writeClaimResponseError)
+ - `internal/console/apiinstances.go:849,851,1287,1659,1664,1672,1695,1739,2373,2380,2383,2387` (Server.beginClaimCreate, Server.claimPendingViews, Server.finishClaimCreate, Server.retireInstanceRecord, Server.writeClaimPending, claimCreateRequest, ...)
+ - `internal/console/apipipeline.go:268` (Server.claimAppMutation)
+ - `internal/console/apiscan.go:379,468,643,711` (Server.appMutation, claimAppCall)
+ - `internal/console/apiservices.go:599,700` (Server.serviceCredentialWrite)
+ - `internal/console/apisidecars.go:155,157,372,383,386,387,437,440,441,444,459,509` (Server.beginClaimCreate, Server.claimPendingViews, Server.deleteLegacySidecarWake, Server.finishClaimCreate, Server.retireHostRecord, Server.touchSidecarWake, ...)
+ - `internal/console/apistore.go:460,817,892,962` (claimAppCall)
+ - `internal/console/apistore_provision.go:61` (claimAppCall)
+ - `internal/console/apisystem.go:136` (Server.appMutation)
+ - `internal/console/appdomains.go:82,125` (Server.renderClaimAccepted, claimAliasRefusal)
+ - `internal/console/appsettings.go:815,1424,1502` (Server.claimAppMutation, claimRenameUnsupportedMsg,claimTransferUnsupportedMsg,claimMoveUnsupportedMsg)
+ - `internal/console/authcli.go:446,495,513,514` (Server.handleAPIHostResolve, Server.handleAPIHostResolveInspect, Server.registerRoute)
+ - `internal/console/controlplane.go:241,297` (Server.claimAppMutation)
+ - `internal/console/domainattach.go:177,225,389,393,394,396,399,410,411,441,618,625,659,742,753,757` (Server.attachClaimFirstRoute, Server.attachDomainClaim, Server.detachDomainClaim, Server.retireInstanceRecord, claimAliasRefusal, claimDetachInProgressMsg, ...)
+ - `internal/console/domaincatchall.go:84,126` (Server.detachDomainClaim, claimRefusalText, errClaimAliasStaticRoute+)
+ - `internal/console/errorsview.go:324` (Server.updateAppTelemetry)
+ - `internal/console/fleets.go:641,643,647,651,815,864` (ClaimPlacementCoordinator.Start, Server.renderClaimAccepted, claimResponseRefusal, claimResponseUnavailable, claimRetireBusyMsg)
+ - `internal/console/instanceprivatestore.go:214` (claimStoreAdapters)
+ - `internal/console/mailpush.go:784` (Server.claimAppMutation)
+ - `internal/console/materialize.go:363` (materializeClaimApp)
+ - `internal/console/ownership.go:432,442` (Server.renderClaimAccepted, claimResponseRefusal)
+ - `internal/console/pendinghandlers.go:370,716,797` (Store.ConfirmChangeContext, Store.DeleteChangeContext, Store.MarkExecutedContext)
+ - `internal/console/planstorage.go:107` (claimAppCall)
+ - `internal/console/relayops.go:739,740,967,1052,1126,1416,1518,1589` (Server.relayAppMutation, Server.relayGated, Server.relayPublishGated)
+ - `internal/console/restore.go:60` (Server.restoreClaimApp)
+ - `internal/console/scandeliver.go:220` (Server.claimAppMutation)
+ - `internal/console/server.go:485,489,912,913,1420,1563,1661,1740,1777,4518,4552,4889,5174,5546` (ClaimPlacementCoordinator, Config.dbClaimRegion, Server.appMutation, Server.claimAdmissionNameFree, Server.claimAppMutation, Server.createClaimAppRow, ...)
+ - `internal/console/store_gate.go:1841` (Store.migrateClaimAppIdentity)
+ - `internal/console/svcpage.go:462,556` (Server.serviceCredentialWrite)
+
+Keep identical: Every console door answers as with `cfg.HostClaim` false. The wrappers live doors call through (`appMutation`, `claimAppMutation`, `claimAppCall`, `updateAppTelemetry`, `serviceCredentialWrite`, `relayAppMutation`, `retireInstanceRecord`, `renderClaimAccepted`) run the effect directly claims-off: inline that arm, or keep a renamed pass-through. Startup in cmd/console/main.go stays identical.
+
+Blocked or bounded by: Self-serve: 16 of its files are also changed on self-serve-moves-4 (server.go, cmd/console/main.go, claim_workers.go, apiinstances.go, apiinstancemove.go, domainattach.go, ...). Land after self-serve merges, or rebase. Rootfs Group A touches apiinstancemove.go and fleets.go (move-door words): expect a rebase, no semantic clash. Region HA: `apidbclaim.go` keeps 2 declarations (`nocapacity.go`/`hostclaimexecutor.go` use them).
+
+### 3. R6c: Console SQL claim gate and mail claim gate
+
+Size: about 3,032 lines of declarations (16 whole files, 2 trimmed); 27 test files reference what it deletes. Sim id `B3-console-sqlgate`.
+
+Deletes whole files:
+
+ - `internal/console`: claim_app_admission.go, claim_app_identity.go, claim_mail_admitter.go, claim_mail_sql.go, claim_purge.go, claim_purge_backend.go, claim_sql_auto.go, claim_sql_grants.go, claim_sql_identity_linux.go, claim_sql_identity_other.go, claim_sql_instance.go, claim_sql_outer.go, claim_sql_receipts.go, claim_store_effects.go
+ - `internal/mail`: claim_gate.go, claim_gate_effects.go
+
+Trims (declarations only): `internal/console/store_gate.go`, `internal/mail/mail.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/console/store_gate.go Store.withPreparedClaimSQL claimBinding.authorizeCommit claimBinding.lostErr claimBoundDB claimBoundDB.Begin claimBoundDB.BeginTx claimBoundDB.Exec claimBoundDB.ExecCont`; `internal/mail/mail.go StrictGet`
+
+Callers to edit:
+ - `cmd/console/main.go:1760,1787` (ErrClaimMailPending)
+ - `internal/console/apiinstancemove.go:898` (Store.ClaimAppID)
+ - `internal/console/apimail.go:649,1022,1118,1181,1297,1352,1425,1488,1597` (Server.claimMailStore)
+ - `internal/console/authstore.go:751,799,812` (Store.withAutoAppSQL)
+ - `internal/console/doorkeys_store.go:239,249,259` (Store.withAutoAppSQL)
+ - `internal/console/fleets.go:649` (Store.ClaimAppID)
+ - `internal/console/mailcounts.go:122,203,304` (Server.claimMailStore, Store.withMailAppSQL)
+ - `internal/console/mailevents.go:59,231` (Store.pruneMailAppRows, Store.withMailAppSQL)
+ - `internal/console/mailpush.go:302,373,427,441,471,525,557,578,723,777,895` (Server.mutationAppID, Store.pruneMailAppRows, Store.withMailAppSQL)
+ - `internal/console/ownership.go:420,421` (ClaimPurgeCoordinator, ClaimPurgeCoordinator.Request)
+ - `internal/console/pending.go:401` (Store.withAutoAppSQL)
+ - `internal/console/planlapse_store.go:83,91` (Store.withAutoAppSQL)
+ - `internal/console/planmail.go:80` (Server.claimMailStore)
+ - `internal/console/scandeliver.go:222` (Server.mutationAppID)
+ - `internal/console/server.go:484` (ClaimPurgeCoordinator)
+ - `internal/console/store.go:2795,2805,2815,2825,2835,2845` (Store.withAutoAppSQL)
+ - `internal/console/store_gate.go:976,1867,1873,1876,1879,1882` (claimOuterDB, claimSavepoint, cloneSQLReceiptTables, initSQLReceipts, sqlInstance, sqlPhysicalIdentity)
+ - `internal/console/svcprincipal.go:623,633` (Store.withAutoAppSQL)
+ - `internal/console/tempstore.go:220,230,240,250,260` (Store.withAutoAppSQL)
+ - `internal/mail/domain.go:271,275,276` (ClaimMailStore, WithClaimMailResource, claimMailAdmitted, claimPutDomainPlan)
+ - `internal/mail/mail.go:207,347,351,352,362,366,367` (ClaimMailStore, WithClaimMailResource, claimMailAdmitted, claimMailPlan)
+ - `internal/mail/sender.go:470,473,474,482,485,486` (ClaimMailStore, WithClaimMailResource, claimMailAdmitted, claimMailPlan)
+ - `internal/mail/walk.go:660,1486,1851,1856,1857,1859,1862,1873,1876,1877,1879,1889,1893,1894,1896,1908,1912,1913,1924,1928,1929,1931,1943,1947,1948,1959,1963,1964,1966,1977,1981,1982,1984,1996,2000,2001,2003,2029,2033,2034,2036,2048,2052,2053,2055,2066,2069,2070,2072,2082,2085,2086,2088,2091,2101,2105,2106,2108,2111` (ClaimMailStore, WithClaimMailResource, claimMailAdmitted, claimMailPlan, claimMarkedProvisioner, claimMarkedWriter)
+
+Keep identical: Every store call takes the ungated `*sql.DB` (TestClaimSQLFlagOffStoreIsUngated); mail writes take the original body (TestClaimMailGateFlagOffWritesNothing). `withAutoAppSQL`/`withMailAppSQL`/`claimMailStore`/`mail.ClaimMailStore` are pass-throughs claims-off: inline them.
+
+Blocked or bounded by: Self-serve: store.go, store_gate.go, authstore.go, svcprincipal.go, cmd/console/main.go. After B2 (B2 owns 59 declarations B3 deletes).
+
+### 4. R7d-1: System-apply guard, `files`/`guard-arm`/`guard-exec`/`journal-migrate` verbs, claim files seed
+
+Size: about 2,028 lines of declarations (8 whole files, 11 trimmed); 24 test files reference what it deletes. Sim id `B4-guard`.
+
+Deletes whole files:
+
+ - `internal/host`: claimfilesseed.go, claimfilesseed_command.go, claimfilesseed_shutdown.go, claimfilesseed_transport_linux.go, claimfilesseed_transport_other.go, claimjournal_migration_other.go, guardtransaction.go, startup.go
+
+Trims (declarations only): `internal/cgroup/cgroup.go`, `internal/host/claimfilesseed_delegation_linux.go`, `internal/host/claimfilesseed_delegation_other.go`, `internal/host/claimfilesseed_retry.go`, `internal/host/claimfilesseed_runtime.go`, `internal/host/claimfilesseed_select.go`, `internal/host/claimfilesseed_stage.go`, `internal/host/claimjournal_migration.go`, `internal/host/claimjournal_migration_linux.go`, `internal/host/guardexec.go`, `internal/host/systemparticipation.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/cgroup/cgroup.go SetupAtRetaining`; `internal/host/startup.go joinAgentStartup`; `internal/host/systemparticipation.go systemApplier.checkUnarmedParticipationRecovery systemApplier.clearUpdateBegun systemApplier.settleUpdateBegun`
+
+Callers to edit:
+ - `internal/host/agent.go:904,913,1025` (filesSeedServer, joinAgentShutdown, startAgentFilesSeed)
+ - `internal/host/movesfiles.go:1067,1070,1136` (filesSeedCheckingStore, filesSeedOperation.check, filesSeedOperation.stage)
+ - `internal/host/systemapply.go:136,335,342,361,377,443,495,764,795,1191,1207,1786,1954,2131,2195` (installFloorHook, systemApplier.activeFloor, systemApplier.beginGuard, systemApplier.checkGuardRecovery, systemApplier.closeGuardJournal, systemApplier.deferSettlement, ...)
+ - `internal/host/systemparticipation.go:55,62,73,76,183,188,194,198` (guardTransaction, systemApplier.activeFloor, systemApplier.closeGuardJournal, systemApplier.controllersIdle, systemApplier.guardTransaction)
+ - `system.go:64,68,70` (RunSystemFiles, RunSystemGuardExec, RunSystemJournalMigrate)
+
+Keep identical: `carlos system apply` and both system units behave as on an unarmed box: `beginExecutableChange` takes the legacy arm, no guard journal, `carlos.prev` handling unchanged. Precondition (plan R7d): no box has `census.json` or `/opt/carlos/system/guard/{carlos,moves}`. Drop the `guard-exec` branch of carlos-system-update/-recover.service in the same branch.
+
+Blocked or bounded by: Rootfs Group A Task 15 edits systemapply.go (rollback floor): coordinate. Region HA pins guardarm.go/guardexec.go/guardroster.go (665 lines: joinroot, joinmode, installchannel call them), so `guard-arm` code stays; only the verb wiring goes.
+
+### 5. R7a: Activator claim wake
+
+Size: about 943 lines of declarations (5 whole files, 6 trimmed); 18 test files reference what it deletes. Sim id `B6-activator`.
+
+Deletes whole files:
+
+ - `internal/activator`: claimgen.go, claimprocess_root.go, claimprocess_root_other.go, claimspawn.go, claimwindow.go
+
+Trims (declarations only): `internal/activator/beforeexec.go`, `internal/activator/claimprocess_root_linux.go`, `internal/activator/claimwake.go`, `internal/activator/probewake.go`, `internal/activator/recoveryprobe.go`, `internal/activator/wakeplan.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/activator/beforeexec.go Service.claimedBuild`; `internal/activator/probewake.go probeRefused`; `internal/activator/recoveryprobe.go recoveryProbeKind`; `internal/activator/wakeplan.go Service.claimedPlanResult`
+
+Callers to edit:
+ - `internal/activator/activator.go:2116` (Service.doClaimWake)
+ - `internal/activator/opset.go:191,197,286,293,396` (claimProcess, claimProcess.Retire, claimProcess.provenStopped)
+ - `internal/activator/recoveryprobe.go:97` (Service.doClaimWake)
+ - `internal/activator/servingretry.go:199` (sameAdmission)
+ - `internal/activator/swap.go:433` (Service.claimsSwapRefusal)
+ - `internal/activator/swaphold.go:90` (Service.claimsSwapRefusal)
+
+Keep identical: Cold wake, swap, seed and worker paths exactly as today: `doWake` never takes `doClaimWake`; the `ErrClaimIsolationUnavailable` checks in backend_exec/containment/swap/workerbuild/workerswap/rootfs.go never match claims-off and go; `StartPolicy`/`ClaimRuntime` fields drop.
+
+Blocked or bounded by: WAIT for rootfs Plan 3 Group A (activator.go, swap.go, swaphold.go, opset.go, wakeplan.go, backend_exec.go are all in it). Region HA pins `claimwake.go`/`rolelaunch*.go` (582 lines: relocationwake.go and relocationassembly.go use them), so those stay until R3.
+
+### 6. R4a-1: Phase 1 console: moves recovery door and resolve service use
+
+Size: about 826 lines of declarations (1 whole files, 0 trimmed); 2 test files reference what it deletes. Sim id `B7-phase1-console`.
+
+Deletes whole files:
+
+ - `internal/console`: movesrecovery.go
+
+Callers to edit:
+ - `internal/console/apiinstancemove.go:1204` (Server.declareMoveLossLogged)
+
+Keep identical: Offline and legacy move doors unchanged; `apiinstancemove.go` Phase 1 half goes (`claimMoveLoss`).
+
+Blocked or bounded by: WAIT for self-serve (apiinstancemove.go). hostresolve itself stays (551 lines pinned: hostops `ControlWriter.DeclareMoveLoss` reaches it, and region HA reaches hostops).
+
+### 7. R4a-2: Phase 1 box cut: `phase1MoveRound` dispatch and abort
+
+Size: about 440 lines of declarations (1 whole files, 2 trimmed); 11 test files reference what it deletes. Sim id `B8a-phase1-cut`.
+
+Deletes whole files:
+
+ - `internal/host`: movesabort.go
+
+Trims (declarations only): `internal/host/movesphase1.go`, `internal/provision/provision.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/movesabort.go abortStepBound movesWorker.abFault movesWorker.abortClaim movesWorker.abortOwes movesWorker.abortSource movesWorker.releaseAbort movesWorker.retireOwnMoveState`; `internal/provision/provision.go MoveGuardedAbortComplete MoveGuardedPromoteReady MoveGuardedRepin pinInputs`
+
+Callers to edit:
+ - `internal/host/movespass.go:664,1251` (phase1MoveRound, s1NoAnswer)
+ - `internal/host/movesprobe.go:40` (s1NoAnswer)
+ - `internal/host/movesreport.go:235` (readSourceReport)
+
+Keep identical: `movesPass` dispatch order (offline first, then legacy) and every offline/legacy step. `moves.Enabled` collapses to false.
+
+Blocked or bounded by: WAIT for self-serve (movespass.go, movesreport.go, provision/provision.go).
+
+### 8. R4a-3: Phase 1 sweep: cut, install, guard, wake source
+
+Size: about 3,365 lines of declarations (1 whole files, 13 trimmed); 34 test files reference what it deletes. Sim id `B8a2-cut-install`.
+
+Deletes whole files:
+
+ - `internal/host`: movesarchive.go
+
+Trims (declarations only): `internal/host/movescut.go`, `internal/host/movesevents.go`, `internal/host/movesguard.go`, `internal/host/movespaging.go`, `internal/host/movesphase1.go`, `internal/host/movesprobeattempts.go`, `internal/host/movesreport.go`, `internal/host/movessources.go`, `internal/host/movesstage.go`, `internal/host/moveswakesource.go`, `internal/moves/envreport.go`, `internal/moves/readiness.go`, `internal/provision/provision.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/movesarchive.go cutArchiveStep cutRun.cutArchive cutRun.publishCutArchive cutRun.snapshotState errArchiveLost keptManifest sealNamesArchive sealedOnDisk`; `internal/host/movesevents.go movesWorker.recoveryAttemptLogger`; `internal/host/movespaging.go movesWorker.pageStray strayLine strayPage strayRefused`; `internal/host/movesprobeattempts.go bindSession movesProbeAttempts movesProbeAttempts.CurrentAttempt movesProbeAttempts.Failed movesProbeAttempts.Healthy movesProbeAttempts.OpenProbe movesProbeAttempt`; `internal/host/movesreport.go movesWorker.replicaLogicalSize`; `internal/host/movessources.go registerMovesWakeSource`; `internal/host/movesstage.go heldReleaseProbeRelease`; `internal/moves/envreport.go PortableDigest`; `internal/moves/readiness.go Ready ReportFreshness budgetEvidence reasonOr sizeCovered`; `internal/provision/provision.go MoveAdmit MoveBackToReady MoveBackToReadyRefused MoveCutPhase MoveFlip MoveRecordSource MoveRevert RefusedReplicaLayout RefusedTargetUnarmed,RefusedSourceUnarmed Revert`
+
+Callers to edit:
+ - `internal/host/agent.go:322` (registerProductionMovesWakeSource)
+ - `internal/host/movesoffline.go:751` (localLTXPosition)
+ - `internal/host/movespass.go:545,546,555` (finalCheckpoint, holdMoving, localLTXPosition)
+ - `internal/host/movesreport.go:341` (readReport)
+ - `internal/host/movesrevert.go:232,345,392,393,395,412,418,430,439,446` (cutRun, cutRun.dbPath, cutRun.giveUpExecution, cutRun.holderSupported, cutRun.journal, cutRun.releaseLease, ...)
+
+Keep identical: Offline moves: `movesoffline.go:751` still gets `localLTXPosition` (move it out of movescut.go first).
+
+Blocked or bounded by: WAIT for self-serve (movesoffline.go, agent.go, movespass.go).
+
+### 9. R4a-4: Phase 1 sweep: land and rollback
+
+Size: about 3,187 lines of declarations (3 whole files, 7 trimmed); 22 test files reference what it deletes. Sim id `B8a3-land-rollback`.
+
+Deletes whole files:
+
+ - `internal/host`: movesguard.go, moveslandcommit.go, moveslandprobe.go
+
+Trims (declarations only): `internal/host/movescut.go`, `internal/host/movesland.go`, `internal/host/moveslandpark.go`, `internal/host/movespass.go`, `internal/host/movesphase1.go`, `internal/host/movesrollback.go`, `internal/provision/provision.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/movespass.go movesWorker.staging`; `internal/provision/provision.go ErrCutDeadline LandingOrder MoveCommit MoveLandingPhase MoveMarkRollback MoveOpened MoveProbeAttempt MoveRollbackTargetPhase landingOrder rbTargetOrder`
+
+Callers to edit:
+ - `internal/host/movesfinal.go:160,162,842` (movesWorker.committedTarget, movesWorker.rollbackTarget, movesWorker.sweepRollbackJournal)
+ - `internal/host/movespaging.go:519` (stuckPage)
+ - `internal/host/movespass.go:608` (errHolderLocation)
+ - `internal/host/movesreport.go:301` (rollbackTargetArmed)
+ - `internal/host/movesrevert.go:423` (failedSteps)
+
+Keep identical: Offline and legacy moves. `movesfiles.go`, `movesfinal.go`, `movesretire.go`, `movesrevert.go` keep their live halves; several helpers they call (`movesWorker.now`, `pathIdentity`, `syncPath`, `writeFileAtomic`) live in Phase 1 files and must move out first.
+
+Blocked or bounded by: WAIT for self-serve.
+
+### 10. R4a-5: Phase 1 sweep: recovery, held release, loss
+
+Size: about 7,651 lines of declarations (13 whole files, 11 trimmed); 64 test files reference what it deletes. Sim id `B8a4-recover-held`.
+
+Deletes whole files:
+
+ - `internal/host`: movesheldenv.go, movesheldrelease_linux.go, movesheldrelease_other.go, movesheldrelease_production.go, movesheldrelease_root.go, movesinstall.go, movesland.go, movesloss.go, movesphase1.go, movesrecover.go, movesrecoveryowners.go, movesrecoveryprobe.go, movesrollback.go
+
+Trims (declarations only): `internal/host/claimmovefence.go`, `internal/host/claimmoveparks.go`, `internal/host/movescut.go`, `internal/host/movesheldrelease.go`, `internal/host/moveslandinstall.go`, `internal/host/moveslandpark.go`, `internal/host/movespaging.go`, `internal/host/movesprobeowners.go`, `internal/moves/envreport.go`, `internal/moves/ids.go`, `internal/provision/provision.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/movesloss.go claimLossRefs lossValidation movesProbeOwners.LossSources movesRecoveryOwners.frozenMaximum movesRecoveryOwners.lossEvidence movesRecoveryOwners.movesLossSources movesRecove`; `internal/host/movespaging.go movesProbeOwners.pageStartRefused startRefusedPage`; `internal/moves/envreport.go LocalDigest`; `internal/moves/ids.go OpIDKind`; `internal/provision/provision.go MoveRecordRecoveryInputs MoveRollbackSourcePhase nextIn rbSourceHead+`
+
+Callers to edit:
+ - `internal/host/claimstop_run.go:76` (WithProductionMovesHeldRelease)
+ - `internal/host/movesevidence.go:178` (movesHolderBuildState)
+ - `internal/host/movesfiles.go:123,129,245,762,764,827,879` (errLandingChanged, landStepPrevious+)
+ - `internal/host/movesfinal.go:179,399,501,573,609,836,837` (installArtifactPaths, movesArmAuthorize, movesLocalAuthorize, movesWorker.sweepRecoveryJournal, obligationID, parkHooksArmed, ...)
+ - `internal/host/movespaging.go:358,506` (movesWorker.now)
+ - `internal/host/movesparks.go:108` (movesWorker.now)
+ - `internal/host/movespass.go:378,494,591,648,650,672,692,975,1207` (armRecoveryProbe, composeHeldEnv, heldReleaseVia, movesWorker.recoverSource, newHeldReleaseRootClient, recoveryProbeOutcome, ...)
+ - `internal/host/movesreport.go:117,301,761` (containsString, landingArmed)
+ - `internal/host/movesretire.go:211,275` (pathIdentity, sameIdentity)
+ - `internal/host/movesrevert.go:170,257,508,509,583,625,950,1020,1059` (archiveFailure, archivePlainDigest,archiveBuild, containsString, movesArmAuthorize, movesWorker.now, obligationID, ...)
+ - `internal/host/movessources.go:631,647` (ClaimProviders.MoveParks, RegisterProductionClaimMoveParks)
+ - `internal/host/movesstage.go:54,80,91,129,156` (heldReleaseHoldOp, heldReleaseVia, heldReleaseVia.publish, heldReleaseVia.stage)
+
+Keep identical: Root `instance-control` startup (`claimstop_run.go:76` drops `WithProductionMovesHeldRelease`); `heldstage.go` keeps its lock (`withHeldStageLock` moves out). Precondition: no box has Phase 1 journals under /data/.moves (`sweepFinalJournal`/`sweepRecoveryJournal` run on every pass today).
+
+Blocked or bounded by: WAIT for self-serve. Region HA pins claimmoveaccess/claimmoveparks/movesheldlock/movesprobeowners (288 lines).
+
+### 11. R4a-6: Phase 1 library: internal/moves Phase 1 files, lease claimgeneration/versioned/staging
+
+Size: about 1,427 lines of declarations (7 whole files, 8 trimmed); 69 test files reference what it deletes. Sim id `B8b-phase1-lib`.
+
+Deletes whole files:
+
+ - `internal/lease`: claimgeneration.go
+ - `internal/moves`: abort.go, journal.go, lease.go, probe.go, returnlane.go, startcheck.go
+
+Trims (declarations only): `internal/lease/staging.go`, `internal/lease/versioned.go`, `internal/moves/budget.go`, `internal/moves/log.go`, `internal/moves/parkscope.go`, `internal/moves/sealedclient.go`, `internal/moves/staging.go`, `internal/moves/transition.go`
+
+Callers to edit:
+ - `internal/console/apiinstancemove.go:1562,1563,1620` (SourceReportKey, TargetReportKey, TimingsOf)
+ - `internal/host/heldstage.go:139` (SourceReportKey)
+ - `internal/host/movesevents.go:104,293` (DeclaredLost, WriteLog)
+ - `internal/host/movesfiles.go:388,758,762` (Journal, JournalReturnSeal,JournalReturnBaseline, ReadJournal)
+ - `internal/host/movesfinal.go:146,206,247,248,257,267,326,331,332,544,631,632,633,741,827,836,856,857` (Journal, Journal.Commit, Journal.Done, Journal.Mark, JournalDir, ReadJournal)
+ - `internal/host/movespass.go:93,466,518,523,530,531,787,790` (NewStagingMirror, SafeUntilGuard, StagingLeasePrefix, StagingLeaseTTL, StagingWriter)
+ - `internal/host/movesreport.go:290,577,769,777,827` (MoveJSON, MoveJSONKey, ProbeKey, ReplicaPrefix, TargetReportKey)
+ - `internal/host/movesretire.go:97,142,341` (Journal, JournalDir)
+ - `internal/host/movesrevert.go:417,430,431,550,564,566,571,574,903,907,914,915,928,932,941,942,974` (Journal, Journal.Commit, Journal.Done, Journal.Mark, Journal.Unmark, ReadJournal)
+ - `internal/host/movesstore.go:96` (LaneKey)
+ - `internal/moves/readiness.go:75,388,405,413,431,442,443,444` (CutEstimate.AttemptsAdmitted, CutEstimate.Total, Estimate, Rates, finite, usable)
+
+Keep identical: Live lease code keeps `UsableVersionID` and `apiCode` (lease/mirror.go, lockstate.go, tombstone.go use them): move them out of versioned.go first. `moves/readiness.go` keeps the budget pieces from budget.go. `stopevidence` keeps `StoppedReport`.
+
+Blocked or bounded by: WAIT for self-serve (lease/*, movespass.go, server.go, cmd/console/main.go). Region HA pins 1,583 lines (moves build/seal/sealedclient/parkscope/ltxbuild/install_contract, lease versioned/staging: relocationbuild.go uses them). db push (plan P) must say whether it wants versioned.go/staging.go before they go.
+
+### 12. R8a: Root census cut: history, generation pins, restart requests, failures, caps root authority
+
+Size: about 3,517 lines of declarations (22 whole files, 13 trimmed); 77 test files reference what it deletes. Sim id `B10-root-census`.
+
+Deletes whole files:
+
+ - `internal/caps`: rootauthority.go
+ - `internal/host`: nofollowdir_linux.go, rootexecution_recovery.go, rootgeneration_kernel_other.go, rootgeneration_retired_linux.go, rootgeneration_retired_other.go, rootgeneration_retirement.go, rootgenerationpins.go, roothistory.go, roothistory_maintenance.go, roothistory_readback.go, roothistory_recovery.go, rootmigration_census.go, rootmigration_collect_linux.go, rootmigration_evidence.go, rootmigration_production_linux.go, rootmigration_production_other.go, rootmigration_stopped_linux.go, rootmigration_timers.go
+ - `internal/release`: roothistory_pass.go, rootrestart_history.go
+ - `internal/rollout`: rootfailures.go
+
+Trims (declarations only): `internal/host/claimjournal_migration_linux.go`, `internal/host/rootexecution_client.go`, `internal/host/rootgeneration_containment_linux.go`, `internal/host/rootgeneration_inventory.go`, `internal/host/rootgeneration_kernel_linux.go`, `internal/host/rootgeneration_refusal.go`, `internal/host/roothistory_creation.go`, `internal/host/rootmigration.go`, `internal/host/rootupdates.go`, `internal/release/proofgate.go`, `internal/release/rootgenerationpins.go`, `internal/release/roothistory_app.go`, `internal/release/roothistory_status.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/nofollowdir_linux.go walkNoFollowDir`; `internal/host/rootupdates.go initializeMigrationFailures`; `internal/release/proofgate.go ProofGate.bind`
+
+Callers to edit:
+ - `internal/caps/converge.go:198,935,974` (Ops.authorizeMutation)
+ - `internal/host/agent.go:5042,5205,5206,5212,5215` (RootHistoryPass, WithRootGenerationPins, linkRootHistory, openRootHistory, productionRootGenerationPins)
+ - `internal/host/heldstage.go:205` (productionRootGenerationPins)
+ - `internal/host/namedrecovery.go:23,138` (RootHistoryPass)
+ - `internal/host/namedrecovery_active.go:180,186,210` (historyRollbackLink, resumeHistoryRestart, rootRestartChecks.settleHistory)
+ - `internal/host/namedrecovery_pass.go:14` (WithRecovery)
+ - `internal/host/proofroot.go:347,368` (RootHistoryPass, recordRootProgram)
+ - `internal/host/rootadoption_options.go:5,10` (RootHistoryPass, WithRootHistory)
+ - `internal/host/rootrestart.go:27,79,84,258,519` (RootHistoryPass, historyRestartAttempt, openRootHistory, rootRestartChecks.settleHistory)
+ - `internal/host/rootrestart_requests.go:21,43,53,74,94,96,97,101,110,113,117,124,130,191,211,214,230` (RestartBinding, RestartIntent, RestartProgress, RestartSnapshot, RestartTarget, RootRestartAbsent, ...)
+ - `internal/host/rootrestart_requests_source.go:91,146,149` (RestartBinding, RestartTarget)
+ - `internal/host/rootrollback.go:123` (historyRollbackLink)
+ - `internal/host/rootrollback_resume.go:73` (resumeHistoryRestart)
+ - `internal/host/rootupdates.go:52,109,114,241,249` (LegacyRetryIdentity, OpenRootFailures, RootFailures, RootFailures.VerifiedRetry, RootFailuresDir)
+ - `internal/host/systemapply.go:1248` (productionGenerationInventory)
+ - `internal/release/adopt.go:49,51,658,677,912,914,1675,1715,1719,1728,1745,1780,2137,2414,2578,2591,2618,2642` (RootHistoryPass, RootHistoryPass.begin, RootHistoryPass.complete, RootHistoryPass.selectRoute, historySelection, passConfig.bindProof, ...)
+ - `internal/release/materializeheld.go:410` (passConfig.generationWriteCheck)
+ - `internal/release/rollback.go:162,167` (passConfig.historyError, passConfig.recordRefusal)
+
+Keep identical: Every restart, rollback, start and reset-failed effect is the legacy one; D3 health (`release/healthy_root.go`, `proofgate.go`), the previous pointer and `EnsurePublicDir` stay. `caps.Converge/Restore/Restart` lose the `rootauthority` Lstat. Behaviour change already noted in the inventory: a bad-owned /var/lib/carlos-claims stops being fatal.
+
+Blocked or bounded by: WAIT for rootfs Plan 3 Group A (agent.go, systemapply.go). Region HA pins `rootexecution_client/read/authority/transport`, `rootinventory_state_linux`, `rootrecovery_rebind`, `rootrecord_claim` (558 lines).
+
+### 13. R4b (recut): Root floor mode (moves and seeds), moves-floor half, `hostfloor` begun/policy
+
+Size: about 3,747 lines of declarations (17 whole files, 18 trimmed); 49 test files reference what it deletes. Sim id `B11-floors`.
+
+Deletes whole files:
+
+ - `internal/host`: claimjournal_migration_linux.go, rootgeneration_census_linux.go, rootgeneration_census_other.go, rootgeneration_containment_linux.go, rootgeneration_handover.go, rootgeneration_inventory.go, rootgeneration_kernel_linux.go, rootgeneration_parked.go, rootgeneration_refusal.go, rootgeneration_requirements.go, rootgeneration_rows.go, rootgeneration_services_linux.go, rootmovesfloor_identity.go
+ - `internal/hostfloor`: begun.go
+ - `internal/release`: rootgenerationproof.go
+ - `internal/rootstate`: authoritydir_linux.go, authoritydir_other.go
+
+Trims (declarations only): `internal/host/movesfloor.go`, `internal/host/movesfloor_linux.go`, `internal/host/movesfloor_other.go`, `internal/host/rootfloor_available.go`, `internal/host/rootfloor_healthy.go`, `internal/host/rootfloor_reconstruct.go`, `internal/host/rootinventory_requirements.go`, `internal/host/rootmovesfloor.go`, `internal/host/rootmovesfloor_authorization.go`, `internal/host/rootmovesfloor_boot.go`, `internal/host/rootmovesfloor_refresh.go`, `internal/host/rootmovesfloor_source.go`, `internal/host/rootseedsfloor.go`, `internal/hostfloor/disk.go`, `internal/hostfloor/floor.go`, `internal/hostfloor/remote.go`, `internal/moves/floor.go`, `internal/release/rootgenerationpins.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/rootstate/authoritydir_linux.go OpenAuthorityDirectory`; `internal/rootstate/authoritydir_other.go OpenAuthorityDirectory`
+
+Callers to edit:
+ - `internal/console/boxselect.go:83,104` (ProtocolVersion, ReadFloor)
+ - `internal/console/server.go:1797` (ProtocolVersion)
+ - `internal/host/agent.go:5022` (rootJudgePrev)
+ - `internal/host/edgesfile.go:980,1034` (movesFloorLoop, withMovesFields)
+ - `internal/host/movesreport.go:71,312,320,323` (ProtocolVersion, ReadFloor, readLocalFloor)
+ - `internal/host/rootlaunchverifier.go:16,22,42,50,66` (generationInventory, generationReconciler, generationReconciler.reconcile, productionGenerationKernelCensus, productionLocalGenerationInventory)
+ - `internal/host/systemapply.go:570,611,858,859,861,883,884,913,922,926,1029,1034,1046,1048,1058,1080,1124,1127,1135,1158,1161,1165,1245,1252,1823,1978,2114` (floorLockCannotExist, floorWriteError, generationInventory, judgePrevWith, judgeRootSeedsPrev, readEffectiveMovesFloor, ...)
+ - `internal/host/systemparticipation.go:194` (MarkRolledBack)
+
+Keep identical: Seeds floor claims-off path byte-identical (see the shared-code list). `system floor-allows-prev` and the units' seeds clause stay; the moves clause goes. The console update and rollback doors (`hostactivation.go`) keep calling `hostfloor.Read` until tier 2, because region HA pins it; take their legacy arm then. Precondition: `control/moves-protocol.json` never published, no box has `/data/.moves/floor.*`, dev claim-trial undo (U) done.
+
+Blocked or bounded by: Region HA pins most of `hostfloor` (floor.go, disk.go, report.go, image_*: installchannel.go, joinroot.go, joinmode.go, autoenroll.go use them) and the floor-file mechanism (installchannel writes carlos.prev under the same locks). Self-serve: edgesfile.go, movesreport.go, server.go, agent.go. Rootfs: systemapply.go, agent.go. It deletes the seeds floor's root mode (`rootseedsfloor*.go`), which is claims-on only; confirm with Paul.
+
+### 14. R7c-1: Instance-control claim routes cut
+
+Size: about 71 lines of declarations (1 whole files, 1 trimmed); 0 test files reference what it deletes. Sim id `B5-instancectl`.
+
+Deletes whole files:
+
+ - `internal/instancectl`: legacy_claim_cleanup.go
+
+Trims (declarations only): `internal/instancectl/claim.go`
+
+Callers to edit:
+ - `internal/host/claimstop_run.go:87` (RunWithClaim)
+ - `internal/instancectl/legacystart.go:57` (requestConnContext)
+ - `internal/instancectl/server.go:687,895` (Server.clearLegacyClaimLaunch)
+
+Keep identical: `RunWithRegistry(nil, nil)`; `registerProductionLaunchVerifier` must still not fail startup; `instanceexec` claim checks (`checkClaimExec`, `ScopeClaimGeneration`, `parseExecArgs` snapshot arg) take the claims-off arm.
+
+Blocked or bounded by: Small on its own: most instancectl claim files die later (S3). Region HA pins host claimstop*.go (1,298 lines: relocation effects call them).
+
+### 15. R7b-1: Agent claim wiring cut
+
+Size: about 5,026 lines of declarations (23 whole files, 26 trimmed); 94 test files reference what it deletes. Sim id `B9-agent-cut`.
+
+Deletes whole files:
+
+ - `internal/appconfig`: claim_identity.go
+ - `internal/host`: claimbackfill.go, claimcensus.go, claimcensus_migration_linux.go, claimfilesseed_killed_linux.go, claimjournal_migration.go, claimproduction_marker.go, claimregion.go, claimstop_kernel_linux.go, claimstop_kernel_other.go, hostfencepass.go, moveswakesource.go, rootexecution_migration.go, rootexecution_settle.go, rootexecution_source.go, rootinventory_startup.go, rootmigration.go, rootmigration_preflight.go, rootmigration_startup.go, rootstop_reboot_linux.go
+ - `internal/instancectl`: peer_tuple_linux.go, peer_tuple_other.go
+ - `internal/release`: claim_identity.go
+
+Trims (declarations only): `internal/activator/claim_snapshot.go`, `internal/host/claimactivation_preflight.go`, `internal/host/claimassembly.go`, `internal/host/claimconstruction.go`, `internal/host/claimfiles.go`, `internal/host/claimfilesseed_guard.go`, `internal/host/claimmoveaccess.go`, `internal/host/claimmoveparks.go`, `internal/host/claimproduction.go`, `internal/host/claimproduction_linux.go`, `internal/host/claimproduction_other.go`, `internal/host/claimstop.go`, `internal/host/claimstop_production.go`, `internal/host/claimstop_transport.go`, `internal/host/claimstop_writers_linux.go`, `internal/host/claimwakeassembly.go`, `internal/host/claimwiring.go`, `internal/host/movespolicy.go`, `internal/host/rootexecution_authority.go`, `internal/host/rootexecution_runtime.go`, `internal/host/rootfloor_available.go`, `internal/host/rootmovesfloor_source.go`, `internal/host/rootrecovery_rebind.go`, `internal/instancekey/instancekey.go`, `internal/stopevidence/holders.go`, `internal/stopevidence/holders_linux.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/appconfig/claim_identity.go CheckRenderedIdentity`; `internal/host/movespolicy.go ErrMovesRefused MovesClaimPolicy MovesClaimPolicyWithInputs MovesPolicyRefusal MovesPolicyRefusal.Error MovesPolicyRefusal.Unwrap movesCommittedSpawn movesIdentityFits mov`; `internal/host/rootstop_reboot_linux.go LinuxStopKernel.rebootStopFiles`; `internal/instancectl/peer_tuple_linux.go AuthenticatePeerTuple AuthenticatedPeer procStart`; `internal/instancectl/peer_tuple_other.go AuthenticatePeerTuple AuthenticatedPeer`; `internal/instancekey/instancekey.go SourceOf`; `internal/release/claim_identity.go CheckRouteReleaseIdentity`; `internal/stopevidence/holders.go Agent ErrForeignHolder`; `internal/stopevidence/holders_linux.go HoldersWithPrefixes ReplicatorOnly agentStarted kcmpFiles processStart sameFDTable`
+
+Callers to edit:
+ - `internal/host/agent.go:231,234,240,311,328,342,346,750,830,3465,3724,4890,4892,4900,4915,4922,4933,4955,4964` (ClaimFactory, ClaimWiring.close, ClaimWiring.startRegional, claimEntryContext, configuredClaimProvision, ensureProductionClaimAssembly, ...)
+ - `internal/host/claimstop_run.go:31,44,45,59,85` (NewProductionRootClaimStop, claimEntryContext, ensureProductionClaimAssembly, runHostFencePass, withClaimRuntimeResources)
+ - `internal/host/movespass.go:543` (movesFilesDirFor)
+ - `internal/host/movessources.go:104,147,727,731` (ClaimProductionMoveSources, claimMoveSources, claimRegionBinding, productionRosterRow, readProductionRosterRow)
+ - `internal/host/proofbinding.go:129,133` (productionRosterRow, readProductionRosterRow)
+
+Keep identical: Agent startup and every pass; `claimEntryContext` never runs; `hostbox.Startup`'s disabled config path; timers take the legacy path. Root `instance-control` startup edits at claimstop_run.go:27-87.
+
+Blocked or bounded by: Self-serve: agent.go, movespass.go. Rootfs: agent.go (Task 7 `MarkRootfsSwept`). Region HA pins claimwakeassembly/claimassembly/claimroleassembly/claimconstruction (2,071 lines).
+
+### 16. R7b-2: Sweep: claim serving (park, handover, reboot, identity)
+
+Size: about 3,086 lines of declarations (7 whole files, 19 trimmed); 30 test files reference what it deletes. Sim id `S1-serving`.
+
+Deletes whole files:
+
+ - `internal/host`: claimservingartifact_linux.go, claimservingartifact_other.go, claimservingcollection.go, claimservinglegacyroot_linux.go, claimservingpark_recovery_linux.go, claimservingparksource_linux.go, claimservingreboot_prepare_linux.go
+
+Trims (declarations only): `internal/host/claimservingboot_linux.go`, `internal/host/claimservingidentity.go`, `internal/host/claimservinglegacy.go`, `internal/host/claimservingmaintenance.go`, `internal/host/claimservingmaintenance_linux.go`, `internal/host/claimservingnamespace_linux.go`, `internal/host/claimservingpark.go`, `internal/host/claimservingpark_linux.go`, `internal/host/claimservingpark_other.go`, `internal/host/claimservingpark_records.go`, `internal/host/claimservingpark_recovery.go`, `internal/host/claimservingpark_transport.go`, `internal/host/claimservingparkroot_linux.go`, `internal/host/claimservingquarantine_linux.go`, `internal/host/claimservingreboot_commit_linux.go`, `internal/host/claimservingreboot_linux.go`, `internal/host/claimservingretire.go`, `internal/host/claimservingtopology_linux.go`, `internal/host/claimservingvolume_linux.go`
+
+Callers to edit: none.
+
+Keep identical: Nothing live: pure deletion of code dead since R7b-1.
+
+Blocked or bounded by: None.
+
+### 17. R7b-3: Claim control unit rendering cut
+
+Size: about 379 lines of declarations (2 whole files, 3 trimmed); 8 test files reference what it deletes. Sim id `S2-unit`.
+
+Deletes whole files:
+
+ - `internal/host`: claimunit.go, claimunit_policy.go
+
+Trims (declarations only): `internal/host/claimunit_inputs.go`, `internal/host/claimunit_placement.go`, `internal/host/rootupdates_runtime.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/host/rootupdates_runtime.go prepareRootRetryUnitDirectory`
+
+Callers to edit:
+ - `internal/host/agent.go:5161` (productionClaimCapsOps)
+ - `internal/host/bootstrap.go:371,373,376,386,517,525,609` (claimBootstrapHostEnv, claimControlEnvironment, claimControlUnit, claimUnitContent, claimUnitSettings, readClaimUnitSettings, ...)
+ - `internal/host/dbreads.go:175` (readClaimUnitFile)
+ - `internal/host/rootrestart.go:71,170,430,548` (rootClaimRestartShape, rootRestartChecks.checkUnitShape)
+ - `internal/host/systemapply.go:1323,1345,1356,1363,1428` (claimControlEnvironment, claimControlUnit, claimUnitContent, readClaimUnitSettings, restartClaimControl)
+ - `internal/host/systemunits.go:74,124,129,144,175` (claimControlEnvironment, claimControlUnit, claimUnitContent, claimUnitSettings, readClaimUnitSettings, restartClaimControl)
+
+Keep identical: Every embedded unit is written byte-identically: `claimUnitContent(name, content, settings)` returns `content` claims-off, so replace it with `content` in bootstrap.go, systemapply.go, systemunits.go; drop the restart-shape check in rootrestart.go and `readClaimUnitFile` in dbreads.go.
+
+Blocked or bounded by: Rootfs: systemapply.go, agent.go. Touches root units: needs a census card.
+
+### 18. R7c-2: Sweep: claim launch, journal, token, exec; instancectl claim exec/launch files; release exclusion
+
+Size: about 5,220 lines of declarations (59 whole files, 19 trimmed); 108 test files reference what it deletes. Sim id `S3-launch-journal`.
+
+Deletes whole files:
+
+ - `internal/activator`: claim_snapshot.go
+ - `internal/host`: claimactivation_preflight.go, claimfilesseed_delegation_linux.go, claimfilesseed_delegation_other.go, claimjournal_proof.go, claimlaunch_authority.go, claimlaunch_execpermit.go, claimlaunch_kernel_linux.go, claimlaunch_kernel_other.go, claimlaunch_observations.go, claimlaunch_production.go, claimlaunch_root.go, claimlaunch_transport.go, claimproduction_linux.go, claimproduction_other.go, claimready_linux.go, claimready_other.go, claimstate_linux.go, claimstate_other.go, claimtoken_directory.go, claimtoken_inventory_linux.go, claimtoken_inventory_other.go, claimunit_binding_source.go, claimunit_dispatch.go, claimunit_dropin.go, claimunit_dropin_linux.go, claimunit_dropin_other.go, claimunit_effective.go, claimunit_files_linux.go, claimunit_files_other.go, claimunit_handover.go, claimunit_materialize.go, claimunit_migrate.go, claimunit_migrate_kernel.go, claimunit_migrate_linux.go, claimunit_migrate_other.go, claimunit_placement.go, claimunit_production.go, claimunit_program.go, claimunit_ready_linux.go, claimunit_ready_other.go, claimunit_socket_migration_linux.go, claimunit_socket_migration_other.go, claimunit_template.go, rootgenerations_launch.go, roothistory_launch.go, rootinstallation.go
+ - `internal/instancectl`: claimexec.go, claimexec_linux.go, claimexec_other.go, claimexec_socket_linux.go, claimexec_socket_other.go, claimlaunch_snapshot.go, claimlaunch_snapshot_linux.go, claimlaunch_snapshot_other.go, claimnetwork_linux.go, claimnetwork_other.go, claimunit_bound_stop.go
+ - `internal/release`: releaseexclusion.go
+
+Trims (declarations only): `internal/activator/admintoken.go`, `internal/activator/backend_exec.go`, `internal/activator/claim_shape.go`, `internal/activator/instancekey.go`, `internal/host/claimjournal_containment.go`, `internal/host/claimjournal_transport.go`, `internal/host/claimproduction.go`, `internal/host/claimunit_binding.go`, `internal/host/claimunit_definition.go`, `internal/host/claimunit_inputs.go`, `internal/host/claimunit_retire.go`, `internal/host/movesheldrelease.go`, `internal/host/rootexecution_read.go`, `internal/host/rootfenceview.go`, `internal/host/roothistory_creation.go`, `internal/host/rootupdates_runtime.go`, `internal/instancectl/claimunit.go`, `internal/instancectl/claimunit_bound.go`, `internal/release/roothistory.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/activator/admintoken.go ensureAdminTokenAt`; `internal/activator/backend_exec.go ExecBackend.instanceEnv`; `internal/activator/instancekey.go ExecBackend.settleClaimInstanceEnv errInstanceEnvNeedsWrite`; `internal/host/rootupdates_runtime.go beginRootGenerationUpdate`
+
+Callers to edit:
+ - `internal/host/claimstop_run.go:71,87` (WithProductionClaimLaunch, rootInstallationHostApp)
+ - `internal/host/rootlaunchverifier.go:14,22,58,68` (ReleaseExclusion, ReleaseExclusion.Check, ReleaseExclusion.With)
+ - `internal/instanceexec/claim_generation_linux.go:59` (ErrClaimUnitBusy,ErrClaimUnit)
+ - `internal/instanceexec/claimexec_linux.go:25,29,60,61` (ClaimExecBootID, ClaimExecPermit, ClaimExecPermit.Valid, ClaimExecSocket, ErrClaimUnitBusy,ErrClaimUnit)
+ - `internal/instanceexec/exec.go:100` (ClaimExecSnapshot)
+
+Keep identical: Root `instance-control` startup (`claimstop_run.go:71` drops `WithProductionClaimLaunch`). `ExecBackend.instanceEnv` and the claim admin-token path go: check the legacy env path is separate (the graph says it is).
+
+Blocked or bounded by: Rootfs: backend_exec.go (one function).
+
+### 19. R7b-4: Sweep: remaining host claim files, release root generation files, layout census
+
+Size: about 7,177 lines of declarations (61 whole files, 22 trimmed); 189 test files reference what it deletes. Sim id `S4-host-rest`.
+
+Deletes whole files:
+
+ - `internal/host`: claim_evidence_producer.go, claim_evidence_wiring.go, claimjournal_containment.go, claimjournal_containment_linux.go, claimjournal_containment_other.go, claimjournal_transport.go, claimordinaryparks.go, claimoriginproof.go, claimproduction.go, claimrecoveryjournal.go, claimretire_local.go, claimretirementcensus.go, claimservingartifact.go, claimservingboot_linux.go, claimservingdisplaced_linux.go, claimservinghandover.go, claimservinghandover_reboot_linux.go, claimservinghandover_reboot_other.go, claimservingidentity.go, claimservingidentity_linux.go, claimservinglegacy.go, claimservingmaintenance.go, claimservingnamespace_linux.go, claimservingpark.go, claimservingpark_linux.go, claimservingpark_records.go, claimservingpark_recovery.go, claimservingpark_transport.go, claimservingparkroot_linux.go, claimservingquarantine_linux.go, claimservingreboot_binding.go, claimservingreboot_commit_linux.go, claimservingreboot_linux.go, claimservingtopology_linux.go, claimservingvolume_linux.go, claimstop_writers_linux.go, claimunit_retire.go, moveslandpark.go, rootexecution_runtime.go, rootfenceview.go, rootgeneration_payload_linux.go, rootgeneration_payload_other.go, roothistory_creation.go, rootinventory.go, rootinventory_identity.go, rootinventory_install.go, rootinventory_requirements.go, rootinventory_sibling.go, rootinventory_timer.go, rootinventory_timer_mutation.go, rootinventory_timer_recovery.go
+ - `internal/instancectl`: claim.go
+ - `internal/layout`: census.go
+ - `internal/release`: rootbake.go, rootgenerationcompleteness.go, rootgenerationpins.go, rootgenerations.go, roothistory_app.go, roothistory_creation.go, roothistory_recovery_policy.go, roothistory_replace.go
+
+Trims (declarations only): `internal/host/claimcleanup_identity.go`, `internal/host/claimempty_recovery.go`, `internal/host/claimhandover_crossbox.go`, `internal/host/claimhandover_transport.go`, `internal/host/claimmoveparks.go`, `internal/host/claimowners.go`, `internal/host/claimparticipation.go`, `internal/host/claimrestore_observation.go`, `internal/host/claimretire_transport.go`, `internal/host/claimservingpark_other.go`, `internal/host/claimservingretire.go`, `internal/host/claimstop_recovery.go`, `internal/host/claimstop_transport.go`, `internal/host/claimstop_writers.go`, `internal/host/rootexecution_transport.go`, `internal/host/rootrecovery_rebind.go`, `internal/release/roothistory.go`, `internal/release/roothistory_delivery.go`, `internal/release/roothistory_outcomes.go`, `internal/release/roothistory_reconstruct.go`, `internal/release/roothistory_retirement.go`, `internal/release/roothistory_status.go`
+
+Callers to edit:
+ - `internal/host/agent.go:5211` (RootHistory)
+ - `internal/host/claimstop_run.go:63,67` (ClaimRootHTTP, claimExecutionRuntime.Close)
+ - `internal/host/movesevidence.go:181,185` (landingGenerationOf, landingMarkerGeneration)
+ - `internal/host/movessources.go:245,297` (landingGenerationOf, landingMarkerGeneration)
+ - `internal/host/namedrecovery.go:138,146,154,161,189` (RootHistory, RootHistory.Blocks, RootHistory.RecoveryRetired, RootHistory.RetireD1)
+ - `internal/host/recoveryrefusals.go:23,62,72,80,85,96,100` (RootHistory, RootHistory.MintRefusals, RootHistory.RecoveryRetired, RootHistory.RetainRecovery)
+ - `internal/host/rootlaunchverifier.go:33,34,50,65` (RootGenerations, RootGenerations.Certify, RootGenerations.Reservations, RootGenerationsDir)
+ - `internal/host/rootrestart_requests_source.go:47,54` (GenerationBinding, GenerationOwner, rootHistoryInstallation)
+ - `internal/host/rootupdates.go:44,83,177` (GenerationBinding, rootHistoryInstallation)
+ - `internal/release/adopt.go:914,1480,1582,1669,1675` (RootHistory.FreshInstallation, RootHistory.LoadBake, RootHistory.Programs, RootHistory.Refusals, RootHistory.RetireD1)
+
+Keep identical: Agent status loop (`claimReport` drops), `movesfiles.go`/`movesrevert.go` live halves.
+
+Blocked or bounded by: Region HA pins claimowners/claimoperations/claimwakestop/claimparticipation/claimwakewriters/claimhandover (2,728 lines).
+
+### 20. R6d: Trim hostops/hostfence/historyreadback
+
+Size: about 4,003 lines of declarations (21 whole files, 34 trimmed); 141 test files reference what it deletes. Sim id `L-R6libs`.
+
+Deletes whole files:
+
+ - `internal/historyreadback`: completion.go, readback.go, workflow.go
+ - `internal/hostactors`: binding.go
+ - `internal/hostfence`: activation_credentials.go, writer.go
+ - `internal/hostops`: geoip_classifier.go, lifecycle_record.go, move_region.go, mutation_boundary.go, mutation_boundary_putfrom.go, remote.go, retired_record_versions.go, storage_classifier.go, versioned_boundary.go
+ - `internal/release`: roothistory.go, roothistory_delivery.go, roothistory_outcomes.go, roothistory_reconstruct.go, roothistory_retirement.go, roothistory_status.go
+
+Trims (declarations only): `internal/awsinv/exact_instance.go`, `internal/hostfence/challenge.go`, `internal/hostfence/claim_fence.go`, `internal/hostfence/termination.go`, `internal/hostops/admission.go`, `internal/hostops/app_mutation_runner.go`, `internal/hostops/backfill_controller.go`, `internal/hostops/backfill_publish.go`, `internal/hostops/backfill_seeds.go`, `internal/hostops/console_move_grant.go`, `internal/hostops/control_writer.go`, `internal/hostops/effect_runner.go`, `internal/hostops/ingest.go`, `internal/hostops/lifecycle_grant.go`, `internal/hostops/mail_gate.go`, `internal/hostops/mail_reconcile.go`, `internal/hostops/move_enrollment.go`, `internal/hostops/move_home.go`, `internal/hostops/move_loss_admission.go`, `internal/hostops/move_loss_authority.go`, `internal/hostops/move_loss_owner.go`, `internal/hostops/move_recovery_bridge.go`, `internal/hostops/move_recovery_grant.go`, `internal/hostops/move_start_resolve.go`, `internal/hostops/mutation_classifier.go`, `internal/hostops/mutation_permit.go`, `internal/hostops/purge.go`, `internal/hostops/purge_journal.go`, `internal/hostops/record.go`, `internal/hostops/record_sequence.go`, `internal/hostops/record_writes.go`, `internal/hostops/recovery.go`, `internal/moves/floor.go`, `internal/release/rootfs_ship.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/awsinv/exact_instance.go ExactInstance VerifyExactStoppedInstance`; `internal/release/rootfs_ship.go IsRootfsArtifactKey`
+
+Callers to edit:
+ - `internal/console/apiinstancemove.go:921,934,1253,1385` (BeginClaimMove, ClaimMoveRosterPlaces, ObserveConsoleMove, StartClaimMoveRecord)
+ - `internal/console/apiinstances.go:1634` (PrepareInstance)
+ - `internal/console/apisidecars.go:376` (PrepareSidecar)
+ - `internal/console/server.go:911,1797,1802` (ConsoleKey, ConsoleRecord, MutationEvent)
+ - `internal/host/movesreport.go:340,341` (ConsoleKey, ConsoleRecord)
+ - `internal/host/namedrecovery.go:134,161,184` (HistoryAttempt, HistoryBinding, HistoryRecovery)
+ - `internal/host/namedrecovery_active.go:185,186` (HistoryAttempt, HistoryBinding)
+ - `internal/host/proofroot.go:48,277,357` (HistoryBinding)
+ - `internal/host/recoveryrefusals.go:17,20,56,65,72,82,96` (HistoryAttempt, HistoryBinding, HistoryRecovery)
+ - `internal/host/rootrestart_requests_source.go:47` (HistoryBinding)
+ - `internal/host/rootrollback.go:36,37,117,121,204` (HistoryAttempt, HistoryBinding)
+ - `internal/release/adopt.go:910` (HistoryBinding)
+
+Keep identical: The `hostops` error sentinels compared on claims-off console paths (inventory 2.1) keep meaning nothing; delete the comparisons with them.
+
+Blocked or bounded by: Region HA pins 11,659 lines of these packages (nocapacity.go, hostclaimexecutor.go, regioncapacity.go, enrollpass.go, relocatepass.go, hostrelocate). The packages stay.
+
+### 21. R7d-2: Trim hostexec
+
+Size: about 1,125 lines of declarations (5 whole files, 6 trimmed); 20 test files reference what it deletes. Sim id `L-hostexec`.
+
+Deletes whole files:
+
+ - `internal/hostexec`: local_other.go, participation.go, probe_other.go, probe_unix.go, rootserving.go
+
+Trims (declarations only): `internal/hostexec/controller.go`, `internal/hostexec/local_unix.go`, `internal/hostexec/pending_linux.go`, `internal/hostexec/pending_other.go`, `internal/hostexec/rootbroker.go`, `internal/rootstate/live.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/rootstate/live.go HoldLive`
+
+Callers to edit: none.
+
+Keep identical: system apply unchanged.
+
+Blocked or bounded by: Region HA pins 1,398 lines (claimparticipation_relocation.go, relocationeffects.go use `hostexec.Record`).
+
+### 22. R7b-5: Trim hostbox/hostclaim/hostguard/park/genselect
+
+Size: about 2,696 lines of declarations (14 whole files, 32 trimmed); 198 test files reference what it deletes. Sim id `L-R7blibs`.
+
+Deletes whole files:
+
+ - `internal/hostbox`: cleanup_authority.go, generationhandover.go, inventory_identity_other.go, journalnamespace_linux.go, journalnamespace_other.go, journalpath.go, migration_census_linux.go, migration_census_other.go, parkleases.go, servinghandover.go, typedpark_other.go, typedpark_path.go
+ - `internal/hostguard`: flock_other.go, record_other.go
+
+Trims (declarations only): `internal/genselect/select.go`, `internal/hostbox/coldhandover.go`, `internal/hostbox/empty_census.go`, `internal/hostbox/generationinventory.go`, `internal/hostbox/identity.go`, `internal/hostbox/inventory_identity.go`, `internal/hostbox/inventory_identity_linux.go`, `internal/hostbox/journalmigration_other.go`, `internal/hostbox/journalservice.go`, `internal/hostbox/journaltrust_linux.go`, `internal/hostbox/journaltrust_other.go`, `internal/hostbox/launchjournal.go`, `internal/hostbox/renewing.go`, `internal/hostbox/requeststore.go`, `internal/hostbox/restore.go`, `internal/hostbox/rolelaunch.go`, `internal/hostbox/servingpark_transport.go`, `internal/hostbox/typedpark_linux.go`, `internal/hostbox/typedretire.go`, `internal/hostclaim/lost.go`, `internal/hostclaim/move.go`, `internal/hostclaim/move_target_fence.go`, `internal/hostclaim/origins.go`, `internal/hostclaim/sessionstep.go`, `internal/hostclaim/wakeretry.go`, `internal/hostguard/record.go`, `internal/hostguard/root.go`, `internal/hostguard/writerstop.go`, `internal/park/home_view.go`, `internal/park/region_names.go`, `internal/park/sweep.go`, `internal/rootstate/persistent_other.go`
+
+Live-file declarations that die here (claim-only helpers; confirm each): `internal/rootstate/persistent_other.go ObjectIdentity`
+
+Callers to edit:
+ - `internal/activator/servingretry.go:63,133,140,217,260` (BindWakeRetrySession, ClearWakeRetryHealthy, FailWakeRetryAttempt, ReserveWakeRetryAttempt, WakeRetryHealth, WakeRetryReservation, ...)
+ - `internal/console/apiinstancemove.go:822,1594` (BeginMove, EnginePlacement)
+ - `internal/host/movesfinal.go:517` (CompleteLocalPark)
+ - `internal/host/movesparks.go:87,160` (RequireReleasedMove)
+ - `internal/host/movespass.go:577` (WriteGenerationMarker)
+ - `internal/host/movesrevert.go:325,482,529,612,820` (RequireReleasedMove, SetRevPhase)
+ - `internal/host/movessources.go:272` (LiveGenerations)
+ - `internal/host/rootrestart_requests_source.go:31,50` (NewRootAuthority)
+
+Keep identical: Nothing live.
+
+Blocked or bounded by: Region HA pins 15,229 lines. The packages stay.