db-region-forward spec rev 7: the pull's cap and chunk size, measured on dev
Three 64 MB forwarded queries on dev (2026-10-23): box 5.74 to 5.87 MB/s, console 3.94 to 4.18 MB/s. The rule floor(R x 15 min / 256 MiB) x 256 MiB gives 3.25 GiB at R = 3.94 MB/s, above the 2 GiB ceiling, so the cap is 2 GiB; the pull's chunk is 1 MiB. Paul's confirmation of the cap is owed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+7
−1
docs/superpowers/specs/2026-10-22-db-region-forward-design.md+7 −1
diff --git a/docs/superpowers/specs/2026-10-22-db-region-forward-design.md b/docs/superpowers/specs/2026-10-22-db-region-forward-design.md| index 23500f4fe..238a09614 100644 |
| --- a/docs/superpowers/specs/2026-10-22-db-region-forward-design.md |
| +++ b/docs/superpowers/specs/2026-10-22-db-region-forward-design.md |
| @@ -1,6 +1,8 @@ |
| # `carlos db` for instances whose data lives in another region |
| -**Status:** rev 6, 2026-10-22. Rev 6 changes no mechanism: it states four |
| +**Status:** rev 7, 2026-10-23. Rev 7 (plan 3, 2026-10-23): the pull's cap and chunk size, from a measurement on dev |
| +(§5.7); the request bound is unchanged. |
| +Rev 6, 2026-10-22, changes no mechanism: it states four |
| things the plan review (`CODEX-FINDINGS-DB-REGION-FORWARD-PLANS.md`) found |
| the plans had to decide, each marked **(plan review N)**: what a result |
| names when a chunk cannot be confirmed (§5.4, 9), a box's `cancel` read |
| @@ -482,6 +484,8 @@ the output. The CLI maps codes to today's sentences where one exists |
| | Disk | a reservation per read (below) | agent | |
| | Output | 64 MiB (`runs.MaxOutputBytes`, written "64 MB" in copy as the run's docs do); the read ends `output-cap` | agent; the CLI's buffer is bounded by the same number | |
| | Chunk | 256 KiB or 1 s, whichever comes first (`runs.ChunkBytes`, `runs.ChunkEvery`) | agent | |
| +| Pull | at most 2 GiB of planned LTX files (measured on dev, 2026-10-23: relay rate 3.94 MB/s, the slowest of three runs; the rule gives 3.25 GiB, above the 2 GiB ceiling); `CARLOS_DB_PULL_MAX_BYTES` on a box can only lower it; the read ends `too-large` | agent, from the plan, before any byte moves; the CLI's spool is bounded by the same number | |
| +| Pull chunk | 1 MiB or 1 s, whichever comes first | agent | |
| | Reads per box | 2, plus one connection kept for the readiness probe (`MaxConnections=3`) | agent, systemd | |
| | Open reads per person | 2 | console, held by the open request (J5) | |
| | Open reads per console | 16 | console, held by the open request, 429 with `Retry-After` | |
| @@ -1179,6 +1183,8 @@ All five are now Paul's. |
| 2. **Limits stand.** 2 GiB restored, 5 minutes, 64 MB of rows, two reads per |
| box. Real database sizes on the flagship are still unmeasured; plan 2's |
| dev check reports them. |
| + The pull's cap, 2 GiB of planned LTX files (§5.7, rev 7, measured on dev |
| + 2026-10-23), is put to Paul as a limit: **pending his confirmation.** |
| 3. **Audit.** The row records the SQL's length and a SHA-256 prefix, not its |
| text (§9.3). The SQL itself rests in the request object until expiry. |
| 4. **Copy casing.** New strings use Paul's voice rule: lower case after a |