| new file mode 100644 |
| index 000000000..9f69afe9e |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv |
| @@ -0,0 +1,20 @@ |
| +# Census overlay db-region-forward-3 (db region forward plan 3: carlos db pull and pull --at for an instance in another region; spec docs/superpowers/specs/2026-10-22-db-region-forward-design.md rev 7, §6, §13), loaded LAST in TestPlan14RootReadCensus, after static-redirects, the overlay main loads last at 0d9e81dc. Every row carries rev3=PROPOSED-db-region-forward-3; the ruling is asked of the census owner on #280 (docs/superpowers/notes/census-proposal-db-region-forward-3.md). |
| +# The scanner names two new worker units (holdAndSend, verifyLTX: the pull's hold mode, inside the db-read worker's sandbox, over the files the agent sent), three new CLI units (dbPullForward, fileSink.chunk, openDBPull: the pull's spool, its file replica, as the person), and two changed legacy units (ServeWorker, dbQueryForward), re-frozen at their accepted dispositions with plan 3's change appended. No agent, console or host unit is named: the agent's pull, the console's forward of it and CARLOS_DB_PULL_MAX_BYTES add no read the scanner sees. Frozen declarations are added, so the seal moves; static-redirects' is checked first. Envelopes . (the CLI), internal/console, internal/dbreads and internal/host are re-pinned. |
| +@legacy 02f174af82d98de108a656a2261b87f92eadeed7fce6a5d0ccfac036de88c31f internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added file:Stat@2768 d4635af9ef7c0ec6f66c5f8a3332ceb652c9215f2fc611d7f885cb661e853f11 |
| +internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added file:Stat@2768 d4635af9ef7c0ec6f66c5f8a3332ceb652c9215f2fc611d7f885cb661e853f11 |
| +@legacy 68e35c406e1749a6de5685dbea327c426042ed7ffb9866e9e80ed03f87d4f5c3 internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root file:Open@934 4ef666b878d68adb0bcd17f359a4e4142681618ee5836d495f3d266e9b4d1e23 |
| +internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root file:Open@934 4ef666b878d68adb0bcd17f359a4e4142681618ee5836d495f3d266e9b4d1e23 |
| +@legacy 35856d353c251596e131cc5a7fe821231d0fa5ea3201f83200120b5a0a9b21d6 internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch file:Open@47 46773a72349f2d6d7c8935c252e9946ee67bb7563d33bbfd714aac52c6dbf66b |
| +internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch file:Open@47 46773a72349f2d6d7c8935c252e9946ee67bb7563d33bbfd714aac52c6dbf66b |
| +@legacy 582d4130f874a145585e8c7abee8c4ead54293b5a32e4bacb1562895f4433fcc dbforward.go dbQueryForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-2;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, reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence; decides nothing for root;rev3=PROPOSED-db-region-forward-3;basis=keeps its chunks in a memSink and opens them with openDBForward after readDBForward returns the result, the same bytes and checks as before; the same bounded refusal read; no read added file:ReadAll@1371 757573f0b60a4b2e4eafdef63b4d1157363768dcbc9354e1317f52e886394dc8 |
| +dbforward.go dbQueryForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-2;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, reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence; decides nothing for root;rev3=PROPOSED-db-region-forward-3;basis=keeps its chunks in a memSink and opens them with openDBForward after readDBForward returns the result, the same bytes and checks as before; the same bounded refusal read; no read added file:ReadAll@1371 757573f0b60a4b2e4eafdef63b4d1157363768dcbc9354e1317f52e886394dc8 |
| +@legacy f4ce27cf5207cac6b448fcd23923bda9694cafd2055e26167764547d4a057b88 dbforward.go dbPullForward 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 at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence, as dbQueryForward does; creates the pull's one private 0700 directory under the system temp dir and removes it on every path but success, where db.go's dbPull removes it after copyOut; decides nothing for root file:ReadAll@939 9f9d794b2d34a5613098f39edc8aa2e1d572a95ef41baa6c621173b3911833d2 |
| +dbforward.go dbPullForward 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 at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence, as dbQueryForward does; creates the pull's one private 0700 directory under the system temp dir and removes it on every path but success, where db.go's dbPull removes it after copyOut; decides nothing for root file:ReadAll@939 9f9d794b2d34a5613098f39edc8aa2e1d572a95ef41baa6c621173b3911833d2 |
| +@legacy b08da594b8cc5ffff9f892eb77f448c0b150afa83fa88ff0a2987ba0d1c83343 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 |
| +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 internal/dbreads c1c9a9ab5d1dcf7962f94328fd48bca56208f1342f2689f61f038001b3a7ce9d |
| +@coverage internal/host 218f8d6a50eb852a22424236fa89427b4b5509e08fd956ce778d95bc5a63c9a0 |