carlos / platform Public

census: re-seal activator-settle-wait on main

Main's group-observation-carry and stats-prune-400 overlays landed
first. Same four units and claims, re-proposed on top; only the seal
moved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 0d0dddd7ab7e3de74173bac6385ff0b126dfe08f parent bace1bb
2 files changed, +2 −1
  • docs/superpowers/notes/census-proposal-activator-settle-wait.md +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0

CI passed — run details

diff --git a/docs/superpowers/notes/census-proposal-activator-settle-wait.md b/docs/superpowers/notes/census-proposal-activator-settle-wait.md
index 16653b6ba..d4ac836e5 100644
--- a/docs/superpowers/notes/census-proposal-activator-settle-wait.md
+++ b/docs/superpowers/notes/census-proposal-activator-settle-wait.md
@@ -20,6 +20,6 @@ Recorded dispositions, which each change must still satisfy:
- `internal/activator/cmd.go` `Service.RunCmd`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): admits one run against an awake entry under the agent's own lease, fence and swap checks; it starts nothing itself and root validates what it later names;rev3=census-ruling-edge-request-records;basis=passes nil for begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: a carlos run is refused with ErrCmdBusy while a release record of the host is open (a.releaseOps[rt.Host], in-memory), as a run already in flight refuses it; new site +registry:Host (that map lookup); adds a refusal only;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: AfterSettled honoured on every path (called before return on each path that starts no unit, else by the settle that proves the unit gone); a rootfs run is refused as a lost lease (CmdStoppedError StopLeaseLost) when its entry is not under the lease watch (residentWatchedLocked), and, off a.mu, when the replica's in-memory SafeUntil leaves less than oneShotStartLead (oneShotHeadroom); new sites are e.route.Rootfs() and a log line; adds refusals only Task 9 (PF-17): a session (spec.TTY) takes the entry's tty slot and a run its cmd slot (holdSlot), the hold carrying its role (newCmdHold); each is refused only for its own role (holdBusyLocked: ErrCmdBusy or ErrTTYBusy), so a run and a session coexist; a release command (a.releaseOps) refuses a run only, since the session's tty unit is its own; no read added, read sites unchanged Task 12 fix round 1 (Astra P1, incarnation binding): a session (spec.TTY) is refused with ErrCmdIncarnation, under a.mu, at admission (before the hold is attached, so nothing of it runs) and again at the last check before the start, unless the awake entry's row lifetime (e.route.Incarnation) equals spec.Incarnation, the lifetime the box's grant authorized; Task 12 fix round 2 (revised ruling): only a mismatch refuses, and 0 matches 0 (a record and row with no lifetime fields); a run is not checked; refuses more, starts nothing new, no read added beyond the in-memory e.route field (sessionIncarnationLocked);rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Take command/TTY mode from the actual serving generation alongside the existing captured environment; no authority comes from a route flag.;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-stateless-replicas-2;basis=Only a set command chains the existing exec gate to the current record membership recheck immediately before exec; preserves caller gate and legacy path. merge of origin/main 7920cccf: Retain main tenantStartRefusal before command admission alongside the replica exec-gate wrapper; whole existing Route passed to admission, no new read source.;rev3=census-ruling-region-ha-g2-fixes;basis=Reject an existing entry with the wrong command lifetime before begin; new read of Host indexes the in-memory entry map.
- `internal/activator/rootfsrelease.go` `Service.runReleaseAdmitted`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Extract existing runner unchanged except optional pre-exec durable release transition after local admission and before any command; same staged process reads, stop/proof and exec gates, no new filesystem path.
-Seal: `40c8459580c3e62a53637e9989f1616e5735ce78796ec6ea1b22655a5eb4ad63` → `db6bde315a4956c131aba93c6e31000e862c6198d6e124136d7ffbadece831a5`.
+Seal: `587f6e92c5e594b9bb6436a2d0066849454407202e311f43483bed3be4591940` → `b3d35a0bd7c0500c74efbe5e8f566adb623696d31bd9860164907e08a2e79369`.
Overlay: `internal/provision/testdata/plan14-root-reads-activator-settle-wait.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index d760c3897..65e5efdb8 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -171,3 +171,4 @@ plan14-root-reads-group-read-transport-retry.tsv 9c74b9876a13a3a3802860fe4440689
plan14-root-reads-linked-deployments-slice1.tsv 40c8459580c3e62a53637e9989f1616e5735ce78796ec6ea1b22655a5eb4ad63
plan14-root-reads-stats-prune-400.tsv 75b32391a24d2c9269fc579aae68ac80b7b1d4ccf0be55f0373490e43a2a652a
plan14-root-reads-group-observation-carry.tsv 587f6e92c5e594b9bb6436a2d0066849454407202e311f43483bed3be4591940
+plan14-root-reads-activator-settle-wait.tsv b3d35a0bd7c0500c74efbe5e8f566adb623696d31bd9860164907e08a2e79369