Fix graceful HA termination review findings
Keep instance-control available after failures so edge shutdown can prove termination. Update the startup wiring assertion and widen shutdown test windows for race instrumentation. Correct the planned-termination spec and refresh the control service census claim. Targeted host, edge and census tests pass; HA shutdown tests pass with -race -count=3. Vet and formatting checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/notes/census-proposal-region-ha-graceful-terminate-t1.md+1 −1docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md+14 −3internal/activator/harelease_shutdown_test.go+5 −5internal/host/startup_largebox_linux_test.go+1 −1internal/host/units/carlos-instance-control.service+10 −6internal/host/units_shutdown_test.go+6 −0internal/provision/testdata/plan14-root-reads-region-ha-graceful-terminate-t1.tsv+2 −2
CI passed — run details
Intent
<task-notification> <task-id>b3gk72hgi</task-id> <tool-use-id>toolu_01Q2CzcaKpbUe2F4MYzf56JD</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c23f0319-4761-45f6-bac7-f9471c7b9ab1/tasks/b3gk72hgi.output</output-file> <status>completed</status> <summary>Background command "W=/home/paulca/amadan.net/carlos/platform/.claude/worktrees/ha-graceful/.superpowers/sdd/2026-11-08-region-ha-graceful-terminate; until [ -f $W/task-4-report.md.done ]; do sleep 20; done; echo done" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>bo98kb4mt</task-id> <tool-use-id>toolu_01Lx3Cq92ZM3kGz7PnV9WD7Q</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c23f0319-4761-45f6-bac7-f9471c7b9ab1/tasks/bo98kb4mt.output</output-file> <status>completed</status> <summary>Background command "until amadan ci status carlos/platform -branch region-ha-graceful-terminate 2>&1 | head -1 | grep -qv "queued\|running"; do sleep 60; done; amadan ci status carlos/platform -branch region-ha-graceful-terminate 2>&1 | tail -30" completed (exit code 0)</summary> </task-notification>
<task-notification> <task-id>a4cdadf08f48acacc</task-id> <tool-use-id>toolu_01NZBg39W81tGF1pxnDRGYYP</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c23f0319-4761-45f6-bac7-f9471c7b9ab1/tasks/a4cdadf08f48acacc.output</output-file> <status>completed</status> <summary>Agent "Final whole-branch review + census" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>### Strengths - **One writer on every release path I checked.** `releaseHAClean` (`internal/activator/harelease.go:160-238`) still runs Final, then Finish, then the marker, each call synchronous. Only the contexts changed. `finalize` (`internal/lease/release.go:170-185`) has no return path that leaves the store unjoined. So a marker is written only after Final and Finish have returned, and a stuck Finish means no marker. `TestHAShutdownStuckFinishWritesNoMarker` and `TestHAShutdownJoinsMarker` both pin this. - **Normal releases are untouched.** `haReleaseContext` (`harelease.go:241-259`) only clamps while `shuttingDown`. Outside shutdown the old 2 min / 30 s / 10 s budgets apply, and `TestHANormalReleaseBudgetsUnchanged` pins that. - **The deadline handoff is race-free.** `beginShutdown` runs on the same goroutine as `RunWithActivatorReady`, and `runAgent` reads `shutdownDeadline` only after that call returns (`agent.go:1126,1294-1303`). Every normal return from Run goes through `beginShutdown`, so the deadline is never zero. - **The unit change keeps the earlier `After=` reasoning.** Instance templates keep `BindsTo`/`After` on the edge. The edge has no `Wants`/`Requires` on control. `units_shutdown_test.go` folds in the group drop-in and checks the ordering graph for cycles. - **The witness is real.** Real EC2 terminate, a baseline on main (no marker) and a pass on the branch (clean marker at +3.21 s), with the timeline recorded in §9.9. - **Tests pass locally.** The new activator tests passed `-race -count=5`, and the two tight-timing tests passed `-race -cpu=1 -count=20` (they need unix sockets, so they ran outside the sandbox). The edge and host unit tests also pass. ### Issues #### Critical None. #### Important 1. **If control is down when the edge stops, the agent can no longer restart it in time, which breaks rolls in a way it did not on main.** - **Where:** `internal/host/units/carlos-edge.service:15`, and the `Restart=` sentence at `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md:529`. - **Why:** systemd always runs a stop job before a start job when the two units are ordered against each other. In `job_compare`, JOB_RESTART counts as a stop. The edge is now `After=carlos-instance-control.service`. So during `systemctl stop` or `systemctl restart carlos-edge`, any socket-activated start of control waits until the edge has fully stopped. - **When it bites:** control has died mid-life. It has no `Restart=` and `MemoryMax=64M` (`carlos-instance-control.service:49`); other causes are a crash, an operator stop, or a failed `restartInstanceControl`. The agent's shutdown RPCs then hang until their own timeouts, up to the 90 s budget. That means tenant downtime on the restart and no marker. - **Main's behaviour:** control started in parallel and the edge restart worked (`restartEdge`, `systemapply.go:1575`). This is still safe (no marker, so no second writer), but it is a regression on the roll path. - **Spec is wrong:** §9.9 says the failure happens only "if … the agent never re-activates it". In fact the agent does try to re-activate it, and that start is queued behind the edge's stop. - **Fix (pick one):** add `Restart=on-failure` and `RestartSec=1` to `carlos-instance-control.service`; this re-opens the t1 census row. Or record a ruling that accepts the risk and correct the §9.9 sentence to describe the queued start. 2. **The witness did not cover group members, which is what region-HA boxes are.** - **Gap:** the witness installs only the embedded units (`haplacement_root_linux_test.go:705-711`). Region-HA members also carry two drop-ins from `infra/modules/region-host/group-init.sh.tftpl`: - `50-group.conf` (line 87): `Restart=no` and `Requires=nftables`. - `60-hairpin.conf` (line 296): `ExecStop=+systemctl start carlos-hairpin-reset.service`. - **Budget problem:** `ExecStop` runs before SIGTERM and counts against `TimeoutStopSec=120`. carlos-hairpin-reset has `TimeoutStartSec=70`. The "120 > 90 + margin" arithmetic in the ledger preflight and §9.9:501 starts the agent's 90 s at SIGTERM and ignores `ExecStop`. Worst case is 70 + 90 > 120, a forced kill in the middle of a release. - **Likely real cost:** small. During poweroff, `systemctl start` of a unit that conflicts with shutdown.target should fail at once. I did not verify that. - **Fix:** not needed before merge. After the release, run one dev g- member terminate check (dev goes first in the roll order anyway). Add one sentence to §9.9 noting that `ExecStop` time on group members comes out of the 120 s. #### Minor 1. **A tight timing window in one test.** `internal/activator/harelease_shutdown_test.go:98` requires the Final budget to be in [900 ms, 1 s], a 100 ms window between `haReleaseContext` and `stageEscrow` under `-race`. That is tighter than the margin the ledger already flagged at :119/:134. Fix: relax the lower bound to about 500 ms, or record the time just before `Shutdown` and compare against that. Also widen :119 to 3 s. 2. **Other root-runner host tests now take a different placement path.** `plan14_generation_registry_root_linux_test.go:20` adds `cgroup.RunShimIfRequested()` to the host package's root-runner `TestMain`. That sets `shimHooked`, so every rootrunner host test now uses the shim placement path. It is closer to production, but the ledger records no full rootrunner host run since the change. Run one before merge if CI does not. Untagged builds are not affected: all three changed root test files are `linux && rootrunner`, and `TestRootHATerminateRelease` skips when `HA_TERMINATE_RUN` is unset (:344). 3. **`TimeoutStopSec` 90 s → 120 s applies to every edge stop.** Non-HA boxes included, so a hung edge stop during a roll now waits 30 s longer before the forced kill. This is acceptable as the backstop, but §9.9 should say it applies to every box. 4. **Orphan comment line.** `carlos-instance-control.service:4` has the stray line "Its whole job is" (also deferred below). ### Deferred-minor triage | Ledger line | Item | Verdict | Why | |---|---|---|---| | :28 | Orphan "Its whole job is" line in control.service | Can wait | Cosmetic. Fix it with Important 1 if that change re-opens the file. | | :29 | control.service has no `Restart=` | **Must fix or re-rule before merge** | The ledger says "safe", but it misses that this branch's `After=` turns a dead control into a stalled edge restart (Important 1). | | :32 | Deferred `logHAUnreleasedAtExit` takes `a.mu`, so a panic while the lock is held hangs | Can wait | A panic in `Shutdown` loses markers either way. The only difference is a crash now versus a hang until the forced kill at 120 s, after which `Restart=always` brings the edge back. No single-writer effect. | | :33 | Failed-marker PUT logged twice | Can wait | Log noise only. | | :34 | Healthy-budget test only checks upper bounds | Can wait | With D=60 s the Final cutoff (D-40) does bind. The Finish reserve is pinned by `TestHAShutdownCancelledContextKeepsReleaseBudget` (D=20 s). | | :35 | 1.5 s D / 500 ms slack may flake on CI | **Fix before merge (cheap)** | Passed 20× `-race -cpu=1` here, but the merge gate is branch-tip CI. Widen it together with Minor 1 (:98). | | :36 | `WithShutdownStarted` has no doc comment | Can wait | Internal option, and its one caller is commented. | | :43 | `TestRootHATerminateRelease` fails when `HA_TERMINATE_RUN` is unset | Already resolved | It is `t.Skip` now (:344). | | :44 | Mirror PUT can block up to 20 s × retries | Can wait | Affects only the witness's timing, not the product. The passing run shows no inflation. | | :48 | Plan :76 still shows `Wants=control` | Already resolved | Plan :77 has only `Wants=network-online.target`, and :85/:88 describe the correction. | ### Census verdicts (#280) Review question for each unit: does any root read now open, run, query or follow a path or input that a tenant, an app or a box agent can create, write or name? **t1** - **`internal/host/units/carlos-edge.service` (external, legacy): APPROVE.** The diff adds ordering only (`After=` control socket, control service, dbus) and `TimeoutStopSec=120`. The unit runs as `carlos`. It adds no `Exec*`, path, environment or capability, and no check is weakened. - **`internal/host/units/carlos-instance-control.service` (external, authority B3,C,D,E1,J4): APPROVE.** The only change is `After=nftables.service`, an ordering change, plus a comment. Root's start-up hairpin recovery (`resumeGroupHairpin`) reads the same root-written state as before. No input or path is added, and the `kept=B3,C,D,E1` checks are untouched. If Important 1 adds `Restart=`, this row needs a fresh card. - **Envelopes `internal/activator`, `internal/host/units`: APPROVE.** The activator changes are a comment in `cmd.go` and in-memory reads in the envelope functions. **t2** - **`internal/activator/harelease.go` `Service.releaseHAClean`: APPROVE.** It changes context deadlines only (`haReleaseContext` reads `a.shutdownCtx`/`a.shuttingDown`, which are in memory) and sets `e.haReleased` under `a.mu`. Same six read sites, same order, the stop proof (`haHostEmpty`) is unchanged, and the calls stay synchronous. - **`internal/edge/edge.go` `RunWithActivatorReady`: APPROVE.** `closeTenantAdmission` becomes `beginShutdown` (`shutdown.go`), which calls an in-process callback with `time.Now()` and then closes admission as before. Same five sites. This is the agent process, not root. - **`internal/host/agent.go` `runAgent`: APPROVE.** It adds an in-memory deadline and bounds `departureLife.Stop` by it. Same nine sites; agent user, not root. - **`internal/host/claimfilesseed_shutdown.go` `joinAgentShutdown`: APPROVE.** It only bounds existing contexts by the absolute deadline. If the seed close is cut short, the agent still exits with `safeClaimClose=false` (`agent.go:1304-1308`), which fails closed. No read added. - **Envelopes `internal/activator`, `internal/edge`, `internal/host`: APPROVE.** The new functions (`logHAUnreleasedAtExit`, `haReleaseContext`, `WithShutdownStarted`, `beginShutdown`) touch no filesystem, network or exec input. The test-only files are rootrunner-tagged. No unit needs to go back to the author. ### Declined to judge - The missing ASG lifecycle hook: an explicit ruling at ledger :18. - Cancel-and-join of Litestream work (G2 F-A): ruled out of scope at ledger :21. - Admission close, joins and `writeHARecord` not being bounded by D: ruled accepted at ledger :37. - Whether `ExecStop`'s `systemctl start carlos-hairpin-reset` fails fast during poweroff: I reasoned about it, but checking needs a live group member. ### Verdict **Ready after fixes.** The fixes are small: - Either add `Restart=on-failure` to control, or record a ruling accepting the risk and correct the §9.9 sentence. - Widen the two tight test windows (:98, :119/:134). After the release, run a dev g- member terminate check to close the group-member coverage gap. Single-writer holds on every path the branch touches, and behaviour outside shutdown is unchanged. Note: I created `/tmp/g` with `mkdir -p` to run the socket tests and left it in place, because your notes use it as a shared test directory and it may already have existed.</result> <usage><subagent_tokens>155387</subagent_tokens><tool_uses>34</tool_uses><duration_ms>547083</duration_ms></usage> </task-notification>
Attributed to this commit: 15.6 g CO₂e (1,966,779 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-graceful-terminate, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/notes/census-proposal-region-ha-graceful-terminate-t1.md b/docs/superpowers/notes/census-proposal-region-ha-graceful-terminate-t1.md| index a56c36192..1a4499df8 100644 |
| --- a/docs/superpowers/notes/census-proposal-region-ha-graceful-terminate-t1.md |
| +++ b/docs/superpowers/notes/census-proposal-region-ha-graceful-terminate-t1.md |
| @@ -5,7 +5,7 @@ Ruling `census-ruling-region-ha-graceful-terminate-t1`. The independent reviewer |
| | unit | change | read sites | what changed | |
| |---|---|---|---| |
| | `internal/host/units/carlos-edge.service` `external` | body | unchanged (1) | Region HA T1/DR-4 fix round 2: keep edge after control service, socket and D-Bus with TimeoutStopSec=120, but do not Want or Require control: its start probe needs the edge cgroup, so the agent socket-activates it after edge starts. Static ordering only; no new root read, input, command, path or capability. Instance templates unchanged. | |
| -| `internal/host/units/carlos-instance-control.service` `external` | body | unchanged (1) | Region HA T1/DR-4 fixes: retain After=nftables.service for startup hairpin recovery without adding Wants or Requires; describe socket activation by the agent and availability through edge stop. No new root read, input, path, command or capability. | |
| +| `internal/host/units/carlos-instance-control.service` `external` | body | unchanged (1) | Region HA T1/DR-4 final fix: retain After=nftables.service without Wants or Requires; add Restart=on-failure and RestartSec=1 so a crashed control restarts before a later edge stop can block socket activation and shutdown proofs; rewrap the header and explain this ordering. Same ExecStart and protections; no new root read, input, path, command or capability. | |
| Envelopes re-pinned: `internal/activator`, `internal/host/units`. |
diff --git a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md| index 0919862d4..f2f648c3e 100644 |
| --- a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| +++ b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| @@ -476,6 +476,7 @@ the agent's 60 s wait, leaving release abandoned at process exit. |
| `carlos-edge.service` now has `After=carlos-instance-control.socket |
| carlos-instance-control.service dbus.service` and `TimeoutStopSec=120`. |
| +The 120 s timeout applies to every box's edge, whether or not it runs HA. |
| Reverse stop ordering keeps those active dependencies available until the |
| edge stops. There is no `Wants=` on control: its start probe needs the edge's |
| cgroup, so the agent socket-activates it after the edge starts. Starting |
| @@ -526,9 +527,19 @@ The ledger records these UTC timelines on 2026-11-08: |
| No ASG termination lifecycle hook is used (T1/DR-4 ruling). Revisit it only |
| if EC2 cuts OS shutdown short; the witness did not show that. Cancellation |
| -and joining of Litestream work remains open as G2 F-A. Control still has no |
| -`Restart=`: if it dies and the agent never re-activates it, shutdown cannot |
| -prove termination and writes no marker. That failure remains safe. |
| +and joining of Litestream work remains open as G2 F-A. Control now has |
| +`Restart=on-failure` and `RestartSec=1`: with the edge ordered after control, |
| +a socket-activated start of a dead control queues behind the edge's stop |
| +job and stalls the agent's shutdown proofs. Restarting on failure keeps |
| +control available. If control still cannot run, shutdown cannot prove |
| +termination and writes no marker. That failure remains safe. |
| + |
| +On group members, the hairpin drop-in's `ExecStop` runs |
| +`systemctl start carlos-hairpin-reset.service` before the edge receives |
| +SIGTERM. The reset service has `TimeoutStartSec=70`, and this stop command |
| +counts against the edge's `TimeoutStopSec=120`. The witness does not cover |
| +this group-member path. A dev group-member terminate check after release |
| +will close that coverage gap. |
| ## 10. Load balancer health |
diff --git a/internal/activator/harelease_shutdown_test.go b/internal/activator/harelease_shutdown_test.go| index 2244fea32..fcc86ac72 100644 |
| --- a/internal/activator/harelease_shutdown_test.go |
| +++ b/internal/activator/harelease_shutdown_test.go |
| @@ -95,7 +95,7 @@ func TestHAShutdownFinalDeadlineReservesMarker(t *testing.T) { |
| go func() { s.a.Shutdown(ctx); close(done) }() |
| t.Cleanup(func() { close(abort); cancel(); <-done; <-e.stopped }) |
| f := awaitShutdownCall(t, final) |
| - if remaining := f.deadline.Sub(f.at); remaining < 900*time.Millisecond || remaining > time.Second { |
| + if remaining := f.deadline.Sub(f.at); remaining < 500*time.Millisecond || remaining > time.Second { |
| t.Fatalf("Final budget = %s, want floor-clamped 1s", remaining) |
| } |
| awaitShutdownCall(t, finish) |
| @@ -116,22 +116,22 @@ func TestHAShutdownStuckFinishWritesNoMarker(t *testing.T) { |
| r := e.rep.(*shutdownRep) |
| finish := r.finish |
| r.finish = func(ctx context.Context) (uint64, error) { close(entered); <-unblock; return finish(ctx) } |
| - ctx, cancel := context.WithTimeout(context.Background(), 1500*time.Millisecond) |
| + ctx, cancel := context.WithTimeout(context.Background(), 4*time.Second) |
| deadline, _ := ctx.Deadline() |
| done := make(chan struct{}) |
| go func() { s.a.Shutdown(ctx); close(done) }() |
| t.Cleanup(func() { close(unblock); cancel(); <-done; <-e.stopped }) |
| select { |
| case <-entered: |
| - case <-time.After(time.Second): |
| + case <-time.After(3 * time.Second): |
| t.Fatal("Finish did not start") |
| } |
| select { |
| case <-done: |
| - case <-time.After(2 * time.Second): |
| + case <-time.After(time.Until(deadline.Add(2 * time.Second))): |
| t.Fatal("Shutdown blocked on Finish") |
| } |
| - if time.Now().After(deadline.Add(500 * time.Millisecond)) { |
| + if time.Now().After(deadline.Add(2 * time.Second)) { |
| t.Fatal("Shutdown exceeded deadline") |
| } |
| select { |
diff --git a/internal/host/startup_largebox_linux_test.go b/internal/host/startup_largebox_linux_test.go| index facd09ab6..5de40268c 100644 |
| --- a/internal/host/startup_largebox_linux_test.go |
| +++ b/internal/host/startup_largebox_linux_test.go |
| @@ -481,7 +481,7 @@ func TestRunAgentStartupWiring(t *testing.T) { |
| if calleeName(call) != "joinAgentShutdown" { |
| continue |
| } |
| - want := []string{"seedCtx", "seedCancel", "seedServer", "cancelStartup", "startupDone", "dutiesDone"} |
| + want := []string{"shutdownDeadline", "seedCtx", "seedCancel", "seedServer", "cancelStartup", "startupDone", "dutiesDone"} |
| if len(call.Args) != len(want) { |
| t.Fatal("shutdown helper argument count", len(call.Args)) |
| } |
diff --git a/internal/host/units/carlos-instance-control.service b/internal/host/units/carlos-instance-control.service| index b294a0111..e5c385b42 100644 |
| --- a/internal/host/units/carlos-instance-control.service |
| +++ b/internal/host/units/carlos-instance-control.service |
| @@ -1,12 +1,11 @@ |
| # The root instance-control service (isolated-exec design §5). The agent |
| # socket-activates it after the edge starts, and it stays up through the |
| # edge's stop (T1/DR-4 ordering). |
| -# Its whole job is |
| -# systemctl start/stop/set-property on the three instance templates' units |
| -# and their host slices, on the agent's request, plus running the readiness |
| -# probe. Every unit name it passes to systemctl is built from a validated |
| -# host by the platform's own naming; nothing from a request reaches |
| -# systemctl as a string. |
| +# Its whole job is systemctl start/stop/set-property on the three instance |
| +# templates' units and their host slices, on the agent's request, plus |
| +# running the readiness probe. Every unit name it passes to systemctl is |
| +# built from a validated host by the platform's own naming; nothing from a |
| +# request reaches systemctl as a string. |
| # |
| # Runs as ROOT deliberately, with no new-privileges lockout and no syscall |
| # filter, for the systemctl child (the same rationale as |
| @@ -34,6 +33,11 @@ After=nftables.service |
| [Service] |
| ExecStart=/opt/carlos/carlos instance-control |
| +# The edge is ordered After= control (T1/DR-4), so a socket-activated start |
| +# of a dead control queues behind any edge stop job and stalls the agent's |
| +# shutdown proofs. Restarting on failure keeps control up. |
| +Restart=on-failure |
| +RestartSec=1 |
| ProtectSystem=strict |
| # /run/systemd/system: per-generation runtime drop-ins (zero-downtime |
| # deploys, plan 2 D1) and escaped .mount units for demo snapshot disks. |
diff --git a/internal/host/units_shutdown_test.go b/internal/host/units_shutdown_test.go| index 1e3d5dd5e..70b41d59f 100644 |
| --- a/internal/host/units_shutdown_test.go |
| +++ b/internal/host/units_shutdown_test.go |
| @@ -65,6 +65,12 @@ func TestEdgeShutdownKeepsControlAvailable(t *testing.T) { |
| t.Errorf("%s TimeoutStopSec = %v, want 120", edge, got) |
| } |
| const control = "carlos-instance-control.service" |
| + if got := units[control]["[Service]Restart"]; len(got) != 1 || got[0] != "on-failure" { |
| + t.Errorf("%s Restart = %v, want on-failure", control, got) |
| + } |
| + if got := units[control]["[Service]RestartSec"]; len(got) != 1 || got[0] != "1" { |
| + t.Errorf("%s RestartSec = %v, want 1", control, got) |
| + } |
| // The probe at control start needs the edge's cgroup, so the agent |
| // socket-activates control after the edge starts. |
| for _, key := range []string{"[Unit]Wants", "[Unit]Requires"} { |
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-graceful-terminate-t1.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-graceful-terminate-t1.tsv| index bb71afb29..2bcb0baac 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-graceful-terminate-t1.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-graceful-terminate-t1.tsv |
| @@ -2,6 +2,6 @@ |
| # 2 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| @legacy 1a917d3b2b5f31cff4133f996d9ce0fc60c27fd9c41cda21d21253b0c7df2de6 internal/host/units/carlos-edge.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 fix round 2: keep edge after control service, socket and D-Bus with TimeoutStopSec=120, but do not Want or Require control: its start probe needs the edge cgroup, so the agent socket-activates it after edge starts. Static ordering only; no new root read, input, command, path or capability. Instance templates unchanged. file:external@0 6389ef660a0c78e8be24008dc470b2b067d17c6c09740304961ad72635b122cd |
| internal/host/units/carlos-edge.service external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 fix round 2: keep edge after control service, socket and D-Bus with TimeoutStopSec=120, but do not Want or Require control: its start probe needs the edge cgroup, so the agent socket-activates it after edge starts. Static ordering only; no new root read, input, command, path or capability. Instance templates unchanged. file:external@0 6389ef660a0c78e8be24008dc470b2b067d17c6c09740304961ad72635b122cd |
| -internal/host/units/carlos-instance-control.service external authority B3,C,D,E1,J4 root-input;kept=B3,C,D,E1;scope=protected-decision-only;rev3=census-ruling-agent-start-demo-3;basis=Correct the runtime-write comment to include escaped demo snapshot .mount units alongside per-generation drop-ins; service directives are unchanged.;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 fixes: retain After=nftables.service for startup hairpin recovery without adding Wants or Requires; describe socket activation by the agent and availability through edge stop. No new root read, input, path, command or capability. file:external@0 bb1f7d683fb0d4fe0610037e6f7e32db4c7b0ea3c3c28cfec6590c8a27d0c552 |
| +internal/host/units/carlos-instance-control.service external authority B3,C,D,E1,J4 root-input;kept=B3,C,D,E1;scope=protected-decision-only;rev3=census-ruling-agent-start-demo-3;basis=Correct the runtime-write comment to include escaped demo snapshot .mount units alongside per-generation drop-ins; service directives are unchanged.;rev3=census-ruling-region-ha-graceful-terminate-t1;basis=Region HA T1/DR-4 final fix: retain After=nftables.service without Wants or Requires; add Restart=on-failure and RestartSec=1 so a crashed control restarts before a later edge stop can block socket activation and shutdown proofs; rewrap the header and explain this ordering. Same ExecStart and protections; no new root read, input, path, command or capability. file:external@0 c4e5717cbd5356d12423a300a6f19a03c05c9ddf1bbeb74351670f532e72177c |
| @coverage internal/activator 98723d85739969db615d6b0f589fa04a31e62dc80d3b64d3b1094b5edf3eeade |
| -@coverage internal/host/units 73dea994495c57e8bc6a12c624b7c6fbd87a6dbdc894d21401e45ecc700dca4c |
| +@coverage internal/host/units 770d1e5d7aba033d37d8be7519f75fd735f92859aa4370c7fb837c07eda42fec |