| index 9a12a0260..61b5c4ab1 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-gvisor-demos.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-gvisor-demos.tsv |
| @@ -24,7 +24,7 @@ |
| @legacy 82ba9b45321078b468fb92afd835e2f75415a3c7ae7109cb61b08d39e02082c5 internal/instancectl/gen.go Server.handleParent legacy accepted-legacy accepted-legacy;rev3=J2,J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 5: holds the host's slice lock (lockSliceWrites) around its one set-property, so /parent and /size never interleave on one slice. Its one site is still r.URL.Query() of the agent's request (counted as file:Query). The checks in this body are unchanged, though cgroup.ValidParentLimit, which it calls, now accepts one size or the sum of any two from the four-row table (up to 4 GiB, was 2 GiB); no read added.;rev3=census-ruling-agent-start-demo-1;basis=Reads fixed DemoBox and clamps the existing parent memory writer to small.;rev3=census-ruling-gvisor-demos;basis=Validate logical parent input as before, require the demo route in gVisor mode and apply Physical once to the small demo parent. Existing request query read unchanged; shares stay logical. file:Query@78 0646b2e418f426992e35bb05ec9a2c23fa0f916f7af1e4366f3ade14ddc12c69 |
| @legacy d6421b84958c2af443e0556aa224414d7a2a9056ed887f0cd389c7b4c1a759a9 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. Task 6: Effective gVisor refuses ROOTFS explicitly before native/rootfs probe preparation; no fallback. Existing native reads unchanged. file:ReadFile@2133 9f191518546c42664f607e5b8dbc85bc273fc7abc29bb12283edad58223b73a3 |
| @legacy fba53ebc8c38053a37328dd85a3d3b38d4852b20f20cc55897227a59722cac5a 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=Select the fixed root-private probe family and delegate gVisor to its serialized root/guest proof, with no native/rootfs fallback. Task 6 fix round 1: remove mode drain from probe execution (Ready/ReadyDemo only), and let runGVisorProbe atomically publish the report/runtime identity including start lines once. Existing native report read unchanged. file:ReadFile@2874 d77aeeac7de9d58663980809014bd4c83060235b63ac4c85cf25bcb89827c80b |
| -@legacy 82605110a6be16960462dabb0f3740520c3204748ff60a8ead26fc4c36d91d90 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, baseline/runtime callbacks, Task 4 per-host validated staged descriptors and root-selected probe nonce. Fix round 1 adds a private writer-operation seam assigned only in package tests, after the unchanged GVisorID admission check; production defaults still call the same checked constructor, WriteRootfs, WriteBundle and verifier. No new direct read or request-controlled callback. Task 5: private injected removal seam for unprivileged tests; production default removes only root-derived bundle and skeleton after both-family proof inside existing start fence. No new request field or agent-selected unit. Task 6: Retain serialized probe nonce, runtime-set identity verifier/token, fixed claims flag, bundle discovery root, and private unprivileged identity seam. No request-controlled callback or path; existing declaration read-site classification unchanged. Task 6 fix round 1: private gvisorProbeTestOps is set only in package tests; production defaults retain all fixed paths and the checked root output opener. No externally supplied callback or new direct read. file:Statfs@4829 1541a3b0e5f9972f07c1d94b85d1067fa83d1b24099ebf6b65d783716d4a7353 |
| +@legacy 943e4b95e8403b0b443cdfc93ab673596230ef7e6c122bc34f9fc2cadbf44775 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, baseline/runtime callbacks, Task 4 per-host validated staged descriptors and root-selected probe nonce. Fix round 1 adds a private writer-operation seam assigned only in package tests, after the unchanged GVisorID admission check; production defaults still call the same checked constructor, WriteRootfs, WriteBundle and verifier. No new direct read or request-controlled callback. Task 5: private injected removal seam for unprivileged tests; production default removes only root-derived bundle and skeleton after both-family proof inside existing start fence. No new request field or agent-selected unit. Task 6: Retain serialized probe nonce, runtime-set identity verifier/token, fixed claims flag, bundle discovery root, and private unprivileged identity seam. No request-controlled callback or path; existing declaration read-site classification unchanged. Task 6 fix round 1: private gvisorProbeTestOps is set only in package tests; production defaults retain all fixed paths and the checked root output opener. No externally supplied callback or new direct read. Final R1 P2: retain fixed skeleton parent and concurrent per-instance cleanup refusals; no direct read or external configuration field. file:Statfs@4909 6eb459d77f07ba715fd15078c35a70bad6fd9d10837fedd7ccaa38cd4a6eb720 |
| @legacy ada6718d9612d563ad7856e1086f4a4fcf65eb613b39014856e9be0f2a9f4bdc internal/publicrelease/feed.go Feed.get legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-gvisor-demos;basis=Bound release downloads with a one-byte oversize check so a signed prefix cannot authenticate a truncated larger response; existing HTTP body read only, no new root input. file:ReadAll@518 8da54d4a2ce87c719f1927f1c96d9ea71770fa2475010a220c5029e3086d2752 |
| @legacy 94f529dab8132514e8465d43036503f8d2bf3756fbffef26c885dca3e706b1c1 internal/status/dryrun.go dryRunFixtures legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-gvisor-demos;basis=Task 8: add private sandbox status and row fixtures plus leak needles. Fixture data only; public fleet shape unchanged. whole:Route@5482 8ddd1f1ff4d638b9ec2df0f24fe3f3559fe5a6f2b4d9e347f539aee89d95faf1 |
| @legacy e2acef4737299cc83882f71697f932039ba26522a61138d88aaa2361c120b1db status_instances.go printStatusLayout legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 12 and #329 plan 3 Task 10: carlos status --layout, in the operator's carlos CLI on the operator's own machine, prints SIZE and EGRESS columns from the console's JSON (statusLayoutRow.Size and Egress), joins the egress reason into REASON and prints one note when a size is pending; the same one site (the /data literal in the mixed-box warning), no read added.;rev3=census-ruling-region-labels;basis=a REGION column (statusRegionCell) from the console's answer; no read added;rev3=census-ruling-gvisor-demos;basis=Task 8: print draft SANDBOX column and one exec-sandbox summary per reported box from the existing operator API. Missing/stale reports display unknown; no new file read or authority. data-literal@2413 28d6e05b336a4c99d9e1a3172116a4f6c03ddc7ae3cacd68d0ba0b304b203687 |
| @@ -64,10 +64,10 @@ |
| @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 e5a4701c68ee01ad17e15dbad4f8e9bde74c34b59f38fd0b111d1c2f3fea9ac1 internal/instancectl/demo_policy.go Server.demoCgroupReadback legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read memory.max/high/swap.max, pids.max, cpu.max/weight and io.weight in the derived parent and validated child cgroups. GVisor uses Physical memory/tasks and logical shares; pre-start only absent groups may defer verification, and post-start requires every file. Native checks remain the existing logical limits. Task 9: Round only expected kernel memory.high for existing run and parent reads; exact memory.max and required kernel files retained. No new read. file:ReadFile@1379,file:Stat@1224 41da87161a8858d3749a461486fff9a6a46b9dccbc421658a4f0643e329e9afd |
| -@legacy 00c33dceabb209518ceebdc5ad8c399df4101357804a47141965cf01f13e1330 internal/instancectl/gvisordrain.go Server.sandboxUnitEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the fixed carlos.slice cgroup hierarchy for the named discovered unit and require populated 0; skip other service subtrees. Task 6 fix round 1 confines the opposite-family caller to Ready/ReadyDemo. No request-selected filesystem path or new read site. file:WalkDir@116 e802bfb809b344b2ae4e1b3d7ae9f4896b8e3396dac720de56fa218b203e8994 |
| -@legacy 2f09251e4b1d9e0966073e3ce00e5bdb6810f0e7d483fa7b054fc1d779f171f4 internal/instancectl/gvisordrain.go Server.sandboxUnitsFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 6 fix round 1: enumerate systemd units/jobs and the fixed carlos.slice kernel hierarchy, filtering by the requested fixed family. Ready in systemd mode lists only gVisor instance/probe/build patterns and ignores native jobs/services; original gVisor host overlap checks request both families. Never invoked by native per-start admission. Only kernel-owned cgroup directory reads; no tenant-selected path or runsc-state traversal. file:WalkDir@1194 6ce5d5d373840b13e1bf20a1791cbd1390540448fd238e71b2b8abb4acf05216 |
| -@legacy 732a77a4fb010d06211707a09b74525afb694cd4b7d03fecda1fc24eddf98e09 internal/instancectl/gvisordrain.go Server.sweepGVisorBundles legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=List the fixed root-owned OCI directory, accept only validated run IDs, skip live/in-flight work and acquire the original instance-ID fence before both-family stop/delete proof and removal. Never opens /run/carlos-runsc. file:ReadDir@130 0572d9325bd87b5326c195ad30874350114ad25f72d99648731ffe45ea2924a7 |
| +@legacy e17ce3f2cb6a0ecc34ddc280dadf3cb4071e68fc98be8ce46882aa3543f88a27 internal/instancectl/gvisordrain.go Server.sandboxFilesPresent legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Final controller ruling: check only the two fixed root-owned bundle/skeleton parents, listing only their immediate entries (ReadDir opens directories without blocking on a FIFO), without recursion, systemctl or cgroups. Empty or absent parents mean no retained state; loaded-only inactive units are explicitly excluded because files precede start and removal follows termination proof. Other filesystem errors refuse readiness. file:ReadDir@182 8bf90d0c5cd5d8f856a465549fd96db2f763a6137dc64460728422151285503d |
| +@legacy 399c3d5adc5338ada7970bcce06fa5ff25583b2c41568d72be12479c17d50d10 internal/instancectl/gvisordrain.go Server.sweepGVisorBundles legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=List the fixed root-owned OCI directory, accept only validated run IDs, skip live/in-flight work and acquire the original instance-ID fence before both-family stop/delete proof and removal. Never opens /run/carlos-runsc. Final R1 P2: keep a cleanup failure keyed to the validated instance ID before releasing its start fence; continue other hosts. No proof or removal check is relaxed; successful fenced stop clears the refusal. file:ReadDir@130 b10eae31d4825bf01a2c11bc4ed6d6d625d2506bdb352ed07059a97a306a71d2 |
| @legacy 289e4e86ceacf4c869115693ea028f091344b330be5a02aecb4a8aac94fc3c08 internal/instancectl/gvisordrain.go sandboxGroupEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the caller-derived kernel cgroup.events path and require a single populated 0 field; malformed/present nonzero state refuses proof. file:ReadFile@57 4776168285ee07b83941a24023d959616dbe5af6f76491c094f1f12024384ea7 |
| +@legacy 970dace1af1afe0061af511900d05c8fc829c1b636c2c5d6811b222c9a4968c5 internal/instancectl/gvisordrain.go walkSandboxCgroups legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Consolidate the two existing walks of the fixed cgroup root. ENOENT at any visited path is empty, including a directory deleted after parent enumeration. All other errors and original callbacks propagate unchanged. file:WalkDir@75 e29ef42f1fed7a52865b66214d41918bf836f4a446a00ed219b686af298bded0 |
| @legacy 6d40c9bc5a9d95d37fbcde6ad7537905ebce03da2daf9a56c089c36f022cff91 internal/instancectl/gvisorprobe.go Server.gvisorProbeKernelLimits legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read only the fixed probe unit cgroup limit files, requiring the pinned physical memory/tasks and logical CPU/IO contract. Task 9: Round only expected kernel memory.high for fixed probe cgroup reads; exact memory.max retained. No new read. file:ReadFile@408 b9e59399db4166e2c76b29743f1debf4e5eee4e248f08783a9cc38b5195787bd |
| @legacy 805ba3299be5e00aedcc1bdad6cb8cc70c35355c480019ca24f8f13400465dcf internal/instancectl/gvisorprobe.go Server.runGVisorProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 6 fix round 1, applying the controller rulings: serialized probe construction uses root random nonce/fixed paths, root-only O_EXCL fixture, abstract listener, typed verified bundle/unit and context recheck. Read bounded root-owned nonce-bound output and the guest socket handshake; inspect kernel/proc runtime and limits while guest waits. Termination uses inactive/not-loaded state, no job/PIDs and empty cgroup, never per-command stop-post records. Keep the prior pass during the run and publish report plus runtime identity once, after cleanup; any failed attempt invalidates it and records the bounded diagnostic. A private package-test-only operations struct substitutes paths, executable preparation and output opening; production keeps GVisorProbePaths, fixed output/procfs, ensureExe and execsandbox.OpenRootFile. No new tenant-controlled path, launch/source/database read, or runtime-state read. CI fix: route serialized nonce fixture/output cleanup through existing pinned removeGenFiles owner with closed gVisor selectors and fixed probe paths. Existing reads and stop proof unchanged; no new raw removal owner. file:Lstat@2524,file:OpenFile@1887,file:Read@1577,file:ReadAll@4868 56e6b995e3346e3bc04cf751dc9196f8ddb8e46c1f8885fbca5130ff98720fbd |
| @legacy 5453c559c4886ff67c038178332bf104aad65ec1475fc16c213c01681d76e29f internal/instancectl/gvisorprobe_linux.go gvisorProbeProcesses legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read kernel cgroup.procs under the fixed probe subtree and /proc/<numeric PID> exe, cgroup, cmdline, task directory and children. Require pinned-set executable paths, in-subtree membership, live gofer/Sentry and no descendant outside the unit. PIDs come from kernel/systemd evidence, never a request. file:ReadDir@1895,file:ReadFile@1085,file:ReadFile@1381,file:ReadFile@2022,file:ReadFile@468,file:Readlink@925,file:WalkDir@279 f83c97c76a1584b3ae4ac34d4098902c7b805a970ce6dc5c8378e787c694ab0a |
| @@ -77,7 +77,7 @@ |
| @legacy 5d9afb4a737882b56f397e19da88961f70bd7a278810cea13944f2d47d72541a 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. Task 6: Pass the already root-resolved numeric carlos uid/gid alongside the serialized probe nonce in the OCI environment. No added mount, launch parsing, or filesystem read. data-literal@1187 064e8089b8b53b09eed7ebb8d2c050084a7beb091043a8c5667f3266f3cb0977 |
| @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 4e1e0e30bc8cfd5ed764037291e6cb878a5007fe869f6903931d7ad05b46ae56 internal/instancectl/sandbox.go Server.requestFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the registry route through the existing root-provided HostDemo callback for gVisor public starts and reject held or unsupported routes before preparation. Native registry/egress behavior remains unchanged; fixed policy receives no readiness state. registry:Status@429,whole:Route@318,whole:Route@397,whole:Route@542 dfb40d756f97cc8aa68626b550ad341a9ddd796493de158d3f99ee20c9614fed |
| +@legacy 964ccc1c4d847434d0613572e4934cd77718bb29e227d830b75ebd07adca50db internal/instancectl/sandbox.go Server.requestFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the registry route through the existing root-provided HostDemo callback for gVisor public starts and reject held or unsupported routes before preparation. Native registry/egress behavior remains unchanged; fixed policy receives no readiness state. Final R1 P2: refuse only the validated instance ID whose retained-file sweep failed. Other hosts keep their existing family/registry admission. No new I/O. registry:Status@546,whole:Route@435,whole:Route@514,whole:Route@659 fe7630a768e94ee0a83468f1f2468fc00c4123b95e4ee1564595259d463b0092 |
| @legacy 43a54aebd894c7b4852e9fbcf3e1dc75d71ceffebe4c51ee7003dffce4d22cb7 internal/instancectl/sandbox.go Server.unitFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Classify only retained mode, claims/demo flags, role and route runtime/demo shape; gVisor public starts require a route and only private probe/build may omit it. No I/O or readiness-driven fallback. registry:Runtime@630,whole:Route@614,whole:Route@794,whole:Route@852 bed900b96d6b79417c25954e25144ec00c6388a0951ffd405b9788f103851d06 |
| @legacy 5492a4dd126f921302135f7c7a0b7ae6f5b24518ce0f37b745f955d47312d5ea internal/instancectl/sandboxstop.go Server.proveRunGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 5: read only the validated host-derived systemd cgroup.events path under the configured root. Require complete inactive/dead state, zero jobs/MainPID/ControlPID, expected ControlGroup and exact populated 0 or absent cgroup; unreadable or malformed proof refuses cleanup. Fix round 1 C1/I1: accept the captured systemd 257 empty Job field as no queued job, also zero. Do not infer running state from LoadState; keep required-property presence, inactive/failed plus dead/failed, zero MainPID/ControlPID, expected ControlGroup and empty/absent cgroup proof. Native cleanup runs before sibling ID derivation. No new read path. Task 9: Treat omitted empty Job, InvocationID and ControlGroup as their captured systemd 257 unset defaults. Require explicit LoadState, ActiveState, SubState, MainPID and ControlPID; retain no-job, zero-PID, terminal-state, expected-group and empty/absent-cgroup checks. Same fixed derived path and read. file:ReadFile@853 867b1af5b3f9ded72bd023fd0d7d02a589a131db76046b76156e581738fc90b8 |
| @legacy cec824c9807e579085fc5e14741c1b3fd97bcf58210f8861cd4f9c282d39aa1e internal/instanceexec/probe_gvisor.go checkGVisorFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Evaluate guest probe facts only. Census labels the boolean Openat2 field as a file read, but this pure evaluator performs no I/O or root action. file:Openat2@845 0fbb701794c0c747fb23628a1e3ed9f791d3024e2001df8040809b8f7544bae1 |
| @@ -149,8 +149,8 @@ internal/instancectl/demo_policy.go Server.demoHandler legacy accepted-legacy ac |
| internal/instancectl/gen.go Server.handleParent legacy accepted-legacy accepted-legacy;rev3=J2,J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 5: holds the host's slice lock (lockSliceWrites) around its one set-property, so /parent and /size never interleave on one slice. Its one site is still r.URL.Query() of the agent's request (counted as file:Query). The checks in this body are unchanged, though cgroup.ValidParentLimit, which it calls, now accepts one size or the sum of any two from the four-row table (up to 4 GiB, was 2 GiB); no read added.;rev3=census-ruling-agent-start-demo-1;basis=Reads fixed DemoBox and clamps the existing parent memory writer to small.;rev3=census-ruling-gvisor-demos;basis=Validate logical parent input as before, require the demo route in gVisor mode and apply Physical once to the small demo parent. Existing request query read unchanged; shares stay logical. file:Query@78 0646b2e418f426992e35bb05ec9a2c23fa0f916f7af1e4366f3ade14ddc12c69 |
| 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. Task 6: Effective gVisor refuses ROOTFS explicitly before native/rootfs probe preparation; no fallback. Existing native reads unchanged. file:ReadFile@2133 9f191518546c42664f607e5b8dbc85bc273fc7abc29bb12283edad58223b73a3 |
| 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=Select the fixed root-private probe family and delegate gVisor to its serialized root/guest proof, with no native/rootfs fallback. Task 6 fix round 1: remove mode drain from probe execution (Ready/ReadyDemo only), and let runGVisorProbe atomically publish the report/runtime identity including start lines once. Existing native report read unchanged. file:ReadFile@2874 d77aeeac7de9d58663980809014bd4c83060235b63ac4c85cf25bcb89827c80b |
| -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. Task 6: Capture HostClaims once from ControlConfig/hostwrite.Enabled and set the fixed root-owned bundle discovery directory. Existing command and configuration reads unchanged. Task 7: enable gVisor worker construction through fixed unitFamily(roleBuild); readiness proof rechecks sandbox admission and current Ready without reaching the constructor fatal path for transient refusals. Existing command/config reads unchanged. data-literal@2476,file:CommandContext@1109,file:CommandContext@1287,file:Statfs@2497 51b727207f3d3b577f428a8d1cdabb214ca7b410de6e813bf1fd916446ef8321 |
| -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, baseline/runtime callbacks, Task 4 per-host validated staged descriptors and root-selected probe nonce. Fix round 1 adds a private writer-operation seam assigned only in package tests, after the unchanged GVisorID admission check; production defaults still call the same checked constructor, WriteRootfs, WriteBundle and verifier. No new direct read or request-controlled callback. Task 5: private injected removal seam for unprivileged tests; production default removes only root-derived bundle and skeleton after both-family proof inside existing start fence. No new request field or agent-selected unit. Task 6: Retain serialized probe nonce, runtime-set identity verifier/token, fixed claims flag, bundle discovery root, and private unprivileged identity seam. No request-controlled callback or path; existing declaration read-site classification unchanged. Task 6 fix round 1: private gvisorProbeTestOps is set only in package tests; production defaults retain all fixed paths and the checked root output opener. No externally supplied callback or new direct read. file:Statfs@4829 1541a3b0e5f9972f07c1d94b85d1067fa83d1b24099ebf6b65d783716d4a7353 |
| +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. Task 6: Capture HostClaims once from ControlConfig/hostwrite.Enabled and set the fixed root-owned bundle discovery directory. Existing command and configuration reads unchanged. Task 7: enable gVisor worker construction through fixed unitFamily(roleBuild); readiness proof rechecks sandbox admission and current Ready without reaching the constructor fatal path for transient refusals. Existing command/config reads unchanged. Final R1 P2: wire the fixed /var/lib/carlos/oci-rootfs parent for native readiness evidence; no request-supplied path. data-literal@2527,file:CommandContext@1109,file:CommandContext@1287,file:Statfs@2548 5b41b8778e48880ed81b2deb1619d0977f654664cb1df1ca9021753dda9c2ce1 |
| +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, baseline/runtime callbacks, Task 4 per-host validated staged descriptors and root-selected probe nonce. Fix round 1 adds a private writer-operation seam assigned only in package tests, after the unchanged GVisorID admission check; production defaults still call the same checked constructor, WriteRootfs, WriteBundle and verifier. No new direct read or request-controlled callback. Task 5: private injected removal seam for unprivileged tests; production default removes only root-derived bundle and skeleton after both-family proof inside existing start fence. No new request field or agent-selected unit. Task 6: Retain serialized probe nonce, runtime-set identity verifier/token, fixed claims flag, bundle discovery root, and private unprivileged identity seam. No request-controlled callback or path; existing declaration read-site classification unchanged. Task 6 fix round 1: private gvisorProbeTestOps is set only in package tests; production defaults retain all fixed paths and the checked root output opener. No externally supplied callback or new direct read. Final R1 P2: retain fixed skeleton parent and concurrent per-instance cleanup refusals; no direct read or external configuration field. file:Statfs@4909 6eb459d77f07ba715fd15078c35a70bad6fd9d10837fedd7ccaa38cd4a6eb720 |
| internal/publicrelease/feed.go Feed.get legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-gvisor-demos;basis=Bound release downloads with a one-byte oversize check so a signed prefix cannot authenticate a truncated larger response; existing HTTP body read only, no new root input. file:ReadAll@518 8da54d4a2ce87c719f1927f1c96d9ea71770fa2475010a220c5029e3086d2752 |
| internal/status/dryrun.go dryRunFixtures legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-gvisor-demos;basis=Task 8: add private sandbox status and row fixtures plus leak needles. Fixture data only; public fleet shape unchanged. whole:Route@5482 8ddd1f1ff4d638b9ec2df0f24fe3f3559fe5a6f2b4d9e347f539aee89d95faf1 |
| status_instances.go printStatusLayout legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 12 and #329 plan 3 Task 10: carlos status --layout, in the operator's carlos CLI on the operator's own machine, prints SIZE and EGRESS columns from the console's JSON (statusLayoutRow.Size and Egress), joins the egress reason into REASON and prints one note when a size is pending; the same one site (the /data literal in the mixed-box warning), no read added.;rev3=census-ruling-region-labels;basis=a REGION column (statusRegionCell) from the console's answer; no read added;rev3=census-ruling-gvisor-demos;basis=Task 8: print draft SANDBOX column and one exec-sandbox summary per reported box from the existing operator API. Missing/stale reports display unknown; no new file read or authority. data-literal@2413 28d6e05b336a4c99d9e1a3172116a4f6c03ddc7ae3cacd68d0ba0b304b203687 |
| @@ -192,10 +192,10 @@ internal/host/units/carlos-instance-gvisor-probe.service external legacy accepte |
| 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/demo_policy.go Server.demoCgroupReadback legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read memory.max/high/swap.max, pids.max, cpu.max/weight and io.weight in the derived parent and validated child cgroups. GVisor uses Physical memory/tasks and logical shares; pre-start only absent groups may defer verification, and post-start requires every file. Native checks remain the existing logical limits. Task 9: Round only expected kernel memory.high for existing run and parent reads; exact memory.max and required kernel files retained. No new read. file:ReadFile@1379,file:Stat@1224 41da87161a8858d3749a461486fff9a6a46b9dccbc421658a4f0643e329e9afd |
| -internal/instancectl/gvisordrain.go Server.sandboxUnitEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the fixed carlos.slice cgroup hierarchy for the named discovered unit and require populated 0; skip other service subtrees. Task 6 fix round 1 confines the opposite-family caller to Ready/ReadyDemo. No request-selected filesystem path or new read site. file:WalkDir@116 e802bfb809b344b2ae4e1b3d7ae9f4896b8e3396dac720de56fa218b203e8994 |
| -internal/instancectl/gvisordrain.go Server.sandboxUnitsFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 6 fix round 1: enumerate systemd units/jobs and the fixed carlos.slice kernel hierarchy, filtering by the requested fixed family. Ready in systemd mode lists only gVisor instance/probe/build patterns and ignores native jobs/services; original gVisor host overlap checks request both families. Never invoked by native per-start admission. Only kernel-owned cgroup directory reads; no tenant-selected path or runsc-state traversal. file:WalkDir@1194 6ce5d5d373840b13e1bf20a1791cbd1390540448fd238e71b2b8abb4acf05216 |
| -internal/instancectl/gvisordrain.go Server.sweepGVisorBundles legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=List the fixed root-owned OCI directory, accept only validated run IDs, skip live/in-flight work and acquire the original instance-ID fence before both-family stop/delete proof and removal. Never opens /run/carlos-runsc. file:ReadDir@130 0572d9325bd87b5326c195ad30874350114ad25f72d99648731ffe45ea2924a7 |
| +internal/instancectl/gvisordrain.go Server.sandboxFilesPresent legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Final controller ruling: check only the two fixed root-owned bundle/skeleton parents, listing only their immediate entries (ReadDir opens directories without blocking on a FIFO), without recursion, systemctl or cgroups. Empty or absent parents mean no retained state; loaded-only inactive units are explicitly excluded because files precede start and removal follows termination proof. Other filesystem errors refuse readiness. file:ReadDir@182 8bf90d0c5cd5d8f856a465549fd96db2f763a6137dc64460728422151285503d |
| +internal/instancectl/gvisordrain.go Server.sweepGVisorBundles legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=List the fixed root-owned OCI directory, accept only validated run IDs, skip live/in-flight work and acquire the original instance-ID fence before both-family stop/delete proof and removal. Never opens /run/carlos-runsc. Final R1 P2: keep a cleanup failure keyed to the validated instance ID before releasing its start fence; continue other hosts. No proof or removal check is relaxed; successful fenced stop clears the refusal. file:ReadDir@130 b10eae31d4825bf01a2c11bc4ed6d6d625d2506bdb352ed07059a97a306a71d2 |
| internal/instancectl/gvisordrain.go sandboxGroupEmpty legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the caller-derived kernel cgroup.events path and require a single populated 0 field; malformed/present nonzero state refuses proof. file:ReadFile@57 4776168285ee07b83941a24023d959616dbe5af6f76491c094f1f12024384ea7 |
| +internal/instancectl/gvisordrain.go walkSandboxCgroups legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Consolidate the two existing walks of the fixed cgroup root. ENOENT at any visited path is empty, including a directory deleted after parent enumeration. All other errors and original callbacks propagate unchanged. file:WalkDir@75 e29ef42f1fed7a52865b66214d41918bf836f4a446a00ed219b686af298bded0 |
| internal/instancectl/gvisorprobe.go Server.gvisorProbeKernelLimits legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read only the fixed probe unit cgroup limit files, requiring the pinned physical memory/tasks and logical CPU/IO contract. Task 9: Round only expected kernel memory.high for fixed probe cgroup reads; exact memory.max retained. No new read. file:ReadFile@408 b9e59399db4166e2c76b29743f1debf4e5eee4e248f08783a9cc38b5195787bd |
| internal/instancectl/gvisorprobe.go Server.runGVisorProbe legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 6 fix round 1, applying the controller rulings: serialized probe construction uses root random nonce/fixed paths, root-only O_EXCL fixture, abstract listener, typed verified bundle/unit and context recheck. Read bounded root-owned nonce-bound output and the guest socket handshake; inspect kernel/proc runtime and limits while guest waits. Termination uses inactive/not-loaded state, no job/PIDs and empty cgroup, never per-command stop-post records. Keep the prior pass during the run and publish report plus runtime identity once, after cleanup; any failed attempt invalidates it and records the bounded diagnostic. A private package-test-only operations struct substitutes paths, executable preparation and output opening; production keeps GVisorProbePaths, fixed output/procfs, ensureExe and execsandbox.OpenRootFile. No new tenant-controlled path, launch/source/database read, or runtime-state read. CI fix: route serialized nonce fixture/output cleanup through existing pinned removeGenFiles owner with closed gVisor selectors and fixed probe paths. Existing reads and stop proof unchanged; no new raw removal owner. file:Lstat@2524,file:OpenFile@1887,file:Read@1577,file:ReadAll@4868 56e6b995e3346e3bc04cf751dc9196f8ddb8e46c1f8885fbca5130ff98720fbd |
| internal/instancectl/gvisorprobe_linux.go gvisorProbeProcesses legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read kernel cgroup.procs under the fixed probe subtree and /proc/<numeric PID> exe, cgroup, cmdline, task directory and children. Require pinned-set executable paths, in-subtree membership, live gofer/Sentry and no descendant outside the unit. PIDs come from kernel/systemd evidence, never a request. file:ReadDir@1895,file:ReadFile@1085,file:ReadFile@1381,file:ReadFile@2022,file:ReadFile@468,file:Readlink@925,file:WalkDir@279 f83c97c76a1584b3ae4ac34d4098902c7b805a970ce6dc5c8378e787c694ab0a |
| @@ -205,7 +205,7 @@ internal/instancectl/ocibundle.go Server.gvisorExecutableWith legacy accepted-le |
| 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. Task 6: Pass the already root-resolved numeric carlos uid/gid alongside the serialized probe nonce in the OCI environment. No added mount, launch parsing, or filesystem read. data-literal@1187 064e8089b8b53b09eed7ebb8d2c050084a7beb091043a8c5667f3266f3cb0977 |
| 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/instancectl/sandbox.go Server.requestFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the registry route through the existing root-provided HostDemo callback for gVisor public starts and reject held or unsupported routes before preparation. Native registry/egress behavior remains unchanged; fixed policy receives no readiness state. registry:Status@429,whole:Route@318,whole:Route@397,whole:Route@542 dfb40d756f97cc8aa68626b550ad341a9ddd796493de158d3f99ee20c9614fed |
| +internal/instancectl/sandbox.go Server.requestFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Read the registry route through the existing root-provided HostDemo callback for gVisor public starts and reject held or unsupported routes before preparation. Native registry/egress behavior remains unchanged; fixed policy receives no readiness state. Final R1 P2: refuse only the validated instance ID whose retained-file sweep failed. Other hosts keep their existing family/registry admission. No new I/O. registry:Status@546,whole:Route@435,whole:Route@514,whole:Route@659 fe7630a768e94ee0a83468f1f2468fc00c4123b95e4ee1564595259d463b0092 |
| internal/instancectl/sandbox.go Server.unitFamily legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Classify only retained mode, claims/demo flags, role and route runtime/demo shape; gVisor public starts require a route and only private probe/build may omit it. No I/O or readiness-driven fallback. registry:Runtime@630,whole:Route@614,whole:Route@794,whole:Route@852 bed900b96d6b79417c25954e25144ec00c6388a0951ffd405b9788f103851d06 |
| internal/instancectl/sandboxstop.go Server.proveRunGone legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Task 5: read only the validated host-derived systemd cgroup.events path under the configured root. Require complete inactive/dead state, zero jobs/MainPID/ControlPID, expected ControlGroup and exact populated 0 or absent cgroup; unreadable or malformed proof refuses cleanup. Fix round 1 C1/I1: accept the captured systemd 257 empty Job field as no queued job, also zero. Do not infer running state from LoadState; keep required-property presence, inactive/failed plus dead/failed, zero MainPID/ControlPID, expected ControlGroup and empty/absent cgroup proof. Native cleanup runs before sibling ID derivation. No new read path. Task 9: Treat omitted empty Job, InvocationID and ControlGroup as their captured systemd 257 unset defaults. Require explicit LoadState, ActiveState, SubState, MainPID and ControlPID; retain no-job, zero-PID, terminal-state, expected-group and empty/absent-cgroup checks. Same fixed derived path and read. file:ReadFile@853 867b1af5b3f9ded72bd023fd0d7d02a589a131db76046b76156e581738fc90b8 |
| internal/instanceexec/probe_gvisor.go checkGVisorFacts legacy accepted-legacy accepted-legacy;rev3=census-ruling-gvisor-demos;basis=Evaluate guest probe facts only. Census labels the boolean Openat2 field as a file read, but this pure evaluator performs no I/O or root action. file:Openat2@845 0fbb701794c0c747fb23628a1e3ed9f791d3024e2001df8040809b8f7544bae1 |
| @@ -250,13 +250,13 @@ internal/activator/unitproc.go ExecBackend.observe legacy accepted-legacy accept |
| 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 |
| @remove internal/instancectl/demo_policy.go Server.demoCgroup |
| @removed internal/instancectl/demo_policy.go Server.demoCgroup H3 census-ruling-gvisor-demos;basis=Delegate the existing readback to demoCgroupReadback; wrapper has no direct read and retains its callers. |
| -@coverage . e81de2dad7f3ecf8f6adbb426b8f6e8f732b7dff5b7e909a273f0e40194307b5 |
| -@coverage internal/activator d326609be0b7846d7bcbb4b20856ef9d3a9ffdf70bfb091e3ac7566fa78613de |
| +@coverage . 5b175426bd461d91b7d9220d2595abd07c1ac13c3299ea0317439267aa83e648 |
| +@coverage internal/activator 0fd4583c21e9d045a044e1e848de40dc01c58734c7f127463cf0bb730202f453 |
| @coverage internal/demobuild 60f5e9d6c2acb85d8943d848f013349157bf985bba71e69e99d4ed6e831c1dd7 |
| @coverage internal/execsandbox 8f4069cb40c57bc0f01a934f44c49c9fdb549879c509b374d97474b859538569 |
| -@coverage internal/host f7ecb38917955e3e89c323b3f8d730271d9df28a0967459151552b0471e59149 |
| +@coverage internal/host 796f22458033815166ae66d2d2432e6478d3dabeb197237414fa47a671437284 |
| @coverage internal/host/units 93402572d2fc9c32b563820a36d565afa2ed951637bde9561fe2e845137a6524 |
| -@coverage internal/instancectl 1a3a46e781273b5487fdf5291f9b2d2329c89db8363ac0558561497b229d6b6b |
| +@coverage internal/instancectl 7d894962764bc41cef03cbdc274ccb4763c48697cb0c845ba0d49607d3ec4eaa |
| @coverage internal/instanceexec 8ab54471e06294387badbe91bf51e0e4a2e0ccde6a5dee51b75cfe817dcac5ae |
| @coverage internal/publicrelease 4b98543d38d648c60009592dac6c1e8a012ecca42e52d95d12404c0f9506457c |
| @coverage internal/status 549f4bf5833dd6d85709bf86f84766736c1a0b531cf5cabdaf6ca26924c67ea8 |