| index a7cc59b06..c1f7b5b2d 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-gvisor-demos.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-gvisor-demos.tsv |
| @@ -1,6 +1,6 @@ |
| # Census overlay gvisor-demos, written by census-propose (#369). census-ruling-gvisor-demos, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-gvisor-demos.md. |
| # 18 body, 1 sites, 6 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 23 new dispositions: 0 reads re-frozen at their disposition with the claim, 23 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +# 35 new dispositions: 0 reads re-frozen at their disposition with the claim, 35 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| @legacy 4ef93c4470151048cf05dc69a2c0c2375a4f25b65e6af8c33ab740705a6b33b5 internal/host/bootstrap.go bootstrapWithGroup legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b;basis=Move bootstrapWith body here, retaining host.env, embedded unit reads and tmpfiles execution. Group live caller holds root mutation guard; skip automatic update/recovery units, preserve Restart=no/nftables drop-in and masks, and write separate root-owned /run/carlos-group-maintenance tmpfiles rule outside service ownership walk. No agent receipt read.;rev3=census-ruling-gvisor-demos;basis=Create the rootfs parent at 0700 and runtime root at 0755. Existing host.env/unit reads unchanged; workload templates remain unarmed. file:Command@12057,file:ReadFile@564,file:ReadFile@7111 2710b4ae0c444e7742e91dfffc6c136a698927eb62c42eae7cfc4eb1b06d2453 |
| @legacy ef8c8c20a6fd6daec8dc2c84b454a0cb05e9fc604300a1d3098f843ae5b6b67a internal/host/systemapply.go systemApplier.installUnits legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-agent-start-demo-1;basis=Renders the staged build slice against live root host configuration; preserves it when settings cannot be parsed.;rev3=census-ruling-region-ha-p3b;basis=Require group apply/rollback permit, preserve root Restart=no/nftables drop-in and masks, and skip automatic update/recovery units. Existing staged unit and host.env reads remain; new indirect marker/permit reads are protected and agent receipts are excluded.;rev3=census-ruling-gvisor-demos;basis=Create rootfs/runtime parent directories before controller restart. Existing staged unit and root-owned host.env reads unchanged. file:ReadDir@1509,file:ReadFile@1060,file:ReadFile@2100,file:ReadFile@5135,file:Stat@2758,file:Stat@4051 f20ce9ef05e19ccb08e68d7c7935aaf20175892fa2616c794ac6adad5303a8a8 |
| @legacy 396d3405311b55e3a1a748760a780bf8688577abacc3317cda791764969f5d74 internal/host/systemapply.go systemApplier.stagePlan legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p3b;basis=Require groupExecutable before staged bootstrap execution, matching the authorized old/new artifact through existing no-follow slot checks. New indirect marker/permit reads are root-protected; staged path still subject to existing release verification, direct read site unchanged.;rev3=census-ruling-gvisor-demos;basis=Require sandbox awareness before clearing or creating staged unit plan and invoking bootstrap. No added direct read. file:ReadDir@710 29ad3b5339fafc83341b78d5d9542c36c7919e9258aa7ac2df6a723f2c888241 |
| @@ -8,10 +8,17 @@ |
| @legacy 5fd7a23e052a152316c75b4c833012f4ac059e747fa492da80bf6e1706058039 internal/instancectl/demo_policy.go Server.demoHandler legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-start-demo-1;basis=R26: HostDemo and the demo start/purge lock run only in demo mode. Ordinary starts do not read HostDemo or gain its read-error refusal. Demo-mode missing/non-demo/held-row and read-error refusals remain.;rev3=census-ruling-gvisor-demos;basis=Retain authenticated claim cleanup routes on demo-plus-claims sandbox refusal when a ClaimStop handler exists; sandbox admission still rejects claim launches, and claimAwareLegacy rejects legacy mutations. Existing registry reads unchanged. file:Query@485,file:Query@525,registry:Status@703,whole:Route@658 b52ba1d3b35ed5195d5009ec59c180abd32262bd716ddbac4e1de245f1173d2e |
| @legacy 05b7a387b7ff2a6a99259dde4f508f308afaf7cfff9a08c2ddc648169578c082 internal/instancectl/rootfs.go Server.runRootfsProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=instance control (/opt/carlos/carlos instance-control, carlos-instance-control.service, root);basis=root-input (J2,J4, as Server.RunProbe): new (rootfs Plan 2 Task 7): builds the probe image once per service start, hashes it (fileSHA256), lays out the _probe rootfs exe layout and its box-addrs, starts carlos-instance-rootfs-probe.service and ReadFiles its report from /run/carlos-control/rootfs-probe.out, which PID 1 writes from the probe's stdout; the probe runs the platform binary from root's own probe image, no tenant code; the report only decides readiness, and without an ok root-image line it is never ready, whatever it says;rev3=census-ruling-agent-start-demo-1;basis=Reads DemoBox and refuses before preparing or launching a rootfs probe; ordinary probe behavior unchanged.;rev3=census-ruling-gvisor-demos;basis=Refuse sandbox configuration or readiness errors before preparing or starting the native rootfs probe. Existing image read unchanged. file:ReadFile@2005 6ad27d7fe661eba457ea01736b8c482e27fd3d1a64ed80e8afefa8ffe4e9f386 |
| @legacy 7129928a96c588d2dcaf6e93b8c5e5f6977f2519ccb60f1af361f7b1c57602ee internal/instancectl/server.go Server.RunProbe legacy accepted-legacy accepted-legacy;rev3=J2,J4;basis=root-input;rev3=census-ruling-rootfs-apps-2;basis=after the resolver allow it applies the box-address deny (denyLocalAddrs: set-property IPAddressDeny on carlos-instances.slice from localPrefixes, which reads /proc/net/fib_trie and /proc/net/if_inet6 as LocalAddrs already did), writes the probe's box-addrs under its own exe layout (writeFileExcl, a decision row), and after the binary probe runs the rootfs probe (runRootfsProbe, a decision row); its own direct read, probe.out, is unchanged;rev3=census-ruling-region-ha-p3b;basis=Take shared root hairpin lease for the entire probe so deny refresh and hairpin mutation cannot race it. Indirect reads validate root boot snapshot, root state/fence and interface inventory; existing probe.out direct read remains and lock/config errors fail readiness.;rev3=census-ruling-gvisor-demos;basis=Refuse sandbox configuration or readiness errors before fixture reads and native probe dispatch. Existing probe read unchanged. file:ReadFile@2608 2a0e32e04c6e0c5f25021c62f760f72429fa5e91d7597fcc4b09b7fdf5790b34 |
| -@legacy eb02d318090e4d9fff2ea925355bc106b08d8a9bfdcdb33b5105454e0e85d014 internal/instancectl/server.go type Server legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-gvisor-demos;basis=Retain Task 1 mode/error/readiness fields; add baseline and runtime callbacks. No new direct read. file:Statfs@4202 7d410804e45d30e2d3537eec0d750021c28e129f5be1a472600d3e3f15141790 |
| +@legacy d9a4af73ae74fd61e028c47d796a277efb91a64f223e17d1e4d3036e24587466 internal/instancectl/server.go type Server legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-gvisor-demos;basis=Retain Task 1 mode/error/readiness fields; add baseline and runtime callbacks. No new direct read. Retain per-host validated staged descriptors and the root-selected probe nonce for Task 4 bundle reconstruction; no new direct read. file:Statfs@4335 a716011c72906d5c345685c71e54157754d633e6292cbd462875f4986ed66067 |
| @legacy 4fb49c7ba8d52c022c0748d216f18a99d973c0a5a858e790446558f2eff9500c internal/execsandbox/file_linux.go checkRunscDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open and fstat root-owned no-follow runtime directories; require 0755. Paths selected by compiled pin or root-owned installation temp. file:Stat@137 39283ba464884471a3085ea8bbb9260eb7b82c7300444aff12680cbee6018a05 |
| @legacy 3a6e0c0d7ef5c570e3b1d1d803ac705cd45c84fb9b50868a9582446548a9e956 internal/execsandbox/file_linux.go openCheckedDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Walk absolute clean path from root with O_DIRECTORY/O_NOFOLLOW; fstat each ancestor for root ownership and no non-root write bits. No agent-selected path in production. file:Open@197,file:Openat@458,file:Stat@687 8b45bad16e2732bd7fdfc69a8beb7f4961936cedd7f36ad4d957b02df3e2dddf |
| @legacy 518c5527298ee264e142c0d5e9ed806175417c5f87108b6d73b48f5f120899a7 internal/execsandbox/file_linux.go openCheckedFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open leaf relative to checked root-owned parent with O_NOFOLLOW/O_NONBLOCK; fstat regular/single-link/root-owned/mode/size metadata before reading. No symlink traversal. file:Openat@297,file:Stat@524 fedd812d2fa99959f5b58a51ab767935396e922009eae3b5d1f93afd1f872be9 |
| +@legacy d2c5f1863c01eae42f7c7b14a28fd2f15b8c8138713ddab9b433d7612ad07304 internal/execsandbox/oci_linux.go bundleStore.config legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open only config.json relative to a checked bundle fd, O_NOFOLLOW/O_NONBLOCK; require root:root 0600 single-link regular file. file:Openat@74 066769b0db6c1901dbdaf4df3d7740868630517b371101e4abd95ee1f40ca0ab |
| +@legacy 9bd7b4129d9a388b82ed8121c295799fac0bf5698fce1688e766d40ae21b242f internal/execsandbox/oci_linux.go bundleStore.directory legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open checked root-owned no-follow ancestors, optionally mkdirat only the derived directory, open final directory O_NOFOLLOW, require exact root ownership and 0700 bundle or 0755 skeleton mode. Private test seam never supplied by exported APIs. file:Openat@427 4d0c4bff6102cc4a3aaf40908b89356158a21eadfa8cf0ee8fd17da639b8bbb9 |
| +@legacy 785aac710fc67d4e50dbc73fbd14e896f56c8ee19af9bd0fb80deb78b83804cb internal/execsandbox/oci_linux.go bundleStore.metadata legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Fstat already-open bundle/skeleton descriptors; require exact uid/gid/type/mode and single-link regular files. file:Stat@80 f7048e39e4c3dde23346c73add6eb819374d030daa85561684a0c34a9851942e |
| +@legacy de56fd40f24066da5f4c2fcda09c1f55a78a7eac0d5fe7662d499dc84e59ee51 internal/execsandbox/oci_linux.go bundleStore.readBundle legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read checked root-owned config.json up to 64 KiB and compare fstat identity before/after; reject empty, oversized or changing content. file:ReadAll@310,file:Stat@252,file:Stat@408 1a56ee452e3ac791d9c0aee1792309135d370b7ccb148ad1a8e1f895599e0d9c |
| +@legacy 263f474075dc5b03469e53c62d5cbb3172691fa2de0de62026e9e8ba6814b532 internal/execsandbox/oci_linux.go bundleStore.verifyRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Enumerate only checked root-created skeleton descriptors; open children O_NOFOLLOW and directories O_DIRECTORY, verify exact constructor-derived membership, root uid/gid, 0755 directories and empty single-link 0444 files. Never inspect mounted tenant data. file:Openat@1217,file:ReadDir@847,file:Stat@604 0e7970cb3b4d4b4fb400fbe56e1f561d72763f861965dd1bc738eb7c7d490cd7 |
| +@legacy 0a26f33153db96cc4081d7f8a88df394231b377b2fddb46ea9e646bf2d25b155 internal/execsandbox/oci_linux.go bundleStore.writeBundle legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read cryptographic randomness for exclusive temporary name and existing checked config metadata; write 0600 file, fsync/rename/fsync and compare checked bounded readback. Directory and id are root-derived, not tenant paths. file:Openat@555,file:Read@451 20c46f33b1290c83cf51710cb128d000965711814cbfd165e84cd581807f99a8 |
| +@legacy a6176e48c0fcad4995e5efad799b1b37bd50923561d38c615dc21e27c523492c internal/execsandbox/oci_linux.go bundleStore.writeRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Lstat root-derived per-id skeleton; existing trees must verify exactly, new entries are created through no-follow checked parent fds from the same mount constructor. No tenant source stat or content read. file:Lstat@211,file:Openat@762 2d725cae0f27f50b1dcd5c8230d9b28d5d9c6a0d708e61f314d00a7f5b54f50c |
| @legacy 807394aaf07e87f763e48fa19c3b41d67b2d446c08a47161e599bf6780512300 internal/execsandbox/protocol.go ReadProtocol legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Scan one checked root-owned executable, bounded at 96 MiB, using its fstat size. Fixed staged/prev/restore paths. file:Stat@154 86de5a4136e7566f36ae84d044b78e3a8d05c666b08612c9092868be22db1c71 |
| @legacy 39b3f98c010e512816b6964fd4de98193a850564e68021119a888e6a97f7befa internal/execsandbox/runsc.lock.json external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Extend the embedded release-20261102.0 pin to exactly the five R-T2 executable members on each Linux platform. Archive SHA512 was verified before extracting the named regular members; freeze each SHA256. Top-level SHA256 still equals runsc. No external runtime read. file:external@0 3a24ba581a95bc8fd8283984b5501f0002daff003e2d8fe90571e150ba15b617 |
| @legacy 3716cf34bc92818af29a7f7df21205eb21383beae521bfb8d5c004de2d553efa internal/execsandbox/verifier.go RunscVerifier.verify legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read and hash exactly five pin-selected members; fstat before/after hash; cache by device/inode/size/mtime/ctime and hash. Revalidate metadata and ancestors on every call. file:Stat@477,file:Stat@748 5a9c63db1637659b68a7b1784707a50ee38e7e7ae85f8c71dc250c84e53cfa25 |
| @@ -31,6 +38,11 @@ |
| @legacy 1cb2a2b1f667f42c1b24eb4997c20b5ecc00a9571d92060dedfada948e8a0f5d internal/host/units/carlos-instance-gvisor-probe.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Add the unarmed root gVisor probe skeleton with empty ExecStart, all twelve measured properties, fixed probe data/run paths, append output and mixed kill with SIGCONT. Root command preparation must reset output and bind a fresh nonce before start; full readiness consumer remains a later task. file:external@0 b05d264190ef2172e87e5b2667164f2051e83016695595e32ccbcdce9186eb6b |
| @legacy 4de04c1583d5fa335adadb7227f9ce1ec35e28280744d6571ebe92c72b4442f2 internal/host/units/carlos-instance-gvisor@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Add the unarmed root gVisor run skeleton with empty ExecStart and all twelve measured host properties. Defines per-instance data/run writable paths and socket output, root runtime directory, mixed kill with SIGCONT, and the existing bounded stop. A root-prepared validated command drop-in is required before it can start; no command or pin placeholder is installed here. file:external@0 914a3c0486d83b6b87ce14c473aab9005ff7bc004cb984040a81ddc60087a5c1 |
| @legacy dd34ca6003fd907b4919382e5d960722556e8d322311cfa1d70b1eb76d96274d internal/host/units/carlos-runsc.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Root oneshot reads fixed root-owned host.env through its applet and installs compiled runtime set only under /opt/carlos/runsc; no RemainAfterExit. file:external@0 215ca2aea9519d14d0e20b5f9b6588b43ff7c5ef7b485982274fbbbfe2cf02b5 |
| +@legacy 62ae6757c1358f227e5da14c6a018cc72dedc4d1ed4c16ba5af72feb84357f99 internal/instancectl/ocibundle.go Server.gvisorExecutable legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Resolve prepared root-owned app link through existing native live or validated staged target; production passes fixed checked root file/directory helpers. file:EvalSymlinks@217 c64f3dc10842930f1c594db2ece7f41ac8bdde0d5907e510a179aee5dc7f1a21 |
| +@legacy 1ce29730ea6b37af57f6ae0465cc44f9327a20423e8dcf25026a57f30922e104 internal/instancectl/ocibundle.go Server.gvisorExecutableWith legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read only prepared root-owned app/live links and live directory listing after ancestor checks; reject staged target without retained successful validation, revalidate staged digest after checked resolved regular executable metadata, require exact live host -> ../app. No launch/source/database file is opened. file:ReadDir@1611,file:Readlink@1822,file:Readlink@711 f6a646dfcd1483b9d2aefad5ed4fd0bc015deb5d07eb928c303227f2190aff5f |
| +@legacy 594821fa6ac1e482415a2ea7adea52f1899e235ad2bd7536f8d6bc186dc8001e internal/instancectl/ocibundle.go gvisorBundlePlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Derive fixed own data/run mount paths from validated host/role/gen; serialize deterministic OCI and shared mount/skeleton layout. Data literal is a mount destination, not a filesystem read. Three platform/app/live binds are explicitly ro. data-literal@1043 955467061ca20b00b130d1ca60caedb76ffa56755660cc40266db9184778a86d |
| +@legacy 5b7e0982c612178b29e3cbeafb3bdf8f4eeaa560f773345e73df4e7a04406986 internal/instancectl/ocibundle.go gvisorRegularExecutable legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Fstat resolved app/platform file opened by fixed production OpenRootFile (root-owned, no-follow ancestors, regular single-link file); require regular executable, no content read here. file:Stat@179 9bbfb733f64393dfb54533a8c4ac0f9c1e56b6b23fc0b130f7af9b3680aaed73 |
| +@legacy 1c7f28ecd4b8cef8d77feae6c655a4fd8ee46f66480a1709dad41e7e0901df5c internal/instancectl/ocibundle.go readCarlosUser legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read fixed /etc/passwd through OpenRootFile, enforcing root owner and no-follow ancestors, bounded to 1 MiB; parse exactly one non-root carlos uid/gid without NSS or tenant input. file:ReadAll@207 83b2b8271c1d3b12e99ea6e0ad1395d0e5db7e823569702314c564ec051390af |
| @legacy 6c407dd1a2b848bef09894cb174b933331bbc0b2c8147e7e533b41c9f6bb7464 internal/instanceexec/sandbox_linux.go gvisorProbeChecks legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Preliminary guest-only probe reads the fixed /proc/self/status to check empty capability sets and NoNewPrivs, and SelfCheck opens the fixed own /data/instances/_probe directory with unchanged safe-open flags. Runs as the guest carlos identity; reports readiness incomplete until the later root challenges exist. No tenant-selected host path or root authority is added. Echo CARLOS_GVISOR_PROBE_NONCE from the initial guest environment in the additive omitempty report field; root supplies the challenge in the OCI environment. No new filesystem read or readiness grant. data-literal@696,file:ReadFile@202 b201174cac395aea50cbe7c306859c47a120d1a954d988a43e9746a1386f658a |
| @legacy 0284ae0a93f4d19ad551b3a2f7946966a11c0b7c8eb16529d0920f314284a530 internal/host/systemapply.go systemApplier.stageCandidate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p3b;basis=Require groupStageDigest before staging/candidate execution; action and new digest come from root-owned operator permit bound to boot marker. Existing signed pointer/artifact verification and two direct read sites remain.;rev3=census-ruling-gvisor-demos;basis=Pass the already-open regular file fstat size to bounded preflight. Allocate payload once at exactly that size, use ReadFull then confirm EOF; hash and scan those same bytes before staging. Root-owned staged target is still checked before execution. Preserve staging on floor refusal for apply/install-channel. file:Stat@694 ea8c519d19786af346500c289fc768bd7047639d90154af6ec6ecefdfb41d57f |
| internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): sets svc.Fleet = fleetWakeFor(os.Getenv, identity, identErr, fleetStore) from the identity it already resolves once and the deployment store the fleet loops already opened, and logs an ERROR naming the identity error when the box is on a fleet with an invalid identity. fleetWakeFor reads CARLOS_REGION and CARLOS_FLEET from the same environment. Read sites unchanged (6). Agent, not root; a platform box is unchanged.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 12: one call more beside armRunsPass, armInteractivePass(svc, reg, rolloutSink, boxJudge), in the same activator Configure hook, handing it the same box judge; fix round 1 (Astra P2, shutdown): after svc.Shutdown(ctx), shutdownInteractive(ctx) ends and joins every interactive session under the same shutdown budget; the worker's own reads are its units' (interactive.go); this body reads nothing new, the same six sites; merge of origin/main 6f1f6ca6: main's svc.Fleet = fleetWakeFor(...) and its invalid-identity ERROR line are kept as main has them (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (6);rev3=census-ruling-fix-set-aside-exdev;basis=set-aside EXDEV fix: one field more on the agent ExecBackend literal, RawInstanceDir: layout.RawInstanceDir (a pure path join: <dataDir>/.instances/<InstanceID(host)>), so the start rule set-aside moves a copy out through the raw directory instead of through the nosymfollow bind; this body reads nothing new, the same six sites;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 4: one more goroutine beside configSyncLoop: go escrowLoop(agentCtx, reg, svc), the escrow sweep every 30 s over the same registry and Service. This body reads nothing new itself; the same six sites, offsets moved; B,C,D,F authority retained. Durability 3a Task 5: one more call beside eb.EscrowKey: wireRawSecretPages(eb, PageOperator, metricsBoxLabel(os.Getenv, readMachineID())), which sets eb.OnRawSecret to page an operator (alerting.Page through PageOperator, LevelIncident) on its own goroutine with a 20 s timeout; metricsBoxLabel and readMachineID are the reads this body already makes for the moves refusal log; no new read site; the same six sites, offsets moved; B,C,D,F authority retained. Merge of origin/main 90c4d3aa: main's own later changes to this body are kept as main has them, under main's rulings; this branch's change is the same as above. Merge of origin/main 00bf5b8c (fleet set-aside EXDEV fix): main's change to this body is kept as main has it, under its own census ruling; this branch's change is unchanged.;rev3=census-ruling-probe-burst-limit;basis=two more sink wirings beside setAnalyticsSink: setProtectionSink(e.SetProtectionRecordOnly) and setAssetOwnersSource(e.AssetOwners), function values the telemetry pass calls; this body reads nothing new, the same six sites; authority B,C,D,F retained; no new root read or write kind;rev3=census-ruling-region-ha-p1b3a;basis=Arm HA placement exactly once on the existing Service before activatorStart and edges publication, wiring AwakeApps and the PageOperator callback; existing six read sites unchanged, no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Final review I3: start the concrete coordinator's renewal worker with agent setup; existing closeReplicaCoordinator shutdown cancels and joins it before release. No new read sites or credentials. Merge origin/main c59715e7: retain main's armHAPlacement(svc, PageOperator) wiring beside the existing activator setup; stateless coordinator and shutdown wiring remain. Same read sites; no new root read or credential.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): in the edge-ready callback, calls act.SetHeldWakeHook(e.HeldWake) when act is non-nil (installing the non-blocking wake callback) and stores e.HeldStreamsForStatus in heldStreamsSource. Wiring of in-memory callbacks only; no read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path. B3b: arm one journal-backed termination consumer before service startup using agentCtx and the shared confirmer; expose edge tick and join at edge shutdown. No new direct read sites.;rev3=census-ruling-agent-start-demo-1;basis=Passes the existing registry, data store and hibernation prefix into the demo worker, and the existing instance-control client into the demo before-exec hook. No alternate data store or polling loop. Merge resolution against origin/main 9bd45488 retains main's HA departure controller, lifecycle and duty wiring alongside the demo data store and worker; no read site added by the resolution.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: install closed fixed admission before every launch source, bind activator/backend and edge, wire the real termination Started lifecycle and role reader after the change index; close before cancellation/child shutdown. No new external reads or cloud authority. Fix R1: move bind/lifecycle/edge-option wiring into wireAgentAdmission and worker listing into runWorkerBootPassAfterAdmission. Worker boot waits for admission before listing then uses unchanged bounded wakes and per-host serialization; whole Route read moves to the helper. No new storage, cloud, or root execution authority. Preserve merged main's agent wiring and census basis; the branch removes one whole Route use by moving worker iteration to the helper, with no added read kind.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: arms a fleet-only worker using the existing registry, activator, backend and authenticated console transport. Owned worker stops and joins at shutdown. No new bucket reader. merge of origin/main 9b8b2c50: retain HA duty/departure lifecycle, wake-slot and existing agent wiring alongside the replica placement worker; no new read introduced by resolution. merge of origin/main 6be08467: Retain main demo configuration, admission, build and expiry wiring alongside the replica worker; merge-only body change, no additional read. merge of origin/main 7920cccf: Retain main box-role/group admission wiring and boot publication beside the owned replica worker and shutdown; main moves the boot registry List into runWorkerBootPassAfterAdmission, removing its inline whole Route site. No new read introduced by conflict resolution.;rev3=census-ruling-stateless-replicas-3;basis=Task 1 fix round 1 M3: retain the private snapshot source and cancel/join ownership, but use the replica-health-specific retry loop. It logs its first failure only and retains the existing exponential backoff capped at 30 seconds; unsupported builds return nil. Existing five direct read sites unchanged; no new credentials, bucket reader or app lifecycle action. Fix round 1 Q20: publish Edge.ReplicaSnapshots as a separate in-memory status source, leaving the tenant-visible Upstreams source unchanged. No new external reader or authority.;rev3=census-ruling-region-ha-p3b;basis=Load root-written group marker/configuration, configure signed boot binding and agent receipt completer, wire cancellable admission into departure work and expose cached GroupReaderSnapshot. New indirect boot reads use protected root files; agent-owned receipt controls duplicate initial completion only, never root restart permission. Same five direct sites. Merge 45cebde4 retains the replica health socket lifecycle and setReplicaSource beside GroupReaderSnapshot; no extra read beyond main.;rev3=census-ruling-agent-start-demo-2;basis=agent.go:309-329 opens demo-traffic.db beside the operator-configured registry when a demo domain exists, closes it at shutdown and wires drain-before-purge; :1010-1019 shares the worker and write gate; :1164-1177 installs the fleet identity and closed-until-worker serving callback. One added whole Route pass; the new indirect filesystem/SQL reads are claimed in openDemoTraffic and worker/store units. No request chooses the database pathname.;rev3=census-ruling-region-ha-p1b3b-s;basis=Wire the service duty view to authoritative cached sidecar manifest placement in LifetimeIndex and the edge sidecar projection; missing policy denies duty. Existing instance duty wiring remains.;rev3=census-ruling-region-ha-g2-t3;basis=T3a: wire eb.Page = PageOperator beside OwnerTerminated before departures arm, so suspect-holder pages work if departure setup fails; no new read; existing nine sites and authority unchanged; pages through the existing sink. T3b: publish the same backend through an atomic pointer for the metrics observer, and clear it on return; no new external read or authority.;rev3=census-ruling-agent-start-demo-3;basis=Wire the claim activator and root snapshot client into the demo worker; pass moved readiness to status reporting. Census read-site delta: unchanged (9).;rev3=census-ruling-region-ha-g2-fixes;basis=Wire local pool evidence, live withdrawal activator, startup ingress scan and alias publication, and edge lookup; no new direct sites; new indirect record/claim reads use existing store/judge paths described in ingress helpers.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: starts the existing record-view backstop loop with a departure-inventory listener (non-blocking, coalesced signal) even without an armed RecordView; it requests the existing full pass (backstopFullDue) there. Same nine read sites; no new read or authority.;rev3=census-ruling-region-ha-graceful-terminate-t2;basis=Derive one signal-time deadline with a 90-second budget; cap departure stop and startup/seed/service shutdown joins by it. No read added.;rev3=census-ruling-static-sweep-periodic;basis=in the edge-ready callback, publishes e.LargestStaticTree in staticTreeSource for the disk alert line (diskAlertFrac in the metrics loop); in-memory wiring only, no read added; read sites unchanged (9);rev3=census-ruling-gvisor-demos;basis=Capture sandbox resolution and refusal once; log errors once; gate route admission and BeforeExec before process launch. No new root read. file:Exec@19431,file:Open@1837,file:Statfs@50774,registry:App@12933,registry:Host@46810,whole:Route@12925,whole:Route@45968,whole:Route@46933,whole:Route@46995 c618605dd17ada0fb0b53b3c4d2176fd737c4f44b38a25298fbc1c48bae9fa0e |
| @@ -48,12 +60,19 @@ internal/instancectl/demo_policy.go Server.demoHandler legacy accepted-legacy ac |
| internal/instancectl/rootfs.go Server.runRootfsProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=instance control (/opt/carlos/carlos instance-control, carlos-instance-control.service, root);basis=root-input (J2,J4, as Server.RunProbe): new (rootfs Plan 2 Task 7): builds the probe image once per service start, hashes it (fileSHA256), lays out the _probe rootfs exe layout and its box-addrs, starts carlos-instance-rootfs-probe.service and ReadFiles its report from /run/carlos-control/rootfs-probe.out, which PID 1 writes from the probe's stdout; the probe runs the platform binary from root's own probe image, no tenant code; the report only decides readiness, and without an ok root-image line it is never ready, whatever it says;rev3=census-ruling-agent-start-demo-1;basis=Reads DemoBox and refuses before preparing or launching a rootfs probe; ordinary probe behavior unchanged.;rev3=census-ruling-gvisor-demos;basis=Refuse sandbox configuration or readiness errors before preparing or starting the native rootfs probe. Existing image read unchanged. file:ReadFile@2005 6ad27d7fe661eba457ea01736b8c482e27fd3d1a64ed80e8afefa8ffe4e9f386 |
| internal/instancectl/server.go Server.RunProbe legacy accepted-legacy accepted-legacy;rev3=J2,J4;basis=root-input;rev3=census-ruling-rootfs-apps-2;basis=after the resolver allow it applies the box-address deny (denyLocalAddrs: set-property IPAddressDeny on carlos-instances.slice from localPrefixes, which reads /proc/net/fib_trie and /proc/net/if_inet6 as LocalAddrs already did), writes the probe's box-addrs under its own exe layout (writeFileExcl, a decision row), and after the binary probe runs the rootfs probe (runRootfsProbe, a decision row); its own direct read, probe.out, is unchanged;rev3=census-ruling-region-ha-p3b;basis=Take shared root hairpin lease for the entire probe so deny refresh and hairpin mutation cannot race it. Indirect reads validate root boot snapshot, root state/fence and interface inventory; existing probe.out direct read remains and lock/config errors fail readiness.;rev3=census-ruling-gvisor-demos;basis=Refuse sandbox configuration or readiness errors before fixture reads and native probe dispatch. Existing probe read unchanged. file:ReadFile@2608 2a0e32e04c6e0c5f25021c62f760f72429fa5e91d7597fcc4b09b7fdf5790b34 |
| internal/instancectl/server.go runWithClaim authority C,D,G Claim instance controller adds held-release RPC dispatch within existing launch/participation execution boundary.;rev3=census-ruling-rootfs-apps-2;basis=takes a RegistryView (HostApp and HostRuntime) for the bare hostApp, and the production Server literal gains HostRuntime, ProbeImage: BuildProbeImage, ProbeImageFile: ProbeImagePath, RootfsProbeOut under /run/carlos-control and DenyEvery: 10s; this body reads nothing new itself; the readers it wires (instanceRegistryHostRuntime, BuildProbeImage, the rootfs probe's output) are decision rows;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 4 and #329 plan 3 Task 5: takes the egress asserter as a parameter, sets it on the production Server literal (Egress) and starts its 30 s Loop beside probeLoop and diskLoop; the literal also names the fixture check ProbeFixturesOK (renamed in plan 2 Task 14). It sets no control drop-in directory: plan 3's ControlDropInDir default (/run/systemd/system.control) was deleted with removeGenControlDropIn in ef38e13b (the P1 EROFS fix), so instance control names systemd's control directory only to read it (TrustedDropinReader). The same four sites (the two exec.CommandContext closures, statfsBytes, the data literal), offsets moved; no read added.;rev3=census-ruling-agent-start-demo-1;basis=Wires root-owned demo config and existing fixed paths into the service.;rev3=census-ruling-region-ha-p3b;basis=Resume root-owned hairpin state before probes/control service work; verify current systemd agent identity and kernel fence/addresses, restore pidfd watch or revoke stale state. Same direct exec/statfs/data sites; indirect inputs are protected root snapshot/state and kernel evidence, never receipt data.;rev3=census-ruling-agent-start-demo-3;basis=Construct the demo snapshot supervisor for configured demo boxes; startup cleanup gates builder readiness. Census read-site delta: unchanged (4).;rev3=census-ruling-gvisor-demos;basis=Retain sandbox modes and error; bind host-provided baseline and runtime callbacks without importing host templates. Existing reads unchanged. data-literal@2323,file:CommandContext@1076,file:CommandContext@1254,file:Statfs@2344 6d9c80b9038fe17e9b1e71188557d0c9e93a5ba6efeaa9566f85bfce1207403b |
| -internal/instancectl/server.go type Server legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-gvisor-demos;basis=Retain Task 1 mode/error/readiness fields; add baseline and runtime callbacks. No new direct read. file:Statfs@4202 7d410804e45d30e2d3537eec0d750021c28e129f5be1a472600d3e3f15141790 |
| +internal/instancectl/server.go type Server legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. Census ruling 292 reclassified this declaration accepted-legacy (J2,J4) for root's per-host ordering of legacy run starts against stops; this ruling kept the row as main classed it. Its own addition is the cmd start's poll and wait bounds and its per-host lock map: field declarations only;rev3=census-ruling-rootfs-apps-2;basis=new fields: HostRuntime, ProbeImage, ProbeImageFile, RootfsProbeOut, DenyEvery, the deny's lastDeny and denyMu, the rootfs probe's report and lock, the jit reload counters and imageDigests; genStarting counts binary generation starts per unit; rootfsLocksMu and rootfsLocks, one lock entry per rootfs unit name being started or removed right now, held by a start from its layout through systemctl start and its own cleanup and by a removal from its proof through the raw removal, a removal refusing while it is taken, a waiting start giving up when its request ends, an entry dropped with its last holder or waiter (fixes E6, L2, L3); rootfsProvenHook, a test hook run between the proof and the raw removal; field declarations only; no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 and #329 plan 3 Task 5: the declaration gains sliceLocks (one mutex per host slice, taken by /size and /parent) and Egress (the asserter every start path calls), and its comment names the egress allow (plan 3's ControlDropInDir field was deleted in ef38e13b, the P1 EROFS fix); the same one site, the Statfs field, offset moved; no read added.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 6: comments only: the one-shot pacing fields cover /cmd and /tty, and cmdLocks is now keyed by (role, host) (oneShotKey, PF-7) so a session's start never waits behind a command's; field declarations unchanged; the same one site, no read added;rev3=census-ruling-agent-start-demo-1;basis=Adds fixed demo configuration, registry views, derived runtime root, synchronization and purge guard.;rev3=census-ruling-region-ha-p3b;basis=Add hairpinActive boolean alongside lastDeny under existing deny synchronization. Field declaration only; existing Statfs selector unchanged, no new read or externally supplied authority.;rev3=census-ruling-region-ha-p3b2-rolls;basis=adds one field holding the current hairpin exit watcher, guarded by the root hairpin flock; no new read;rev3=census-ruling-agent-start-demo-3;basis=Retain the snapshot supervisor in instance-control state; no new request-selected path. Census read-site delta: unchanged (1).;rev3=census-ruling-gvisor-demos;basis=Retain Task 1 mode/error/readiness fields; add baseline and runtime callbacks. No new direct read. Retain per-host validated staged descriptors and the root-selected probe nonce for Task 4 bundle reconstruction; no new direct read. file:Statfs@4335 a716011c72906d5c345685c71e54157754d633e6292cbd462875f4986ed66067 |
| system.go runSystem authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own;rev3=census-ruling-design-pdf-service;basis=add dispatch for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Adds managed-fleets operator CLI dispatch; no direct read added; existing root command branches unchanged.;rev3=census-ruling-agent-start-demo-2;basis=system.go:62-66 adds the demos family dispatch to the console-only operator client (system_demos.go:19, system_demos_api.go:23); no direct read added and other root commands are unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Dispatches carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback} to internal/host; no read of its own.;rev3=census-ruling-gvisor-demos;basis=Dispatch fixed runsc-ensure and exec-sandbox-allows-prev system applets; no direct reads. b2d431b47f8d15cd017b8fd7507865f099465973c9f1eef8e5cc0ee6e3d1f588 |
| system.go systemVerb authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own;rev3=census-ruling-design-pdf-service;basis=add recognition for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Recognizes managed-fleets as a CLI family; no read added.;rev3=census-ruling-agent-start-demo-2;basis=system.go:43-57 recognizes demos; parsing only, no direct read added.;rev3=census-ruling-region-ha-p3b2;basis=Recognizes group-maintenance as a system verb; parsing only.;rev3=census-ruling-gvisor-demos;basis=Recognize two root sandbox applets; no direct reads. 05f652ae4aa1ba135b6bb0358be5570fe13c74e385609124a66d9947ad1f906b |
| internal/execsandbox/file_linux.go checkRunscDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open and fstat root-owned no-follow runtime directories; require 0755. Paths selected by compiled pin or root-owned installation temp. file:Stat@137 39283ba464884471a3085ea8bbb9260eb7b82c7300444aff12680cbee6018a05 |
| internal/execsandbox/file_linux.go openCheckedDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Walk absolute clean path from root with O_DIRECTORY/O_NOFOLLOW; fstat each ancestor for root ownership and no non-root write bits. No agent-selected path in production. file:Open@197,file:Openat@458,file:Stat@687 8b45bad16e2732bd7fdfc69a8beb7f4961936cedd7f36ad4d957b02df3e2dddf |
| internal/execsandbox/file_linux.go openCheckedFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open leaf relative to checked root-owned parent with O_NOFOLLOW/O_NONBLOCK; fstat regular/single-link/root-owned/mode/size metadata before reading. No symlink traversal. file:Openat@297,file:Stat@524 fedd812d2fa99959f5b58a51ab767935396e922009eae3b5d1f93afd1f872be9 |
| +internal/execsandbox/oci_linux.go bundleStore.config legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open only config.json relative to a checked bundle fd, O_NOFOLLOW/O_NONBLOCK; require root:root 0600 single-link regular file. file:Openat@74 066769b0db6c1901dbdaf4df3d7740868630517b371101e4abd95ee1f40ca0ab |
| +internal/execsandbox/oci_linux.go bundleStore.directory legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Open checked root-owned no-follow ancestors, optionally mkdirat only the derived directory, open final directory O_NOFOLLOW, require exact root ownership and 0700 bundle or 0755 skeleton mode. Private test seam never supplied by exported APIs. file:Openat@427 4d0c4bff6102cc4a3aaf40908b89356158a21eadfa8cf0ee8fd17da639b8bbb9 |
| +internal/execsandbox/oci_linux.go bundleStore.metadata legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Fstat already-open bundle/skeleton descriptors; require exact uid/gid/type/mode and single-link regular files. file:Stat@80 f7048e39e4c3dde23346c73add6eb819374d030daa85561684a0c34a9851942e |
| +internal/execsandbox/oci_linux.go bundleStore.readBundle legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read checked root-owned config.json up to 64 KiB and compare fstat identity before/after; reject empty, oversized or changing content. file:ReadAll@310,file:Stat@252,file:Stat@408 1a56ee452e3ac791d9c0aee1792309135d370b7ccb148ad1a8e1f895599e0d9c |
| +internal/execsandbox/oci_linux.go bundleStore.verifyRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Enumerate only checked root-created skeleton descriptors; open children O_NOFOLLOW and directories O_DIRECTORY, verify exact constructor-derived membership, root uid/gid, 0755 directories and empty single-link 0444 files. Never inspect mounted tenant data. file:Openat@1217,file:ReadDir@847,file:Stat@604 0e7970cb3b4d4b4fb400fbe56e1f561d72763f861965dd1bc738eb7c7d490cd7 |
| +internal/execsandbox/oci_linux.go bundleStore.writeBundle legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read cryptographic randomness for exclusive temporary name and existing checked config metadata; write 0600 file, fsync/rename/fsync and compare checked bounded readback. Directory and id are root-derived, not tenant paths. file:Openat@555,file:Read@451 20c46f33b1290c83cf51710cb128d000965711814cbfd165e84cd581807f99a8 |
| +internal/execsandbox/oci_linux.go bundleStore.writeRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Lstat root-derived per-id skeleton; existing trees must verify exactly, new entries are created through no-follow checked parent fds from the same mount constructor. No tenant source stat or content read. file:Lstat@211,file:Openat@762 2d725cae0f27f50b1dcd5c8230d9b28d5d9c6a0d708e61f314d00a7f5b54f50c |
| internal/execsandbox/protocol.go ReadProtocol legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Scan one checked root-owned executable, bounded at 96 MiB, using its fstat size. Fixed staged/prev/restore paths. file:Stat@154 86de5a4136e7566f36ae84d044b78e3a8d05c666b08612c9092868be22db1c71 |
| internal/execsandbox/runsc.lock.json external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Extend the embedded release-20261102.0 pin to exactly the five R-T2 executable members on each Linux platform. Archive SHA512 was verified before extracting the named regular members; freeze each SHA256. Top-level SHA256 still equals runsc. No external runtime read. file:external@0 3a24ba581a95bc8fd8283984b5501f0002daff003e2d8fe90571e150ba15b617 |
| internal/execsandbox/verifier.go RunscVerifier.verify legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read and hash exactly five pin-selected members; fstat before/after hash; cache by device/inode/size/mtime/ctime and hash. Revalidate metadata and ancestors on every call. file:Stat@477,file:Stat@748 5a9c63db1637659b68a7b1784707a50ee38e7e7ae85f8c71dc250c84e53cfa25 |
| @@ -73,11 +92,16 @@ internal/host/units/carlos-demo-build-gvisor@.service external legacy accepted-l |
| internal/host/units/carlos-instance-gvisor-probe.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Add the unarmed root gVisor probe skeleton with empty ExecStart, all twelve measured properties, fixed probe data/run paths, append output and mixed kill with SIGCONT. Root command preparation must reset output and bind a fresh nonce before start; full readiness consumer remains a later task. file:external@0 b05d264190ef2172e87e5b2667164f2051e83016695595e32ccbcdce9186eb6b |
| internal/host/units/carlos-instance-gvisor@.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Add the unarmed root gVisor run skeleton with empty ExecStart and all twelve measured host properties. Defines per-instance data/run writable paths and socket output, root runtime directory, mixed kill with SIGCONT, and the existing bounded stop. A root-prepared validated command drop-in is required before it can start; no command or pin placeholder is installed here. file:external@0 914a3c0486d83b6b87ce14c473aab9005ff7bc004cb984040a81ddc60087a5c1 |
| internal/host/units/carlos-runsc.service external legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Root oneshot reads fixed root-owned host.env through its applet and installs compiled runtime set only under /opt/carlos/runsc; no RemainAfterExit. file:external@0 215ca2aea9519d14d0e20b5f9b6588b43ff7c5ef7b485982274fbbbfe2cf02b5 |
| +internal/instancectl/ocibundle.go Server.gvisorExecutable legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Resolve prepared root-owned app link through existing native live or validated staged target; production passes fixed checked root file/directory helpers. file:EvalSymlinks@217 c64f3dc10842930f1c594db2ece7f41ac8bdde0d5907e510a179aee5dc7f1a21 |
| +internal/instancectl/ocibundle.go Server.gvisorExecutableWith legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read only prepared root-owned app/live links and live directory listing after ancestor checks; reject staged target without retained successful validation, revalidate staged digest after checked resolved regular executable metadata, require exact live host -> ../app. No launch/source/database file is opened. file:ReadDir@1611,file:Readlink@1822,file:Readlink@711 f6a646dfcd1483b9d2aefad5ed4fd0bc015deb5d07eb928c303227f2190aff5f |
| +internal/instancectl/ocibundle.go gvisorBundlePlan legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Derive fixed own data/run mount paths from validated host/role/gen; serialize deterministic OCI and shared mount/skeleton layout. Data literal is a mount destination, not a filesystem read. Three platform/app/live binds are explicitly ro. data-literal@1043 955467061ca20b00b130d1ca60caedb76ffa56755660cc40266db9184778a86d |
| +internal/instancectl/ocibundle.go gvisorRegularExecutable legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Fstat resolved app/platform file opened by fixed production OpenRootFile (root-owned, no-follow ancestors, regular single-link file); require regular executable, no content read here. file:Stat@179 9bbfb733f64393dfb54533a8c4ac0f9c1e56b6b23fc0b130f7af9b3680aaed73 |
| +internal/instancectl/ocibundle.go readCarlosUser legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read fixed /etc/passwd through OpenRootFile, enforcing root owner and no-follow ancestors, bounded to 1 MiB; parse exactly one non-root carlos uid/gid without NSS or tenant input. file:ReadAll@207 83b2b8271c1d3b12e99ea6e0ad1395d0e5db7e823569702314c564ec051390af |
| internal/instanceexec/sandbox_linux.go gvisorProbeChecks legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Preliminary guest-only probe reads the fixed /proc/self/status to check empty capability sets and NoNewPrivs, and SelfCheck opens the fixed own /data/instances/_probe directory with unchanged safe-open flags. Runs as the guest carlos identity; reports readiness incomplete until the later root challenges exist. No tenant-selected host path or root authority is added. Echo CARLOS_GVISOR_PROBE_NONCE from the initial guest environment in the additive omitempty report field; root supplies the challenge in the OCI environment. No new filesystem read or readiness grant. data-literal@696,file:ReadFile@202 b201174cac395aea50cbe7c306859c47a120d1a954d988a43e9746a1386f658a |
| internal/host/systemapply.go systemApplier.stageCandidate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-p3b;basis=Require groupStageDigest before staging/candidate execution; action and new digest come from root-owned operator permit bound to boot marker. Existing signed pointer/artifact verification and two direct read sites remain.;rev3=census-ruling-gvisor-demos;basis=Pass the already-open regular file fstat size to bounded preflight. Allocate payload once at exactly that size, use ReadFull then confirm EOF; hash and scan those same bytes before staging. Root-owned staged target is still checked before execution. Preserve staging on floor refusal for apply/install-channel. file:Stat@694 ea8c519d19786af346500c289fc768bd7047639d90154af6ec6ecefdfb41d57f |
| @coverage . e359ebe397bac9cf64ba77fb85322e55c3409dc5ca63c9a7c1dc51348ca0ade0 |
| -@coverage internal/execsandbox ca4033868fb993ce99b6be31d75086de280f2e9e4415bd3b3a1b9e1438864ff7 |
| +@coverage internal/execsandbox 2e94d03c097be203102790e999973c03a941fab38e9bac326f0b1570758d1d14 |
| @coverage internal/host ac30199a6dab2d9e57234bbfd8a6f9d377115cdf16cbdd0ef612fa0418e9fb1d |
| @coverage internal/host/units 93402572d2fc9c32b563820a36d565afa2ed951637bde9561fe2e845137a6524 |
| -@coverage internal/instancectl 540d394b34894c830106f093152a449f152a51f6fd422ab9a9595c96a9beef7f |
| +@coverage internal/instancectl 1b49f783028887e95b215a129b18b4fa308ec685e4f253cd21d19135f0d58714 |
| @coverage internal/instanceexec 451a4cb9a8fc078f883afab1c361678185c332a1e294c24420ab4ae2fb3face9 |