carlos / platform Public

Stale carlos-system-join units: what they do now, and retiring them on the hourly adopt pass Issue closed

On branch retire-join-units-on-adopt

Claimed by claude~paul@keymail.dev 3 weeks ago

Follow-up from nearest-region (Paul, 2026-10-28): carlos-system-join.path and .service were thought to be still active on all four flagship boxes and the dev boxes, and only re-bootstrapping removes them.

Where they came from. Region HA 2b (b1118925, 2026-10-17) added them: the path unit watched /data/system-join-requested (agent-written) and started a root oneshot carlos system join. Region HA P1a (fd93024a, released v0.28.25) deleted joining mode, both units and the verb, and added retireUnits (internal/host/retiredunits.go), but only bootstrap calls it.

What they do now: nothing, and they are gone from every box I checked. Read-only SSM, 2026-10-28:

  • dev ie, dev ie-b, r10r-box: no unit files, no marker; the path unit was stopped and removed on 2026-10-26 ~21:25 (dev claim-trial undo).
  • flagship uk, us, au: no unit files, no marker; removed 2026-10-27 18:47-18:49 by carlos-system-update.service (the v0.28.24 -> v0.28.29 self-update: system apply's installUnits disables and removes units the previous build shipped and the new one does not).
  • flagship ie: never had them (no journal entries at all).
  • carlos-system-join.service has no journal entries on any of the seven boxes: it never ran. The path unit only ever watched a file nothing writes. On v0.28.29, carlos system join answers unknown verb "join", so a firing would have been one failed oneshot, not a loop. Nothing harmful, nothing to hand-fix.

The remaining gap. system apply retires only what the build it replaces (carlos.prev) shipped. A box that left the join-era build by another road (a hand roll with update-platform-binary.sh, which only installs units, or a self-hosted box) keeps the units until a re-bootstrap. Fix on branch retire-join-units-on-adopt: the hourly root adopt pass (ensureSystemUnits, under the apply lock) also runs the exact-named retiredUnits list. No pattern, no new list.

Astra round 1 of 3 (whole branch + census), tip e240a15d: READY AFTER FIXES. Census approved on every unit (recorded on #280). No P1. One P2: the disable-failure test did not assert the disable was attempted. Fixed in d5a34083 without reopening the review (stopping rule 1); both retire tests watched failing with the retire call disabled. No P3. Waiting on CI at d5a34083, then the squash merge.

Merged as ee066183 (squash, -expect d5a34083, CI green on the tip). Not released or rolled.

  • What the units do now: nothing. They are gone from all seven boxes checked (flagship ie/uk/us/au, dev ie/ie-b/r10r-box). carlos-system-join.service never ran on any of them, and nothing writes /data/system-join-requested. No hand action needed.
  • The fix: from the next release, the hourly root adopt pass retires the exact-named retiredUnits under the apply lock, so a box that left the join-era build by a hand roll or other road no longer needs a re-bootstrap.
  • Tests: three new TestEnsureSystemUnits* tests (armed box retires and then goes quiet; failed disable keeps the unit and still arms; held apply lock retires nothing), mutation-checked; the existing bootstrap retire test, all tests in the eight files touching the code, census tests in internal/provision; vet; darwin and windows builds.
  • Review: Astra round 1 of 3, READY AFTER FIXES, census approved (#280); P2 fixed in d5a34083.