| 1 | package provision |
| 2 | |
| 3 | // plan14ClaimStep8ReadinessWriteCensusInventory is the record-write |
| 4 | // inventory for the step 8 readiness branch, RULED (platform-1e, |
| 5 | // 2026-10-20): accepted as proposed (census-ruling-claim-step8-readiness; |
| 6 | // docs/superpowers/notes/census-proposal-claim-step8-readiness.md). |
| 7 | // |
| 8 | // - Backfill.Publish, re-reviewed: before its one Put of the backfill |
| 9 | // manifest it now copies each host's box and region from the one box |
| 10 | // whose signed census report names the host (or refuses two). The Put, |
| 11 | // its key and its If-Match are unchanged. Still nonrecord. |
| 12 | // - Runner.backfillCollect, new: its one Put is the create-only collecting |
| 13 | // manifest at control/hosts-backfill.json, through the runner's |
| 14 | // checkedStore, whose allow-list admits only that key for the phase. It |
| 15 | // reads records (hostops.Apps, hostops.Records) and writes none. Hence |
| 16 | // nonrecord. |
| 17 | // - Backfill.Done, new (backfill-done, the empty cohort): its one Put is |
| 18 | // the backfill manifest rewritten as done under the collecting etag |
| 19 | // (If-Match), reached only from Runner.backfillDone through the |
| 20 | // runner's checkedStore. It reads records, claims, admissions and |
| 21 | // census reports and writes none of them. Hence nonrecord. |
| 22 | // - hostInstallationPaths, new: the "instances" literal names a host's |
| 23 | // nested data directory under the box's data root, for the migration |
| 24 | // census's classification. It builds no record key. Hence key-site. |
| 25 | func plan14ClaimStep8ReadinessWriteCensusInventory() []censusEntry { |
| 26 | entries := append([]censusEntry(nil), movesOfflinePrecopyWriteCensusInventory()...) // main's tip (claim-merge-main-3): moves-offline, scan-demand, plans-caps, precopy |
| 27 | kept := make([]censusEntry, 0, len(entries)+4) |
| 28 | for _, e := range entries { |
| 29 | if e.File == "internal/hostops/backfill_publish.go" && e.Unit == "Backfill.Publish" { |
| 30 | continue |
| 31 | } |
| 32 | kept = append(kept, e) |
| 33 | } |
| 34 | return append(kept, |
| 35 | censusEntry{"internal/hostops/backfill_publish.go", "Backfill.Publish", "nonrecord", "sel:Put", "92754dcc02c07fecaab58ef014bfb381c49ee5d90d5f5ca256bbfe275087d8b9"}, |
| 36 | censusEntry{"internal/claimactivation/backfill.go", "Runner.backfillCollect", "nonrecord", "sel:Put", "ac53546891b2c6f982c0316595f86ff6b550250a3a4edcbc16d51d84fd18b06a"}, |
| 37 | censusEntry{"internal/hostops/backfill_publish.go", "Backfill.Done", "nonrecord", "sel:Put", "9a5baeea4eace87c960d1df2a4b01487980b6b2b3f2aaf761835ae475ec34f4f"}, |
| 38 | censusEntry{"internal/host/claimcensus_migration_linux.go", "hostInstallationPaths", "key-site", "lit:instances", "075f00c6ebd5f7a0492f044b5c42894c852aa788554072d90a8079d8ab2b612c"}, |
| 39 | ) |
| 40 | } |
| 41 | |