carlos / platform Public

Propose devbox identity census claims (#486 A)

Record the 14 changed/new root-read units and five source envelopes for
devbox identity. Add explicit 9B8 classifications for three changed local
link writers and the new socket-share writer, all nonrecord.

The root-read, record-write and census checks pass, as do the root devbox
copy gates. No production code changed. These are author claims pending
an independent Opus census verdict; this commit does not grant approval.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev ab29690583c1341524d9f0d5af6274caa6610571 parent 9ca74dd
5 files changed, +141 −1
  • docs/superpowers/notes/census-proposal-devbox-identity.md +41 −0
  • internal/provision/devbox_identity_census_test.go +62 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-devbox-identity.tsv +36 −0
diff --git a/docs/superpowers/notes/census-proposal-devbox-identity.md b/docs/superpowers/notes/census-proposal-devbox-identity.md
new file mode 100644
index 000000000..cddea8479
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-devbox-identity.md
@@ -0,0 +1,41 @@
+# Census approval: devbox-identity
+
+Ruling `census-ruling-devbox-identity`. The independent reviewer approves or rejects every change below, 7 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `devbox_cli.go` `runDevboxServe` | body | unchanged (3) | #486 A: carlos devbox serve runs as the carlos-devbox service user, not root. Adds configureDevboxIdentity before serving: reads CARLOS_DEVBOX_SOCKETS_DIR, CARLOS_DEVBOX_TAILSCALED_SOCKET and CARLOS_DEVBOX_SHARED_NODES, checks/creates the service-owned sockets directory, and wires the cached LocalAPI adapter plus allow/socket-owner lookups. Existing registry.db, links.json and optional env-file reads remain in the service account; no additional direct scanned read site in this unit. |
+| `infra/devbox/carlos-devbox.service` `external` | body | unchanged (1) | #486 A: adds RuntimeDirectoryPreserve=yes so stopping the service preserves caller sockets under /run/carlos-devbox. ExecStart still runs carlos devbox serve with User=Group=carlos-devbox, never as root; only CAP_NET_BIND_SERVICE remains. No new executable or environment-file read; the existing systemd EnvironmentFile and hardening are unchanged. |
+| `internal/devbox/registrar.go` `Registrar.list` | body | unchanged (1) | #486 A: the carlos-devbox service user, not root, reads its in-memory links and passes the kernel-authenticated caller UID into entry so allow names are returned only to their owner. Adds bounded connect-and-close probes of stored socket paths without sending data; a replaced symlink can be followed by this availability probe. Existing folder-current EvalSymlinks and loopback probes remain; forwarding separately checks peer UID. |
+| `internal/devbox/registrar.go` `Registrar.serveShareLive` | body | unchanged (1) | #486 A: the carlos-devbox service user, not root, now reads and validates the request JSON allow list, stores the normalized list with the local link, and returns owner-filtered allow details through entry(link, uid). Existing SO_PEERCRED identity, claim ownership/registry reads and UpsertUnlessRootfs remain; no new filesystem or deployment-record read. |
+| `internal/devbox/registrar.go` `Registrar.serveUnshare` | body | unchanged (1) | #486 A: the carlos-devbox service user, not root, now passes the authenticated caller UID to entry(prev, uid) so the response exposes allow names only to their owner. Reads the same local link and registry row, checks ownership, then deletes with the existing rollback; no new read. |
+| `internal/devbox/registrar.go` `Registrar.serveShareFolder` | sites | -file:Query | #486 A: the carlos-devbox service user, not root, replaces req.URL.Query with strict url.ParseQuery(req.URL.RawQuery), refuses malformed query encoding, and validates repeated allow values before reading the capped upload body. Stores the normalized allow list in its local links.json and returns owner-filtered entry data. The scanner loses file:Query; existing archive, spool and local registry reads remain, with no new filesystem or deployment-record read. |
+| `internal/edge/edge.go` `Edge.Reload` | sites | +registry:Socket | #486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. |
+
+Envelopes re-pinned: `.`, `infra/devbox`, `internal/devbox`, `internal/edge`, `internal/tsidentity`.
+
+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:
+
+- `devbox_cli.go` `runDevboxServe`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: carlos devbox serve, run by the carlos-devbox unit as the unprivileged carlos-devbox user, reads its config from the environment (CARLOS_DEVBOX_LISTEN, CARLOS_DEVBOX_DOMAIN, CARLOS_DATA_DIR, CARLOS_WILDCARD_DOMAINS, CARLOS_DEVBOX_SOCKET) and opens registry.db and links.json under its own StateDirectory. Not root;rev3=census-ruling-devbox-macos;basis=devbox on macOS (#488): serve now parses flags; --env-file PATH loads the service user's own env file (loadDevboxEnvFile) before reading the same environment as before; with CARLOS_DEVBOX_LAUNCHD_SOCKET set it takes launchd's listening socket (launchd.Listeners, macOS only; elsewhere it refuses) and holds it to CARLOS_DEVBOX_LISTEN (edge.CheckDevboxListener) before making anything; the socket path comes from devboxSocketPath (CARLOS_DEVBOX_SOCKET, or the OS default). Runs as the unprivileged service user (carlos-devbox on Linux, _carlos-devbox on macOS), never root; no new read beyond the env file named on its own command line
+- `infra/devbox/carlos-devbox.service` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: systemd unit for devbox mode on a developer workstation, installed once by hand per infra/devbox/README.md. Runs carlos devbox serve as User=carlos-devbox with only CAP_NET_BIND_SERVICE, NoNewPrivileges, ProtectSystem=strict and the hardening of carlos-edge.service; not installed by user_data or any CARLOS box path
+- `internal/devbox/registrar.go` `Registrar.list`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) EvalSymlinks <spool>/<name>/current only to report whether a folder link resolves. Not root
+- `internal/devbox/registrar.go` `Registrar.serveShareLive`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row via claim and writes a service row 127.0.0.1:<port> with UpsertUnlessRootfs. Caller identity is SO_PEERCRED only. Not root
+- `internal/devbox/registrar.go` `Registrar.serveUnshare`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row before deleting it, so a failed links delete can restore it. Caller identity is SO_PEERCRED only. Not root
+- `internal/devbox/registrar.go` `Registrar.serveShareFolder`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads the name from the query and the upload body (Content-Length required, capped at 200 MiB), scans it with scanSite (now also refusing a root _headers or _redirects over the edge's limit, final review fix) and reads its own registry row via claim. Caller identity is SO_PEERCRED only. Not root
+- `internal/edge/edge.go` `Edge.Reload`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `devbox_acl_linux.go:openDevboxSocket`: reads +file:Fstat, +file:Open; written legacy, accepted-legacy, frozen
+- new `devbox_cli.go:prepareDevboxSocketsDir`: reads +file:Lstat; written legacy, accepted-legacy, frozen
+- new `internal/devbox/registrar.go:Registrar.serveShareSocket`: reads +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/devbox/socketcheck_linux.go:checkSocket`: reads +file:Open; written legacy, accepted-legacy, frozen
+- new `internal/devbox/socketcheck_linux.go:var#1`: reads +file:Fstat; written legacy, accepted-legacy, frozen
+- new `internal/edge/devboxfront.go:devboxTrailerBody.Read`: reads +file:Read ×2; written legacy, accepted-legacy, frozen
+- new `internal/tsidentity/whois.go:identity.Who`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
+
+Seal: `03a92257beb9b8aac421559e247d191bd69f28a0b26243397a1344a90d59fc2a` → `8aca21a2dad2209c9fad02b0d8a50cb6ad9192487fcb3e0def4b766529290579`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-devbox-identity.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/devbox_identity_census_test.go b/internal/provision/devbox_identity_census_test.go
new file mode 100644
index 000000000..7ebdcfa98
--- /dev/null
+++ b/internal/provision/devbox_identity_census_test.go
@@ -0,0 +1,62 @@
+package provision
+
+// Devbox identity (#486 A, Task 6) record-write claims, layered on the
+// inventory at 9ca74dd0. These are the author's source classifications;
+// the independent reviewer gives the census verdict separately.
+// See docs/superpowers/notes/census-proposal-devbox-identity.md.
+//
+// All four units run in the carlos-devbox service account, not root. Handler
+// obtains the caller UID from ConnContext/SO_PEERCRED, and each share calls
+// claim under the registrar mutex before persisting a link. Links.Put writes
+// the service's own links.json via commitLocked/write (0600 temporary file,
+// fsync, rename, directory fsync). The other writes are local registry rows
+// and, for folders, the local spool. None constructs a deployment record key
+// or writes to an object store, so each remains nonrecord.
+func devboxIdentityWriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), durability3aBranchFix3bWriteCensusInventory()...)
+ repins := []censusEntry{
+ // #486 A: clone Allow before storing the link so callers cannot mutate
+ // the saved list through an alias. Same local links.json Put and commit.
+ {"internal/devbox/links.go", "Links.Put", "nonrecord", "def:Put", "aded1d9f65b5d02e4646d3ddab41042e5d9b6aaaa747f2132c96891d11940fd8"},
+ // #486 A: validate JSON Allow and replace it on the live link. Same
+ // owner claim, Links.Put, local UpsertUnlessRootfs and rollback; the
+ // response now filters allow names by caller UID.
+ {"internal/devbox/registrar.go", "Registrar.serveShareLive", "nonrecord", "sel:Put", "1c7a4ee89befbe125f16b8e846270b6be2007f42f2dffb053f5aa60f5d401141"},
+ // #486 A: strictly parse the query and validate repeated allow values
+ // before the archive upload. Put the new allow list in links.json;
+ // preserve the upload/spool limits, owner claim, snapshot swap, local
+ // UpsertUnlessRootfs and rollback. Return owner-filtered allow names.
+ {"internal/devbox/registrar.go", "Registrar.serveShareFolder", "nonrecord", "sel:Put", "dce50fcab6a2b64a712d58a6f236cdf19ec6264ce7bccba96116ab94c1a81d58"},
+ }
+ for _, r := range repins {
+ found := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ if e.Class != r.Class || e.Kinds != r.Kinds {
+ panic("devbox-identity re-pin changes the class or kinds of " + r.File + ":" + r.Unit)
+ }
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ panic("devbox-identity re-pin of an unlisted unit " + r.File + ":" + r.Unit)
+ }
+ }
+ added := []censusEntry{
+ // #486 A: the new socket share validates name/allow, checks a direct
+ // child socket's inode owner and connected peer UID, then claims the
+ // name and Puts the socket link/allow list in local links.json. The
+ // local socket route uses UpsertUnlessRootfs, with link rollback on
+ // failure and old folder spool cleanup only after success. No bucket.
+ {"internal/devbox/registrar.go", "Registrar.serveShareSocket", "nonrecord", "sel:Put", "b3389aa29c77785657375b60208aac3ac4a086baf9b2c24be4d7d6d98e12791c"},
+ }
+ for _, a := range added {
+ for _, e := range entries {
+ if e.File == a.File && e.Unit == a.Unit {
+ panic("devbox-identity addition of an already listed unit " + a.File + ":" + a.Unit)
+ }
+ }
+ entries = append(entries, a)
+ }
+ return entries
+}
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index 86c3fa2e1..c5f1dadd9 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := durability3aBranchFix3bWriteCensusInventory()
+ inventory := devboxIdentityWriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 017438a68..557bb3eeb 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -54,3 +54,4 @@ plan14-root-reads-rootfs-apps-6.tsv c86929d08b9b2038fa103d1c7311ab2958e7100e92dc
plan14-root-reads-devbox-macos.tsv 67b54b219f990c3dcfe32c6ffb11a80a4ca3898aec060fe9f4450e21098af714
plan14-root-reads-fix-set-aside-exdev.tsv f9d3016cc6803338f9db19311f3f598e20c37c8a19e111a3dabf4741dabe1b19
plan14-root-reads-durability-3a-escrow.tsv 03a92257beb9b8aac421559e247d191bd69f28a0b26243397a1344a90d59fc2a
+plan14-root-reads-devbox-identity.tsv 8aca21a2dad2209c9fad02b0d8a50cb6ad9192487fcb3e0def4b766529290579
diff --git a/internal/provision/testdata/plan14-root-reads-devbox-identity.tsv b/internal/provision/testdata/plan14-root-reads-devbox-identity.tsv
new file mode 100644
index 000000000..122a19ad0
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-devbox-identity.tsv
@@ -0,0 +1,36 @@
+# Census overlay devbox-identity, written by census-propose (#369). census-ruling-devbox-identity, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-devbox-identity.md.
+# 5 body, 2 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 7 new dispositions: 0 reads re-frozen at their disposition with the claim, 7 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 9be1020ba7045fd8f7e6861ed5995676a14c026e6c7c5413afbdfb5c22a30492 devbox_cli.go runDevboxServe legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: carlos devbox serve, run by the carlos-devbox unit as the unprivileged carlos-devbox user, reads its config from the environment (CARLOS_DEVBOX_LISTEN, CARLOS_DEVBOX_DOMAIN, CARLOS_DATA_DIR, CARLOS_WILDCARD_DOMAINS, CARLOS_DEVBOX_SOCKET) and opens registry.db and links.json under its own StateDirectory. Not root;rev3=census-ruling-devbox-macos;basis=devbox on macOS (#488): serve now parses flags; --env-file PATH loads the service user's own env file (loadDevboxEnvFile) before reading the same environment as before; with CARLOS_DEVBOX_LAUNCHD_SOCKET set it takes launchd's listening socket (launchd.Listeners, macOS only; elsewhere it refuses) and holds it to CARLOS_DEVBOX_LISTEN (edge.CheckDevboxListener) before making anything; the socket path comes from devboxSocketPath (CARLOS_DEVBOX_SOCKET, or the OS default). Runs as the unprivileged service user (carlos-devbox on Linux, _carlos-devbox on macOS), never root; no new read beyond the env file named on its own command line;rev3=census-ruling-devbox-identity;basis=#486 A: carlos devbox serve runs as the carlos-devbox service user, not root. Adds configureDevboxIdentity before serving: reads CARLOS_DEVBOX_SOCKETS_DIR, CARLOS_DEVBOX_TAILSCALED_SOCKET and CARLOS_DEVBOX_SHARED_NODES, checks/creates the service-owned sockets directory, and wires the cached LocalAPI adapter plus allow/socket-owner lookups. Existing registry.db, links.json and optional env-file reads remain in the service account; no additional direct scanned read site in this unit. data-literal@1086,data-literal@776,file:Open@2328 adb0176fb0901ac32d80f16259b19d0f98c1978c3c28410bab3c6c0bafeaf0ab
+@legacy 1745f2d1f4392fd9e083ca4c2870380665133e9da1a4104fadddfc20a34a2ab7 infra/devbox/carlos-devbox.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: systemd unit for devbox mode on a developer workstation, installed once by hand per infra/devbox/README.md. Runs carlos devbox serve as User=carlos-devbox with only CAP_NET_BIND_SERVICE, NoNewPrivileges, ProtectSystem=strict and the hardening of carlos-edge.service; not installed by user_data or any CARLOS box path;rev3=census-ruling-devbox-identity;basis=#486 A: adds RuntimeDirectoryPreserve=yes so stopping the service preserves caller sockets under /run/carlos-devbox. ExecStart still runs carlos devbox serve with User=Group=carlos-devbox, never as root; only CAP_NET_BIND_SERVICE remains. No new executable or environment-file read; the existing systemd EnvironmentFile and hardening are unchanged. file:external@0 72440fc94179ddaa03203a6b897893b58a608c8ee878972908f97576e860aae8
+@legacy e4ec31441c78c739c0c6906526c48a93a62619b4cea067f0790b9faac4d63783 internal/devbox/registrar.go Registrar.list legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) EvalSymlinks <spool>/<name>/current only to report whether a folder link resolves. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, reads its in-memory links and passes the kernel-authenticated caller UID into entry so allow names are returned only to their owner. Adds bounded connect-and-close probes of stored socket paths without sending data; a replaced symlink can be followed by this availability probe. Existing folder-current EvalSymlinks and loopback probes remain; forwarding separately checks peer UID. file:EvalSymlinks@758 775ff5462af8d4afd4614a476d9f31f73ac6fa487d05a3b9b2656e7597dfa19a
+@legacy 656a1ee633f19b2029d6e43a8ae6725bfcb4f4791061629252689236a0e4c0af internal/devbox/registrar.go Registrar.serveShareLive legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row via claim and writes a service row 127.0.0.1:<port> with UpsertUnlessRootfs. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, now reads and validates the request JSON allow list, stores the normalized list with the local link, and returns owner-filtered allow details through entry(link, uid). Existing SO_PEERCRED identity, claim ownership/registry reads and UpsertUnlessRootfs remain; no new filesystem or deployment-record read. whole:Route@1142 1c7a4ee89befbe125f16b8e846270b6be2007f42f2dffb053f5aa60f5d401141
+@legacy 129f661ca978314c692e1e97a2de80f4ac0198c79a7375d5c3896a4c8a40f5b5 internal/devbox/registrar.go Registrar.serveUnshare legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row before deleting it, so a failed links delete can restore it. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, now passes the authenticated caller UID to entry(prev, uid) so the response exposes allow names only to their owner. Reads the same local link and registry row, checks ownership, then deletes with the existing rollback; no new read. whole:Route@1063 3592daffbb3f6595131372fbe6d0c869a077cad884c4a524858d3ff79464b427
+@legacy 096d71994c223f1cf231ff0f031ba9c59f40e4c3f13f8abf2dd655a82db2fe36 devbox_acl_linux.go openDevboxSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the calling user CLI, not root or the service account, opens the socket path with O_PATH|O_NOFOLLOW|O_CLOEXEC and fstats that same descriptor. Refuses non-sockets including symlinks and a UID different from the caller. New reads are inode metadata (Open and Fstat), not file contents; the descriptor remains pinned through the subsequent ACL Setxattr via /proc/self/fd/N, so pathname replacement cannot redirect that write. file:Fstat@241,file:Open@76 35f35391fe1dab42cc7089790be2276b4cfd8f537e6302cfa44ff1431a363776
+@legacy 4ffe7566a837d7bbf13c07e80f3fd851ff08c7a48c28417513c4671a47519407 devbox_cli.go prepareDevboxSocketsDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, creates its configured sockets directory and Lstats it to read type, ownership and mode. Refuses symlinks, non-directories and foreign ownership; creates/repairs sticky mode 1733. The new read is metadata of CARLOS_DEVBOX_SOCKETS_DIR (default /run/carlos-devbox/sockets), not tenant file content. file:Lstat@221 eda56f2447387c7d1892b49ac127ced19d71cbde7ae1c9dfa73b3f050c9e82e4
+@legacy d6ccdaaa66c2b308b077a67d08300103d618a914fd57f6717fb00180a5c95669 internal/devbox/registrar.go Registrar.serveShareSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, decodes name/path/allow from the SO_PEERCRED-authenticated request, validates name/list, and calls checkSocket for direct-child path, inode owner/type and connected peer UID. Under its mutex it reads its local link/registry claim, persists a socket link in links.json and constructs the whole registry.Route passed to UpsertUnlessRootfs, with rollback on failure. No deployment bucket/record read; socket-path refusals return the configured directory as machine data. whole:Route@1231 b3389aa29c77785657375b60208aac3ac4a086baf9b2c24be4d7d6d98e12791c
+@legacy 199bf1e752ba186ccfc21f14976e7c05ffb3ff6dc39eb5b993a8dea04f8497cc internal/devbox/socketcheck_linux.go checkSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, validates the cleaned absolute socket path is directly inside its configured directory, opens with O_PATH|O_NOFOLLOW|O_CLOEXEC, and uses socketFstat to require a socket owned by the kernel-authenticated caller UID. Then a bounded connect and SO_PEERCRED lookup require the listening process to have that same UID. New reads are socket inode metadata and peer credentials, with no request payload sent and no file content read. file:Open@338 1eaaca6537d425a9bf1c6e507dc46d6814538676d022eac1fb79b331e5efa61b
+@legacy 59bb57b3c10ca15f1581b4f608d5ce65a4e0cd007ad2fb311a6a5045ad816361 internal/devbox/socketcheck_linux.go var#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: production assigns socketFstat=unix.Fstat and socketPeerUID=PeerUID as test seams for checkSocket. The carlos-devbox service user, not root, later uses these functions for the opened socket inode metadata and connected peer UID. The new file:Fstat site is a function value here; initialization itself performs no I/O. file:Fstat@23 aeebbb8ef221155002eec748d1269875edeceb1e199d85086bc6d1e829be6e91
+@legacy 1762fc326ab0e7d653a304de013b4d574baf3fc8dc251e0545f395a7ae9836d8 internal/edge/devboxfront.go devboxTrailerBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, reads the incoming HTTP request body through its wrapped ReadCloser. At EOF it strips all visitor identity trailer names before a handler can use late-populated trailers. The scanner counts Read identifiers as file reads; these are network request-body reads, not filesystem opens or root-owned data. file:Read@28,file:Read@69 66eacb35174eb545872491665ef53c06c92a740c973a012825d67a3126abdfbc
+@legacy eeb99e713d808bad55b9fba9417ff87b22841ce90d6bfc3265691f6693dba97a internal/tsidentity/whois.go identity.Who legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, queries tailscaled LocalAPI whois over the configured Unix socket (default /var/run/tailscale/tailscaled.sock) for the visitor remote address. New ReadAll reads at most 1 MiB plus one overflow byte from the HTTP response; redirects/errors and oversized or malformed JSON fail, and tagged devices or missing logins are anonymous. No ordinary file or deployment-record read; timeout/cancellation are bounded by the adapter and front door. file:ReadAll@748 faa815685cac4ee4cae548179dbd45e1e852bc5b1a9a13ab899d59ef0670747b
+@legacy 39aaf4f9c6d9d4ab294be001cd688a16c1ae97c25edac77c85f41e5887c039c1 internal/devbox/registrar.go Registrar.serveShareFolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads the name from the query and the upload body (Content-Length required, capped at 200 MiB), scans it with scanSite (now also refusing a root _headers or _redirects over the edge's limit, final review fix) and reads its own registry row via claim. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, replaces req.URL.Query with strict url.ParseQuery(req.URL.RawQuery), refuses malformed query encoding, and validates repeated allow values before reading the capped upload body. Stores the normalized allow list in its local links.json and returns owner-filtered entry data. The scanner loses file:Query; existing archive, spool and local registry reads remain, with no new filesystem or deployment-record read. file:Read@1922,whole:Route@4070 dce50fcab6a2b64a712d58a6f236cdf19ec6264ce7bccba96116ab94c1a81d58
+@legacy e568dc4d9cbd7da9b7e0b990083abf5aa68eb8ecfa9c56e20badcdf4b3a68d39 internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more.;rev3=census-ruling-devbox-identity;basis=#486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. registry:Account@9457,registry:Alias@24401,registry:Alias@24488,registry:Alias@25068,registry:App@9473,registry:Health@13198,registry:Health@13324,registry:Host@10784,registry:Host@10841,registry:Host@10877,registry:Host@11620,registry:Host@13807,registry:Host@13902,registry:Host@14190,registry:Host@14216,registry:Host@14268,registry:Host@18863,registry:Host@20770,registry:Host@21078,registry:Host@21105,registry:Host@21920,registry:Host@22492,registry:Host@24822,registry:Host@24871,registry:Host@4701,registry:Host@4755,registry:Host@4805,registry:Host@5826,registry:Kind@17199,registry:Kind@17221,registry:Prefix@22467,registry:Socket@11684,registry:Socket@17078,registry:Socket@21086,registry:Status@4626,registry:Target@22479,registry:Tunnel@9317,registry:Tunnel@9488,registry:Version@17180,registry:Version@17282,whole:RegionalDomain@25710,whole:Route@10932,whole:Route@11040,whole:Route@11740,whole:Route@14341,whole:Route@14405,whole:Route@14456,whole:Route@21138,whole:Route@21145,whole:Route@21241,whole:Route@22355,whole:Route@23523,whole:Route@25702,whole:Route@294,whole:Route@3381,whole:Route@3439,whole:Route@5855,whole:Route@6744,whole:Route@6852,whole:Route@9379,whole:RouteAlias@24372,whole:RoutePath@21898 571d8e89d7c8e754b566c40946b0ee0965bf3925a71b07cde63f440bb33fda06
+devbox_cli.go runDevboxServe legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: carlos devbox serve, run by the carlos-devbox unit as the unprivileged carlos-devbox user, reads its config from the environment (CARLOS_DEVBOX_LISTEN, CARLOS_DEVBOX_DOMAIN, CARLOS_DATA_DIR, CARLOS_WILDCARD_DOMAINS, CARLOS_DEVBOX_SOCKET) and opens registry.db and links.json under its own StateDirectory. Not root;rev3=census-ruling-devbox-macos;basis=devbox on macOS (#488): serve now parses flags; --env-file PATH loads the service user's own env file (loadDevboxEnvFile) before reading the same environment as before; with CARLOS_DEVBOX_LAUNCHD_SOCKET set it takes launchd's listening socket (launchd.Listeners, macOS only; elsewhere it refuses) and holds it to CARLOS_DEVBOX_LISTEN (edge.CheckDevboxListener) before making anything; the socket path comes from devboxSocketPath (CARLOS_DEVBOX_SOCKET, or the OS default). Runs as the unprivileged service user (carlos-devbox on Linux, _carlos-devbox on macOS), never root; no new read beyond the env file named on its own command line;rev3=census-ruling-devbox-identity;basis=#486 A: carlos devbox serve runs as the carlos-devbox service user, not root. Adds configureDevboxIdentity before serving: reads CARLOS_DEVBOX_SOCKETS_DIR, CARLOS_DEVBOX_TAILSCALED_SOCKET and CARLOS_DEVBOX_SHARED_NODES, checks/creates the service-owned sockets directory, and wires the cached LocalAPI adapter plus allow/socket-owner lookups. Existing registry.db, links.json and optional env-file reads remain in the service account; no additional direct scanned read site in this unit. data-literal@1086,data-literal@776,file:Open@2328 adb0176fb0901ac32d80f16259b19d0f98c1978c3c28410bab3c6c0bafeaf0ab
+infra/devbox/carlos-devbox.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: systemd unit for devbox mode on a developer workstation, installed once by hand per infra/devbox/README.md. Runs carlos devbox serve as User=carlos-devbox with only CAP_NET_BIND_SERVICE, NoNewPrivileges, ProtectSystem=strict and the hardening of carlos-edge.service; not installed by user_data or any CARLOS box path;rev3=census-ruling-devbox-identity;basis=#486 A: adds RuntimeDirectoryPreserve=yes so stopping the service preserves caller sockets under /run/carlos-devbox. ExecStart still runs carlos devbox serve with User=Group=carlos-devbox, never as root; only CAP_NET_BIND_SERVICE remains. No new executable or environment-file read; the existing systemd EnvironmentFile and hardening are unchanged. file:external@0 72440fc94179ddaa03203a6b897893b58a608c8ee878972908f97576e860aae8
+internal/devbox/registrar.go Registrar.list legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) EvalSymlinks <spool>/<name>/current only to report whether a folder link resolves. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, reads its in-memory links and passes the kernel-authenticated caller UID into entry so allow names are returned only to their owner. Adds bounded connect-and-close probes of stored socket paths without sending data; a replaced symlink can be followed by this availability probe. Existing folder-current EvalSymlinks and loopback probes remain; forwarding separately checks peer UID. file:EvalSymlinks@758 775ff5462af8d4afd4614a476d9f31f73ac6fa487d05a3b9b2656e7597dfa19a
+internal/devbox/registrar.go Registrar.serveShareLive legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row via claim and writes a service row 127.0.0.1:<port> with UpsertUnlessRootfs. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, now reads and validates the request JSON allow list, stores the normalized list with the local link, and returns owner-filtered allow details through entry(link, uid). Existing SO_PEERCRED identity, claim ownership/registry reads and UpsertUnlessRootfs remain; no new filesystem or deployment-record read. whole:Route@1142 1c7a4ee89befbe125f16b8e846270b6be2007f42f2dffb053f5aa60f5d401141
+internal/devbox/registrar.go Registrar.serveUnshare legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads its own registry row before deleting it, so a failed links delete can restore it. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, now passes the authenticated caller UID to entry(prev, uid) so the response exposes allow names only to their owner. Reads the same local link and registry row, checks ownership, then deletes with the existing rollback; no new read. whole:Route@1063 3592daffbb3f6595131372fbe6d0c869a077cad884c4a524858d3ff79464b427
+devbox_acl_linux.go openDevboxSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the calling user CLI, not root or the service account, opens the socket path with O_PATH|O_NOFOLLOW|O_CLOEXEC and fstats that same descriptor. Refuses non-sockets including symlinks and a UID different from the caller. New reads are inode metadata (Open and Fstat), not file contents; the descriptor remains pinned through the subsequent ACL Setxattr via /proc/self/fd/N, so pathname replacement cannot redirect that write. file:Fstat@241,file:Open@76 35f35391fe1dab42cc7089790be2276b4cfd8f537e6302cfa44ff1431a363776
+devbox_cli.go prepareDevboxSocketsDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, creates its configured sockets directory and Lstats it to read type, ownership and mode. Refuses symlinks, non-directories and foreign ownership; creates/repairs sticky mode 1733. The new read is metadata of CARLOS_DEVBOX_SOCKETS_DIR (default /run/carlos-devbox/sockets), not tenant file content. file:Lstat@221 eda56f2447387c7d1892b49ac127ced19d71cbde7ae1c9dfa73b3f050c9e82e4
+internal/devbox/registrar.go Registrar.serveShareSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, decodes name/path/allow from the SO_PEERCRED-authenticated request, validates name/list, and calls checkSocket for direct-child path, inode owner/type and connected peer UID. Under its mutex it reads its local link/registry claim, persists a socket link in links.json and constructs the whole registry.Route passed to UpsertUnlessRootfs, with rollback on failure. No deployment bucket/record read; socket-path refusals return the configured directory as machine data. whole:Route@1231 b3389aa29c77785657375b60208aac3ac4a086baf9b2c24be4d7d6d98e12791c
+internal/devbox/socketcheck_linux.go checkSocket legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, validates the cleaned absolute socket path is directly inside its configured directory, opens with O_PATH|O_NOFOLLOW|O_CLOEXEC, and uses socketFstat to require a socket owned by the kernel-authenticated caller UID. Then a bounded connect and SO_PEERCRED lookup require the listening process to have that same UID. New reads are socket inode metadata and peer credentials, with no request payload sent and no file content read. file:Open@338 1eaaca6537d425a9bf1c6e507dc46d6814538676d022eac1fb79b331e5efa61b
+internal/devbox/socketcheck_linux.go var#1 legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: production assigns socketFstat=unix.Fstat and socketPeerUID=PeerUID as test seams for checkSocket. The carlos-devbox service user, not root, later uses these functions for the opened socket inode metadata and connected peer UID. The new file:Fstat site is a function value here; initialization itself performs no I/O. file:Fstat@23 aeebbb8ef221155002eec748d1269875edeceb1e199d85086bc6d1e829be6e91
+internal/edge/devboxfront.go devboxTrailerBody.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, reads the incoming HTTP request body through its wrapped ReadCloser. At EOF it strips all visitor identity trailer names before a handler can use late-populated trailers. The scanner counts Read identifiers as file reads; these are network request-body reads, not filesystem opens or root-owned data. file:Read@28,file:Read@69 66eacb35174eb545872491665ef53c06c92a740c973a012825d67a3126abdfbc
+internal/tsidentity/whois.go identity.Who legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, queries tailscaled LocalAPI whois over the configured Unix socket (default /var/run/tailscale/tailscaled.sock) for the visitor remote address. New ReadAll reads at most 1 MiB plus one overflow byte from the HTTP response; redirects/errors and oversized or malformed JSON fail, and tagged devices or missing logins are anonymous. No ordinary file or deployment-record read; timeout/cancellation are bounded by the adapter and front door. file:ReadAll@748 faa815685cac4ee4cae548179dbd45e1e852bc5b1a9a13ab899d59ef0670747b
+internal/devbox/registrar.go Registrar.serveShareFolder legacy accepted-legacy accepted-legacy;rev3=census-ruling-devbox-mode;basis=new: the registrar (carlos-devbox user) reads the name from the query and the upload body (Content-Length required, capped at 200 MiB), scans it with scanSite (now also refusing a root _headers or _redirects over the edge's limit, final review fix) and reads its own registry row via claim. Caller identity is SO_PEERCRED only. Not root;rev3=census-ruling-devbox-identity;basis=#486 A: the carlos-devbox service user, not root, replaces req.URL.Query with strict url.ParseQuery(req.URL.RawQuery), refuses malformed query encoding, and validates repeated allow values before reading the capped upload body. Stores the normalized allow list in its local links.json and returns owner-filtered entry data. The scanner loses file:Query; existing archive, spool and local registry reads remain, with no new filesystem or deployment-record read. file:Read@1922,whole:Route@4070 dce50fcab6a2b64a712d58a6f236cdf19ec6264ce7bccba96116ab94c1a81d58
+internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more.;rev3=census-ruling-devbox-identity;basis=#486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. registry:Account@9457,registry:Alias@24401,registry:Alias@24488,registry:Alias@25068,registry:App@9473,registry:Health@13198,registry:Health@13324,registry:Host@10784,registry:Host@10841,registry:Host@10877,registry:Host@11620,registry:Host@13807,registry:Host@13902,registry:Host@14190,registry:Host@14216,registry:Host@14268,registry:Host@18863,registry:Host@20770,registry:Host@21078,registry:Host@21105,registry:Host@21920,registry:Host@22492,registry:Host@24822,registry:Host@24871,registry:Host@4701,registry:Host@4755,registry:Host@4805,registry:Host@5826,registry:Kind@17199,registry:Kind@17221,registry:Prefix@22467,registry:Socket@11684,registry:Socket@17078,registry:Socket@21086,registry:Status@4626,registry:Target@22479,registry:Tunnel@9317,registry:Tunnel@9488,registry:Version@17180,registry:Version@17282,whole:RegionalDomain@25710,whole:Route@10932,whole:Route@11040,whole:Route@11740,whole:Route@14341,whole:Route@14405,whole:Route@14456,whole:Route@21138,whole:Route@21145,whole:Route@21241,whole:Route@22355,whole:Route@23523,whole:Route@25702,whole:Route@294,whole:Route@3381,whole:Route@3439,whole:Route@5855,whole:Route@6744,whole:Route@6852,whole:Route@9379,whole:RouteAlias@24372,whole:RoutePath@21898 571d8e89d7c8e754b566c40946b0ee0965bf3925a71b07cde63f440bb33fda06
+@coverage . e8acf4edfef5a8b7ab7a79b981f668a07fc3af45f3fc644152e670dbac667cdc
+@coverage infra/devbox a4d597f456ba1a8e0bbc0671e249eed6afd457ac206d84c724809b54051b8e10
+@coverage internal/devbox 42f6830904ebc3c1ffad34df93de727aaf64de4f548d33444e9a81b6596a8cc6
+@coverage internal/edge 2dbe08ead960b41f06f3b08a8b50be234d2545a6e431861f25475287194f5644
+@coverage internal/tsidentity 580665b5051ea5ce8cd092d848d813ca1c24af424e2342b7b47f4ade4a21873e