carlos / platform Public

census: re-propose the drill fix after review round 1

Root-read census (TestPlan14RootReadCensus): the round 1 fixes changed
noDatabase (absolute paths only) and hibernateRun.run (Drill.Prior, the
left_out merge) again, and re-pinned the internal/ops and
internal/dbverify envelopes. make census-propose
NAME=member-backups-drill-nodb re-run with cumulative claims: same two
units, same reads (noDatabase +file:Lstat, hibernateRun.run's
file:Open), no new read source.

Record-write census (TestPlan9B8RecordWriteCensus): dbverify.PublishOver
and dbverify.RemoveHost now also clear the record's additive left_out
field. Both re-digested in a new overlay,
memberBackupsDrillNodbWriteCensusInventory, layered on
staticSiteGeo962WriteCensusInventory; class nonrecord and kinds sel:Put
unchanged, no record write added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 341f5f6bc7e1e86d41847dae1a07302a901997e7 parent f4d8614
6 files changed, +59 −14
  • docs/superpowers/notes/census-claims-member-backups-drill-nodb.tsv +4 −3
  • docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md +3 −3
  • internal/provision/member_backups_drill_nodb_census_test.go +43 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv +7 −6

CI cancelled — superseded by a newer push — run details

Intent

Attributed to this commit: 3.65 g CO₂e (385,695 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on member-backups-drill-nodb, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-claims-member-backups-drill-nodb.tsv b/docs/superpowers/notes/census-claims-member-backups-drill-nodb.tsv
index 31f8c05f4..869257059 100644
--- a/docs/superpowers/notes/census-claims-member-backups-drill-nodb.tsv
+++ b/docs/superpowers/notes/census-claims-member-backups-drill-nodb.tsv
@@ -1,5 +1,6 @@
-# Census claims for the restore drill fix after the first drill night (#898), 2026-11-13. <file>:<unit> TAB <what changed>.
+# Census claims for the restore drill fix after the first drill night (#898), 2026-11-13, with Astra round 1 fixes. <file>:<unit> TAB <what changed>.
# Who runs what: the drill is carlos-hibernate-verify.service (User=carlos, oneshot). hibernateRun.run still refuses euid 0 first,
# before any monitor file, store or registry is touched, so none of this runs as root in the shipped unit.
-internal/ops/ops.go:hibernateRun.run the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The publisher now takes RunResults and drops the hosts the run left out (no database) from the fleet before dbverify.Merge, so its writes to control/verify/<ref>.json and <data>/monitor/verify.json carry fewer hosts; the summary lines count them.
-internal/ops/hibernate_verify.go:noDatabase new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record, anything else keeps unverified/nothing_replicated.
+# Round 1 census verdict (Astra): APPROVE. Round 1 fixes re-digest both units; no read source is added.
+internal/ops/ops.go:hibernateRun.run the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The record it already loaded (dbverify.Load of its own control/verify/<ref>.json) is also handed to the drill as Drill.Prior, read only to refuse a leave-out for an incarnation that once had data. The publisher now takes RunResults and merges with dbverify.MergeLeftOut: hosts the run left out (no database) go to the record's additive left_out field instead of hosts, written by the same PublishOver Put of control/verify/<ref>.json and the same local copy <data>/monitor/verify.json; the summary lines count them.
+internal/ops/hibernate_verify.go:noDatabase new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only when the path is absolute (a relative or empty path answers false with no syscall); only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record only if, for an HA route, this box holds the lease (the same lockState read freshness makes) and the prior record shows no data for the incarnation; anything else keeps unverified/nothing_replicated.
diff --git a/docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md b/docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md
index 71ce5ea81..541c3f299 100644
--- a/docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md
+++ b/docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md
@@ -4,9 +4,9 @@ Ruling `census-ruling-member-backups-drill-nodb`. The independent reviewer appro
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/ops/ops.go` `hibernateRun.run` | body | unchanged (1) | the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The publisher now takes RunResults and drops the hosts the run left out (no database) from the fleet before dbverify.Merge, so its writes to control/verify/<ref>.json and <data>/monitor/verify.json carry fewer hosts; the summary lines count them. |
+| `internal/ops/ops.go` `hibernateRun.run` | body | unchanged (1) | the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The record it already loaded (dbverify.Load of its own control/verify/<ref>.json) is also handed to the drill as Drill.Prior, read only to refuse a leave-out for an incarnation that once had data. The publisher now takes RunResults and merges with dbverify.MergeLeftOut: hosts the run left out (no database) go to the record's additive left_out field instead of hosts, written by the same PublishOver Put of control/verify/<ref>.json and the same local copy <data>/monitor/verify.json; the summary lines count them. |
-Envelopes re-pinned: `internal/ops`.
+Envelopes re-pinned: `internal/dbverify`, `internal/ops`.
Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
@@ -18,6 +18,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/ops/hibernate_verify.go:noDatabase`: reads +file:Lstat; written legacy, accepted-legacy, frozen
-Seal: `5e8a72175700a3e60c1e283b133c1ee25e36f292e2e319f02a19138f15186376` → `0c41a738ce48edbe0583ae77403a1a38dbb4855bdba985c9a5814a4512930d15`.
+Seal: `5e8a72175700a3e60c1e283b133c1ee25e36f292e2e319f02a19138f15186376` → `8e40ffda985635df7a9fc05bf098fe979b0f701d062e0e47ac1ff47cc1d0b9fb`.
Overlay: `internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/member_backups_drill_nodb_census_test.go b/internal/provision/member_backups_drill_nodb_census_test.go
new file mode 100644
index 000000000..024b51af4
--- /dev/null
+++ b/internal/provision/member_backups_drill_nodb_census_test.go
@@ -0,0 +1,43 @@
+package provision
+
+// memberBackupsDrillNodbWriteCensusInventory is the review of the restore
+// drill's no-database fix (member-backups-drill-nodb, #898) of the
+// record-write census, layered on staticSiteGeo962WriteCensusInventory.
+//
+// The drill now records the hosts it left out for having no database in a
+// new, additive field of its own record, left_out, beside hosts. Two units
+// are re-digested; no record write is added and no class or kind changes.
+// Neither touches an instance record or a sidecar:
+// - dbverify.PublishOver: the same Get-then-CAS Put of
+// dbverify.KeyFor(rec.Box), three attempts, with the same
+// ErrInvalidRef refusal. Inside each attempt the hosts the caller knew
+// that the record in the bucket no longer has, in hosts or in
+// left_out, are deleted from rec's hosts and left_out both. It writes
+// nothing else and no record path. nonrecord / sel:Put, as before.
+// - dbverify.RemoveHost: the same load, delete and CAS Put of box ref's
+// own record at KeyFor(ref) inside each attempt; it now deletes the
+// host from left_out as well as from hosts, and does nothing when it is
+// in neither. Other boxes' records are never touched. nonrecord /
+// sel:Put, as before.
+func memberBackupsDrillNodbWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), staticSiteGeo962WriteCensusInventory()...)
+ repins := []censusEntry{
+ {"internal/dbverify/dbverify.go", "PublishOver", "nonrecord", "sel:Put", "ffbd3d714522880a236b80fa45136872739d864305243979bf181e17057ee7dd"},
+ {"internal/dbverify/dbverify.go", "RemoveHost", "nonrecord", "sel:Put", "78aad0af7e4d298fd00814984f0bd9e4ecce9d95b8007e11658b75b7e8e14779"},
+ }
+ for _, r := range repins {
+ found := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ if e.Class != r.Class || e.Kinds != r.Kinds {
+ panic("member-backups-drill-nodb census: classification changed for " + r.File + ":" + r.Unit)
+ }
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ panic("member-backups-drill-nodb census: re-pin of an unlisted unit " + r.File + ":" + r.Unit)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 8bbdb99bb..3c7229e34 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := staticSiteGeo962WriteCensusInventory()
+ inventory := memberBackupsDrillNodbWriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 0b27ddb9c..0fd43418b 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -201,4 +201,4 @@ plan14-root-reads-ha-unclean-marker-waits.tsv 821598970e60a776d4a62138d5adbfa393
plan14-root-reads-ha-unclean-files-only.tsv bc138ce5435f3ab37f6adff46656eea1c20f48168c569550fe94e390c69ba309
plan14-root-reads-edge-ppv2.tsv 44e5745a1d22ea2ddd6e73d775d87759afe7121666212b6ed2563c1518261bc4
plan14-root-reads-static-site-geo-962.tsv 5e8a72175700a3e60c1e283b133c1ee25e36f292e2e319f02a19138f15186376
-plan14-root-reads-member-backups-drill-nodb.tsv 0c41a738ce48edbe0583ae77403a1a38dbb4855bdba985c9a5814a4512930d15
+plan14-root-reads-member-backups-drill-nodb.tsv 8e40ffda985635df7a9fc05bf098fe979b0f701d062e0e47ac1ff47cc1d0b9fb
diff --git a/internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv b/internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv
index f29ddfdb1..6cd51b0e2 100644
--- a/internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv
+++ b/internal/provision/testdata/plan14-root-reads-member-backups-drill-nodb.tsv
@@ -1,8 +1,9 @@
# Census overlay member-backups-drill-nodb, written by census-propose (#369). census-ruling-member-backups-drill-nodb, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-member-backups-drill-nodb.md.
-# 1 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 1 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
-@legacy 9e0ca25bb41e6d70bf22fcda828dce8e434878e957e866bafca02c22aff4745d internal/ops/ops.go hibernateRun.run legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-2a;basis=new, the drill (carlos ops hibernate-verify, user carlos): the verb's body, moved out of runHibernateVerify so a test can run it whole. First of all it refuses root (Root, from os.Geteuid() == 0 in runHibernateVerify): one log line, exit 1, before any monitor file is read, the deployment store opened or the registry opened (census round 1 P1, ls284: self.json, which the carlos user writes, names the record a run replaces). Then, as before: boxself.ReadFresh of self.json (refuses to run without a fresh record), dbreads.ValidRegion(CARLOS_REGION), openDeployStore, registry.Open(RegPath) (its +file:Open, the same registry the old body opened, closed after HibernatingHosts), dbverify.Load of this box's own control/verify/<ref>.json, selectHosts (verify-assign.json on a group box), MkdirTemp under the unit's on-disk TMPDIR, the drill, and dbverify.Publish to control/verify/<ref>.json only. Final fix wave (still refusing root first): the self.json read is retried every 15 s for up to 5 minutes (SelfWait, the same boxself.ReadFresh), a fleet box's CARLOS_REGION fleet/<name> is accepted beside dbreads.ValidRegion, it calls clearCrashedScratch on its own TmpDir right after the root refusal and the hibernate-config check, before the self record and both empty-fleet returns (re-review item 9), and its publisher now writes through dbverify.PublishOver (the same Get-then-CAS Put of control/verify/<ref>.json, also parsing the record it reads to drop hosts a landing removed). No new read source.;rev3=census-ruling-member-backups-2a-landing;basis=R3 (#898): an empty CARLOS_REGION (a home-region box) is the home region and no longer refuses; the bracket matches records whose region is "" exactly. A malformed non-empty region still refuses (dbreads.ValidRegion, or a fleet/<name> placement). No read added or changed: the same refusals in the same order (root first, then self.json, then the region gate), the same stores. Package envelopes: internal/ops adds one read-only bounded ListPage (one key) of moves/<host>/ in the drill's own data bucket at each end of a host's bracket (R1), and the bracket compares the record's LastMove (R1b) and the record object's stamp (R1c: ETag, version id, last-modified) at open and close, all from the same record GET it already made (now provision.GetRecordStamped / GetSidecarRecordStamped); internal/provision adds those two read-only getters (decodeSidecarAt shared with GetSidecarRecord, no writer touched); internal/release adds GetStamped, S3Store.GetStamped and ObjectStamp; internal/lease adds VerifyReaderAt and a read-only litestream client (R2); internal/dbdoor adds PlanListed, the planner's listing as a list/open reader (R2). The drill runs as carlos and refuses root.;rev3=census-ruling-member-backups-drill-nodb;basis=the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The publisher now takes RunResults and drops the hosts the run left out (no database) from the fleet before dbverify.Merge, so its writes to control/verify/<ref>.json and <data>/monitor/verify.json carry fewer hosts; the summary lines count them. file:Open@2885 03149210c2fbd9448d73d34bfb247726e7458696101a201937615264b6307f52
-@legacy 78f8b28108a816547ade655f2f426c9247c902df1d8b847fcc25cd0a58bde573 internal/ops/hibernate_verify.go noDatabase legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-drill-nodb;basis=new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record, anything else keeps unverified/nothing_replicated. file:Lstat@82 ec15b0796c9978e8d576d127593d64aa0fd757db39e8edc61732b25f6038b44d
-internal/ops/ops.go hibernateRun.run legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-2a;basis=new, the drill (carlos ops hibernate-verify, user carlos): the verb's body, moved out of runHibernateVerify so a test can run it whole. First of all it refuses root (Root, from os.Geteuid() == 0 in runHibernateVerify): one log line, exit 1, before any monitor file is read, the deployment store opened or the registry opened (census round 1 P1, ls284: self.json, which the carlos user writes, names the record a run replaces). Then, as before: boxself.ReadFresh of self.json (refuses to run without a fresh record), dbreads.ValidRegion(CARLOS_REGION), openDeployStore, registry.Open(RegPath) (its +file:Open, the same registry the old body opened, closed after HibernatingHosts), dbverify.Load of this box's own control/verify/<ref>.json, selectHosts (verify-assign.json on a group box), MkdirTemp under the unit's on-disk TMPDIR, the drill, and dbverify.Publish to control/verify/<ref>.json only. Final fix wave (still refusing root first): the self.json read is retried every 15 s for up to 5 minutes (SelfWait, the same boxself.ReadFresh), a fleet box's CARLOS_REGION fleet/<name> is accepted beside dbreads.ValidRegion, it calls clearCrashedScratch on its own TmpDir right after the root refusal and the hibernate-config check, before the self record and both empty-fleet returns (re-review item 9), and its publisher now writes through dbverify.PublishOver (the same Get-then-CAS Put of control/verify/<ref>.json, also parsing the record it reads to drop hosts a landing removed). No new read source.;rev3=census-ruling-member-backups-2a-landing;basis=R3 (#898): an empty CARLOS_REGION (a home-region box) is the home region and no longer refuses; the bracket matches records whose region is "" exactly. A malformed non-empty region still refuses (dbreads.ValidRegion, or a fleet/<name> placement). No read added or changed: the same refusals in the same order (root first, then self.json, then the region gate), the same stores. Package envelopes: internal/ops adds one read-only bounded ListPage (one key) of moves/<host>/ in the drill's own data bucket at each end of a host's bracket (R1), and the bracket compares the record's LastMove (R1b) and the record object's stamp (R1c: ETag, version id, last-modified) at open and close, all from the same record GET it already made (now provision.GetRecordStamped / GetSidecarRecordStamped); internal/provision adds those two read-only getters (decodeSidecarAt shared with GetSidecarRecord, no writer touched); internal/release adds GetStamped, S3Store.GetStamped and ObjectStamp; internal/lease adds VerifyReaderAt and a read-only litestream client (R2); internal/dbdoor adds PlanListed, the planner's listing as a list/open reader (R2). The drill runs as carlos and refuses root.;rev3=census-ruling-member-backups-drill-nodb;basis=the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The publisher now takes RunResults and drops the hosts the run left out (no database) from the fleet before dbverify.Merge, so its writes to control/verify/<ref>.json and <data>/monitor/verify.json carry fewer hosts; the summary lines count them. file:Open@2885 03149210c2fbd9448d73d34bfb247726e7458696101a201937615264b6307f52
-internal/ops/hibernate_verify.go noDatabase legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-drill-nodb;basis=new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record, anything else keeps unverified/nothing_replicated. file:Lstat@82 ec15b0796c9978e8d576d127593d64aa0fd757db39e8edc61732b25f6038b44d
-@coverage internal/ops d1844c5b266faef0de4e0aa453bedb00f2be91b40163da27688b1a4d1469cb1e
+@legacy 7563fb19b087f4171b5704e5f15e66e68df8c6f4e0459761cd2ba2ec4ce5c0ca internal/ops/ops.go hibernateRun.run legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-2a;basis=new, the drill (carlos ops hibernate-verify, user carlos): the verb's body, moved out of runHibernateVerify so a test can run it whole. First of all it refuses root (Root, from os.Geteuid() == 0 in runHibernateVerify): one log line, exit 1, before any monitor file is read, the deployment store opened or the registry opened (census round 1 P1, ls284: self.json, which the carlos user writes, names the record a run replaces). Then, as before: boxself.ReadFresh of self.json (refuses to run without a fresh record), dbreads.ValidRegion(CARLOS_REGION), openDeployStore, registry.Open(RegPath) (its +file:Open, the same registry the old body opened, closed after HibernatingHosts), dbverify.Load of this box's own control/verify/<ref>.json, selectHosts (verify-assign.json on a group box), MkdirTemp under the unit's on-disk TMPDIR, the drill, and dbverify.Publish to control/verify/<ref>.json only. Final fix wave (still refusing root first): the self.json read is retried every 15 s for up to 5 minutes (SelfWait, the same boxself.ReadFresh), a fleet box's CARLOS_REGION fleet/<name> is accepted beside dbreads.ValidRegion, it calls clearCrashedScratch on its own TmpDir right after the root refusal and the hibernate-config check, before the self record and both empty-fleet returns (re-review item 9), and its publisher now writes through dbverify.PublishOver (the same Get-then-CAS Put of control/verify/<ref>.json, also parsing the record it reads to drop hosts a landing removed). No new read source.;rev3=census-ruling-member-backups-2a-landing;basis=R3 (#898): an empty CARLOS_REGION (a home-region box) is the home region and no longer refuses; the bracket matches records whose region is "" exactly. A malformed non-empty region still refuses (dbreads.ValidRegion, or a fleet/<name> placement). No read added or changed: the same refusals in the same order (root first, then self.json, then the region gate), the same stores. Package envelopes: internal/ops adds one read-only bounded ListPage (one key) of moves/<host>/ in the drill's own data bucket at each end of a host's bracket (R1), and the bracket compares the record's LastMove (R1b) and the record object's stamp (R1c: ETag, version id, last-modified) at open and close, all from the same record GET it already made (now provision.GetRecordStamped / GetSidecarRecordStamped); internal/provision adds those two read-only getters (decodeSidecarAt shared with GetSidecarRecord, no writer touched); internal/release adds GetStamped, S3Store.GetStamped and ObjectStamp; internal/lease adds VerifyReaderAt and a read-only litestream client (R2); internal/dbdoor adds PlanListed, the planner's listing as a list/open reader (R2). The drill runs as carlos and refuses root.;rev3=census-ruling-member-backups-drill-nodb;basis=the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The record it already loaded (dbverify.Load of its own control/verify/<ref>.json) is also handed to the drill as Drill.Prior, read only to refuse a leave-out for an incarnation that once had data. The publisher now takes RunResults and merges with dbverify.MergeLeftOut: hosts the run left out (no database) go to the record's additive left_out field instead of hosts, written by the same PublishOver Put of control/verify/<ref>.json and the same local copy <data>/monitor/verify.json; the summary lines count them. file:Open@2885 b413ed7f541a1c39401d4479deb999e35ce1977051eaa06be6660d99adb7a688
+@legacy eda29e15054dad56308472163a577413301cab4d12cf640768dc892458459f8a internal/ops/hibernate_verify.go noDatabase legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-drill-nodb;basis=new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only when the path is absolute (a relative or empty path answers false with no syscall); only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record only if, for an HA route, this box holds the lease (the same lockState read freshness makes) and the prior record shows no data for the incarnation; anything else keeps unverified/nothing_replicated. file:Lstat@107 1a971e6818d7e0478444b0c2fc6904e7b772fa22cbe90c86a20d11f521ceeda1
+internal/ops/ops.go hibernateRun.run legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-2a;basis=new, the drill (carlos ops hibernate-verify, user carlos): the verb's body, moved out of runHibernateVerify so a test can run it whole. First of all it refuses root (Root, from os.Geteuid() == 0 in runHibernateVerify): one log line, exit 1, before any monitor file is read, the deployment store opened or the registry opened (census round 1 P1, ls284: self.json, which the carlos user writes, names the record a run replaces). Then, as before: boxself.ReadFresh of self.json (refuses to run without a fresh record), dbreads.ValidRegion(CARLOS_REGION), openDeployStore, registry.Open(RegPath) (its +file:Open, the same registry the old body opened, closed after HibernatingHosts), dbverify.Load of this box's own control/verify/<ref>.json, selectHosts (verify-assign.json on a group box), MkdirTemp under the unit's on-disk TMPDIR, the drill, and dbverify.Publish to control/verify/<ref>.json only. Final fix wave (still refusing root first): the self.json read is retried every 15 s for up to 5 minutes (SelfWait, the same boxself.ReadFresh), a fleet box's CARLOS_REGION fleet/<name> is accepted beside dbreads.ValidRegion, it calls clearCrashedScratch on its own TmpDir right after the root refusal and the hibernate-config check, before the self record and both empty-fleet returns (re-review item 9), and its publisher now writes through dbverify.PublishOver (the same Get-then-CAS Put of control/verify/<ref>.json, also parsing the record it reads to drop hosts a landing removed). No new read source.;rev3=census-ruling-member-backups-2a-landing;basis=R3 (#898): an empty CARLOS_REGION (a home-region box) is the home region and no longer refuses; the bracket matches records whose region is "" exactly. A malformed non-empty region still refuses (dbreads.ValidRegion, or a fleet/<name> placement). No read added or changed: the same refusals in the same order (root first, then self.json, then the region gate), the same stores. Package envelopes: internal/ops adds one read-only bounded ListPage (one key) of moves/<host>/ in the drill's own data bucket at each end of a host's bracket (R1), and the bracket compares the record's LastMove (R1b) and the record object's stamp (R1c: ETag, version id, last-modified) at open and close, all from the same record GET it already made (now provision.GetRecordStamped / GetSidecarRecordStamped); internal/provision adds those two read-only getters (decodeSidecarAt shared with GetSidecarRecord, no writer touched); internal/release adds GetStamped, S3Store.GetStamped and ObjectStamp; internal/lease adds VerifyReaderAt and a read-only litestream client (R2); internal/dbdoor adds PlanListed, the planner's listing as a list/open reader (R2). The drill runs as carlos and refuses root.;rev3=census-ruling-member-backups-drill-nodb;basis=the drill (user carlos). No read added or changed, same refusals in the same order (root first, then self.json, then the region gate). One new exit: when openDeployStore answers errNoDeployStore (neither CARLOS_DEPLOYMENT_BUCKET nor CARLOS_DEPLOYMENT_DIR set) and Fleet (CARLOS_FLEET trimmed, read once in runHibernateVerify) is non-empty, it prints one line and returns 0 before the registry is opened, publishing nothing. Any other store error, and a platform box with no store, still log NOT RUN and return 1. The record it already loaded (dbverify.Load of its own control/verify/<ref>.json) is also handed to the drill as Drill.Prior, read only to refuse a leave-out for an incarnation that once had data. The publisher now takes RunResults and merges with dbverify.MergeLeftOut: hosts the run left out (no database) go to the record's additive left_out field instead of hosts, written by the same PublishOver Put of control/verify/<ref>.json and the same local copy <data>/monitor/verify.json; the summary lines count them. file:Open@2885 b413ed7f541a1c39401d4479deb999e35ce1977051eaa06be6660d99adb7a688
+internal/ops/hibernate_verify.go noDatabase legacy accepted-legacy accepted-legacy;rev3=census-ruling-member-backups-drill-nodb;basis=new, the drill (user carlos): os.Lstat of a hibernating route's DBPath from this box's own registry (the path HibernatingHosts already returns and freshness already reads through localFreshness), only when the path is absolute (a relative or empty path answers false with no syscall); only its error is looked at, nothing is opened or followed (lstat does not follow a final symlink). Called once per host, only in drillOne's final restoreNothing case after the identity bracket and the move staging closed clean; not-exist leaves the host out of the record only if, for an HA route, this box holds the lease (the same lockState read freshness makes) and the prior record shows no data for the incarnation; anything else keeps unverified/nothing_replicated. file:Lstat@107 1a971e6818d7e0478444b0c2fc6904e7b772fa22cbe90c86a20d11f521ceeda1
+@coverage internal/dbverify 35634dfea8793484ea365d297ccfc4811c9dfe3db997603bcf6e37b0c1dd6c34
+@coverage internal/ops 3e8cd3b2f4f713c2a4ae8ceba534e05df92bfd5ebcb9f1c6db27ebd085ebb80e