fresh-box-446
Squashed from fresh-box-446 into main.
12 files changed,
+188
−3
docs/superpowers/notes/census-proposal-fresh-box-446.md+23 −0docs/superpowers/plans/CODEX-REVIEW-BRIEF-FRESH-BOX-446-1.md+30 −0docs/superpowers/plans/CODEX-REVIEW-FRESH-BOX-446-1.md+20 −0docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md+2 −0internal/host/bootstrap.go+12 −0internal/host/host_test.go+29 −0internal/provision/fresh_box_446_census_test.go+34 −0internal/provision/plan9_b8_census_test.go+1 −1internal/provision/reconcile.go+5 −2internal/provision/reconcile_test.go+24 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-fresh-box-446.tsv+7 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-fresh-box-446.md b/docs/superpowers/notes/census-proposal-fresh-box-446.md| new file mode 100644 |
| index 000000000..22e956ad7 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-fresh-box-446.md |
| @@ -0,0 +1,23 @@ |
| +# Census approval: fresh-box-446 |
| + |
| +Ruling `census-ruling-fresh-box-446`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/provision/reconcile.go` `RouteFor` | body | unchanged (13) | #446: a born-HA record mints the nested paths whatever nested says, as a rootfs row already does; same reads | |
| + |
| +Envelopes re-pinned: `internal/host`, `internal/provision`. |
| + |
| +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/provision/reconcile.go` `RouteFor`: authority, task C,E3. Basis: rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos); also root, in the claim root's landing registration (ClaimRootHTTP.rootLandingRoute) and the relocation install (relocationRecord): census-ruling-seeded-instances's body with two more fields from the record: the row's lifetime pair (rec.Incarnation, rec.MoveSeq), so a row minted outside a move takes the record's lifetime and its last move's sequence (0, 0 for a fieldless record with no move history); every caller gets it, the root ones included: the root callers (ClaimRootHTTP.rootLandingRoute, relocationRecord) now mint (0, move_seq) on a claims-on record, a non-zero sequence once that record has had an offline move (move_seq advances on claims-on offline moves too), which moves Fingerprint and SnapshotFingerprint once for that row; main's C,E3 authority retained; self-serve moves 1 Task 7 (fix round 1: root callers named);rev3=census-ruling-region-ha-p1a;basis=the agent's reconcile passes, and also root's callers (rootupdates.go, rootinventory_install.go and relocationinstall.go on HEAD): one more field copied from the record, HA: rec.HA, so a row minted from a record stamped HA carries the sticky born-HA mark; the record is the console-written instance record each caller already read; root's own code reads nothing of Route.HA, and Fingerprint does not include it (SnapshotFingerprint does, for a set mark); the same nine sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: the row is minted with the record's Runtime (the console-written instance record, guarded by WriteRecord's runtimeFixed); a rootfs row always gets the nested socket and db path under dataDir and no seed or seed source; the paths are computed from the host, not read from the record |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- reads `internal/host/bootstrap.go:bootstrapWith`: +file:Command; keeps authority, task A,C,G,J4 |
| + |
| +Seal: `862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab` → `862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-fresh-box-446.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/plans/CODEX-REVIEW-BRIEF-FRESH-BOX-446-1.md b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-FRESH-BOX-446-1.md| new file mode 100644 |
| index 000000000..3edc6ab3a |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-FRESH-BOX-446-1.md |
| @@ -0,0 +1,30 @@ |
| +# Review brief: fresh-box-446 branch (#446), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `fresh-box-446`, commit c33b0115dbf4a70dec900cee9e8609fcc65afcb1. |
| +Under review: the diff `origin/main...HEAD` (one commit). Authorities: amadan discussion #446 (the bug, read it with |
| +`AMADAN_HOME=~/.amadan-agent amadan discuss show carlos/platform 446` if you can), the region HA spec |
| +`docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` and P1a's rule that a born-HA host wakes only nested |
| +(`internal/activator/hawake.go` haContained). Do not review against unmerged branches. |
| + |
| +You are an independent reviewer, and also the cross-model census reviewer for `census-ruling-fresh-box-446` |
| +(card `docs/superpowers/notes/census-proposal-fresh-box-446.md`; AGENTS.md "The census"). |
| + |
| +## What to check |
| + |
| +1. **Bootstrap** (`internal/host/bootstrap.go`): the live path now runs `systemd-tmpfiles --create /etc/tmpfiles.d/carlos.conf` after |
| + the credentials repair and before `systemctlPlan`. Does it fix the fresh-box fault (the socket unit creating /run/carlos-control |
| + root:root before the conf's `d /run/carlos-control 0750 root carlos -` line is applied)? Can applying the whole conf at that point |
| + break anything on a fresh box or a re-run (mounts not active yet, the /data/instances bind, existing sockets, the probe-secret |
| + file, a failure making bootstrap fatal)? Is the staging output's order a fair witness of the live order? |
| +2. **RouteFor** (`internal/provision/reconcile.go`): a born-HA record now mints nested paths whatever `nested` says. Check every |
| + RouteFor caller (`grep -n 'RouteFor(' internal`): the drift check (~1890), adoption (~1919), held mints (~2316), seed swap, |
| + relocation and root inventory installs. Can any existing row be re-pathed under its data, or a legacy row change shape? Is the |
| + new "different route SHAPE" warning for an already-flat HA row (the bug's leftover state) safe and acceptable? |
| +3. **Census:** for each unit and envelope on the card, approve or reject per the card's question. |
| +4. The spec paragraph added under §12.1 (closing 443 later): any factual error? |
| + |
| +## Severity, output |
| + |
| +P1 (unsafe, does not work, a test fails), P2 (wrong or missing, fixed without another round), P3 (polish, follow-up). Each with |
| +file:line evidence and a failure scenario. End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. Then the census |
| +verdict per unit and envelope (approve or reject). Do not edit files, spawn subagents of your own, or run full suites. |
diff --git a/docs/superpowers/plans/CODEX-REVIEW-FRESH-BOX-446-1.md b/docs/superpowers/plans/CODEX-REVIEW-FRESH-BOX-446-1.md| new file mode 100644 |
| index 000000000..284662494 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-REVIEW-FRESH-BOX-446-1.md |
| @@ -0,0 +1,20 @@ |
| +One P2 finding; no P1 findings. Reviewed `origin/main...d0b4af5c3d9953715ec3ec47a3a15250b1d6e43d`, round 1. |
| + |
| +- **P2 — The 443 follow-up requires a forwarding-protocol change.** [Spec:500](docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md#L500) says the NLB target forwards cross-region backhaul to the holder. But §6.4, lines 258–264, forbids forwarding an already-forwarded request; §6.5 permits only a limited retry by the original box. If a cross-region POST reaches an NLB target other than the holder, that target returns 503 and the original box cannot retry the POST. **Fault family:** bounded forwarding and loop prevention. State that closing 443 also depends on a separately designed change to this protocol; implementing §6 alone is insufficient. |
| + |
| +The bootstrap call runs after credential repair and before unit arming. Its directory rules have matching ownership and modes across bind aliases; they do not remove existing sockets. The probe fixtures use `f`, which preserves existing contents. Failure stops bootstrap before arming, appropriately refusing incomplete setup. Staging prints the same relative command order, although its test does not execute the live branch. These file-operation semantics match [https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html](https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html). |
| + |
| +All production `RouteFor` callers were checked. Existing owned rows retain their paths; flat HA rows receive the shape warning, and adoption refuses their mismatch. Legacy records retain their previous derivation. Seed swap, relocation and root updates already request nested paths. Held mints and root landing registration retain their hold and authority checks. |
| + |
| +`git diff --check` passed. Targeted tests could not start: the read-only sandbox prevented Go from creating its work directory. Network restrictions prevented reading #446 or recording the census verdict on #280. No files were changed. |
| + |
| +**READY AFTER FIXES** |
| + |
| +Census verdict for `census-ruling-fresh-box-446` at the reviewed tip: |
| + |
| +| Unit or envelope | Verdict | Evidence and basis | |
| +|---|---|---| |
| +| `bootstrapWith` | **Approve** | `internal/host/bootstrap.go:550–619`: fixed command and freshly written configuration; credential repair remains first; errors prevent arming. | |
| +| `RouteFor` | **Approve** | `internal/provision/reconcile.go:522–577`: paths remain derived from the record’s host; no new input source or weakened validation. Drift/adoption checks remain at lines 1890–1923. | |
| +| `internal/host` envelope | **Approve** | Reviewed the new command at `bootstrap.go:297`, both call sites, configuration at lines 64–113, and the added staging test at `host_test.go:1992`. Existing root caller checks remain intact. | |
| +| `internal/provision` envelope | **Approve** | Reviewed the complete `RouteFor` change, every production caller, and `reconcile_test.go:3788`. The change neither rewrites existing paths nor changes legacy derivation. | |
| \ No newline at end of file |
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 7a4e33a31..08aa9cf50 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 |
| @@ -497,6 +497,8 @@ Today the module makes one `aws_instance` and one `aws_eip` (`main.tf:536-587`). |
| - the backhaul port from the VPC CIDR. |
| Drills check public traffic from outside the VPC. |
| + |
| + **Later: close 443 to everything but the NLB** (follow-up, 2026-10-28). Port 80 already admits only the NLB. 443 stays open from anywhere only for cross-region backhaul. The plan is for backhaul to dial the far region's NLB address instead of a box's, with the target box forwarding to the holder. §6 alone does not allow that: §6.4 refuses to forward a request that was already forwarded, and §6.5's retry belongs to the original box, so a backhauled POST landing on a box that is not the holder would get a 503. Closing 443 therefore also needs its own design for that second hop. After it, 443 admits only the NLB's security group, and no box address bypasses the NLB's health and drain. Private links between regions (peering or a transit gateway) were rejected for this: the default VPCs all use 172.31.0.0/16 and cannot peer. |
| - **The termination rule and queue:** unchanged. **Alarms:** §20. |
| ### 12.2 IAM |
diff --git a/internal/host/bootstrap.go b/internal/host/bootstrap.go| index 05939e3e8..a889c110b 100644 |
| --- a/internal/host/bootstrap.go |
| +++ b/internal/host/bootstrap.go |
| @@ -288,6 +288,14 @@ func systemctlPlanArming(units, armed []string) [][]string { |
| // daemon. Both places that install the drop-in call this explicitly instead. |
| var journaldReload = []string{"restart", "systemd-journald"} |
| +// tmpfilesApply applies the conf a live bootstrap just wrote, before it arms |
| +// any unit (#446). Starting carlos-instance-control.socket creates |
| +// /run/carlos-control itself, root:root, and only the conf's line gives it |
| +// group carlos; a fresh box that waited for its next boot had an agent |
| +// refused at the control socket. The self-update apply does the same after |
| +// it installs the conf (systemapply.go). |
| +var tmpfilesApply = []string{"systemd-tmpfiles", "--create", "/etc/tmpfiles.d/carlos.conf"} |
| + |
| // RunBootstrap is the `carlos bootstrap` verb. Idempotent — safe to re-run |
| // (which is also how a box enrolls a new socket consumer after the fact). |
| func RunBootstrap(args []string) { |
| @@ -593,6 +601,7 @@ func bootstrapWith(root string, consumers []string, planJSON bool) error { |
| for _, args := range privilegedPlan(consumers) { |
| fmt.Printf(" %s\n", strings.Join(args, " ")) |
| } |
| + fmt.Printf(" %s\n", strings.Join(tmpfilesApply, " ")) |
| for _, args := range systemctlPlan(enabledUnits) { |
| fmt.Printf(" systemctl %s\n", strings.Join(args, " ")) |
| } |
| @@ -604,6 +613,9 @@ func bootstrapWith(root string, consumers []string, planJSON bool) error { |
| if err := repairOffcloudCredentials("/etc/carlos/credentials"); err != nil { |
| return err |
| } |
| + if out, err := exec.Command(tmpfilesApply[0], tmpfilesApply[1:]...).CombinedOutput(); err != nil { |
| + return fmt.Errorf("%s: %v: %s", strings.Join(tmpfilesApply, " "), err, strings.TrimSpace(string(out))) |
| + } |
| for _, args := range systemctlPlan(enabledUnits) { |
| if err := systemctl(args...); err != nil { |
| return err |
diff --git a/internal/host/host_test.go b/internal/host/host_test.go| index d96d2c955..c23acbca4 100644 |
| --- a/internal/host/host_test.go |
| +++ b/internal/host/host_test.go |
| @@ -7,6 +7,7 @@ import ( |
| "encoding/base64" |
| "encoding/json" |
| "fmt" |
| + "io" |
| "log" |
| "net" |
| "os" |
| @@ -1981,3 +1982,31 @@ func TestSystemUnitsSelectPrevByTheFloor(t *testing.T) { |
| }) |
| } |
| } |
| + |
| +// TestBootstrapAppliesTmpfilesBeforeArming pins #446's first fault: a live |
| +// bootstrap applies its tmpfiles conf before it starts any unit. Starting |
| +// carlos-instance-control.socket creates /run/carlos-control itself, root:root, |
| +// and only the tmpfiles line gives it group carlos, so a fresh box whose conf |
| +// waited for its next boot had an agent refused at the control socket. The |
| +// staging run prints the same sequence a live run executes. |
| +func TestBootstrapAppliesTmpfilesBeforeArming(t *testing.T) { |
| + r, w, err := os.Pipe() |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + stdout := os.Stdout |
| + os.Stdout = w |
| + berr := bootstrap(t.TempDir(), nil) |
| + os.Stdout = stdout |
| + w.Close() |
| + b, _ := io.ReadAll(r) |
| + if berr != nil { |
| + t.Fatalf("bootstrap: %v", berr) |
| + } |
| + out := string(b) |
| + tmp := strings.Index(out, "systemd-tmpfiles --create /etc/tmpfiles.d/carlos.conf") |
| + start := strings.Index(out, "systemctl start") |
| + if tmp < 0 || start < 0 || tmp > start { |
| + t.Fatalf("the plan must apply the tmpfiles conf before it starts units (tmpfiles at %d, start at %d):\n%s", tmp, start, out) |
| + } |
| +} |
diff --git a/internal/provision/fresh_box_446_census_test.go b/internal/provision/fresh_box_446_census_test.go| new file mode 100644 |
| index 000000000..7239723d9 |
| --- /dev/null |
| +++ b/internal/provision/fresh_box_446_census_test.go |
| @@ -0,0 +1,34 @@ |
| +package provision |
| + |
| +// Record-write census entries for #446 (branch fresh-box-446), layered on |
| +// consoleSlowWritesWriteCensusInventory (main's newest at 20a82670). |
| +// Reviewed by the branch author against the source; the census approval is |
| +// recorded on #280 with the root-read card |
| +// (docs/superpowers/notes/census-proposal-fresh-box-446.md). The one entry |
| +// is a re-pin: the class and the site kinds are unchanged, only the source |
| +// moved. No unit joins or leaves the inventory. |
| +// - bootstrapWith (host), re-pinned: a live bootstrap runs |
| +// systemd-tmpfiles --create on the conf it just wrote before it arms any |
| +// unit. The same "instances" literal (a directory name, not a record): |
| +// key-site. |
| +func freshBox446WriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), consoleSlowWritesWriteCensusInventory()...) |
| + repins := []censusEntry{ |
| + {"internal/host/bootstrap.go", "bootstrapWith", "key-site", "lit:instances", "f140d3f7c5f9569b094a55936a584becac8b3d7606ee9beff1713c141091f05e"}, |
| + } |
| + for _, r := range repins { |
| + found := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + if e.Class != r.Class || e.Kinds != r.Kinds { |
| + panic("fresh-box-446 re-pin changes the class or kinds of " + r.File + ":" + r.Unit) |
| + } |
| + entries[i], found = r, true |
| + } |
| + } |
| + if !found { |
| + panic("fresh-box-446 re-pin of an unlisted unit " + r.File + ":" + r.Unit) |
| + } |
| + } |
| + return entries |
| +} |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index d4a0bdf29..472130c05 100644 |
| --- a/internal/provision/plan9_b8_census_test.go |
| +++ b/internal/provision/plan9_b8_census_test.go |
| @@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) { |
| if len(got) < 100 { |
| t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root) |
| } |
| - inventory := consoleSlowWritesWriteCensusInventory() |
| + inventory := freshBox446WriteCensusInventory() |
| problems := append(censusDiff(inventory, got), censusPolicy(inventory)...) |
| if len(problems) > 0 { |
| t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n ")) |
diff --git a/internal/provision/reconcile.go b/internal/provision/reconcile.go| index 1bfe7abe7..dec39b96e 100644 |
| --- a/internal/provision/reconcile.go |
| +++ b/internal/provision/reconcile.go |
| @@ -554,8 +554,11 @@ func RouteFor(rec Record, dataDir, seed string, nested bool, policy *UpdatePolic |
| rt.DBPath = DefaultDBPath(dataDir, rec.Host) |
| // Only an activator-managed row has a nested shape: an unflagged |
| // socket route is another supervisor's process, whose paths stay |
| - // flat in every release (design §8.2 step 1). |
| - if nested && rt.Hibernate { |
| + // flat in every release (design §8.2 step 1). A born-HA row is |
| + // nested whatever nested says (#446): it wakes only nested (region |
| + // HA P1a), and a fresh box mints before its first nested-default |
| + // decision, so a flat mint could never wake on it. |
| + if (nested || rec.HA) && rt.Hibernate { |
| rt.Socket = NestedSocket(rec.Host) |
| rt.DBPath = NestedDBPath(dataDir, rec.Host) |
| } |
diff --git a/internal/provision/reconcile_test.go b/internal/provision/reconcile_test.go| index 4427454c6..49a36bbad 100644 |
| --- a/internal/provision/reconcile_test.go |
| +++ b/internal/provision/reconcile_test.go |
| @@ -3778,3 +3778,27 @@ func TestShapeMismatchIgnoresAssets(t *testing.T) { |
| t.Fatalf("differing asset columns blocked adoption: %q, want a match", shapeMismatch(b, a)) |
| } |
| } |
| + |
| +// TestRouteForBornHAIsAlwaysNested pins #446's second fault: a born-HA row |
| +// is minted at the nested paths whatever the box's layout answer is, as a |
| +// rootfs row is. A born-HA host wakes only nested (region HA P1a), and a |
| +// fresh box mints before its first nested-default decision; minted flat, the |
| +// row could never wake there and the layout pass refuses to move a host with |
| +// nothing local. A legacy row on the same box keeps the flat mint. |
| +func TestRouteForBornHAIsAlwaysNested(t *testing.T) { |
| + ha := Record{Host: "ha.example.com", App: "web", Account: "bab", Channel: "edge", HA: true} |
| + rt := RouteFor(ha, "/data", "", false, nil) |
| + if rt.DBPath != NestedDBPath("/data", ha.Host) || rt.Socket != NestedSocket(ha.Host) { |
| + t.Fatalf("born-HA row minted at db %q socket %q; want the nested paths %q, %q", |
| + rt.DBPath, rt.Socket, NestedDBPath("/data", ha.Host), NestedSocket(ha.Host)) |
| + } |
| + if !rt.HA { |
| + t.Fatal("born-HA row lost its HA flag") |
| + } |
| + legacy := ha |
| + legacy.Host, legacy.HA = "legacy.example.com", false |
| + lt := RouteFor(legacy, "/data", "", false, nil) |
| + if lt.DBPath != DefaultDBPath("/data", legacy.Host) || lt.Socket != DefaultSocket(legacy.Host) { |
| + t.Fatalf("legacy row on a box not yet nested minted at db %q socket %q; want flat", lt.DBPath, lt.Socket) |
| + } |
| +} |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 245e09dd1..82480c020 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -27,3 +27,4 @@ plan14-root-reads-cert-warm-propagation-443.tsv 886863e79986b005cf52aa11445a49c1 |
| plan14-root-reads-console-budget-cold-warm.tsv 886863e79986b005cf52aa11445a49c1bbc3fb9b55bce25915fc21d0e65f1b7f |
| plan14-root-reads-console-slow-writes.tsv fe61ef9b2ecbb7d3d2049b8e6c9746ee08d3ea32dc1e65455e126771447f403f |
| plan14-root-reads-rootfs-apps-3-workers.tsv 862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab |
| +plan14-root-reads-fresh-box-446.tsv 862d7383ad60d522d6b16f8a545c4cfa37de3d2cc1ba83fec1aff3825a0fe8ab |
diff --git a/internal/provision/testdata/plan14-root-reads-fresh-box-446.tsv b/internal/provision/testdata/plan14-root-reads-fresh-box-446.tsv| new file mode 100644 |
| index 000000000..6de560f5f |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-fresh-box-446.tsv |
| @@ -0,0 +1,7 @@ |
| +# Census overlay fresh-box-446, written by census-propose (#369). census-ruling-fresh-box-446, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-fresh-box-446.md. |
| +# 1 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 1 new dispositions: 1 reads re-frozen at their disposition with the claim, 0 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +internal/provision/reconcile.go RouteFor authority C,E3 rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos); also root, in the claim root's landing registration (ClaimRootHTTP.rootLandingRoute) and the relocation install (relocationRecord): census-ruling-seeded-instances's body with two more fields from the record: the row's lifetime pair (rec.Incarnation, rec.MoveSeq), so a row minted outside a move takes the record's lifetime and its last move's sequence (0, 0 for a fieldless record with no move history); every caller gets it, the root ones included: the root callers (ClaimRootHTTP.rootLandingRoute, relocationRecord) now mint (0, move_seq) on a claims-on record, a non-zero sequence once that record has had an offline move (move_seq advances on claims-on offline moves too), which moves Fingerprint and SnapshotFingerprint once for that row; main's C,E3 authority retained; self-serve moves 1 Task 7 (fix round 1: root callers named);rev3=census-ruling-region-ha-p1a;basis=the agent's reconcile passes, and also root's callers (rootupdates.go, rootinventory_install.go and relocationinstall.go on HEAD): one more field copied from the record, HA: rec.HA, so a row minted from a record stamped HA carries the sticky born-HA mark; the record is the console-written instance record each caller already read; root's own code reads nothing of Route.HA, and Fingerprint does not include it (SnapshotFingerprint does, for a set mark); the same nine sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: the row is minted with the record's Runtime (the console-written instance record, guarded by WriteRecord's runtimeFixed); a rootfs row always gets the nested socket and db path under dataDir and no seed or seed source; the paths are computed from the host, not read from the record;rev3=census-ruling-fresh-box-446;basis=#446: a born-HA record mints the nested paths whatever nested says, as a rootfs row already does; same reads registry:Addr@2533,registry:Addrs@2542,registry:DBPath@1506,registry:DBPath@2029,registry:DBPath@2451,registry:Health@2552,registry:Hibernate@1973,registry:Seed@2497,registry:SeedSource@2506,registry:Socket@1468,registry:Socket@1991,registry:Socket@2414,whole:Route@2590 c9fcc1af4c9609d89634bdf571d3374c30d0bec2477477114ec7290d236f2cd1 |
| +internal/host/bootstrap.go bootstrapWith authority A,C,G,J4 root-input;kept=A,C,G;scope=protected-decision-only;rev3=census-ruling-region-ha-p1a;basis=root (carlos bootstrap, cloud-init or an operator; also the staging-root and -plan-json path system apply's stagePlan runs): after the units are written, calls retireUnits(root, retiredUnits) (retiredunits.go, a new unit on this card) to disable, stop and remove carlos-system-join.path and .service, which an earlier build installed; an error there fails the bootstrap; enabledUnits (a var, not a census unit) no longer lists carlos-system-join.path; the same two sites, no read added in this body;rev3=census-ruling-fresh-box-446;basis=#446: a live bootstrap runs systemd-tmpfiles --create /etc/tmpfiles.d/carlos.conf (the conf it just wrote, a fixed path) after the credentials repair and before arming units; a failure fails the bootstrap; the staging run prints the same step file:Command@11307,file:ReadFile@461,file:ReadFile@6867 f140d3f7c5f9569b094a55936a584becac8b3d7606ee9beff1713c141091f05e |
| +@coverage internal/host bfdd1804a54897b458bed296d352a17b9ca191ddd0609294fdf09941b1ee8d4a |
| +@coverage internal/provision 8147aeb165cc9b72055266ab4986112643b9f7bb6aee2dd478fcc33e302c9979 |