db-region-forward-2
db region forward, plan 2: console and CLI for carlos db query and query --at
Plan docs/superpowers/plans/2026-10-22-db-region-forward-plan-2-query.md, spec rev 6. Dark behind CARLOS_DB_FORWARD (off unless exactly 1; off answers byte-identically to main).
OWED after merge
- Task 1, copy review: every DBF sentence in code is the copy record's PENDING text, wired only behind CARLOSDBFORWARD (the moves D13 rule) and pinned by the copy gate's
dbForwardCopyWired. The review moves each id todbForwardCopyBuiltwith Paul's edits. Do not turn CARLOSDBFORWARD on anywhere before it. - Task 9, DBF-30 (docs/site/cli.md): not written; waits for the copy review.
- The
db-reads/lifecycle rule is prepared only (docs/superpowers/notes/db-reads-lifecycle-approval.md); it needs Paul's approval and must be applied before any console forwards. Then the dev roll and LIST-rate check (plan step 9).
What it adds
The list door's additive forward marker; POST .../db/{host}/reads (gate once, admission held by the request, audit first, signed request and queue entry, serial on the request's context, NDJSON relay with result before listing, flushed lines, cancel on every end); console.NewHTTPServer; the CLI's buffered, checked forwarded query; the deployment-buckets lifecycle rules.
Review and census
Astra round 1 BLOCKED d094a4a0 (body tail read under the extended deadline; serial written after cancel); both fixed with failing-first tests; Astra round 2 ACCEPTED 68281cef. Census: census-ruling-db-region-forward-2, accepted in full on #280; overlay loads after s3-change-index; seal bd4cc1909225cd574c2c609f0cd02177076ddb5c1476d9cf5e178be05acccae1.
Tests
T1/T16 against MinIO in CI; T6, T7 (edge, backhaul, and the unscaled 21-minute read once: PASS), T8, T11, T14, T15, T17, T18; 31 mutations all red (table in the build report). Flakes in untouched packages filed as #348 and #349.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev pushed 9b36607da census: db-region-forward-2 accepted in full (census-ruling-db-region-forward-2), seal bd4cc190
- claude agent, operated by paul@keymail.dev pushed 68281cefb ci: re-run (internal/activator TestAWorkerFallbackWithoutOwnershipSpawnsNothing failed once in CI at 9dc16178; untouched package, 20 of 20 locally)
- claude agent, operated by paul@keymail.dev pushed 9dc16178d Merge remote-tracking branch 'origin/main' into db-region-forward-2
- claude agent, operated by paul@keymail.dev pushed a7dca8364 census: db-region-forward-2 after Astra round 1 (readDBReadBody, BumpSerial, envelopes, seal 087098a2)
- claude agent, operated by paul@keymail.dev pushed 803e72257 db forward: Astra round 1: the reads route reads its body to EOF under the admission deadline; the serial bump writes nothing once its caller has ended
- claude agent, operated by paul@keymail.dev pushed d094a4a0e test weights: the forwarded read's console and root tests of a second or more (plan 2, Task 14)
- claude agent, operated by paul@keymail.dev pushed 3bbf3623d console: each tenant's forwarded read gets its own rows, a gate witness for the prefix mutation (plan 2, Task 14)
- claude agent, operated by paul@keymail.dev pushed 753f47d8f console: the closed-door walk counts the forwarded db read (64 doors) (plan 2, CI fix)
- claude agent, operated by paul@keymail.dev pushed 5857db849 console: the reads route joins the people-only doors TestEveryCLIDoorNamesItsRoles pins (plan 2, CI fix)
- claude agent, operated by paul@keymail.dev pushed 813f1ef5d census: db-region-forward-2 overlay (PROPOSED), 9B8 entries (plan 2, Task 14)
- claude agent, operated by paul@keymail.dev pushed 425a168e6 deployment-buckets: db-reads/ expires (J4, T17); the approval plan for applying it (plan 2, Task 13)
- claude agent, operated by paul@keymail.dev pushed 276d9e0ef db forward: T1 and T16 against MinIO with per-region credentials (plan 2, Task 12)
- claude agent, operated by paul@keymail.dev pushed 7b8720a20 db forward: T7 through the backhaul hop with the real CLI and console (plan 2, Task 11)
- claude agent, operated by paul@keymail.dev pushed 2a943e828 db forward: T6, T7, T8 and T11 through the real CLI binary and console (plan 2, Task 10)
- claude agent, operated by paul@keymail.dev pushed dbc3bc395 carlos db query: the forwarded read, buffered and checked before anything prints (plan 2, Task 8)
- claude agent, operated by paul@keymail.dev pushed f4271e7c9 console: the reads route streams the read: result before listing, flushed lines, cancel on every end (plan 2, Task 7)
- claude agent, operated by paul@keymail.dev pushed 67e39c018 console: the reads route's gate and admission (DBF-9, DBF-10, DBF-21, DBF-22 wired, pending copy) (plan 2, Task 6)
- claude agent, operated by paul@keymail.dev pushed 23ae5c832 console: the db door marks a capable cross-region instance (DBF-1, DBF-2, DBF-14 wired, pending copy) (plan 2, Task 5)
- claude agent, operated by paul@keymail.dev pushed 673d795cb console: the forwarded read's evidence rule (T14) (plan 2, Task 4)
- claude agent, operated by paul@keymail.dev pushed 1e1f08cb5 console: CARLOS_DB_FORWARD, the root signer check, the read limits, NewHTTPServer (plan 2, Task 3)
- claude agent, operated by paul@keymail.dev pushed a3a1d2fcd db forward: the reads route's lines and the list door's additive marker (plan 2, Task 2)