carlos / platform Public

db forward: the pull rows, approved by Luna; the CLI page (DBF-23)

Luna approved DBF-18, DBF-19, DBF-20 and DBF-24 as drafted and rewrote
DBF-17 and DBF-23 (2026-10-23); applied verbatim. All six are built and
none is wired pending. DBF-23 replaces DBF-30's two paragraphs on the
carlos db section of docs/site/cli.md, so the page says once what a
forwarded query and pull do; DBF-30 stays approved in the record and
leaves the built list. Census: the . and internal/console envelopes
re-pinned in this branch's overlay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev b70bc32e95355def13529638ed35ba1bcc61f61f parent cc77ca9
6 files changed, +22 −25
  • approved_db_forward_copy_test.go +6 −8
  • dbforward.go +2 −2
  • docs/site/cli.md +2 −2
  • docs/superpowers/plans/2026-10-22-db-region-forward-copy.md +8 −8
  • internal/console/apidbforward.go +2 −3
  • internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv +2 −2

CI passed — run details

diff --git a/approved_db_forward_copy_test.go b/approved_db_forward_copy_test.go
index 0ff969936..9eebffc01 100644
--- a/approved_db_forward_copy_test.go
+++ b/approved_db_forward_copy_test.go
@@ -44,7 +44,9 @@ var dbForwardCopyIDs = func() []string {
var dbForwardCopyBuilt = []string{
"DBF-1", "DBF-2", "DBF-14", "DBF-9", "DBF-10", "DBF-21", "DBF-22", // the console
"DBF-3", "DBF-4", "DBF-5", "DBF-6", "DBF-7", "DBF-8", "DBF-11", "DBF-12", "DBF-13", "DBF-15", "DBF-16", "DBF-32", // the CLI
- "DBF-30", "DBF-31", // docs/site/cli.md
+ "DBF-19", "DBF-20", // the console's pull audit details (plan 3)
+ "DBF-17", "DBF-18", "DBF-24", // the CLI's pull sentences (plan 3)
+ "DBF-23", "DBF-31", // docs/site/cli.md (DBF-23 replaced DBF-30 there)
}
// dbForwardCopyWired is every id whose PENDING text the code already
@@ -57,13 +59,9 @@ var dbForwardCopyBuilt = []string{
// that has not turned forwarding on. The copy review moves each id from here
// to dbForwardCopyBuilt, applying Paul's edits in the same commit. Docs rows
// are public the moment the site syncs, so they are never wired. Luna
-// approved every plan 2 row on 2026-10-23. Plan 3's pull rows are wired
-// pending a Luna pass: forwarding is on for both deployments, so this
-// branch must not land before they are reviewed.
-var dbForwardCopyWired = []string{
- "DBF-19", "DBF-20", // the console's pull audit details
- "DBF-17", "DBF-18", "DBF-24", // the CLI's pull sentences
-}
+// approved every plan 2 row and every plan 3 pull row on 2026-10-23, so the
+// list is empty and every row is built.
+var dbForwardCopyWired = []string{}
func mustParseDBForwardRecord(t *testing.T) []copyRow {
t.Helper()
diff --git a/dbforward.go b/dbforward.go
index 61b4a6bdf..77fdc5e4f 100644
--- a/dbforward.go
+++ b/dbforward.go
@@ -54,9 +54,9 @@ const (
)
// The forwarded pull's CLI sentences (copy record DBF-17, DBF-18, DBF-24),
-// pending a copy review: wired through dbForwardCopyWired.
+// approved by Luna on 2026-10-23.
const (
- dbfPullTooLarge = "the database for %s takes %s to fetch. carlos db pull can fetch at most %s from region %s." // DBF-17
+ dbfPullTooLarge = "the database for %s has %s of files to fetch. carlos db pull can fetch at most %s from region %s." // DBF-17
dbfFetching = "fetching a copy of %s's database from region %s." // DBF-18
dbfPullNoRoom = "the server in region %s does not have room to prepare a copy of %s's database right now. try again later." // DBF-24
)
diff --git a/docs/site/cli.md b/docs/site/cli.md
index a7b3f8e27..0a8e384f2 100644
--- a/docs/site/cli.md
+++ b/docs/site/cli.md
@@ -574,9 +574,9 @@ own error, `attempt to write a readonly database`. That is on purpose.
Changing a copy would change nothing on the instance, and a command that
seemed to succeed would say otherwise.
-If the app has more than one instance, name one with `--instance`. Only sleeping instances have a database copy. An instance on your own fleet or in a pool cannot be read this way, and the command says which.
+If the app has more than one instance, name one with `--instance`. Only instances that sleep have a database copy. An instance on your own fleet or in a pool cannot be read this way, and the command says which.
-When an instance keeps its data in a different region from the console's, `carlos db query` runs in that region. A server there restores the copy, runs your query and sends back only the rows. The rows are encrypted for your terminal on the way, so nothing in between can read them, and nothing is printed until all of them have arrived and been checked. In that region, the copy can be at most 2 GB once restored, the query runs for at most 5 minutes, and the rows can total at most 64 MB. `carlos db pull` cannot fetch a copy from another region yet.
+When an instance keeps its data in a different region from the console's, `carlos db query` runs in that region. A server there restores the copy, runs your query and sends back only the rows. `carlos db pull` fetches the copy's files from there and restores them on your machine. Both are encrypted for your terminal on the way, so nothing in between can read them, and nothing is printed or saved until all of it has arrived and been checked. In that region, a query's copy can be at most 2 GB once restored, the query runs for at most 5 minutes, and the rows can total at most 64 MB. A pull can fetch at most 2 GB.
### carlos run
diff --git a/docs/superpowers/plans/2026-10-22-db-region-forward-copy.md b/docs/superpowers/plans/2026-10-22-db-region-forward-copy.md
index ad96c987f..a4a1db96c 100644
--- a/docs/superpowers/plans/2026-10-22-db-region-forward-copy.md
+++ b/docs/superpowers/plans/2026-10-22-db-region-forward-copy.md
@@ -63,17 +63,17 @@ RFC 3339 time.
## Pull (plan 3)
-Drafted 2026-10-23 for a Luna pass, in the voice of the approved plan 2 rows (DBF-4, DBF-5, DBF-11, DBF-21, DBF-22,
-DBF-30). Code may carry a pending row's text only through `dbForwardCopyWired`; DBF-23 is docs and waits.
+Approved by Luna on 2026-10-23: DBF-18, DBF-19, DBF-20 and DBF-24 as drafted, DBF-17 and DBF-23 rewritten.
+DBF-23 replaces DBF-30 on the CLI page; DBF-30 stays here, approved, and leaves the built list.
| id | file | text | status |
|---|---|---|---|
-| DBF-17 | dbforward.go | the database for <host> takes <size> to fetch. carlos db pull can fetch at most <cap> from region <region>. | pending |
-| DBF-18 | dbforward.go | fetching a copy of <host>'s database from region <region>. | pending |
-| DBF-19 | internal/console/apidbforward.go | forwarded a database pull to region <region> (cli) | pending |
-| DBF-20 | internal/console/apidbforward.go | forwarded a database pull to region <region>, as of <time> (cli) | pending |
-| DBF-23 | docs/site/cli.md | If the app has more than one instance, name one with `--instance`. Only sleeping instances have a database copy. An instance on your own fleet or in a pool cannot be read this way, and the command says which.\n\nWhen an instance keeps its data in a different region from the console's, `carlos db query` runs in that region. A server there restores the copy, runs your query and sends back only the rows. `carlos db pull` fetches the copy's files from there and restores them on your machine. Both are encrypted for your terminal on the way, so nothing in between can read them, and nothing is printed or saved until all of it has arrived and been checked. In that region, a query's copy can be at most 2 GB once restored, the query runs for at most 5 minutes, and the rows can total at most 64 MB. A pull can fetch at most 2 GB. | pending |
-| DBF-24 | dbforward.go | the server in region <region> does not have room to prepare a copy of <host>'s database right now. try again later. | pending |
+| DBF-17 | dbforward.go | the database for <host> has <size> of files to fetch. carlos db pull can fetch at most <cap> from region <region>. | approved |
+| DBF-18 | dbforward.go | fetching a copy of <host>'s database from region <region>. | approved |
+| DBF-19 | internal/console/apidbforward.go | forwarded a database pull to region <region> (cli) | approved |
+| DBF-20 | internal/console/apidbforward.go | forwarded a database pull to region <region>, as of <time> (cli) | approved |
+| DBF-23 | docs/site/cli.md | If the app has more than one instance, name one with `--instance`. Only instances that sleep have a database copy. An instance on your own fleet or in a pool cannot be read this way, and the command says which.\n\nWhen an instance keeps its data in a different region from the console's, `carlos db query` runs in that region. A server there restores the copy, runs your query and sends back only the rows. `carlos db pull` fetches the copy's files from there and restores them on your machine. Both are encrypted for your terminal on the way, so nothing in between can read them, and nothing is printed or saved until all of it has arrived and been checked. In that region, a query's copy can be at most 2 GB once restored, the query runs for at most 5 minutes, and the rows can total at most 64 MB. A pull can fetch at most 2 GB. | approved |
+| DBF-24 | dbforward.go | the server in region <region> does not have room to prepare a copy of <host>'s database right now. try again later. | approved |
## Docs
diff --git a/internal/console/apidbforward.go b/internal/console/apidbforward.go
index d1bc5cd01..3b6a66777 100644
--- a/internal/console/apidbforward.go
+++ b/internal/console/apidbforward.go
@@ -157,9 +157,8 @@ const (
dbfAuditAt = "forwarded a database query to region %s, as of %s. the query was %d bytes, sha256 %s (cli)"
)
-// The pull's audit details (copy record DBF-19, DBF-20), pending a copy
-// review: wired through dbForwardCopyWired, reached only from a console
-// with CARLOS_DB_FORWARD on.
+// The pull's audit details (copy record DBF-19, DBF-20), approved by Luna
+// on 2026-10-23.
const (
dbfAuditPull = "forwarded a database pull to region %s (cli)"
dbfAuditPullAt = "forwarded a database pull to region %s, as of %s (cli)"
diff --git a/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv b/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv
index 9f69afe9e..f19a8acc7 100644
--- a/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv
+++ b/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv
@@ -14,7 +14,7 @@ dbforward.go dbPullForward legacy accepted-legacy accepted-legacy;rev3=PROPOSED-
dbforward.go fileSink.chunk legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), reads back one sealed chunk it spooled itself, 0600 in the pull's private 0700 directory under the system temp dir, each admitted by the chunk bound before it was written; the bytes open only with the CLI's own ephemeral key; decides nothing for root file:ReadFile@58 6a1f96c3ac25abc41412246cb50d6412d61fd91fcd1e7ba9d8ef6be6c97d6e8b
@legacy 13ff116a4e18fdfd46205a5661add0c97f459e71fdfae2f4f0b936c34a4d6d51 dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root file:OpenFile@1714 e61aef9e9dba0dff860c5ba8807727ac02ac91860efbf56e8800a1e37bc94465
dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root file:OpenFile@1714 e61aef9e9dba0dff860c5ba8807727ac02ac91860efbf56e8800a1e37bc94465
-@coverage . b50e1f75fab969ae1886b77628bf3dab8bd0640fcd2fbfb0e864626f7b86de64
-@coverage internal/console 26cf0c3057f4df152cb5064ba192263a5d9604f7c17614e4e422927b2bafae09
+@coverage . ece52b96376c91d2cba8af2c5d89be8534879472d54f266a59f57db32e1aab12
+@coverage internal/console a09cd3a5db072ff86040580fb038d723c9a114e72a15a39db688bd2523f6bcb4
@coverage internal/dbreads c1c9a9ab5d1dcf7962f94328fd48bca56208f1342f2689f61f038001b3a7ce9d
@coverage internal/host 218f8d6a50eb852a22424236fa89427b4b5509e08fd956ce778d95bc5a63c9a0