carlos / platform Public

db forward: the pull rows, pending a copy review

DBF-17 to DBF-20, DBF-23 and DBF-24 enter the record pending, drafted in
the voice of Luna's approved plan 2 rows (DBF-17 avoids "replica", as
Luna's DBF-30 rewrite did; DBF-23 is built on the approved DBF-30 with the
measured 2 GB pull cap). The gate's inventory names them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 442b4f390ddd67edab43ea5e50534fa2fcced04b parent bc3e611
2 files changed, +24 −6
  • approved_db_forward_copy_test.go +8 −4
  • docs/superpowers/plans/2026-10-22-db-region-forward-copy.md +16 −2
diff --git a/approved_db_forward_copy_test.go b/approved_db_forward_copy_test.go
index fc172bf0e..b2ac42826 100644
--- a/approved_db_forward_copy_test.go
+++ b/approved_db_forward_copy_test.go
@@ -24,11 +24,15 @@ const dbForwardCopyRecordPath = "docs/superpowers/plans/2026-10-22-db-region-for
var dbForwardCopyIDPattern = regexp.MustCompile(`^DBF-[0-9]+$`)
-// dbForwardCopyIDs is the record's inventory, pinned: DBF-1 to DBF-16,
-// DBF-21, DBF-22, DBF-30, DBF-31 and DBF-32. Plan 3 adds its pull rows here.
+// dbForwardCopyIDs is the record's inventory, pinned: DBF-1 to DBF-20,
+// DBF-23 and DBF-24 (plan 3's pull rows among them), then DBF-21, DBF-22,
+// DBF-30, DBF-31 and DBF-32.
var dbForwardCopyIDs = func() []string {
- ids := make([]string, 0, 21)
- for i := 1; i <= 16; i++ {
+ ids := make([]string, 0, 27)
+ for i := 1; i <= 24; i++ {
+ if i == 21 || i == 22 {
+ continue // appended below, in the record's order
+ }
ids = append(ids, "DBF-"+strconv.Itoa(i))
}
return append(ids, "DBF-21", "DBF-22", "DBF-30", "DBF-31", "DBF-32")
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 8c7a8e5d1..ad96c987f 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
@@ -24,8 +24,8 @@ The rules:
`\n\n`. In `docs/site/cli.md` each paragraph of a row is one line.
- No em dashes. A full stop and a new sentence instead, continuing in lower
case. Docs prose keeps the CLI page's sentence case.
-- Ids are not renumbered. DBF-17 to DBF-20 and DBF-23 to DBF-29 are kept
- for plan 3's pull rows.
+- Ids are not renumbered. DBF-17 to DBF-20, DBF-23 and DBF-24 are plan 3's
+ pull rows; DBF-25 to DBF-29 stay free.
Placeholders: `<host>` the instance's hostname; `<region>` a placement code
such as uk; `<size>` and `<cap>` byte sizes as the CLI prints them; `<n>` a
@@ -61,6 +61,20 @@ RFC 3339 time.
| DBF-16 | dbforward.go | <host> is moving between regions. read its database once the move has finished. | approved |
| DBF-32 | dbforward.go | this query cannot be sent to region <region>, because it contains invalid UTF-8 or the replacement character U+FFFD. fix the query and run it again. | approved |
+## 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.
+
+| 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 |
+
## Docs
| id | file | text | status |