db-region-forward-3
db region forward, plan 3: carlos db pull and pull --at for an instance in another region (spec rev 7, plan docs/superpowers/plans/2026-10-22-db-region-forward-plan-3-pull.md). NOT for merge yet: copy and census rulings owed.
What it adds
- Box: the worker's hold mode (receive, verify each LTX file's checksums, hold, send back after check B); the agent's pull (cap on planned LTX bytes, reservation of the LTX bytes only, the
ltxstream in 1 MiB chunks, the plan in the sealed summary).CARLOS_DB_PULL_MAX_BYTEScan only lower the cap. - Console: the forward marker offers
pull; the reads route admits a pull with no SQL; audit DBF-19/DBF-20. - CLI: spools sealed chunks to a private 0700 dir, checks the file list whole, the count and SHA-256, restores locally with dbdoor.RestoreLocal, saves with today's copyOut; removes the dir on every path. A query-only console still gets DBF-8.
Pull cap: 2 GiB, from a dev measurement 2026-10-23 (relay 3.94 MB/s at worst; the rule gives 3.25 GiB, clamped to 2 GiB). Paul's confirmation owed (spec §16 ruling 2).
Tests: unit + production-wired e2e through the real CLI binary and console (parity with in-region pull, byte-identical copies, newest and --at; bad hash; SIGINT; query-only console); MinIO pull in CI's minio step; root runner TestRootDBReadPullThroughTheInstalledUnits PASS (run 20261023T205229-f4f235). Mutation table: all 13 plan rows red.
Copy: DBF-17, 18, 19, 20, 24 wired PENDING (dbForwardCopyWired); DBF-23 (docs) pending and not written. Forwarding is ON on both deployments, so this must not merge before a Luna pass. Census: overlay plan14-root-reads-db-region-forward-3 (PROPOSED), note docs/superpowers/notes/census-proposal-db-region-forward-3.md.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev pushed 251ef844a db-region-forward-3: census-ruling-db-region-forward-3 recorded (accepted in full)
- claude agent, operated by paul@keymail.dev pushed 6af307b52 CI re-run: internal/host TestInstallChannelPolicyRefusals flaked (#349, the system-apply lock; untouched here)
- claude agent, operated by paul@keymail.dev pushed 8d7252d5b db forward round 1 (Astra): LTX headers match their coordinates; a cancelled local restore stops
- claude agent, operated by paul@keymail.dev pushed b70bc32e9 db forward: the pull rows, approved by Luna; the CLI page (DBF-23)
- claude agent, operated by paul@keymail.dev pushed cc77ca956 db forward plan 3: census overlay (PROPOSED), 9B8 layer, test weights
- claude agent, operated by paul@keymail.dev pushed 8fc3789fb db forward: the pull's parity, bad answer, interrupt, query-only console and MinIO tests
- claude agent, operated by paul@keymail.dev pushed a5164cd96 carlos db pull: the forwarded pull, spooled, checked, restored locally (DBF-17, DBF-18, DBF-24, pending)
- claude agent, operated by paul@keymail.dev pushed a32088c67 console: forward a pull, and audit it (DBF-19, DBF-20, pending)
- claude agent, operated by paul@keymail.dev pushed 608c4dabf dbreads: the agent's pull: its cap, its reservation, the ltx stream and the file list
- claude agent, operated by paul@keymail.dev pushed cd5992500 dbreads: the worker's hold mode for a pull: verify, hold, send back after check B
- claude agent, operated by paul@keymail.dev pushed 7a6b800cb dbreads: pull in the envelope, the pull's cap and chunk size
- claude agent, operated by paul@keymail.dev pushed 442b4f390 db forward: the pull rows, pending a copy review
- claude agent, operated by paul@keymail.dev pushed bc3e611e6 db-region-forward spec rev 7: the pull's cap and chunk size, measured on dev