carlos / platform Public

v0.28.25 (region HA P1a) on dev: root reads routes.ha before the agent adds it; the startup sweep never retries open

Found rolling v0.28.25 (fd93024a, region HA P1a) to dev on 2026-10-26 ~21:23-21:33Z. Fix both before any flagship release that carries P1a (v0.28.24 for flagship does NOT carry it).

  1. Upgrade-order bug, every box once at the upgrade: instance-control logged egress: naming slices: SQL logic error: no such column: ha (1). Root read the routes table before the new agent's migration added the ha column (P1a Task 9's registry column). No visible effect on dev (nested slices there are named by host), but on a box whose running nested instances use hashed slice names with egress allows, those allows close until each instance restarts. Fix: root's routes read must tolerate the column's absence (select only the columns it needs, or treat a missing ha as false), and the census row for that read rechecked.
  1. The agent's startup sweep (root /sweep, seedSweptAtStart) does not retry. On sophie it failed at 21:27:04Z because root refused the connection while the new agent was not yet the edge's main process during the swap (seen 6 times this week on sophie, 3 on leo, so not new). Under P1a, same-box recovery requires a successful startup sweep, so a box whose sweep failed can never retake an HA host until the agent restarts. Fix: retry the sweep with backoff until it succeeds (still before any wake), and alarm if it keeps failing.

Ledger: region-ha-no-claims worktree .superpowers/sdd/2026-10-26-region-ha-p1a-first-slice/progress.md; roll log own/after236/release-roll-v0.28.25-ha-p1a.md.

Update (21:35-21:38Z, sophie): it isn't only the overlap swap. Two plain systemctl restart carlos-edge runs gave the same result: the new agent's first call, the startup sweep, is refused by root with peer pid <new> is not the edge's main pid <previous>. Root's view of the edge's main pid lags each agent restart, and the agent never retries, so after ANY agent restart the box is never "swept". Under P1a, same-box recovery needs that sweep, so an agent crash on a box would leave its HA hosts down until the next lucky restart. This makes item 2 the P1a blocker: the kill and hang drills are held until it's fixed. Probe readiness and the nested layout are fine on both leo and sophie.

Fixed and merged as 80343a5 (branch ha-p1a-dev-pair-433): root re-reads the edge's MainPID from systemd before refusing a peer (exact match only, rate-limited); the agent retries a refused startup sweep up to five times within 20 s, before any wake; root's read-only registry reads every migration-added routes column as its default when absent (one shared definition; each column tested). Also adds CARLOS_POOLS token @shared. Reviewed by Astra (READY after one P2), census approved on #280. Next: release to dev and re-run the P1a drills, including kill and hang.