census: proposal storedoor-stream-get and record-write inventory
5 files changed,
+41
−2
docs/superpowers/notes/census-proposal-storedoor-stream-get.md+25 −0internal/provision/instance_egress_sizes_census_test.go+2 −1internal/provision/plan9_b8_census_test.go+2 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-storedoor-stream-get.tsv+11 −0
diff --git a/docs/superpowers/notes/census-proposal-storedoor-stream-get.md b/docs/superpowers/notes/census-proposal-storedoor-stream-get.md| new file mode 100644 |
| index 000000000..b63901e35 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-storedoor-stream-get.md |
| @@ -0,0 +1,25 @@ |
| +# Census approval: storedoor-stream-get |
| + |
| +Ruling `census-ruling-storedoor-stream-get`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/edge/storedoor.go` `storeDoor.serveObject` | body | unchanged (1) | GET streams through OpenObjectStreaming via openGET, with concurrency limits and Content-Length when known; no read added. The same bounded PUT ReadAll and store.Put remain unchanged. | |
| +| `internal/release/store.go` `S3Store.Open` | body | unchanged (1) | Wraps the existing GetObject response body in sizedObjectBody, exposing ContentLength through Size() or -1 when absent; preserves ETag, close/read behavior and missing-key mapping. No additional request or read added. | |
| + |
| +Envelopes re-pinned: `internal/edge`, `internal/release`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/edge/storedoor.go` `storeDoor.serveObject`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 1 Task 5: a GET that passed aclRead and whose store answer is os.ErrNotExist sets Carlos-Store-Absent: 1 on the same 404 when appPolicyRead grants the key (exactly control/app-policy/<the box's own sqid>/<app>.json); every other 404 is unchanged. The same one ReadAll site (a PUT body under maxStoreBodyBytes), offset moved; no read added. |
| +- `internal/release/store.go` `S3Store.Open`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- new `internal/edge/storedoor.go:storeDoor.openGET`: reads +file:Stat; written legacy, accepted-legacy, frozen |
| + |
| +Seal: `66a5df05f18f70c3162ad05aa316c1e69c0f053d54f8b682262c266d6aa50772` → `62b550b9398c40c2eabe4d3869acf0e1ec87a25e42fffca40affeef31adeac81`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-storedoor-stream-get.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/provision/instance_egress_sizes_census_test.go b/internal/provision/instance_egress_sizes_census_test.go| index 2504c15a1..c6ebec495 100644 |
| --- a/internal/provision/instance_egress_sizes_census_test.go |
| +++ b/internal/provision/instance_egress_sizes_census_test.go |
| @@ -43,7 +43,8 @@ func instanceEgressSizesWriteCensusInventory() []censusEntry { |
| replacements := []censusEntry{ |
| {"internal/console/apiinstances.go", "Server.handleAPIInstanceList", "key-site", "lit:instances", "0e4720ae3420f8a20e07ac5c3e0b2a2aa929050826dd8103195875f1cd6b0691"}, |
| {"internal/console/authcli.go", "Server.registerCLIRoutes", "key-site", "lit:instances,lit:sidecars", "bfbc8c69caa3f5c3b0e6bef1dea0cac50ac72081ca33d78cc14e452780e369f1"}, |
| - {"internal/edge/storedoor.go", "storeDoor.serveObject", "record-transport", "sel:Put", "01ca88042b0ddf07001b48da6a39d1aa1a5c2534f1dca71f1bfc3b0c78cbeaec"}, |
| + // Re-digested for storedoor-stream-get: GET streams through openGET with concurrency limits; the same ACL- and precondition-gated Put and bounded PUT body read are unchanged. |
| + {"internal/edge/storedoor.go", "storeDoor.serveObject", "record-transport", "sel:Put", "b449adb2812961af290c327cca8a43e0e92029acaafc2b63be20cb5b0d9b0196"}, |
| {"internal/hostops/mutation_classifier.go", "ClassifyMutation", "reference", "str:Put", "d6c092d22943d0db17abed14cb73dda8a90e2753f2c9e790ddde9dd5dd36614c"}, |
| {"internal/provision/reconcile.go", "Reconcile", "key-site", "key:ParseRecordKey,key:RecordKey,lit:instances", "be424187c00d65935209ce8146aa7e24832ccf24af129075f7e94550e99683d0"}, |
| {"internal/provision/reconcile.go", "mintHeld", "key-site", "key:RecordKey", "c1334db2723716381f2fe57c60ccba3bd4953fcf57a155808ef3f14bb89f9c4a"}, |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index a3aa2a17e..5c5f297a2 100644 |
| --- a/internal/provision/plan9_b8_census_test.go |
| +++ b/internal/provision/plan9_b8_census_test.go |
| @@ -759,7 +759,8 @@ var plan9B8CensusInventory = []censusEntry{ |
| // Calls the in-memory edge Cache.Put, not a deployment store writer. |
| {"internal/edge/edge.go", "Edge.maybeStore", "nonrecord", "sel:Put", "89231cd6ebfa293c307f502a7bf7236373199489e6846e0c3b8ccf281594b9ab"}, |
| {"internal/edge/mesh.go", "mintMeshKey", "nonrecord", "sel:Put", "bfb55866660051d4c55b2a1be96e7f997c76042119a8f57472fbc41908a2dcc0"}, |
| - {"internal/edge/storedoor.go", "storeDoor.serveObject", "record-transport", "sel:Put", "95fef5f91ed7a5f07a3818b1a55baded4209e97d43d48ba21cb69be3d2c7299d"}, |
| + // Re-digested for storedoor-stream-get: GET streams through openGET with concurrency limits; the same ACL- and precondition-gated Put and bounded PUT body read are unchanged. |
| + {"internal/edge/storedoor.go", "storeDoor.serveObject", "record-transport", "sel:Put", "b449adb2812961af290c327cca8a43e0e92029acaafc2b63be20cb5b0d9b0196"}, |
| {"internal/edge/wildcard.go", "wildcardManager.obtain", "nonrecord", "sel:Put", "752840841afb596cba318e5c7ece964c5146a7a24edde91f9c9dc0024753dc3b"}, |
| {"internal/edge/wildcard.go", "wildcardManager.accountKey", "nonrecord", "sel:Put", "77f7da94e302045eff8cbbb1be311bdcbaf75cc4cdd8f794d474e508fbf35a51"}, |
| {"internal/fleetapi/fleetapi.go", "store.Put", "record-transport", "def:Put", "68f7424cbbaf8fffde48429ae29198cf6e4fcf768c512657b305224febc11186"}, |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 92b87fd69..598170eae 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -65,3 +65,4 @@ plan14-root-reads-edge-held-first-ping.tsv 3b6cd29b87d2728254936722ab45fdadcfbb8 |
| plan14-root-reads-fleet-examined-519.tsv 3b6cd29b87d2728254936722ab45fdadcfbb8c1f5b74fdfa19d1921b9dfd1dbe |
| plan14-root-reads-domains-zone-credentials.tsv 3b6cd29b87d2728254936722ab45fdadcfbb8c1f5b74fdfa19d1921b9dfd1dbe |
| plan14-root-reads-devbox-identity.tsv 66a5df05f18f70c3162ad05aa316c1e69c0f053d54f8b682262c266d6aa50772 |
| +plan14-root-reads-storedoor-stream-get.tsv 62b550b9398c40c2eabe4d3869acf0e1ec87a25e42fffca40affeef31adeac81 |
diff --git a/internal/provision/testdata/plan14-root-reads-storedoor-stream-get.tsv b/internal/provision/testdata/plan14-root-reads-storedoor-stream-get.tsv| new file mode 100644 |
| index 000000000..4a8925ac8 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-storedoor-stream-get.tsv |
| @@ -0,0 +1,11 @@ |
| +# Census overlay storedoor-stream-get, written by census-propose (#369). census-ruling-storedoor-stream-get, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-storedoor-stream-get.md. |
| +# 2 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy e1f0b764f795a634b113a156ab0d9a097a7798afefcebcf364fabb8653578332 internal/edge/storedoor.go storeDoor.serveObject legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 1 Task 5: a GET that passed aclRead and whose store answer is os.ErrNotExist sets Carlos-Store-Absent: 1 on the same 404 when appPolicyRead grants the key (exactly control/app-policy/<the box's own sqid>/<app>.json); every other 404 is unchanged. The same one ReadAll site (a PUT body under maxStoreBodyBytes), offset moved; no read added.;rev3=census-ruling-storedoor-stream-get;basis=GET streams through OpenObjectStreaming via openGET, with concurrency limits and Content-Length when known; no read added. The same bounded PUT ReadAll and store.Put remain unchanged. file:ReadAll@2074 b449adb2812961af290c327cca8a43e0e92029acaafc2b63be20cb5b0d9b0196 |
| +@legacy e624eb81f597ae4d707fbdc55df74ed8280dbe66566a42e626daea3bc8200f38 internal/release/store.go S3Store.Open legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-storedoor-stream-get;basis=Wraps the existing GetObject response body in sizedObjectBody, exposing ContentLength through Size() or -1 when absent; preserves ETag, close/read behavior and missing-key mapping. No additional request or read added. file:Open@18 ed93e0efdb79dcd683abc22416a16927c913df65328818a81ae3ee6ceb97c106 |
| +@legacy 35af88d16ade9e9c3d6f4403dd0732e448c8f6e9b1a536030bb909828d84adfe internal/edge/storedoor.go storeDoor.openGET legacy accepted-legacy accepted-legacy;rev3=census-ruling-storedoor-stream-get;basis=New helper: streams the existing key through OpenObjectStreaming; stats the opened DirStore file only to learn its size for Content-Length (new file:Stat read). Hashes and rewinds that same file when needed to preserve its ETag; unsupported stores retain Get with a 64 MiB returned-body limit. file:Stat@862 74346d1f654ce3da1f41c829e5ffaab11f4ef4a6c5d9a60b6c512d0ebde1672b |
| +internal/edge/storedoor.go storeDoor.serveObject legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 1 Task 5: a GET that passed aclRead and whose store answer is os.ErrNotExist sets Carlos-Store-Absent: 1 on the same 404 when appPolicyRead grants the key (exactly control/app-policy/<the box's own sqid>/<app>.json); every other 404 is unchanged. The same one ReadAll site (a PUT body under maxStoreBodyBytes), offset moved; no read added.;rev3=census-ruling-storedoor-stream-get;basis=GET streams through OpenObjectStreaming via openGET, with concurrency limits and Content-Length when known; no read added. The same bounded PUT ReadAll and store.Put remain unchanged. file:ReadAll@2074 b449adb2812961af290c327cca8a43e0e92029acaafc2b63be20cb5b0d9b0196 |
| +internal/release/store.go S3Store.Open legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-storedoor-stream-get;basis=Wraps the existing GetObject response body in sizedObjectBody, exposing ContentLength through Size() or -1 when absent; preserves ETag, close/read behavior and missing-key mapping. No additional request or read added. file:Open@18 ed93e0efdb79dcd683abc22416a16927c913df65328818a81ae3ee6ceb97c106 |
| +internal/edge/storedoor.go storeDoor.openGET legacy accepted-legacy accepted-legacy;rev3=census-ruling-storedoor-stream-get;basis=New helper: streams the existing key through OpenObjectStreaming; stats the opened DirStore file only to learn its size for Content-Length (new file:Stat read). Hashes and rewinds that same file when needed to preserve its ETag; unsupported stores retain Get with a 64 MiB returned-body limit. file:Stat@862 74346d1f654ce3da1f41c829e5ffaab11f4ef4a6c5d9a60b6c512d0ebde1672b |
| +@coverage internal/edge 2035bd4b6775e4dd9e5f76b20ed24a47b07ee4ba4aea7181bec48d54eee160f9 |
| +@coverage internal/release 35bfcaeb75b142964a19a92029b830567b9e6653fa28919c7aea1a958c20880b |