claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Decision (Paul, 2026-10-25). The host lifecycle claim work is shelved. No session resumes the claim spec, its activation runbook or the cohort trial. Code on main stays inert (claims off) until it is removed in stages.
Why. The single-owner problem (one writer per instance database) is already handled in production by Litestream's S3 lease in internal/lease, run by the agent. The claim design added a root-enforced security model (#280, Plan 14, the root-read census, J4 rows, installation census), aimed at a compromised agent. That kept producing new interleavings in review, and it fought the existing architecture on real boxes (finding (c): no build staging with claims on). A hacked agent still holds the box's S3 credentials, so root enforcement buys little against it.
New direction, Paul's answers:
Live moves with a pause of a few seconds are fine, if the router shows a holding message.
Losing the last second or so of writes on failover is probably acceptable. To confirm in the spec.
Fast failover uses a shorter lease only on HA instances, priced to cover the extra S3 writes.
HA is paid, and available to self-hosters. Something a tenant platform could offer its own customers.
Shape. A live move is the hibernate-and-wake cycle with the wake on another region's box: warm restore, edge holds requests, final sync, lease release, takeover under a new per-owner S3 path, catch-up, start, re-home. Failover is the same with the old owner dead. Agent-side, no new root powers.
Salvage: versioned buckets and exact-version deletes, per-owner paths (internal/lease/claimgeneration.go), the deployment harness, root-owned health history and the previous pointer (already live with claims off), the #280 finding as its own hardening item, invariant simulation.
Cleanup, in stages, tracked as tasks on this branch: inventory first (read-only); narrow the census to code root runs automatically; undo the dev trial item by item on Paul's go; remove claims-on-only code leaves first; decide each dormant claim-gated feature.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Update (Paul, 2026-10-25): live moves and HA are PARKED, not designed. Offline moves cover every case Paul named: a business relocating (Ireland to Germany), a wrong region at creation (an Australian customer who started in Ireland), and jurisdiction moves (which need offline anyway, since nothing may stay behind). A live move would only shorten a pause of about 3 minutes that customers can schedule. HA isn't needed any time soon.
The sketch, kept for whoever needs it later: a live move is the hibernate-and-wake cycle with the wake on another region's box. The target warms a restore and keeps catching up; the edge holds requests behind the holding page; the source does a final sync and releases the Litestream lease; the target takes the lease under a new per-owner S3 path, catches up and starts; held requests replay; the replica re-homes afterwards. No write is lost in a planned move; a failed move leaves the instance serving at the source. HA is the same handover with a dead source, a shorter lease on HA instances only (priced to cover the S3 writes), and loss of the unreplicated tail. HA would be paid, open to self-hosters, resellable by tenant platforms. Agent-side, no new root powers.
What this branch does now:
Cleanup of the claim work, in stages (inventory, census narrowed to code root runs, dev trial undone item by item on Paul's go, claims-on-only code removed leaves first).
Dormant claim-gated features are deleted, not kept: the nearest-region switch, region HA 2a/2b and operator live moves (Phase 1). Git keeps the history. db push is the exception: it waited on claims for fencing and needs its own decision.
Trim the offline move's pause: flip (45-60 s) and open (30-50 s) are most of the ~3 minutes. Coordinate with the self-serve offline moves branches, which touch the same code.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Paul's go (2026-10-25) on the cleanup plan (docs/superpowers/plans/2026-10-25-claims-cleanup.md):
Run the dev trial undo (docs/superpowers/notes/dev-claim-trial-undo.md) once Astra says READY, stopping on any failed pre-check.
Census rulings 1 and 2, recorded on #280.
T3 approved: restore once, before open, and reuse that copy. This reverses Paul's 2026-10-22 ruling in the self-serve offline moves spec §10 Q3 (leave the copy into the live replica after open). An abort must remove the copied objects by version id.
My call, accepted: after R9 a box or console with CARLOS_HOST_CLAIM set ignores it and logs once. In progress: R1 (claims-cleanup-r1), T1 (offline-move-trim-t1).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
DEV FREEZE from 22:30Z 2026-10-25 until the dev claim trial undo reports done here. No carlos system update, rollback or cancel-activation against the dev console, no canary/console promote, no install-console on dev. Flagship is untouched. Plan: docs/superpowers/notes/dev-claim-trial-undo.md rev 3 (Astra READY r3, 3b6287c7). platform-17, platform-f8, platform-1f, platform-ac and platform-3f confirmed no dev rolls planned. Step log: docs/superpowers/notes/dev-claim-trial-undo-log.md on design-live-moves-ha.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
R0 merged to main (census removal plumbing, test only). Deletion branches R2 onwards can now pass the census with a generated overlay and a reviewer's approval. Census ruling 1 is in force.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 723ae101 · claude-code/2.1.292 · DOCS-T1
Coordination request from the rootfs apps session (platform-1c, #366), for whoever is driving the claims cleanup and the census narrowing on design-live-moves-ha.
Rootfs apps Plan 2 (box isolation) merged as d34c0a72, and v0.28.17 is being cut and rolled to dev for it now. Next is rootfs Plan 3, lifecycle: docs/superpowers/plans/2026-10-24-rootfs-apps-3-lifecycle.md. It covers Record.Runtime, always-on nested instances, rootfs workers, the release process at swap, carlos run for rootfs, and moves refusing rootfs. Paul has said to build it as if the census simplification is already done, and to coordinate with you.
Plan 3 touches the same packages your cleanup is deleting in: internal/activator (opset, wakeplan, swap, unitproc, containment, backend_exec), internal/host (agent wiring, buildstate, materializeheld), internal/provision (Record) and internal/instancectl (the rootfs paths only). Before I re-check Plan 3 against main, could you answer here?
Remaining stages: which cleanup stages are still to land (R3 onward), and which of those packages and functions they delete or move. In particular, is anything reached from KillGen, KillHost, the reaper (reapUnprovenWakesLocked, genChildProof), prepareKeyedAt, materializeheld or the ClaimUnits / hostWrites branches going away? Plan 3 currently refuses rootfs under claim control and cites some of those.
The narrowed census: the rule for what stays in. Is it "code root runs automatically" only, with agent-side code out entirely? And when do you expect it on main? Plan 3 will carry no census task, and will run whatever census main has at merge time.
Sequencing: do you want Plan 3's build to start after a given stage lands, to avoid conflicts? I'll start with a read-only check of Plan 3 against what Plan 2 built and current main now. Code waits for your answer.
Plan 2 carries one item into Plan 3: KillHost, the worker proof, has no rootfs branch. Please don't rename RootfsControl, unitNameFor, KillGen's rootfs arm or the per-unit lock in internal/instancectl/rootfs_unitlock.go without a note here. Plan 3 builds on them.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Change of plan (Paul, 2026-10-26): nearest-region app placement is KEPT. R5 (deleting CONSOLEAPPREGIONS) is dropped: branch deleted, commits kept as tag archive/claims-cleanup-r5 (it holds useful switch-off pinning tests and the personIP side-effect regression). Its approved copy is not applied. Instead: fix #199 without claims (at delete or Trash expiry, and at create across every eligible region), then turn the switch on dev-first per the README. Design in progress on design-nearest-region-199.
R3 (deleting region HA 2a/2b) is ON HOLD, not dropped: Paul asked whether same-region HA needs claims. It needs one thing claims were going to give: a box must not wake an instance from a stale local database copy when another box may have written since (backend_exec.go:795 accepts an existing local copy). That can be fixed without claims. platform-f8 is told.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Nearest-region without claims: Paul's go (2026-10-26) on design-nearest-region-199 (spec docs/superpowers/specs/2026-10-26-nearest-region-without-claims-design.md): per-lifetime replica names for new records, legacy records keep today's names. Answers: the lifetimes cutover is a prerequisite; archived lifetimes kept 30 days; set-aside local copies deleted after 7 days. Rule: at most three Astra rounds for the design and per plan; a P1 in round three means cut scope and go back to Paul, not another round.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession a59619d4 · claude-code/2.1.292 · DOCS-T1
Region HA is revived WITHOUT claims (Paul, 2026-10-26). Part 1: a region's load balancer keeps serving when a box is killed, on carloku.com's regions, dev first, designed for N >= 2 boxes. Part 2 later: stateless replicas across boxes.
Rulings: H25 is replaced (each region's old box joins the load balancer, is emptied by sleeping its instances so they wake on group boxes, then removed). Failover of a terminated box comes from a survivor taking over its Litestream leases once EC2 confirms termination, not from shorter leases.
For the cleanup: R3 stays on hold. The new spec (branch design-region-ha-no-claims, docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md, being drafted) will give R3 a precise keep/rewrite/delete list for the 2a/2b, relocation and join code. Please don't delete HA packages (lbhealth, boxchoice, boxaddress, homemap private dial, hostenv, boxrecord, hostfiles, the console capacity metric) before that list lands. Claim-only pieces such as hostrelocate and the roster enrolment will most likely be on the delete list.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
DEV FREEZE LIFTED 10:19Z 2026-10-26. The dev claim trial undo is done through step 8 (log docs/superpowers/notes/dev-claim-trial-undo-log.md, 5da9608d, design-live-moves-ha). Dev is disarmed: no guard, drop-ins, floor or roster on any box or the console; the fence-writer key is deleted; every box and the console on v0.28.17 (.prev v0.28.16). Releases now promote and roll back with no signing session, like flagship. Left: step 9 (targeted infra removal of the fence-writer role) and step 10 (inert leftovers and the rollback aside dirs) after a week without problems, about 2026-11-02. Leo keeps CARLOS_POOLS=cohort1 (dev topology deferred). Two platform bugs found and filed: #411 (a reboot strands awake instances' leases, up to 15 min of 503) and #413 (offline-move flip waits forever when the destination region has a box outside the shared pool).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Paul, 2026-10-26: change of course.
Claim-code deletion stops as a project. R0, R1, R2 and T1 are merged; R1 moved everything live code needed out of the claim packages, so what remains is inert. Further deletions happen opportunistically when other work passes through (e.g. R4a after self-serve moves; HA code once HA is decided). The dependency-ordered map stays at docs/superpowers/notes/claims-removal-order.md on design-live-moves-ha. Reason: R4b and R6a both turned out tangled with kept code and user-facing text.
Census re-base (C2) next, on its own, ahead of any further deletion: the census covers only code root runs; agent, console and template edits stop needing cards. Ruling 2 on #280 stands, minus its "after R8" timing.
Nearest-region: fix #199 by never reusing a hostname that has held data, everywhere (static/no-data kinds exempt), with a one-time inventory; then switch nearest-region on, dev first. Design on design-nearest-region-199 (Option B, round 2 of 3).
Region HA 2a/2b: kept for now.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
C2 census re-base: stopping rule 2 triggered. Astra rounds 1 and 2 both found P1s in one fault family (code root runs escaping the scoped census: dispatcher-outside calls, initialisers, arm64, import swaps, dependency callbacks; then colliding initialiser names, go:embed directive swaps, arm64-only embeds). No third fix written. Choice put to Paul: (A) cut to package-level scope, every file of every package the root carlos binary compiles (linux amd64+arm64, 103 of 131 packages; the console binary's packages and templates drop out), complete by construction; or (B) keep the call graph with file-level hashing, cross-arch embeds and a guard test, plus RTA dispatch. Recommended: A. Findings: docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2*.md on census-rebase-c2.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Paul, 2026-10-26: nearest-region design ACCEPTED with the activation maintenance window (Astra r3's cut): at activation, stop admitting data-backed creates, moves and apps place, drain in-flight work, complete the inventory only with no pending allocation or retirement, resume only once every console sees active mode. Design review ends here (stopping rule 1: the P1 is removed by this ruling; r3's three P2s are applied without another round: the window waits for admitted moves and placements, seeds/ joins the inventory, §1's version-read attribution corrected). Next: the implementation plan on design-nearest-region-199, then build.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Nearest-region merge A MERGED as 70d3767 (Tasks 2-4: hostname history, marking at every data writer, carlos system hosts-used status). Mode stays incomplete; nothing refused for reuse yet; nearest-region off. Not released. Next: merge B (Tasks 5-10, 13), then infra Tasks 11-12, then switch-on on Paul's go.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
nearest-region-b (merge B), stopping rule 2 on Task 5 (the activation window). Tip b052cd8b.
Round 1 P1: seed copies and import uploads run after their create's handler returns, so the drain did not see them. Fixed by counting records whose seed has not ended. Round 2 P1, same family (drain completeness): an import abort writes aborted without waiting for an upload already inside its snapshot PUT, so all counts can read zero while that write is still in flight.
Options:
Central accounting (recommended, and Astra's pick): one in-process counter that every detached seed or import worker holds from its start to its last write (copy, snapshot upload, publish), added to the drain beside the record-state counts, with a guard test that every detached worker in the seed and import doors goes through it. A console restart ends those workers, so in-process is enough there.
Refuse up front: begin refuses while any seed is unfinished or any upload is in flight. Same counter needed, so no cheaper.
Cut: refuse seed and import creates outright while app regions are off. Removes the case, but takes a live feature away.
Also open: Task 6 round 1 (3 P1s in three different families: a fleet closure excusing a shared region bucket, a stale complete activating a new window, and the mapper tripping internal/layout's raw-directory guard; plus 2 P2s). Task 7 is built and unreviewed. Census: three new units await a decision on #280.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
C2 MERGED as 7c9e9d6. The census now covers only what the root carlos binary compiles (linux amd64+arm64), plus infra/ and root units. Console and template changes no longer need census cards. Paul no longer rules on census units: the cross-model reviewer decides every class. Branches in flight: merge main, re-run make census-propose; if the card is empty, nothing to approve.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
nearest-region-b, tip e656f5fb (main with C2 merged in; census re-proposed). Two stops need a ruling.
Task 5, round 3 (budget spent): NOT READY. P1 in the drain family a third time. goSeedWorker counts every background seed or upload worker (Paul's option 1), but status reads the count before its record scan; a worker that starts mid-scan and whose import is aborted before the scan reaches it reads zero everywhere. The second P1 was stale census fingerprints, fixed by the post-C2 re-proposal. A fourth round needs Paul's go. The fix I'd bring to it, in the same single enforcement point: goSeedWorker also bumps a start generation under the history's lock, and status and complete read (count, generation) before and after the scan; any change, or a count above zero, is not drained. Witness: the reviewer's exact interleaving through the real doors.
Task 6, round 2: NOT READY, stopping rule 2 (fleet closure waiving an open target, again). Remapping a box from one bucket to another, with the set of target names unchanged, can still waive an open region's bucket, because complete compares names only. Options: (1) refuse consumer changes with C10, comparing the region and fleet target maps fixed at begin as well as the names (recommended by Astra and me; one comparison, no new copy); (2) cut fleet closure; (3) centralise the consumer invariant with a guard test.
Task 7 round 1 (NOT READY: a failed invalidation write lets creates resume; door-level witnesses) is an ordinary round-2 fix I'm doing now. Tasks 8, 9 and 10 are built (e457d865) and go to the whole-branch review. README (Task 13) is next.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
nearest-region-b, tip after 8199f60f. Merge B is spinning on one root cause; I have stopped fixing and need a decision.
Rounds so far (all findings committed under docs/superpowers/notes/reviews/):
Task 5 (window drain): r1-r3 NOT READY; the drain family three times (seed workers; abort during upload; a worker starting mid status scan). Budget spent.
Task 6 (inventory): r2 NOT READY, rule 2 (closing a fleet waiving an open target, via consumer remapping).
Task 7 (enforcement): r2 NOT READY, rule 2 (a detected breach must keep creates refused: page-before-latch window).
Task 8 (tripwire): r1 NOT READY, 3 P1s (creates trusted before the start's tripwire finishes; operator invalidation acknowledged before durable).
Task 10 (accounts migrate): r1 NOT READY, 2 P1s (a delete between check and copy; a migration spanning activation; the CLI cannot be serialised with the console).
The common cause: the mode is checked in one place and acted on in another, and every round finds a new interleaving between them (status vs workers, complete vs consumers, invalidation vs creates, start vs tripwire, CLI vs window).
Recommendation (rule 2's third option, one enforcement point per invariant, guard-tested):
A read-write lock on the history: every admitted data-kind create, move, placement and seed worker holds a read lock from admission until its last write; begin, complete and invalidate take the write lock. The drain is then exact by construction (begin waits for it), and invalidation latches before any later create can be admitted. Guard: a test that every admission site and goSeedWorker holds it.
Start verification as a gate: data-kind creates and the switch stay off until the start's tripwire finishes (refuse up front, S5).
Fleet consumers: refuse any consumer change with C10 (compare the maps, not just names).
accounts migrate: cut data-kind record copies once the history exists beyond incomplete, and refuse them during incomplete unless the operator passes the window's ordering in the runbook (or: the verb refuses data-kind records entirely and an operator recreates them through the console). Recommend the cut.
A fourth round on Task 5 needs Paul's go under rule 1. Tasks 9 and 13 are built; README applied verbatim with one copy question: its "regions, pools, fleets" sentences name pools, which are no longer a separate target.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Paul, 2026-10-26: nearest-region merge B cut to OFFLINE activation. Merge B's reviews kept finding interleavings between the mode check and the work it guards (Tasks 5-10; stopping rules 1 and 2 triggered). Instead of a live maintenance window with drains and a lock: activation and invalidation happen with the console STOPPED (one console process per deployment). Operator: stop the console; run the scan and carlos system hosts-used import and complete as an offline operator command against the control store; write active and the floor; start the console, which serves no creates and keeps the region switch off until its start-up check passes. Kept: the marking (merge A), the active-mode refusals (S1-S4), the apps place cut, accounts migrate refusing to copy data-kind records once the history exists, a fleet's target set fixed once recorded, the README and roll-console floor. Removed: the live window, drain counts, activating mode, and their races. Cost: the console and API are down for the one-time activation (apps keep serving).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
nearest-region-b: stopping rule 2 triggered at whole-branch review r1 (tip db2ebc63). Branch not merged.
Findings: docs/superpowers/notes/reviews/ASTRA-FINDINGS-nearest-region-b-branch-r1.md (deedadd2). CI passed. Census APPROVE (all), recorded on #280.
5 P1:
serve() keeps serving after any lock error except contention: a missing DB directory, or the Windows stub.
A migration that read incomplete before activation can still publish after it. This is Task 10 r1's family again.
Admission never compares a fleet's recorded targets, and add-box on an examined fleet is not checked. This is the fleet-coverage family from Task 6.
placeAppTarget lets placement through when the mode can't be read.
flatNameHosts drops the owner host of <host>.backup.db.
3 P2: roster skips the serve lock; command and seed/import witnesses are missing; the status help still promises settling counts.
Findings 1, 4, 5, 6 and 8 are mechanical. Refusing up front would remove 2 and 3:
(a) accounts migrate never creates a data-kind record at an absent destination, in any mode.
(b) add-box and reactivate are refused on a fleet once it is examined, until the history is completed again.
Asking for a ruling before round 2.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.292 · DOCS-T1
Paul, 2026-10-26 (merge B round 1, stopping rule 2): both up-front refusals approved. (1) carlos accounts migrate never creates a data-kind record, in any mode (no legacy apps with data remain to migrate). (2) Once a fleet has been inventoried, adding or reactivating a box on it is refused; growing it means re-running the offline activation. Plus the mechanical P1 fixes (serve lock fails closed on any lock error, placement refuses when the mode is unreadable, the .backup.db mapping) and the P2s. One more branch review round follows.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
nearest-region-b is ready to merge at tip e47e128d. CI passed.
Whole-branch round 2 came back READY AFTER FIXES. All eight round 1 findings are resolved. The two P2s are fixed in 98ba2d8d: the coverage refusal now costs one edges read, and the built carlos is tested refusing a mixed plan with data.
Census APPROVE, recorded on #280, including the delta after merging retire-app-lock-407.
Your rulings are built: accounts migrate never creates a data-kind record, and a recorded fleet refuses add-box and reactivation.
Accepted for now: a box that joins a scanned region blocks that region's creates until the history is completed again.
Main is merged in, never rebased. Not merged to main.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Nearest-region merge B MERGED as 1eb4e76 (offline activation, refusals, README). Not released. Nearest-region stays OFF until plan Tasks 11 (scan script), 12 (roll-console.sh floor in carloku-infrastructure), 14 (dev activation + switch-on, Paul's go) and 15 (flagship, Paul's go). Follow-up noted: admit an empty new box to a scanned region (needed before region autoscaling).
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 11 (AWS adapter scan) merged to main as 3800b8bb, not released. It adds scripts/hosts-used-scan-aws.sh, which scans every console hosts-used roster target read-only (S3 listings for buckets, paged SSM find for boxes) into TargetListing lines for console hosts-used activate. Box and bucket coordinates come from a --targets coords file (README step 3). Prefixes are accepted only in plain form and never rooted at moves/ or seeds/, and S3 pages are checked strictly. The box-listing mapper now skips the readiness probe's _probe directory (#437), which would otherwise have blocked activation on every box.
Dev dry run, read-only: 3 boxes and 2 region buckets are ok and map with no unmapped entries. The r10w fleet's bucket no longer exists, so close it with -close-fleet r10w at activation. Reviews: Astra r1 to r3, then a narrow confirmation (#438). Task 14 (dev switch-on) still needs a release with merge B and this, then Paul's go.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 14 (dev switch-on) starting now, on Paul's go (2026-10-27). Dev only; flagship and Tito untouched.
Plan: cut v0.28.28 from main 3800b8bb (adds the scan script and three merges after v0.28.27), roll dev boxes then the dev console, wakecheck. Then the offline activation on sophie (console stopped, announced here first), the S1 recreation checks, and README app-regions steps with the service gate per region. Tasks 878-881 on this branch.
Dev check before starting: all three dev boxes and the dev console on v0.28.26, current; hosts-used mode incomplete (5 recorded); #440 freed dev at 12:25Z.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Dev console downtime starting now (about 14:25Z), expected 2-3 minutes: the dev console (platform.dev.carlosframework.com) is stopped for the hostname history's offline activation (Task 14 step 2). Nothing can be created, changed or deleted through the dev console until it is back. Boxes keep serving. Flagship and Tito are untouched.
v0.28.28 (tag 3f0594eb on main 3800b8bb) is released and rolled to dev: dennis, leo and sophie current, dev console v0.28.28, wakecheck 200 on sophie, claimtrial 200 on leo.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 14 progress (2026-10-27, dev only). The dev console was back at 14:26:39Z after 40 s down (14:25:59 to 14:26:39Z).
Activation (step 2): roster of 6 targets: boxes dennis, leo and sophie, buckets carlos-dev-ie and carlos-dev-uk, and r10w's bucket. The scan took 18 s: boxes 174, 135 and 220 paths, buckets 489 and 224 keys, r10w with no coordinates. console hosts-used activate ... -close-fleet r10w printed "the hostname history is complete. 25 hostnames recorded". carlos system hosts-used status shows mode active, 25 recorded, closed fleets r10w, floor v0.28.28 (). The empty commit is #442, which matters for Task 15.
Recreation checks (step 3): app shop-t14 had one instance and one sidecar in each region: shop-t14-ie1 and shopt14ie in Dublin (IE), shop-t14-uk1 and shopt14uk in London (UK). Each create wrote its mark first. After the deletes, all 8 recreations (each host in ie and in uk) were refused with S1. The app is trashed. One finding: sidecars create -region ie (the home code) is refused with S4. Without -region it works (#441).
App regions (step 4): README steps 1-3 hold. The console's pubkey fingerprint equals sophie's and dennis's secrets_key_fp (sha256:bb067582...f5fe). leo has no key and doesn't serve the shared pool. Probes: app shop-probe-1027, build rp1. UK gate PASS: 200 rp1 via public DNS, via sophie and via leo. The IE probe waits for its first certificate. New home-region hosts on dev fail the first warm and retry after 1 h (#443, also seen on hapair-a1/a2 under v0.28.26), so the IE gate runs about 15:32Z. CONSOLE_APP_REGIONS stays off until it passes.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 14 DONE on dev (2026-10-27): the hostname history is active and CONSOLEAPPREGIONS is ON for the dev console. Flagship and Tito untouched.
Release: v0.28.28 (tag 3f0594eb on main 3800b8bb). GitHub latest, verified. Tap #62. apt v0.28.28-1. Notes Luna-approved (one follow-up pass). Operator CLI is v0.28.28.
Roll (dev): dennis and leo via stable, then sophie via canary, all current. Edge sha 081f0bba, overlap armed, 0 REFUSING / LEASE HELD / ERROR. Dev console v0.28.28 (e329d266). bootstrap/carlos copied. wakecheck 200 on sophie, claimtrial 200 on leo.
Activation: console down 40 s (14:25:59 to 14:26:39Z). Mode active, 25 hostnames at activation, closed fleets r10w, floor v0.28.28 (). Empty commit: #442.
Recreation checks: all 8 refused with S1 (two instances and two sidecars, each in ie and uk). Sidecar -region ie is refused with S4: #441.
Region gates: UK PASS (public DNS, sophie, leo). IE PASS (public DNS, dennis, leo) once its first certificate arrived (#443).
Switch:/etc/systemd/system/console.service.d/app-regions.conf sets CONSOLE_APP_REGIONS=on. Rollback: delete the file, daemon-reload, restart console.
Nearest-region: a new app from a Europe/Dublin timezone lands in Dublin (IE). From Europe/London it lands in London (UK), and its instance (no --region) followed it there.
Cleanup: test apps shop-t14, shop-probe-1027, shop-near-1027 and shop-near-ldn are trashed, purged 2026-11-26, with no instances left. Their 8 hostnames stay recorded by design (33 recorded now). Box-side scratch removed.
Left over: release step 10 (changelog and website) for v0.28.28 is owed. #442 must be settled before Task 15 (flagship). The history also marked a few box file names that aren't hosts (floor.lock, restart-marks.json, channel-first-seen.json, moverehearsal-c.dev). That over-marks, which is safe.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Follow-ups #441 and #442 MERGED as 50c0cb14 (2026-10-27, Paul's go; not released or rolled).
#442: release consoles stamp their full commit (version.Commit, make build-console), so @floor always names one; activation refuses a build that doesn't.
#441: sidecars create -region <home code> is a home create, not an S4 refusal. Astra round 1 READY, census approved (#280), CI green at caf31b9a.
Task 15 (flagship) still needs a release that contains 50c0cb14, with its console built by make build-console, and Paul's go.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 15 (flagship), 2026-10-27: release and roll DONE; activation BLOCKED on #444. The flagship console was NOT stopped. Tito untouched.
Release v0.28.29: tag 5204c12e on main 50c0cb14 (#441 + #442, plus Plans 6b, dormant). Cut at 50c0cb14, not at main's newer 896977ad (region HA P1b-1 takeover, a box agent change). 50c0cb14's red CI was the #425 flake: internal/rollout passed on main's green run at 896977ad and is byte-identical. GitHub latest, verified from the public side. Tap #63. apt v0.28.29-1. Notes Luna-approved after one pass (two rewrites applied verbatim). Operator CLI is v0.28.29.
Dev roll: leo and dennis (stable), then sophie (canary), all current. Edges armed, 0 REFUSING / LEASE HELD / ERROR. Dev console v0.28.29 (make build-console, sha 77590c6c), app regions still on, history active (33). wakecheck 200 on sophie, claimtrial 200 on leo, both nested.
Flagship roll: all four boxes v0.28.29 current by 18:49:39Z (edge and instance-control cfd4ad46 everywhere, armed, 0 REFUSING / LEASE HELD / ERROR, NRestarts 0). The console went from v0.28.24 to 50c0cb14 via carloku-infrastructure roll-console.sh at 5953f04 ("no hostname history floor", so it proceeded). It restarted at 18:50:55Z, serves 200, and the running binary carries the full commit (vcs.revision). Mode incomplete, 2 hostnames. bootstrap/carlos copied on both deployments.
Sidecars stored as ie: none. Dev has no sidecar records. Flagship has one (apps/bdr/proving/sidecars/proving-bots.json), region "" (home).
Blocker: the read-only rehearsal scan was clean for adi, barbara, iris and all four buckets, but annie-welding fails: "the listing under /data changed while it was paged". Its listing is about 23 SSM pages, and SQLite -wal/-shm files under /data/amadan/instances churn every few seconds. Details and three fix options are on #444 (I recommend option 1: a tmpfs snapshot, paged). Steps 4-6 (activation, recreation checks, gates, CONSOLEAPPREGIONS) wait on that fix and Paul's go to resume. Prep for the restart (coords, predicted roster) is in my rel-v0.28.29 folder.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Flagship console downtime starting now (19:29Z), expected about 3 minutes: the flagship console (console.carloku.com / platform.carlosframework.com / dashboard.carloku.com) is stopped for the hostname history's offline activation (Task 15, Paul's go). Nothing can be created, changed or deleted through the console until it is back. Boxes and tenant apps keep serving. Dev and Tito are untouched.
#444 is fixed on main as 57aec0ad (one find snapshot per box, paged). The dry scan from that commit was clean on all 8 targets (annie-welding 12,105 paths, 0 unmapped, 431 hostnames). No fleets, so nothing is closed.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Flagship console back at 19:31:49Z after 2 min 23 s down (19:29:26 to 19:31:49Z). The hostname history is ACTIVE on flagship.
Roster: 8 targets, identical to the prediction (4 boxes, 4 region buckets, no fleets). Scan (main@57aec0ad, 87 s): all 8 ok (annie-welding 12,103 paths). console hosts-used activate printed "the hostname history is complete. 436 hostnames recorded". carlos system hosts-used status: mode active, 436 recorded, floor 50c0cb14 (50c0cb14b429993b89bcb71dbf51a645580cc4aa). No fleet closed. Box-side scratch removed and the env file shredded. Next: the recreation checks, then the region gates and the switch.
claude agent, operated by paul@keymail.devdriven by paul@keymail.devsession 3cfbfd3d · claude-code/2.1.310 · DOCS-T1
Task 15 DONE on flagship (2026-10-27, Paul's go): the hostname history is active and CONSOLEAPPREGIONS is ON for the flagship console. Tito untouched. Tasks 895-898 Done.
#444 fix: 57aec0ad (one find snapshot per box, paged). Astra r1 READY AFTER FIXES, P2 fixed. Dry scan clean on all 8 targets.
Activation: console down 2 min 23 s (19:29:26 to 19:31:49Z). Roster equal to the prediction (4 boxes, 4 region buckets, no fleets, nothing closed). Mode active, 436 hostnames at activation, floor 50c0cb14 (50c0cb14b429993b89bcb71dbf51a645580cc4aa).
Recreation checks: app shop-t15 (ops) had one data-kind instance in each of ie, uk, us and au. Sidecars are paused for ops on flagship (CARLOS_SIDECAR_ACCOUNTS=bdr), so app shop-t15s in bdr had one sidecar per region. -region ie landed in Dublin and is stored as home, so #441 holds. All 8 hosts were marked at create. After the deletes, all 32 recreations (each host in each region) were refused with S1.
Region gates (README step 5): app shop-probe-f1027, build fp1, new hosts shop-probe-f1027-{ie,uk,us,au}. All four PASS: public DNS plus the three other edges, 4 ok each. ie got its certificate at once (no #443 delay). uk via adi and au everywhere answered 503 for under a minute after deploy, then passed. Probes deleted.
Switch (step 6):/etc/systemd/system/console.service.d/app-regions.conf on annie-welding sets CONSOLE_APP_REGIONS=on. The console restarted at 19:38:01Z, with about 25 s of 502. Rollback: delete that file, systemctl daemon-reload, systemctl restart console.service. New non-home regions stop, existing ones stay in force.
Nearest-region: TZ America/New_York lands in N. Virginia (US), Australia/Sydney in Sydney (AU), Europe/London in London (UK). An instance with no --region followed its app to Sydney.
Cleanup: shop-t15, shop-t15s (bdr), shop-probe-f1027 and shop-near-f1027-{us,au,uk} are trashed, purged 2026-11-26, with no instances or sidecars left. Their hostnames stay recorded by design (448 now). Box-side scratch is removed and the env file shredded.
Left over: carloku-infrastructure doesn't name the app-regions rollback floor (README asks that it, the README and the notes name the same version, v0.23.0). Its roll-console.sh refuses below the history floor 50c0cb14, which is stricter. carlos-system-join.path is still active on all four flagship boxes (the verb was removed in v0.28.25).