carlos / platform Public

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 ltx stream in 1 MiB chunks, the plan in the sealed summary). CARLOS_DB_PULL_MAX_BYTES can 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.

Commits 13
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity