activator: log why a just-started unit is killed and why a wake failed
When the activator refused root's answer to a generation start (an identity mismatch, no invocation, a lost reply), it killed the unit and wrote nothing to the journal. A failed wake left only the member's event. On Tito staging (#854) the only trace was systemd's "SIGKILL ... on client request", once a minute. - The rootfs and binary generation kill sites log the reason before the kill. - wake() logs a real failed wake (not a fence, shutdown, or another box's lease or config), at once the first time, then at most once a minute per host with a count of the failures in between. A wake that works resets it, and notes expire after ten minutes. - The seed and worker argv parse errors name the value's size, not the value, which can carry a credential. Astra R1: three P2s, all fixed. Census approved by Astra on #280. (#861) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix-silent-start-kill-861 into main.
8 files changed,
+398
−2
docs/superpowers/notes/census-proposal-fix-silent-start-kill-861.md+29 −0internal/activator/activator.go+8 −0internal/activator/backend_exec.go+7 −2internal/activator/rootfs.go+3 −0internal/activator/startkill_log_test.go+246 −0internal/activator/wakefaillog.go+90 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-fix-silent-start-kill-861.tsv+14 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-fix-silent-start-kill-861.md b/docs/superpowers/notes/census-proposal-fix-silent-start-kill-861.md| new file mode 100644 |
| index 000000000..4a81e4fcf |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-fix-silent-start-kill-861.md |
| @@ -0,0 +1,29 @@ |
| +# Census approval: fix-silent-start-kill-861 |
| + |
| +Ruling `census-ruling-fix-silent-start-kill-861`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/activator/activator.go` `Service.wake` | body | unchanged (16) | #861: a failed wake that journalledWakeFailure counts as a real failure is logged through logWakeFailure (rate-limited per host, in memory); a successful wake calls clearWakeFailure. Agent, not root; reads the error already in hand; no read added | |
| +| `internal/activator/activator.go` `type Service` | body | unchanged (0) | #861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read | |
| +| `internal/activator/backend_exec.go` `ExecBackend.StartWorkerStaged` | body | unchanged (27) | #861 (Astra R1 3): the malformed-argv error names len(rt.Args) instead of quoting rt.Args, so a credential in an argv never reaches the journal; same refusal, same reads | |
| +| `internal/activator/backend_exec.go` `seedArgv` | body | unchanged (3) | #861 (Astra R1 3): the parse error names len(rt.Seed) instead of quoting rt.Seed; same refusal, same reads | |
| +| `internal/activator/backend_exec.go` `ExecBackend.spawnUnitFrom` | sites | +registry:Host ×2 | #861: one log line before killFailedGen naming the host, the generation unit (runUnitName) and the error already in hand; the +registry:Host sites are those two arguments to log.Printf; no new read source, behaviour unchanged | |
| +| `internal/activator/rootfs.go` `ExecBackend.spawnRootfs` | sites | +registry:Host | #861: one log line before killFailedRootfsGen naming the host, the unit and the error already in hand; the +registry:Host site is that argument to log.Printf; no new read source, behaviour unchanged | |
| + |
| +Envelopes re-pinned: `internal/activator`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/activator/activator.go` `Service.wake`: legacy, task accepted-legacy. Basis: 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.;rev3=census-ruling-edge-page-cache-1;basis=the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added |
| +- `internal/activator/activator.go` `type Service`: authority, task B,C,D,F,J4. Basis: rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added |
| +- `internal/activator/backend_exec.go` `ExecBackend.StartWorkerStaged`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.;rev3=census-ruling-region-ha-p1b3b-s;basis=Require acquired HA lifetime and containment for stamped sidecars; after the existing staged build verification, dispatch their worker launch through startHAWorker. Legacy worker exec and parent co-spawn remain unchanged.;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. |
| +- `internal/activator/backend_exec.go` `seedArgv`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| +- `internal/activator/backend_exec.go` `ExecBackend.spawnUnitFrom`: legacy, task accepted-legacy. Basis: 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs computed from the captured file environment and pinned/staged build and store them on the handle, alongside branch sandbox gate, validated root StartResponse Unit/Sandbox/InvocationID and all uncertain-start cleanup. No new direct read. |
| +- `internal/activator/rootfs.go` `ExecBackend.spawnRootfs`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=sets up.inputs = launchInputs(id.Version, fileEnv): the image version and env this spawn already read, hashed in memory; no new read; read sites unchanged (20); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs on rootfs handle from existing staged image version and fileEnv. Keep branch sandbox gate and root identity validation. No new read. |
| + |
| +Seal: `c8e2c7ed3850823a8e379d880738982772b870ad8549238cc02abce24c80eb93` → `733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-fix-silent-start-kill-861.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/activator/activator.go b/internal/activator/activator.go| index 5ae375919..7292f4a0f 100644 |
| --- a/internal/activator/activator.go |
| +++ b/internal/activator/activator.go |
| @@ -1498,6 +1498,10 @@ type Service struct { |
| rootfsGateMu sync.Mutex |
| rootfsGateRuns map[string]*rootfsGateRun |
| rootfsRefusedSeen map[string]string |
| + // wakeFailMu guards wakeFailLogged, the journal's rate limit on failed |
| + // wakes per host (logWakeFailure). A leaf lock, like rootfsGateMu. |
| + wakeFailMu sync.Mutex |
| + wakeFailLogged map[string]*wakeFailNote |
| // Residency (Plan 3 Task 8, rootfs_service.go). residentLister is the |
| // DueStore read as a ResidentLister at New (nil: no residents). |
| // residents is each listed resident's backoff and reservation, by host; |
| @@ -2160,7 +2164,11 @@ func (a *Service) wake(e *actEntry) { |
| } else if msg, ok := a.wakeFailureEvent(e, err); ok && !errors.Is(err, ErrDutyDeferred) { |
| emitEvent(a.Logs, e.route, "error", msg) |
| } |
| + if journalledWakeFailure(err) { |
| + a.logWakeFailure(e.host, err) |
| + } |
| } else { |
| + a.clearWakeFailure(e.host) |
| emitEvent(a.Logs, e.route, "info", wakeEventMessage(w, e.worker)) |
| if steps := w.steps.String(); steps != "" { |
| log.Printf("activator: %s: woke in %s: %s", e.host, w.wakeTook.Round(time.Millisecond), steps) |
diff --git a/internal/activator/backend_exec.go b/internal/activator/backend_exec.go| index 1bd77ff5e..0b187ca31 100644 |
| --- a/internal/activator/backend_exec.go |
| +++ b/internal/activator/backend_exec.go |
| @@ -1219,7 +1219,9 @@ func seedArgv(rt registry.Route, dbPath string) ([]string, error) { |
| if err := json.Unmarshal([]byte(rt.Seed), &seedArgs); err != nil { |
| // Never a silent skip: a mangled seed column must fail the wake |
| // loudly, not boot an empty instance that looks healthy. |
| - return nil, fmt.Errorf("parse seed argv for %s (%q): %w", rt.Host, rt.Seed, err) |
| + // The column's value stays out of the error: an argv can carry a |
| + // credential, and this text reaches the journal (#861). |
| + return nil, fmt.Errorf("parse seed argv for %s (%d bytes): %w", rt.Host, len(rt.Seed), err) |
| } |
| if len(seedArgs) == 0 { |
| return nil, nil |
| @@ -2956,6 +2958,8 @@ func (b *ExecBackend) spawnUnitFrom(ctx context.Context, rt registry.Route, sock |
| // crashed at its start (errStartedThenExited, ruling 206). |
| err = exitedUnobserved{unit: runUnitName(rt.Host, gen)} |
| } |
| + // The journal's only account of this kill (#861). |
| + log.Printf("activator: %s: start of %s failed, it may have begun: %v; killing it", rt.Host, runUnitName(rt.Host, gen), err) |
| if kerr := b.killFailedGen(ctx, rt, gen); kerr != nil { |
| // Nothing is released: the generation may still be running. |
| return nil, "", markStartUncertain(fmt.Errorf("%s: start unit: %w; %w: %v", rt.Host, err, errGenUnproven, kerr)) |
| @@ -3669,7 +3673,8 @@ func (b *ExecBackend) StartWorkerStaged(ctx context.Context, rt registry.Route, |
| } |
| var argv []string |
| if err := json.Unmarshal([]byte(rt.Args), &argv); err != nil || len(argv) == 0 { |
| - return nil, release.StagedIdentity{}, fmt.Errorf("worker %s: no runnable argv in args %q", rt.Host, rt.Args) |
| + // The value stays out of the error, as seedArgv's (#861). |
| + return nil, release.StagedIdentity{}, fmt.Errorf("worker %s: no runnable argv in args (%d bytes)", rt.Host, len(rt.Args)) |
| } |
| var id release.StagedIdentity |
| if onto == nil { |
diff --git a/internal/activator/rootfs.go b/internal/activator/rootfs.go| index 50e490119..5d390520a 100644 |
| --- a/internal/activator/rootfs.go |
| +++ b/internal/activator/rootfs.go |
| @@ -404,6 +404,9 @@ func (b *ExecBackend) spawnRootfs(ctx context.Context, rt registry.Route, sock s |
| if err == nil { |
| err = exitedUnobserved{unit: unit} |
| } |
| + // The journal's only account of this kill (#861): systemd's own |
| + // line says no more than "on client request". |
| + log.Printf("activator: %s: start of %s failed, it may have begun: %v; killing it", rt.Host, unit, err) |
| if kerr := b.killFailedRootfsGen(ctx, rt, gen); kerr != nil { |
| // Nothing is released: the generation may still be running. |
| return nil, "", markStartUncertain(fmt.Errorf("%s: start unit: %w; %w: %v", rt.Host, err, errGenUnproven, kerr)) |
diff --git a/internal/activator/startkill_log_test.go b/internal/activator/startkill_log_test.go| new file mode 100644 |
| index 000000000..a46dcbf4e |
| --- /dev/null |
| +++ b/internal/activator/startkill_log_test.go |
| @@ -0,0 +1,246 @@ |
| +package activator |
| + |
| +import ( |
| + "context" |
| + "errors" |
| + "fmt" |
| + "log" |
| + "strings" |
| + "sync" |
| + "testing" |
| + "time" |
| + |
| + "github.com/carlosframework/platform/internal/instancectl" |
| +) |
| + |
| +// #861: a start the activator refuses after root was asked ends in a kill |
| +// of the unit, and until now nothing in the journal said why: on Tito's |
| +// staging box (#854) the only trace was systemd's "SIGKILL ... on client |
| +// request" once a minute. These tests hold the two lines that now explain |
| +// it: the kill site's, and the failed wake's. |
| + |
| +// startKillLog captures the standard logger's output safely, since the |
| +// activator's own goroutines may log while a test reads. |
| +type startKillLog struct { |
| + mu sync.Mutex |
| + buf strings.Builder |
| +} |
| + |
| +func (l *startKillLog) Write(p []byte) (int, error) { |
| + l.mu.Lock() |
| + defer l.mu.Unlock() |
| + return l.buf.Write(p) |
| +} |
| + |
| +func (l *startKillLog) lines(substr string) []string { |
| + l.mu.Lock() |
| + defer l.mu.Unlock() |
| + var out []string |
| + for _, line := range strings.Split(l.buf.String(), "\n") { |
| + if strings.Contains(line, substr) { |
| + out = append(out, line) |
| + } |
| + } |
| + return out |
| +} |
| + |
| +func captureLogLocked(t *testing.T) *startKillLog { |
| + t.Helper() |
| + l := &startKillLog{} |
| + prev, flags := log.Writer(), log.Flags() |
| + log.SetOutput(l) |
| + log.SetFlags(0) |
| + t.Cleanup(func() { log.SetOutput(prev); log.SetFlags(flags) }) |
| + return l |
| +} |
| + |
| +// mismatchRootfsCtl answers a rootfs start with another host's unit, the |
| +// shape of an identity check that refuses root's answer (#854's |
| +// EXEC-SANDBOX-MISMATCH). |
| +type mismatchRootfsCtl struct{ *fakeControl } |
| + |
| +func (c mismatchRootfsCtl) StartRootfs(ctx context.Context, host string, gen uint64, max int64, img instancectl.StagedImage) (instancectl.StartResponse, error) { |
| + got, err := c.fakeControl.StartRootfs(ctx, host, gen, max, img) |
| + got.Unit = instancectl.RootfsGenUnitName("other.example.com", gen) |
| + return got, err |
| +} |
| + |
| +func TestARefusedRootfsGenerationStartSaysWhyBeforeItsKill(t *testing.T) { |
| + for _, tc := range []struct { |
| + name string |
| + set func(b *ExecBackend, ctl *fakeControl) |
| + want string |
| + }{ |
| + {"identity mismatch", func(b *ExecBackend, ctl *fakeControl) { b.Control = mismatchRootfsCtl{ctl} }, "EXEC-SANDBOX-MISMATCH"}, |
| + {"no invocation", func(_ *ExecBackend, ctl *fakeControl) { ctl.inv = "" }, "exited"}, |
| + {"start error", func(_ *ExecBackend, ctl *fakeControl) { |
| + ctl.startErr = errors.New("instance control /start: 502: bus timeout") |
| + }, "bus timeout"}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + logs := captureLogLocked(t) |
| + b, ctl := newRootfsBackend(t) |
| + b.GenContainment = true |
| + b.CgroupEvents = func(string, string) (bool, bool, error) { return false, false, nil } |
| + tc.set(b, ctl) |
| + rt := rootfsRoute(b) |
| + // The reason is in the journal before the kill is asked for. |
| + loggedFirst := false |
| + prevHook := ctl.stopHook |
| + ctl.stopHook = func(host string, role instancectl.Role) { |
| + loggedFirst = len(logs.lines("killing it")) == 1 |
| + if prevHook != nil { |
| + prevHook(host, role) |
| + } |
| + } |
| + if _, _, err := b.StartGen(context.Background(), rt, 4, true); err == nil { |
| + t.Fatal("started") |
| + } |
| + ctl.mustHaveCallPrefix(t, "stop-rootfs "+rt.Host+" role=run gen=4 worker= kill=true") |
| + unit := instancectl.RootfsGenUnitName(rt.Host, 4) |
| + got := logs.lines("killing it") |
| + if len(got) != 1 || !strings.Contains(got[0], unit) || !strings.Contains(got[0], tc.want) { |
| + t.Errorf("kill-site lines = %q, want one naming %s and %q", got, unit, tc.want) |
| + } |
| + if !loggedFirst { |
| + t.Error("the kill was asked for before its reason was logged") |
| + } |
| + }) |
| + } |
| +} |
| + |
| +func TestARefusedBinaryGenerationStartSaysWhyBeforeItsKill(t *testing.T) { |
| + logs := captureLogLocked(t) |
| + ctl := &fakeControl{} |
| + b, rt, _, _ := genStartFixture(t, ctl) |
| + if _, _, err := b.StartGen(context.Background(), rt, 7, false); err == nil { |
| + t.Fatal("a start with no invocation succeeded") |
| + } |
| + got := logs.lines("killing it") |
| + if len(got) != 1 || !strings.Contains(got[0], instancectl.GenUnitName(rt.Host, 7)) || !strings.Contains(got[0], "exited") { |
| + t.Errorf("kill-site lines = %q", got) |
| + } |
| +} |
| + |
| +// A failed wake reaches the journal: at once the first time, then at most |
| +// once a minute per host with a count of the failures in between, and at |
| +// once again after a wake that worked. A routine refusal (a fence) is not |
| +// a failure and writes nothing. |
| +func TestAFailedWakeIsLoggedAndRateLimited(t *testing.T) { |
| + logs := captureLogLocked(t) |
| + a, b, clk, reg := testActivator(t, time.Minute) |
| + defer reg.Close() |
| + const host = "shop.example.com" |
| + wakeOnce := func() { _, _ = a.beginRequest(context.Background(), testRoute(host)) } |
| + failed := func() []string { return logs.lines("activator: " + host + ": wake failed") } |
| + |
| + b.mu.Lock() |
| + b.startErr = errors.New("start unit: boom") |
| + b.mu.Unlock() |
| + for range 3 { |
| + wakeOnce() |
| + } |
| + if got := failed(); len(got) != 1 || !strings.Contains(got[0], "boom") { |
| + t.Fatalf("after three failures in one minute: %q, want one line with the reason", got) |
| + } |
| + |
| + clk.advance(wakeFailureLogEvery + time.Second) |
| + wakeOnce() |
| + got := failed() |
| + if len(got) != 2 || !strings.Contains(got[1], "2 more since") { |
| + t.Fatalf("a minute later: %q, want a second line counting the 2 unlogged failures", got) |
| + } |
| + |
| + b.mu.Lock() |
| + b.startErr = nil |
| + b.mu.Unlock() |
| + wakeOnce() |
| + waitFor(t, "the wake to finish", func() bool { |
| + a.mu.Lock() |
| + defer a.mu.Unlock() |
| + e := a.entries[host] |
| + return e != nil && e.state == actAwake |
| + }) |
| + a.mu.Lock() |
| + if e := a.entries[host]; e != nil { |
| + a.beginStopLocked(e, StopIdle) |
| + } |
| + a.mu.Unlock() |
| + waitFor(t, "the stop to finish", func() bool { |
| + a.mu.Lock() |
| + defer a.mu.Unlock() |
| + return a.entries[host] == nil |
| + }) |
| + b.mu.Lock() |
| + b.startErr = errors.New("start unit: boom again") |
| + b.mu.Unlock() |
| + wakeOnce() |
| + if got := failed(); len(got) != 3 || !strings.Contains(got[2], "boom again") || strings.Contains(got[2], "more since") { |
| + t.Fatalf("after a good wake: %q, want a third line at once, with no carried count", got) |
| + } |
| + |
| + const fenced = "fenced.example.com" |
| + b.mu.Lock() |
| + b.startErr = fmt.Errorf("start: %w", ErrFenced) |
| + b.mu.Unlock() |
| + _, _ = a.beginRequest(context.Background(), testRoute(fenced)) |
| + if got := logs.lines("activator: " + fenced + ": wake failed"); len(got) != 0 { |
| + t.Errorf("a fence refusal was logged as a failed wake: %q", got) |
| + } |
| +} |
| + |
| +// Another holder's lease and config this box cannot provide are routine |
| +// on an HA box, and a binary row's errors carry them unmarked: neither is |
| +// a failed wake in the journal (Astra R1 1). A plain start error is. |
| +func TestRoutineOwnershipRefusalsAreNotJournalledAsFailures(t *testing.T) { |
| + for _, tc := range []struct { |
| + name string |
| + err error |
| + want bool |
| + }{ |
| + {"lease held", fmt.Errorf("wake: %w", &errLeaseHeld{holder: "box-2", retryAfter: time.Second}), false}, |
| + {"config refused", fmt.Errorf("wake: %w", &errConfigRefused{err: errors.New("no key")}), false}, |
| + {"fenced", fmt.Errorf("start: %w", ErrFenced), false}, |
| + {"duty deferred", ErrDutyDeferred, false}, |
| + {"start failure", errors.New("start unit: boom"), true}, |
| + } { |
| + if got := journalledWakeFailure(tc.err); got != tc.want { |
| + t.Errorf("%s: journalledWakeFailure = %v, want %v", tc.name, got, tc.want) |
| + } |
| + } |
| +} |
| + |
| +// A host's note does not outlive wakeFailureForget: a host that failed and |
| +// never woke again (deleted, say) is dropped on the next failure anywhere |
| +// (Astra R1 2). |
| +func TestWakeFailureNotesExpire(t *testing.T) { |
| + _ = captureLogLocked(t) |
| + a, _, clk, reg := testActivator(t, time.Minute) |
| + defer reg.Close() |
| + a.logWakeFailure("gone.example.com", errors.New("boom")) |
| + clk.advance(wakeFailureForget) |
| + a.logWakeFailure("other.example.com", errors.New("boom")) |
| + a.wakeFailMu.Lock() |
| + defer a.wakeFailMu.Unlock() |
| + if _, ok := a.wakeFailLogged["gone.example.com"]; ok || len(a.wakeFailLogged) != 1 { |
| + t.Errorf("notes = %v, want only other.example.com", a.wakeFailLogged) |
| + } |
| +} |
| + |
| +// A malformed seed or worker argv fails the wake, and that error reaches |
| +// the journal: it names the column's size, never its value, which can |
| +// carry a credential (Astra R1 3). |
| +func TestMalformedArgvErrorsDoNotQuoteTheirValue(t *testing.T) { |
| + const secret = "tok_SECRET_123" |
| + rt := testRoute("shop.example.com") |
| + rt.Seed = `["seed","--token=` + secret |
| + if _, err := seedArgv(rt, "/tmp/x.db"); err == nil || strings.Contains(err.Error(), secret) || !strings.Contains(err.Error(), "parse seed argv") { |
| + t.Errorf("seedArgv error = %v, want a failure that does not quote the value", err) |
| + } |
| + b := testExecBackend(t) |
| + w := testWorkerRoute("worker.example.com") |
| + w.Args = `["run","--token=` + secret |
| + if _, _, err := b.StartWorkerStaged(context.Background(), w, nil, nil); err == nil || strings.Contains(err.Error(), secret) || !strings.Contains(err.Error(), "no runnable argv") { |
| + t.Errorf("StartWorkerStaged error = %v, want a failure that does not quote the value", err) |
| + } |
| +} |
diff --git a/internal/activator/wakefaillog.go b/internal/activator/wakefaillog.go| new file mode 100644 |
| index 000000000..4c2188d33 |
| --- /dev/null |
| +++ b/internal/activator/wakefaillog.go |
| @@ -0,0 +1,90 @@ |
| +package activator |
| + |
| +import ( |
| + "errors" |
| + "log" |
| + "time" |
| +) |
| + |
| +// wakeFailureLogEvery is the most often one host's failed wakes reach the |
| +// journal (#861). An always-on resident retries on its backoff and a |
| +// request-driven host on its next request, so a host that cannot start |
| +// would otherwise write a line per attempt. |
| +const wakeFailureLogEvery = time.Minute |
| + |
| +// wakeFailureForget is how long a host's note outlives its last journalled |
| +// line. Older notes are dropped on the next failure anywhere, so the map |
| +// holds only hosts that failed recently, whether or not they ever wake |
| +// again or stay in the registry (Astra R1 2). |
| +const wakeFailureForget = 10 * wakeFailureLogEvery |
| + |
| +// wakeFailNote is one host's last journalled failure and the failures |
| +// since that were not logged. |
| +type wakeFailNote struct { |
| + at time.Time |
| + suppressed int |
| +} |
| + |
| +// journalledWakeFailure is whether a failed wake's error belongs in the |
| +// journal: a real failure (residentFailure, which leaves out a fence, |
| +// shutdown, cancellation and another box's ownership of a runtime row), |
| +// and never another holder's lease or config this box cannot provide yet, |
| +// which a binary row's errors carry unmarked (markOwnershipRefusal) and |
| +// which are routine on an HA box (Astra R1 1). genStartUnproven and |
| +// errRootfsNotAdmitted have journal lines of their own; ErrDutyDeferred |
| +// is not a failure. |
| +func journalledWakeFailure(err error) bool { |
| + var held *errLeaseHeld |
| + var refused *errConfigRefused |
| + switch { |
| + case errors.As(err, &held), errors.As(err, &refused): |
| + return false |
| + case genStartUnproven(err), errors.Is(err, errRootfsNotAdmitted), errors.Is(err, ErrDutyDeferred): |
| + return false |
| + } |
| + return residentFailure(err) |
| +} |
| + |
| +// logWakeFailure writes a failed wake's reason to the journal (#861): |
| +// before this, a wake that failed after root was asked left only the |
| +// member's event, and on a box the operator read nothing but systemd's |
| +// "SIGKILL ... on client request". The first failure logs at once; after |
| +// that at most one line per wakeFailureLogEvery, counting the failures in |
| +// between. Callers pass only journalledWakeFailure errors. |
| +func (a *Service) logWakeFailure(host string, err error) { |
| + now := a.now() |
| + a.wakeFailMu.Lock() |
| + if a.wakeFailLogged == nil { |
| + a.wakeFailLogged = map[string]*wakeFailNote{} |
| + } |
| + for h, n := range a.wakeFailLogged { |
| + if now.Sub(n.at) >= wakeFailureForget { |
| + delete(a.wakeFailLogged, h) |
| + } |
| + } |
| + n := a.wakeFailLogged[host] |
| + if n != nil && now.Sub(n.at) < wakeFailureLogEvery { |
| + n.suppressed++ |
| + a.wakeFailMu.Unlock() |
| + return |
| + } |
| + suppressed := 0 |
| + if n != nil { |
| + suppressed = n.suppressed |
| + } |
| + a.wakeFailLogged[host] = &wakeFailNote{at: now} |
| + a.wakeFailMu.Unlock() |
| + if suppressed > 0 { |
| + log.Printf("activator: %s: wake failed (%d more since the last line): %v", host, suppressed, err) |
| + return |
| + } |
| + log.Printf("activator: %s: wake failed: %v", host, err) |
| +} |
| + |
| +// clearWakeFailure forgets host's failure note after a wake that worked, |
| +// so its next failure is logged at once. |
| +func (a *Service) clearWakeFailure(host string) { |
| + a.wakeFailMu.Lock() |
| + delete(a.wakeFailLogged, host) |
| + a.wakeFailMu.Unlock() |
| +} |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 1477105bf..03887cecc 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -162,3 +162,4 @@ plan14-root-reads-health-check-no-redirects-845.tsv e650a3ceb286df4457850d74ded9 |
| plan14-root-reads-retry-after-503.tsv eea13e9a0b04164ea3fc7f8258bd1ab0a613d1e23ffe0cd028bc85058576c248 |
| plan14-root-reads-fix-rootfs-jit-kill-854.tsv eea13e9a0b04164ea3fc7f8258bd1ab0a613d1e23ffe0cd028bc85058576c248 |
| plan14-root-reads-demo-terms-links.tsv c8e2c7ed3850823a8e379d880738982772b870ad8549238cc02abce24c80eb93 |
| +plan14-root-reads-fix-silent-start-kill-861.tsv 733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557 |
diff --git a/internal/provision/testdata/plan14-root-reads-fix-silent-start-kill-861.tsv b/internal/provision/testdata/plan14-root-reads-fix-silent-start-kill-861.tsv| new file mode 100644 |
| index 000000000..6019a1bae |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-fix-silent-start-kill-861.tsv |
| @@ -0,0 +1,14 @@ |
| +# Census overlay fix-silent-start-kill-861, written by census-propose (#369). census-ruling-fix-silent-start-kill-861, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fix-silent-start-kill-861.md. |
| +# 4 body, 2 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy 3aae48277f89ccd8f4cc1f3622ea93acf9d0665a917abde98dc00f1a50e29e54 internal/activator/activator.go Service.wake 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.;rev3=census-ruling-edge-page-cache-1;basis=the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: a failed wake that journalledWakeFailure counts as a real failure is logged through logWakeFailure (rate-limited per host, in memory); a successful wake calls clearWakeFailure. Agent, not root; reads the error already in hand; no read added registry:Socket@8649,registry:Socket@8810,registry:Stateless@10144,registry:Stateless@10892,whole:Route@10135,whole:Route@10190,whole:Route@10894,whole:Route@1762,whole:Route@3277,whole:Route@3404,whole:Route@3561,whole:Route@466,whole:Route@6911,whole:Route@8602,whole:Route@8651,whole:Route@8812 e2e6edd489f95ff324252b112721e0437c78389025159390cbe3b0728ea37f58 |
| +@legacy 8377422e50667f03b3c86e364f0daefbd67e8be1982b225907adc8739107b111 internal/activator/backend_exec.go ExecBackend.StartWorkerStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.;rev3=census-ruling-region-ha-p1b3b-s;basis=Require acquired HA lifetime and containment for stamped sidecars; after the existing staged build verification, dispatch their worker launch through startHAWorker. Legacy worker exec and parent co-spawn remain unchanged.;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861 (Astra R1 3): the malformed-argv error names len(rt.Args) instead of quoting rt.Args, so a credential in an argv never reaches the journal; same refusal, same reads file:Command@4336,registry:Args@1063,registry:Args@839,registry:Host@1050,registry:Host@1159,registry:Host@1275,registry:Host@1371,registry:Host@2074,registry:Host@2149,registry:Host@3439,registry:Host@4475,registry:Host@5361,registry:Host@673,whole:Route@1834,whole:Route@202,whole:Route@2218,whole:Route@2521,whole:Route@3067,whole:Route@318,whole:Route@354,whole:Route@4288,whole:Route@4406,whole:Route@4436,whole:Route@444,whole:Route@5202,whole:Route@5292,whole:Route@558 42a8cda8a45ffdf64d720687507b3f49415f6412695f873d04ef8931a4a56069 |
| +@legacy 033d389c81dbfb1740e04dc4d224416495e4964cde03cbb704ace4026d3078de internal/activator/backend_exec.go seedArgv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-fix-silent-start-kill-861;basis=#861 (Astra R1 3): the parse error names len(rt.Seed) instead of quoting rt.Seed; same refusal, same reads registry:Host@479,registry:Seed@124,registry:Seed@492 1c28f709557f0bc27606bbad4a1c47dfe4f4d65c4d318584d0ac0ab15217f435 |
| +@legacy b20088b2962a16d9fbad23d9480b306d6180fbc571d55d79339a540241063fd5 internal/activator/backend_exec.go ExecBackend.spawnUnitFrom 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs computed from the captured file environment and pinned/staged build and store them on the handle, alongside branch sandbox gate, validated root StartResponse Unit/Sandbox/InvocationID and all uncertain-start cleanup. No new direct read.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: one log line before killFailedGen naming the host, the generation unit (runUnitName) and the error already in hand; the +registry:Host sites are those two arguments to log.Printf; no new read source, behaviour unchanged registry:Host@1308,registry:Host@1785,registry:Host@1890,registry:Host@2021,registry:Host@2478,registry:Host@3437,registry:Host@3798,registry:Host@4566,registry:Host@5152,registry:Host@5417,registry:Host@5574,registry:Host@5595,registry:Host@5816,registry:Host@6001,registry:Host@6396,registry:Host@6657,registry:Host@6843,registry:Host@7845,registry:Host@7939,registry:Stateless@1835,whole:Route@1093,whole:Route@1472,whole:Route@1714,whole:Route@1875,whole:Route@197,whole:Route@3673,whole:Route@431,whole:Route@5649,whole:Route@6776,whole:Route@6926,whole:Route@995 199f11e98d9d3f6a6ef2158befe7ac161df7e7a2ba9af8f6595f87c2aed8c8e3 |
| +@legacy bcf22e9df752d5c6458348f2d64e1b34d7121b46be5031508a8061545e9387de internal/activator/rootfs.go ExecBackend.spawnRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=sets up.inputs = launchInputs(id.Version, fileEnv): the image version and env this spawn already read, hashed in memory; no new read; read sites unchanged (20); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs on rootfs handle from existing staged image version and fileEnv. Keep branch sandbox gate and root identity validation. No new read.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: one log line before killFailedRootfsGen naming the host, the unit and the error already in hand; the +registry:Host site is that argument to log.Printf; no new read source, behaviour unchanged registry:Host@1315,registry:Host@1488,registry:Host@1788,registry:Host@1907,registry:Host@2654,registry:Host@2991,registry:Host@3218,registry:Host@3345,registry:Host@3670,registry:Host@3798,registry:Host@390,registry:Host@3907,registry:Host@4624,registry:Host@4718,whole:Route@1105,whole:Route@1137,whole:Route@199,whole:Route@2014,whole:Route@3051,whole:Route@3983,whole:Route@502,whole:Route@602,whole:Route@732 faa07a18d44ec14e163e5737fc3bf5c89a94fcfdec4d6dc630f3d15eb71e2c8d |
| +internal/activator/activator.go Service.wake 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-wake-storm-cap;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): waits for a box-wide wake slot (acquireWakeSlot, an in-memory buffered channel) before doWake; the fence/shutdown/retired/disabled refusals move into refuseWakeLocked and are asked again after admission (one fewer direct whole-Route read here: a.disabled(e.route) now runs inside refuseWakeLocked, same value); e.wakeStart is set at admission and e.admitted marks it. Only waits and refuses more; no new read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.;rev3=census-ruling-region-ha-g2-fixes;basis=Bind recovery wakes to the service lifetime; no new read.;rev3=census-ruling-edge-page-cache-1;basis=the generation-current call is now noteCurrent(e) instead of noteCurrent(e.host, e.gen.N), so the new noteCurrent can also publish the process's page cache launch inputs; read sites unchanged (16); no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: a failed wake that journalledWakeFailure counts as a real failure is logged through logWakeFailure (rate-limited per host, in memory); a successful wake calls clearWakeFailure. Agent, not root; reads the error already in hand; no read added registry:Socket@8649,registry:Socket@8810,registry:Stateless@10144,registry:Stateless@10892,whole:Route@10135,whole:Route@10190,whole:Route@10894,whole:Route@1762,whole:Route@3277,whole:Route@3404,whole:Route@3561,whole:Route@466,whole:Route@6911,whole:Route@8602,whole:Route@8651,whole:Route@8812 e2e6edd489f95ff324252b112721e0437c78389025159390cbe3b0728ea37f58 |
| +internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added;rev3=census-ruling-held-move-speed;basis=the agent as carlos: one new field, moveStreams (per-host in-memory set of edge.StreamEnd for requests in flight, own mutex), for the move's early stream cut; actEntry gains drainRelease (bool, under a.mu), set by DrainStop; declarations only, no read added;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: two fields, wakeFailMu and wakeFailLogged (per-host in-memory note of the last journalled wake failure); declaration only, no read 4bb20e294ab1d7c724d3576d300708ac5156af2f4d86dab5e35542a84a5b5b08 |
| +internal/activator/backend_exec.go ExecBackend.StartWorkerStaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-zddr3;basis=Census ruling zddr3: changed legacy row (comment-only change describing the shim placement); the same class as the accepted-legacy Manager.startIn and placementLive under fix1-merge-review (existing agent delegated-cgroup management remains legacy); no root decision; no registry, /data, release or claim reads. Boundary: the agent's own delegated cgroup subtree (including its scratch probe child), /proc/self, and pipes to and from its own parent, running as carlos.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: add/recheck the local start prohibition on generation, worker, sidecar, command or root-control launch, including retained leases; preserve existing lease/ownership checks and fixed-unit exemptions. Whole Route passes to the in-memory predicate; no new filesystem/store read.;rev3=census-ruling-region-ha-p1b3b-s;basis=Require acquired HA lifetime and containment for stamped sidecars; after the existing staged build verification, dispatch their worker launch through startHAWorker. Legacy worker exec and parent co-spawn remain unchanged.;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861 (Astra R1 3): the malformed-argv error names len(rt.Args) instead of quoting rt.Args, so a credential in an argv never reaches the journal; same refusal, same reads file:Command@4336,registry:Args@1063,registry:Args@839,registry:Host@1050,registry:Host@1159,registry:Host@1275,registry:Host@1371,registry:Host@2074,registry:Host@2149,registry:Host@3439,registry:Host@4475,registry:Host@5361,registry:Host@673,whole:Route@1834,whole:Route@202,whole:Route@2218,whole:Route@2521,whole:Route@3067,whole:Route@318,whole:Route@354,whole:Route@4288,whole:Route@4406,whole:Route@4436,whole:Route@444,whole:Route@5202,whole:Route@5292,whole:Route@558 42a8cda8a45ffdf64d720687507b3f49415f6412695f873d04ef8931a4a56069 |
| +internal/activator/backend_exec.go seedArgv legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-fix-silent-start-kill-861;basis=#861 (Astra R1 3): the parse error names len(rt.Seed) instead of quoting rt.Seed; same refusal, same reads registry:Host@479,registry:Seed@124,registry:Seed@492 1c28f709557f0bc27606bbad4a1c47dfe4f4d65c4d318584d0ac0ab15217f435 |
| +internal/activator/backend_exec.go ExecBackend.spawnUnitFrom 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. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; it calls prepareKeyedAt and keeps the launch environment and its key layer on the generation's handle; read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-2;basis=times the launch's steps with time.Now() (build, prepare, launch file, gate, root start) and adds them to its existing "started" journal line; no read added or moved;rev3=census-ruling-rootfs-apps-2;basis=the unit names in its error and log lines go through runUnitName, and newUnitProcFor's new error (a role with no unit to observe) fails the start as markStartUncertain after root started the unit; the binary spawn is otherwise unchanged, a rootfs row never reaches it (nestedGate refuses one); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=computes the page cache launch inputs once (launchInputs: sha256 over the staged or pinned exe's Version and the fileEnv this spawn already read; "" with no exe, since root binds the movable live link) and keeps them on the unit handle (up.inputs); no new file, registry or bucket read; read sites unchanged (29); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs computed from the captured file environment and pinned/staged build and store them on the handle, alongside branch sandbox gate, validated root StartResponse Unit/Sandbox/InvocationID and all uncertain-start cleanup. No new direct read.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: one log line before killFailedGen naming the host, the generation unit (runUnitName) and the error already in hand; the +registry:Host sites are those two arguments to log.Printf; no new read source, behaviour unchanged registry:Host@1308,registry:Host@1785,registry:Host@1890,registry:Host@2021,registry:Host@2478,registry:Host@3437,registry:Host@3798,registry:Host@4566,registry:Host@5152,registry:Host@5417,registry:Host@5574,registry:Host@5595,registry:Host@5816,registry:Host@6001,registry:Host@6396,registry:Host@6657,registry:Host@6843,registry:Host@7845,registry:Host@7939,registry:Stateless@1835,whole:Route@1093,whole:Route@1472,whole:Route@1714,whole:Route@1875,whole:Route@197,whole:Route@3673,whole:Route@431,whole:Route@5649,whole:Route@6776,whole:Route@6926,whole:Route@995 199f11e98d9d3f6a6ef2158befe7ac161df7e7a2ba9af8f6595f87c2aed8c8e3 |
| +internal/activator/rootfs.go ExecBackend.spawnRootfs legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-2;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=root-route (J1, as spawnUnitFrom, whose shape it has): new (rootfs Plan 2 Tasks 5 and 9): prepareKeyedAt (the instance's own directories, environment and listeners, unchanged), the schema-2 tenant launch file (environment only, CARLOS_SOCKET and CARLOS_DB set by the agent), the caller's exec gate, then StartRootfs over the control socket naming the image and web; root resolves the command from its own staged manifest (C4) and the tenant file may name no command (the trampoline refuses one); the failure handling is spawnUnitFrom's; its sites are the row's host and route; no root decision; final fix I1: root's answers that guarantee no start (ErrStartRefused: 503 not ready or claim-armed, 501 unconfigured, 400, 409, 507), like its 403, are marked a refusal (refuseRootfs), so verdictOf and classifyStep record no failure of the build and no stop is asked; a 502 and a transport failure still may have run; the same nineteen sites, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 fix wave 1 (d35fcb1f, census P1-1): takes the tier root is asked for as an argument; a zero tier means GenTier's (the former body), so a caller that chose a limit has it kept, as spawnChildFrom and spawnUnitFrom keep theirs; the same nineteen sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Use the verified generation/launch mode to remove CARLOS_DB after environment merges and omit the binary --db argument where applicable. Existing runtime, layout, secrets and exec gates remain; route reads are mode projection only.;rev3=census-ruling-edge-page-cache-1;basis=sets up.inputs = launchInputs(id.Version, fileEnv): the image version and env this spawn already read, hashed in memory; no new read; read sites unchanged (20); no read added;rev3=census-ruling-gvisor-demos;basis=Task 5: gate launch using startup-captured mode and existing route/role/layout before preparation or execution; migrate structured root start identity and reject mismatches. Unsupported gVisor paths refuse; native behavior and existing root authority checks retained. No new root read source. Merge2 e8a1ddde: retain main launchInputs on rootfs handle from existing staged image version and fileEnv. Keep branch sandbox gate and root identity validation. No new read.;rev3=census-ruling-fix-silent-start-kill-861;basis=#861: one log line before killFailedRootfsGen naming the host, the unit and the error already in hand; the +registry:Host site is that argument to log.Printf; no new read source, behaviour unchanged registry:Host@1315,registry:Host@1488,registry:Host@1788,registry:Host@1907,registry:Host@2654,registry:Host@2991,registry:Host@3218,registry:Host@3345,registry:Host@3670,registry:Host@3798,registry:Host@390,registry:Host@3907,registry:Host@4624,registry:Host@4718,whole:Route@1105,whole:Route@1137,whole:Route@199,whole:Route@2014,whole:Route@3051,whole:Route@3983,whole:Route@502,whole:Route@602,whole:Route@732 faa07a18d44ec14e163e5737fc3bf5c89a94fcfdec4d6dc630f3d15eb71e2c8d |
| +@coverage internal/activator a58a157a8536ba0c9c4e136f3f1a469bf3222bb237dbe6679186d07f85df807e |