carlos / platform Public

Stateless ship on an unlabelled multi-box fleet record takes the app down Issue open

What happened (Tito staging, 2026-11-14 05:37:52Z to 05:53:32Z, about 16 minutes, staging only). tito-id shipped a --stateless build at copies 1 and was promoted. Then the v0.35.2 box roll restarted carlos-edge on box-2. That stopped the stateful copy that had kept serving, and every later wake was the stateless build. Each wake failed with replicas: fenced, answering 503 resident-backoff. Promoting the stateful build back started it on box-1, while the hub's forward row still said box-2. Service came back at 05:53:32 with no manual change.

Root cause (#511 Plan 4 gap). The instance record (created 2026-11-06, before labelling) has no fleetbox and no replicaassignment, on fleet classic, which has two active boxes.

  • ownsRecord (internal/provision/reconcile.go:549) gives an unlabelled record to every box, so both boxes carry tito-id.
  • The console's coordinator door, replicaFleetRecord (internal/console/replicacoordinator.go:22), accepts an unlabelled record only on a one-box fleet (the sole-box rule). On two boxes it answers 404 to every box.
  • The box reads any non-200 coordinator reply as ErrFenced (internal/host/replicacoordinator.go post).
  • So a stateless build can never wake on such a record. Until v0.35.2 the hub 503'd these calls (console missing), which hid the refusal.

Also found:

  1. No fallback on wake. When a stateless wake is refused, the box has no fallback to the last good stateful build. F10 keeps the last good build only within stateless.
  2. Refusals are invisible. The console logs nothing for refused replica calls, and the box logs only "fenced".
  3. The hub's stamp went stale. tito-id's hub forward row kept fleet_box=box-2 while box-1 held the lease and served. No "fleet bindings" lines appeared on the hub or on box-1. Requests reached box-1 anyway, probably through the waking-elsewhere path. Not yet understood.

Exposure. The stateless floor is met on dev and flagship (v0.35.1), so any app with an unlabelled record on a multi-box fleet that ships --stateless goes down the same way on its next box restart.

Proposed fixes:

  • Now: refuse up front. Refuse a --stateless ship, a stateless promote, and copies > 1 for an instance whose record is on a fleet with no fleet_box label and no replica assignment while the fleet has more than one active box, with an actionable message.
  • Then: label such records with their serving box when stateless is adopted, so they can go stateless.
  • Then: coordinator refusals logged on both sides, with a distinct status for "not your record" versus fenced; the stale stamp investigated.

Guard merged: 3c8cbff (rides v0.35.3). A stateless build is now refused up front for an app with an unlabelled instance on a multi-box fleet.

  • Ship and publication: a --stateless ship, and every publication of a stateless build (promote, new canary, rollback, fast-track, instance create, hibernating builds included), are refused for such apps, and so are copies above 1.
  • Fleet growth: add-box, reactivation and managed fleet adds are refused while an unlabelled instance runs a stateless build.

The refusal copy is approved by Paul. The real fix, option B (owner-authorized labelling, carlos instances label <host> --box <box> with a dry-run), is in spec on branch design-fleet-record-labels.

Fleet record labels (option B) build: switch-on owner and targets, from the release manager (8a3d302), recorded before T1 per spec §8.

  • Switch-on owner: the release manager (8a3d302), by release. There is no runtime flag: carlos instances label becomes available when release B is rolled. The worker's old first-label path stays off permanently; a rollback build must keep it off (release A is the rollback floor).
  • Release A (M1: T1-T3 + T6 part B): rides v0.35.3 if merged before its cut (that release also waits on the G6 fence dev test #988 and the edge fence soak), otherwise v0.35.4.
  • Release B (M2: T4-T8): the release after M1, v0.35.4 or v0.35.5. Flagship follows the usual dev-first rule with the release manager's go; the waiting self-hosted operator labels its record once B is on its hubs.

The SDD controller for the build is now paseo 082be17 (taking over from platform-a9). Starting T1 (R1, the stale unlabelled wake fence) on branch design-fleet-record-labels.

Build progress: T1 (R1, the stale unlabelled wake fence) is done. It went through review by Astra (two fix rounds) and Fable (approved). Commits c8b6eb49..e5a77903 on design-fleet-record-labels.

  • An unlabelled fleet-placed row reads its record once, under the lease and before restore or start. The wake is refused (errRouteChangedUnderLease) if the record names any box, has a replica assignment, or is retired or unreadable. Off-fleet boxes read nothing.
  • The stateless and worker paths go through the same gate. A worker refused by the fence backs off on the worker curve, up to sidecarRestartMax, rather than re-reading every 2 s.

T2 (R2, a fleet stop releases only after a proven checkpoint) is building now.

Build progress: T2 (R2, proven final checkpoint) is complete. Commits e5a77903..7615022c.

  • lease.Replicator.CloseProven returns ErrCheckpointUnproven when the final sync fails. It keeps replication and the lease, and a fleet-placed stop stays pending and retries on the sweep.
  • If the lease is lost as well, the box tears down without a release and the lock runs to its TTL (ErrCheckpointAbandoned).
  • At shutdown, any unproven fleet checkpoint is abandoned, never released.
  • Platform-region stops are unchanged.
  • C43 (refusal to start empty) and C44 (checkpoint failed, lease kept) are in the code as drafts. C45 is new: a shutdown ERROR that names the host. It will join the copy deck.

Review: Astra and Fable round 1, then Astra two more rounds, reaching the three-round cap. Two findings are parked at the cap, and the M1 whole-branch review will look at both:

  • in a rare race, C45 can log just after Shutdown returns;
  • in a short window, Shutdown's exit scan can miss a checkpoint that has just become unproven, and the lease renews until that goroutine abandons it.

In both cases the lease is never released over an unproven checkpoint.

T3 (R3, stateless drain and failover) is building.

M1 (release A) whole-branch review, round 1: NOT READY. Astra and Fable each reviewed the branch independently. Three P1s, all being fixed in one wave now:

  1. R1 fence vs sidecars. The fence had no kind check, so every standalone sidecar row on a fleet box was fenced: its GET misses because a sidecar has no instance record. As written, sidecars on fleets would never wake on release A. Fix: the fence applies only to instance rows.
  2. R3 moves vs the stateless runtime floor. Drain and failover could move a stateless record to a box below v0.34. Fix: destination selection requires the stateless floor for stateless records.
  3. R2 vs binaries that never open a database. The checkpoint can never be proven for them, so the stop would stay pending forever and wakes would wait behind it. Fix (controller ruling): CloseProven gets a narrow, positively identified "nothing to checkpoint" outcome (no local DB file, nothing shipped or restored in this lease) and releases. Any other failure stays unproven.

Also four P2s in the same wave:

  • failed-wake teardown still released via Close;
  • teardown is now single-shot, but a sync ran before the guard;
  • the two parked shutdown races;
  • fence backoff counted toward crash-loop classification.

Census: Astra approved all units and envelopes. That will be re-run after the fixes and recorded on #280. M1 merges after the scoped re-review.

M1 re-review: Fable says READY. Astra says NOT READY. All three round-1 P1s are confirmed fixed by both reviewers:

  • sidecar rows are now outside the fence;
  • stateless moves need the v0.34 runtime floor;
  • a database that was never created now releases as proven-empty.

Astra's open findings are all in one fault family: Shutdown has to resolve and report every unproven fleet checkpoint before it returns, and the teardown has to stay cancellable. That includes a new P1: a sync gate from the fix wave can make Shutdown wait behind a hung bucket. None of them releases a lease over an unproven checkpoint.

This is the second round running in the same fault family, so AGENTS.md stopping rule 2 applies and no third fix is written. I've asked the release manager to choose. My recommendation is to cut Shutdown's teardown: it would only log C45 per unresolved host and leave the lease to its TTL at process exit. The merge waits for that answer.

M1 (release A) merged to main as 5b9f77a9. CI passed on the branch tip.

  • R1: an unlabelled fleet-placed instance row is fenced under the lease at its wake, stateless start and worker start. Sidecars are exempt.
  • R2: a fleet stop releases its lease only over a proven final checkpoint. A database that was never created releases as proven-empty. Shutdown only names unproven hosts (C45) and leaves their leases to the TTL; that is the release manager's cut under stopping rule 2. docs/fleet-runbook.md tells operators what that costs.
  • R3: stateless moves verify the manifest and go only to boxes at v0.34 or later.
  • D2: the relabel worker writes no first labels. This release is the console rollback floor.

Census m1 was approved by Astra and recorded on #280. Target: v0.35.3 if it makes the cut, otherwise v0.35.4. That is the release manager's call.

P3 follow-ups:

  • no retry backoff for pending checkpoints (S3 cost; do this first);
  • rootfs stateless records can still move below v0.34;
  • create-time labelling has no stateless floor (M2 T6A covers it);
  • unlabelled stateless starts read the record twice;
  • litestream's sync body is duplicated (re-check on upgrade);
  • TestTeardownIsTerminal races inside litestream under -race;
  • the moved-stateless witness uses a substitute backend;
  • the T3 drain log capture;
  • the plan's T1 host -run pattern matches nothing;
  • the claim wake path skips the fence (inert while host writes are off).

M2 (the door, the CLI, D1 creates, copy, census m2) starts now on fleet-record-labels-m2.

M2 (release B) merged to main as ac9ee364. CI passed on the branch tip.

  • carlos instances label: the account owner ties an unlabelled fleet instance to the box serving it now. - It is a dry run by default. - The binding and the hub row must agree on an active, fresh, eligible box. - An unknown outcome prints C38 and exits non-zero.
  • The door: owner only, with an empty service role set. Linked apps are refused, and host-claim consoles answer C33. - Writes happen in order: mark, then SetRecordFirstFleetBox, then a serial bump. - SetRecordFirstFleetBox re-checks every refusal inside the CAS and sets Moved = true.
  • R4: the door and D1 both require every active fleet box and the console at v0.35.4 (release A).
  • D1: a process create on a multi-box fleet is labelled from the verified manifest, or refused before any write (503 C39 with Retry-After, or C42).
  • A system unit is never movable. This now holds in the door, D1, relabel and drain.
  • Copy: Luna reviewed the CLI and refusal strings under Paul's delegation. Paul approved the docs section with no edits. Census m2 was approved by Astra (#280).

Review history:

  • Astra reviewed every task.
  • Whole-branch round 1: Fable READY, Astra NOT READY (P1: the door admitted unit-backed records with default hibernation).
  • One fix wave, then a scoped re-review: READY AFTER FIXES.
  • The two remaining P2s were fixed under stopping rule 1: - an exhausted CAS conflict stays C38; - an unreadable release on a D1 create answers 503 C39.

Release B is the release manager's roll. Roll notes:

  • The console must not get B before its fleets are on v0.35.4.
  • Multi-box process creates answer C39 until then.
  • On multi-box fleets, apps whose head release predates promotion records get C39 until they are re-promoted. Inventory those heads first.

Still open:

  • T9, the dev drill. It needs B on dev, a #421 window and Paul's scoped approval for box-2 on r10r.
  • The waiting self-hosted operator labels its record once B is on its hubs.

P3 follow-ups since M1:

  • the literal -- value case is fixed, so it is no longer open;
  • check order in the door (the registry row is read after the view, under the lock);
  • readChannelHead failure modes for non-D1 callers;
  • the M1 list posted earlier.

T9 dev drill: not run (2026-11-15). 8a3d302 gave the dev window GO (05:35Z) and the lock was posted on #421, but this drill agent's session refused the fixture's carlos promote on the dev console under its auto-mode permission check. Every later step (sophie console stop for B2, box-2 launch, label writes, drain, terminate) is the same class of action, so 8a3d302 chose to stand down cleanly rather than route around it, and is taking the session-permission question to Paul.

  • Done before the stop: app flrdrill (bab, fleet r10r) created, release d1 shipped, no instances; trashed 05:39Z (purges 2026-12-15).
  • Not touched: hostname history, sophie, r10r (still box-1 only, v0.35.5), no EC2.
  • Dev lock held 05:36Z-05:42Z and released.

T9 is still owed. It needs a session allowed to run the dev console and kass/SSM changes; the plan stands as sent to 8a3d302 (plan T9 minus step 7, which Tito staging already covered).

T9 dev drill report (fleet record labels), 2026-11-15, run by the platform-a9 drill agent, dev lock on #421 06:28Z to about 07:50Z.

Verdict: the label door, R1, R2 and D1 behaved as specified on dev. Teardown did not finish as the plan says. The drain was refused because of a record that existed before the drill, and after the detach the relabel worker left two fixture records tied to the detached box. Those two records were fixtures and are now deleted. No other tenant was affected: shop and railsdemo answered 200 on all 417 probes (06:34:42Z to 07:45:18Z).

Operator: platform-a9 drill agent. The dev window was locked on #421 from 06:28Z to about 07:50Z. Dev console v0.36.0, boxes v0.35.5, CLI v0.35.5 linux-amd64 (sha256 9c363c19, the released binary checked against SHA256SUMS). Box binary v0.35.5 linux-arm64 c2b695f3 (S355). Step 7 was skipped as scoped. Copies were 1 throughout.

Results

| Step | Result | Key evidence | |---|---|---| | 1 Fixtures | PASS | App flrdrill2 (bab, placed on fleet/r10r): d1 is a Go binary with SQLite, where POST /seq appends one row. Instances flrdrill2-a and flrdrill2-b were created 06:35:14Z with one box. Both were still unlabelled after box-2 joined and stayed unlabelled until my own label writes (D2 holds: the worker wrote no first label). | | B2 window | PASS | c1: down 0.27 s (06:39:28.760 to 06:39:29.033Z). add-box r10r box-2 at 06:39:37Z. c2 to c3: down 55.3 s (06:39:42.080 to 06:40:37.393Z). Roster had 19 targets, 13 scanned, all ok. "589 hostnames recorded". The floor moved from v0.35.0 to v0.36.0 (138f2e37). | | 2 Dry runs | PASS | For a and b: the binding was box-1 (written after create), the hub was box-1, they agreed, and "box-1 can take it". lock.json owner was box-1 (pid 349636) at gen 1 for both. box-1 had the rows and processes; box-2 had unlabelled rows only. | | 3 No handover (a to box-1) | PASS | Labelled 06:46:10.5Z under load: same pid 447118, lease gen 1, owner unchanged, seq 3 to 54, 102 requests, 0 failed. box-1 converged in 5.6 s with no restart. box-2 dropped its row ("removed retired instance route") at 07:06:51.956Z. a's next wake (07:13:47Z): "SET ASIDE the local copy", then "restored ... from s3://carlos-r10r-fleet-...", seq 54 to 55 (restored once). | | 4 Handover through wrong evidence (b to box-2) | PASS for R2. The outage is not separable (see below) | Wrong binding written 07:06:05.8Z. The hub row showed box-2 at 07:09:51Z. Labelled 07:10:14.6Z. box-1 removed the route 07:10:21.69Z and "hibernated" 07:10:22.37Z, with no C44 or C45. box-2 restored at 07:11:30.12Z ("d1 starting ... seq=7"; it woke in 1.087 s) and writes went on from 8. POST sequence 1 to 234 is contiguous, with no gap and no duplicate. | | 5 R1 fence | PASS (live, through box-2) | 118 refused wakes on box-2, 07:10:25.3Z to 07:11:28.8Z, each one: "refusing to wake: the route changed while the wake waited for its lease: the record is tied to a box, but this route has not caught up: it names box "box-2" ...; giving the lease back". No process started and no copy was served. | | 6 Refusals | 3 PASS, 3 not exercised | PASS: --box naming the non-serving box gave C30 (rc 1). A stale box gave C27 (rc 1; box-2's agent was stopped and its last heartbeat was 06:42:09Z). Disagreeing evidence gave C12 for both the dry run and the write (rc 1, nothing written). Also: re-labelling a gave C07 "already tied. nothing to do". Not exercised: see below. | | D1 labelled create | PASS (labelled, not refused) | flrdrill2-c was created 07:14:24Z with both boxes active and fresh. The record had fleetbox box-2 at 07:14:25.128Z (createdat 07:14:25.082Z, so it was labelled in the create). It served from box-2 and box-1 never had a row for it. It was not refused: the view was complete, a destination existed, every box and the console were above the floor, the fleet has no sidecars, and d1 is a movable hibernating binary. | | 8 Teardown | FAIL (records not on box-1) | Drain was refused: "cannot drain r10r/box-2. no other box can take the instances of xfpecho yet. nothing changed". I let b and c hibernate on box-2 (07:30:56Z: proven, leases released), terminated the machine (07:32:03 to 07:32:36Z, 0 volumes left), then ran detach-box --terminated (07:32:41Z, ok). After two worker passes, b and c were still tied to box-2 and answered 503. The fixtures were then deleted. |

Step 4 outage

Load: one GET and one POST every 0.5 s, from 07:10:15Z.

  • Last answer from box-1: request sent 07:10:16.780Z (seq 7). First answer from box-2: request sent 07:11:29.389Z (seq 7, then POST 8). That is 72.5 s, with 143 failed requests. - 25 failed with "fleet unreachable: no connected box", 07:10:16.861Z to about 07:10:24Z. I had stopped box-2's agent on purpose for the fence. The hub rewrote b's forward row to box-2 at 07:10:16.509Z, so requests went to the stopped box. - 118 failed with "instance failed to wake": these are the R1 refusals above. box-2's row stayed unlabelled until 07:11:29.45Z because its reconcile could not read records over the fleet store door after the restart (finding 3).
  • The plan's criterion, failures only at the stop and during one wake, could not be measured on its own, because I folded step 5 into step 4 (see "Deviations"). The parts that do not depend on that choice: box-1 went from the label to a released lease in 7.8 s, and box-2's one wake took 1.087 s.

Lease owner timeline (lock.json in carlos-r10r-fleet-640012953448)

A release deletes lock.json, so each new hold starts again at generation 1.

  • a: box-1 gen 1 from 06:35:49Z, unchanged through the label. Released at hibernate 07:01:49Z. box-1 again from 07:13:47Z (set aside and restore).
  • b: box-1 gen 1 from 06:35:53Z, released at hibernate (about 06:51Z). box-1 gen 1 again from 07:05:51Z, released 07:10:22.4Z (lock.json gone at 07:10:23.5Z). box-2 took and gave back the lease 118 times, 07:10:25.3Z to 07:11:28.8Z (R1). box-2 gen 1 from 07:11:29.6Z, held until hibernate at 07:30:56Z. The owner changed once, from box-1 to box-2.
  • c: box-2 gen 1 from 07:15:00Z, released at hibernate 07:30:56Z.

Sequence values

| Instance | Values | |---|---| | a | 1-3 (box-1, 06:35Z); 3 to 54 during step 3; 55-57 after the restore on box-1. Last committed: 57. | | b | 1-3, then 4-7 on box-1; 8-198 on box-2 after the restore; up to 234 during the load before the drain. Last committed: 234. | | c | 1-3, then up to 30 on box-2. Last committed: 30. |

Deviations from the plan

  1. Step 5 ran through box-2, inside step 4. The plan pauses box-1. box-1 serves shop and railsdemo, so I did not stop its agent. - First attempt (07:02:45Z): box-2 kept a stale row for a while its agent was stopped. I then tried a request on box-2 itself, but it failed at TLS: box-2 has no certificate for the fixture host, autocert's ACME order failed, plain :80 answers "Use HTTPS", and empty SNI has no certificate either. - The hub forwards a labelled record only to its labelled box. So the only live way into a stale box-2 row was b at step 4's label. box-2's agent was stopped from 07:10:10Z, across the label, and started again 10 s after it. - Spec R1 covers this case: the record names any box, "even this box's". The plan's test TestFenceHoldsAfterAgentRestartBeforeReconcile covers the same case.
  2. Step 6, not exercised: - A draining box: draining is one-way, box-2 was step 4's destination, and once every fixture was labelled no unlabelled record was left to ask about. - A non-owner member: the only dev CLI login here is the owner's. - A box below the floor: every dev box runs v0.35.5, and none older was available.
  3. Teardown took the lost-box path (terminate, then detach --terminated) because the drain was refused.
  4. Before trashing, I restored the app for a moment to delete its three instances. Trashing alone leaves the instance records in the bucket.

Product findings

  1. P2: an app in the Trash blocks a fleet drain. xfpecho (trashed 2026-11-14 05:29Z, purges in mid-December) still has an unlabelled, always-on, stateless rootfs record on r10r. - drainBox strands any unlabelled record of the box (fleetrelabel.go, the rec.FleetBox == "" case), and the fleet inventory includes records of trashed apps. - The label door answers 404 for a trashed app, so no owner action can clear it. No box of r10r can be drained until xfpecho purges. - Trashing an app leaves its instance records in place.
  2. P2: records on a detached box are stranded when the fleet drops to one box. - The relabel worker acts only when the fleet view has at least two active boxes (fleetbox.go:429, v.Active = whole && len(v.Boxes) >= 2). - After detach-box --terminated, b and c stayed tied to box-2 and answered 503, while instances list showed them as "Asleep". - instances label answered "already tied to box-2. nothing to do", and fleets drain answered "r10r/box-2 is detached. there is nothing to drain". No command could move them. - A real two-box fleet that loses a box would strand that box's instances the same way.
  3. P3: a fleet agent cannot read records for its first 35 to 60 s after a restart. Its reconcile passes fail to read records over the fleet store door ("context deadline exceeded"; the hub logs "context canceled"). This happened on both restarts: 07:05:51Z to 07:06:23Z, and 07:10:24Z to 07:11:29Z. It held b's stale row, and so R1's refusals, for 63 s.
  4. Note: box-2's startup pass rewrote b's binding with no lease at 07:10:24.839Z, while every wake was being refused. Spec §2 already calls bindings evidence, not proof.
  5. Note: my local TLS attempt made box-2 open one ACME order for flrdrill2-a, which failed. The Let's Encrypt validator reached sophie ("no token cert").

Deleted

  • EC2 i-0cb91a71277954466 (r10r box-2, t4g.small; launched 06:36:22Z, terminated 07:32:36Z, 0 volumes left).
  • r10r box-2 is detached again. Its console row stays, as it did after 10-31, because there is no delete verb.
  • App flrdrill2: instances a, b and c deleted 07:44:02Z; the app trashed 07:44:08Z (purges 2026-12-15 07:44Z).
  • Bucket objects I wrote: - the wrong-binding version ehIZL9ZBVvHpmYslIbmw0tXSWJpSAfup of fleets/r10r/bindings/flrdrill2-b.bab.dev.oncarlos.com.json in carlos-dev-640012953448; - scratch/flr-t9/scan.jsonl in carlos-r10r-fleet-640012953448 (version 4dlmad...; scratch/ now has 0 versions).
  • sophie: /root/hu-flr9/registry.db.window, /run/hu-flr9/roster.json, /run/hu-flr9/scan.jsonl and both directories. c3 removed /root/hu-flr9/console.env at the end of the window.
  • No IAM user, security group or bucket was created.
  • Local scratch, removed by exact path.

Left in place (written by the product, or by design)

  • Box-written binding objects for flrdrill2-a, -b and -c.
  • Replica objects under instances/flrdrill2-* in the r10r fleet bucket.
  • On box-1: /data/.superseded/flrdrill2-a (the set-aside copy) and the parked /data/.instances/flrdrill2-a and -b directories.
  • The hostnames flrdrill2-a, -b and -c, now recorded in the history (590 recorded).
  • The history floor is now v0.36.0. A CLI below v0.36.0, including ~/.local/bin/carlos (v0.35.5), is refused for carlos accounts migrate on dev.
  • box-2's last heartbeat, until it ages out of carlos system status.
  • xfpecho's record, which is not mine.

Final state of dev

  • healthz: ok v0.36.0.
  • Console: pid 3361673, NRestarts 0. It restarted only for the two B2 stops.
  • sophie's hub carlos-edge: pid 3283378, NRestarts 0, unchanged.
  • box-1 carlos-edge: pid 349636, NRestarts 0, exe c2b695f3, unchanged. box-1 holds no flrdrill2 rows and runs only shop and railsdemo.
  • fleets show r10r: box-1 active, box-2 detached.
  • The IE HA group, leo, dennis, the demo box and hapair were not touched. Only the scan read them, read-only, during the window.

T9 drill findings fixed: merged to main as 411e0ce (branch fleet-drain-followups). Not released yet; it rides v0.36.1.

  • P2, trashed app blocks a drain: drainBox now excuses a trashed app's unlabelled record only when (a) the box's own two reads agree it is retired (trash marker read, production flag read and clear), (b) the record is movable (movableVerified ok), and (c) another box can carry it at the stateless floor (chooseMoveDestination). If any read fails, or none of those hold, the drain refuses as before. The record is never written, so a restore brings its routes back on the surviving boxes. Witnesses cover the last box, a restore during the drain, a survivor below the stateless floor, and an unmovable record.
  • P2, detached box strands records: the relabel worker now acts on a whole view even when only one box is active. Both detach doors run the fleet's relabel under the lock they already hold, so detach-box --terminated moves the records right away. R2 (restore-required, no empty start) and R3 hold, and v.Active keeps its meaning for create, the label door and replica placement. Relabel writes now bump the serial, so running boxes converge in seconds instead of at their next instance pass. The worker, drain and label paths had the same gap.
  • P3, slow reconcile after a restart: the cause was not the store door. A box with no record view (every fleet box) got no boot full pass, so its first reconcile waited for instancesLoop, 60 s after start. It now runs on the first fast tick (internal/host, requestBootFullPass; census approved on #280). The "context deadline exceeded" and "context canceled" lines come from the startup HA ingress pass. It has a flat 5 s budget, cannot finish on a fleet box, holds reconcileMu, and does nothing useful for fleet records. Still open: skip it on fleet boxes. That needs the region HA owner's view, so it is not in this merge.

Still owed: a dev witness of a two-box to one-box detach and a drain past a trashed app. The dev hostname-history floor is v0.36.0, so the witness needs a v0.36.0+ CLI and boxes on v0.36.1.

#1008 follow-ups (411e0ce) dev witness report, 2026-11-15, run by the platform-a9 witness agent, dev lock on #421 10:32Z to 11:00Z. Copy at ~/.cache/fdwit/drill-report.md.

Verdict: both P2 fixes hold on dev. A drain of r10r box-2 went past a trashed app's unlabelled record, and the stateful record it moved restored on box-1 with its sequence unbroken. A detach of a terminated box-2 moved that box's record to box-1 at the door, 0.13 s after the request, and it woke on box-1 with its sequence unbroken. The P3 fix is only partly visible: after a restart, box-2's first reconcile came 17.2 s after the start, not about 2 s. That is better than T9's 35 to 65 s; the startup HA ingress pass (the item 411e0ce left open) still holds the first pass back. shop and railsdemo answered 200 on all 139 probes (10:33:06Z to 10:57:08Z).

Operator: platform-a9 witness agent. Dev lock on #421 from 10:32Z to 11:00Z. Console, box-1 and both box-2 machines ran v0.36.1 (box binary 6557ba39, S361). CLI v0.36.1 linux-amd64, sha256 a6f9b003c77b72eeb721e47be385a60073dba98bba08512e2c776963d826f063, from the release dist and checked against SHA256SUMS.

Results

| Step | Result | Key evidence | |---|---|---| | 1 Fixtures (one box) | PASS | App fdwit-a: d1 is a Go binary with SQLite, where POST /seq appends one row. fdwit-a1 was created 10:35:05Z and served seq 1-3 from box-1. App fdwit-t: rootfs, --stateless, always on. fdwit-t1 was created 10:35:20Z and answered 200 from box-1. fdwit-t was trashed at 10:35:57Z without deleting its instance. Its record stayed in the bucket, unlabelled (version .zR3kWa...). | | 2 Add box-2 | PASS | B2 window 1: 0.35 s down at c1, add-box at 10:39:05Z, then 49.8 s down at c2 to c3 ("601 hostnames recorded"). Agent started 10:40:20.99Z. fleets show: box-1 and box-2 both active, both v0.36.1. box-2 logged "bab/fdwit-t is in the trash - not minting instance routes for it". | | 3 Drain past the trashed app | PASS | fleets drain r10r box-2 at 10:44:54.7Z, rc 0. The console logged "bab/fdwit-t is in the trash and its routes are retired; its unlabelled records stay as they are and do not hold the drain", then moved fdwit-a2 from box-2 to box-1 (moved true). T's record was skipped: not written (same version, still unlabelled). box-2 released fdwit-a2 with no C44 or C45. box-1 restored it from the fleet bucket ("starting ... seq=20") and woke it in 1.035 s. Under load, POST seq 4 to 64 is contiguous. The outage was 5.1 s with 10 failed requests. | | 4 Detach to one box | PASS | fdwit-a3 was labelled box-2 at create (D1) and slept there (lease released). Terminated the machine 10:54:02.9Z to 10:54:35Z. detach-box --terminated was sent at 10:54:36.629Z; the record named box-1 at 10:54:36.755Z, moved true. Console: "fdwit-a3 from box-2 to box-1 (detached)", "moved 1 records off the detached box". box-1 minted the route 8.4 s after the relabel and restored from the bucket (woke in 990 ms). The first 200 was at 10:54:49.28Z with seq=10, the last value written on box-2, then POST 11, 12, 13. | | 5 Restart timing (P3) | PARTIAL: 17.2 s, not about 2 s | Restarted box-2's carlos-edge (start at 10:42:32.135Z). "fast converge loop armed" came at +9.9 s. The startup HA ingress pass logged "context deadline exceeded" at +12.1 s, while it held reconcileMu. The first reconcile minted fdwit-a2 at 10:42:49.36Z, which is +17.2 s. Record reads were not blocked for T9's 35 to 65 s, but the startup HA pass still delays the first pass by about 15 s. Box-2's first boot showed the same +17.2 s. | | 6 Teardown | PASS | Both machines terminated and box-2 detached. fdwit-a's three instances deleted, then the app trashed. fdwit-t restored, fdwit-t1 deleted, then trashed again, leaving no instance record. Sophie's window files removed. The bucket scratch object removed by version. See "Deleted". |

Step 3 detail (drain, load on fdwit-a2)

  • Load: one GET and one POST every 0.5 s, 10:44:46Z to 10:45:34Z; 132 requests, 10 failed.
  • Last answer from box-2: POST sent 10:44:59.129Z, seq=20. First answer from box-1: GET sent 10:45:04.260Z, seq=20. Outage 5.1 s by send time.
  • The failures were 8 "404 unknown host" (10:44:59.8Z to 10:45:02.6Z) and 2 "503 instance failed to wake" (10:45:03.3Z to 10:45:03.5Z, while box-1 refused "no build is installed for this instance yet" and the root pass staged d1).
  • box-2: route removed 10:45:01.648Z, 5.99 s after the label; "hibernated" 10:45:03.04Z.
  • Lease (lock.json, 1 s poll): box-2 gen 1, gone at 10:45:04.6Z, box-1 gen 1 at 10:45:06.7Z. box-1's journal has it acquired at 10:45:04.57Z.

Timings

| What | Time | |---|---| | Drain request to record relabelled | under 1 s (10:44:54.7Z to 10:44:55.66Z) | | Relabel to box-2 dropping the route | 5.99 s | | Drain outage under load | 5.1 s, 10 failed requests | | Detach request to record relabelled | 0.13 s (at the door) | | Relabel to box-1 minting the route (detach) | 8.4 s | | Detach wake on box-1 | 990 ms (restore 403 ms) | | Restart to first reconcile (box-2) | 17.2 s (fast loop armed at +9.9 s) | | B2 window console downtime | window 1: 0.35 s + 49.8 s. Window 2: 0.29 s + 35.2 s (aborted scan, console restarted unchanged) + 49.2 s |

Sequence values

| Instance | Values | |---|---| | fdwit-a1 | 1-5 on box-1 (labelled to box-1 in place, same process). | | fdwit-a2 | 1-20 on box-2, then 20 restored on box-1, then 21-64. Last committed: 64. | | fdwit-a3 | 1-10 on box-2, then 10 restored on box-1 after the detach, then 11-13. Last committed: 13. |

Deviations from the brief

  1. box-2 was added twice, on two machines, never at once. A successful drain leaves nothing labelled to box-2, so step 4 needed a second box-2. M1 (i-049ac3011e11621c8) carried steps 2, 3 and 5. It was terminated and detached at 10:47:31Z, holding no records. M2 (i-0025a6d8a0a6d98ea) carried step 4. Each add needed a B2 window. The lock post on #421 stated this.
  2. Window 2's first scan failed in my sandbox. The titogo profile could not write its AWS CLI credential cache. The script restarted the console unchanged (35.2 s down) and the re-run passed. The hostname history was invalidated from 10:49:11Z to 10:51:05Z.
  3. The record the drain moved was fdwit-a2, created on box-2 by D1. fdwit-a1 was made with one box, as the brief asks, and then labelled to box-1 in place (no move) so it would not hold the drain.
  4. Step 5 was a stop, a create and a start (stopped 8.4 s), so the first reconcile had a known record to mint and could be timed.
  5. M2 ran with CARLOSHIBERNATEIDLE=60s, so fdwit-a3 could sleep (proven checkpoint, lease released) before its machine was terminated. Without this the lease would be held for its 15 min TTL.
  6. T is a rootfs app, because console-created binary instances always hibernate and the brief asked for an always-on instance.

Product findings

  1. P3: a restarted fleet box's first reconcile still waits about 17 s. This is 411e0ce's open item. - The fast converge loop arms 9.9 s after start. - The startup HA ingress pass then holds reconcileMu until its 5 s budget runs out ("context deadline exceeded", also on domains claim reads). - The pass is retried at 0, 2, 5 and 10 s, and on a fleet box it never completes. - The boot pass itself now runs on the first fast tick, not after 60 s.
  2. P3: a moved record answers 404 "unknown host" for a few seconds. The hub forwards to the new box before that box has minted the route. In the drain this was 8 requests over 2.8 s. In the detach the first request also got a 404. A 404 for an instance that exists can be cached by clients. A 503 with a retry would match the rest of the wake path.
  3. Note: fleets show lists a draining box as "active". After the drain, box-2 still showed as active with nothing to say it was draining.
  4. Note: the detach door took 812 ms (64 S3 calls) and logged a performance-budget WARN (budget 500 ms). That is expected now that the door also runs the relabel.

Deleted

  • EC2 i-049ac3011e11621c8 (box-2 lifetime 1, t4g.small): launched 10:34:32Z, terminated 10:47:29Z, 0 volumes left.
  • EC2 i-0025a6d8a0a6d98ea (box-2 lifetime 2, t4g.small): launched 10:47:43Z, terminated 10:54:35Z, 0 volumes left.
  • r10r box-2 detached twice with --terminated (10:47:31Z and 10:54:37Z). Its console row stays, because there is no delete verb.
  • App fdwit-a: instances fdwit-a1, -a2 and -a3 deleted 10:55:36Z. The app was trashed 10:55:36.7Z and purges 2026-12-15 10:55Z.
  • App fdwit-t: restored 10:55:37.0Z, fdwit-t1 deleted 10:55:37.3Z, trashed again 10:55:49.96Z (purges 2026-12-15 10:55Z). No instance record is left under either app.
  • Bucket objects I wrote, in carlos-r10r-fleet-640012953448: - scratch/fdwit/scan.jsonl version wjDD1ZdEZP.V25C8qLbakMq7vqkrCUg9 (window 1); - the same key, version f9n3ds7EAwri73Wrbf4bBGDHeJZWTzjB (window 2). - scratch/fdwit/ now has 0 versions and 0 delete markers.
  • On sophie: /root/hu-fdw/registry.db.window, /run/hu-fdw/roster.json, /run/hu-fdw/scan.jsonl and both directories. c3 removed /root/hu-fdw/console.env at the end of each window.
  • Local scratch (box config copy, token files, fixture build) removed by exact path. No IAM user, security group or bucket was created.

Left in place (written by the product, or by design)

  • Box-written binding objects for fdwit-a1, -a2 and -a3 in carlos-dev-640012953448.
  • Replica objects under instances/fdwit-a* in the r10r fleet bucket.
  • On box-1: the parked data of fdwit-a1, -a2 and -a3, and their empty systemd slices, plus fdwit-t1's. No process runs in them.
  • The fdwit-a and fdwit-t releases, in the trash with their apps.
  • The hostnames fdwit-a1, -a2, -a3 and -t1, now in the history (603 recorded).
  • The history floor is now v0.36.1 (411e0ce), because activate records the running console build. A CLI below v0.36.1 is refused on dev for the commands the floor gates.
  • box-2's last heartbeat, until it ages out.

Final state of dev (10:57Z)

  • healthz: ok v0.36.1.
  • Console: pid 3420146, NRestarts 0. It restarted only for the B2 stops.
  • sophie's hub carlos-edge: pid 3415484, NRestarts 0, untouched.
  • box-1 carlos-edge: pid 497320, NRestarts 0, exe 6557ba39, untouched since 10:01:58Z. It has no fdwit rows, and its gen units run only shop and railsdemo.
  • fleets show r10r: box-1 active, box-2 detached.
  • Not touched: the flagship, the IE HA group, leo, dennis, the demo box and hapair. The B2 scans read them read-only.

Witness finding 1 (P3, first reconcile at +17.2 s): MERGED ad371857 (squash of c46d3c75, CI green): a fleet box (region a fleet placement) skips the startup HA ingress record scan and does not take reconcileMu, so its first reconcile is no longer held for the 5 s attempt budget (witness: +17.2 s, target about 2 s). It publishes the empty projection only where none exists, so a published refusal marker stands. Platform boxes unchanged. Witnesses: TestHAIngressStartupFleetBoxListsNoRecords and TestHAIngressStartupFleetBoxDoesNotHoldReconcile. Astra: no findings; census approved on #280. Not released; rides the release after v0.36.1. A dev restart timing witness is still owed.

Witness finding 2 (moved record answers 404 unknown host): MERGED fb83b78e (CI green). A fleet box's tunnel loop marks its hub channel; a request on that channel for a host the box neither routes nor backhauls answers 503 Retry-After 2 (X-Carlos-Answer fleet-unrouted) instead of 404. Strangers, static and link channels, and platform-domain misses (pending page) are unchanged; log key fixed. Astra READY after one fix round; census on #280. Not released. Dev witness owed: re-run the drain under load and expect 503s, no 404s, in the gap.

v0.36.2 dev witness: #964 restart timing and 503-not-404 (ad371857, fb83b78e), 2026-11-15

Verdict: the 503 fix holds. In a drain and in a detach, both under load, a moved record never answered 404. The gap answered 503 with Retry-After, and every sequence continued with no gap. The #964 fix does what its commit says (no startup HA ingress scan on a fleet box and no "context deadline exceeded"), but the restart timing did not improve: the first reconcile still came about 17 s after start, not about 2 s. The HA ingress pass was not what held it back. shop and railsdemo answered 200 on all 126 probes (20:24:10Z to 20:45:47Z).

Operator: platform-a9 witness agent. Dev lock on #421 from 20:23Z to about 20:50Z. Console, box-1 and both box-2 machines ran v0.36.2 (box binary b7482ffb, S362; console 3a07918d). CLI v0.36.2 linux-amd64, sha256 19ab00ee918ab16bf1f3efd5bf2306d052a688d589f67e69cf7f70ecac8520d9, from ~/.cache/release-v0.36.2/dist and checked against SHA256SUMS.txt and verify/.

Results

| Witness | Result | Key numbers | |---|---|---| | 1 #964 restart timing (box-2) | FAIL against "about 2 s". The fix's own claim holds. | Restart 1: armed +9.5 s, first reconcile +16.9 s. Restart 2: armed +9.4 s, first reconcile +17.3 s. No "context deadline exceeded" from the startup HA ingress pass. Last witness: +9.9 s and +17.2 s. | | 2a 503 not 404, drain | PASS | fdw2-a1: 254 requests: 240 x 200, 12 x 503 fleet-unrouted (Retry-After 2), 2 x 503 wake-failed (Retry-After 5), 0 x 404. fdw2-a2: 234 requests: 222 x 200, 11 x 503 fleet-unrouted, 1 x 503 wake-failed, 0 x 404. Sequences contiguous. | | 2b 503 not 404, detach --terminated | PASS | fdw2-a3: 104 requests: 56 x 200, 38 x 503 fleet-unreachable (Retry-After 2), 8 x 503 fleet-unrouted (Retry-After 2), 2 x 503 wake-failed (Retry-After 5), 0 x 404. Last value on box-2 was 10; first 200 on box-1 read 10, then POST 11 to 38. | | 2c unknown host | PASS, with a note | A never-existing host under bab.dev.oncarlos.com gets the hub's long-standing 503 "pending-host" page (Retry-After 5), not a 404. It was the same before and after the moves, and the code is unchanged since v0.36.1. The plain 404 "unknown host" still answers for a host outside the route-table form (uppercase Host header). | | 3 Teardown | PASS | Both machines terminated, box-2 detached, instances deleted, app trashed, window files and scan objects removed. See "Deleted". |

Witness 1: restart timing

Method, as in the last witness: stop box-2's agent, create one instance (D1 labels it box-2 at create), start the agent, and time from systemd's "Started" to the first "minted instance route" for that instance.

| | Restart 1 (fdw2-a1) | Restart 2 (fdw2-a2) | Last witness (v0.36.1) | |---|---|---|---| | Agent started | 20:29:46.100Z | 20:30:51.693Z | 10:42:32.135Z | | Tunnel connected | +0.2 s | +0.2 s | +0.2 s | | Fast converge loop armed | +9.5 s (20:29:55.645Z) | +9.4 s (20:31:01.126Z) | +9.9 s | | Startup HA ingress "context deadline exceeded" | none | none | +12.1 s | | First reconcile (mint) | +16.9 s (20:30:02.998Z) | +17.3 s (20:31:08.998Z) | +17.2 s | | First pass summary | 14.4 s (reconcile 9.5 s, moves 4.1 s) | 13.9 s (reconcile 9.2 s, moves 3.9 s) | 15.5 s (reconcile 9.9 s, moves 4.9 s) |

  • The startup HA ingress pass now only logs "incomplete startup alias pass" (the alias pass still runs, as the commit says), at about +0.6, +3, +9 and +19 s. It no longer holds reconcileMu.
  • Fresh boots show the same shape: M1 armed at +8.9 s and M2 at +9.3 s.
  • Where the time goes: about 9.4 s from start to arming, then about 2.3 s to the first fast tick, then about 5 s inside the first pass's reconcile stage before the mint. Nothing is logged between "tunnel connected" and "armed". Before it logs "armed", fastConvergeLoop runs restartSeed, sidecarWakeSeed, refreshMovesHolds, refreshOfflineView and systemLeg.observe (internal/host/agent.go, before line 3854). These are my guesses at the 9 s; I did not measure them separately. The first pass's 9 s reconcile and 4 s moves stage are reads over the fleet store door.

Witness 2a: drain under load (fdw2-a1 and fdw2-a2)

Load: one GET /seq and one POST /seq every 0.5 s on each instance, 20:33:02Z to 20:34:47Z.

  • fleets drain r10r box-2 sent 20:33:29.631Z, rc 0. The door took 808 ms (performance-budget WARN, budget 500 ms).
  • Both records were relabelled box-2 to box-1 at 20:33:30.293Z (moved true).
  • The hub rewrote both forward rows at 20:33:31.94Z, 1.6 s after the relabel.
  • box-1 logged "a hub-forwarded host this box does not route yet answered 503" at 20:33:32.68Z and minted both routes at 20:33:36.15Z, 5.9 s after the relabel.
  • box-1 refused two wakes with "no build is installed for this instance yet" (20:33:37.6Z to 37.97Z, while the root pass staged d1). Those are the 503 wake-failed answers.
  • box-2 removed both routes at 20:33:36.63Z and hibernated them at 20:33:38.38Z and .46Z, with no C44 or C45.
  • box-1 took the leases at 20:33:38.48Z (a2) and 38.78Z (a1), restored from the fleet bucket, and woke in 1.262 s and 1.056 s.
  • lock.json for a1 (1 s poll): box-2 gen 1, gone at 20:33:38.64Z, box-1 gen 1 at 20:33:40.83Z.

| | fdw2-a1 | fdw2-a2 | |---|---|---| | Last 200 from box-2 (send time) | 20:33:31.910Z, POST seq=40 | 20:33:31.969Z, POST seq=37 | | 503 fleet-unrouted, Retry-After 2 | 12, 20:33:32.57Z to 20:33:36.90Z | 11, 20:33:32.67Z to 20:33:37.12Z | | 503 wake-failed, Retry-After 5 | 2, 20:33:37.57Z to 37.78Z | 1, 20:33:37.34Z | | 404 | 0 | 0 | | First 200 from box-1 (send time) | 20:33:38.479Z, GET seq=40 | 20:33:38.125Z, GET seq=37 | | Outage by send time | 6.6 s | 6.2 s | | POST sequence | 4 to 123, contiguous | 4 to 114, contiguous |

Last witness, same drain: 8 x "404 unknown host" and 2 x 503 wake-failed, outage 5.1 s.

Witness 2b: detach --terminated under load (fdw2-a3)

  • fdw2-a3 was created on the second box-2 machine (M2, labelled box-2 at create by D1), served seq 1 to 10, then slept after 1m10s idle (M2 ran CARLOSHIBERNATEIDLE=60s) at 20:41:24Z, and released its lease.
  • M2 was terminated at 20:42:00Z to 20:42:33Z. Load on a3 ran from 20:42:39Z.
  • fleets detach-box --terminated r10r box-2 sent 20:42:48.835Z, rc 0 at 20:42:49.666Z (door 692 ms, budget WARN). The record named box-1 at 20:42:48.977Z (0.14 s, at the door), moved true. Console: "fdw2-a3 from box-2 to box-1 (detached)", "moved 1 records off the detached box".
  • The hub rewrote the forward row at 20:42:52.86Z. box-1 minted at 20:42:55.48Z (6.5 s after the relabel), refused two wakes for the root pass, took the lease at 20:42:58.91Z, restored from the bucket and woke in 993 ms.
  • Responses: - before the detach (box-2 gone): 25 x 503 fleet-unreachable, "no connected box", Retry-After 2; - after the detach, until the hub rewrite: 13 more of the same; - then 8 x 503 fleet-unrouted, Retry-After 2 (20:42:54.50Z to 20:42:57.11Z); - then 2 x 503 wake-failed, Retry-After 5; - then 200 from 20:42:58.683Z: GET seq=10, POST 11 to 38. 0 x 404.

Last witness, same detach: the first request got "404 unknown host".

Witness 2c: unknown host

  • https://fdw2-never-38ff0fa4.bab.dev.oncarlos.com/ and /seq, at 20:32:21Z (before) and 20:35:39Z (after the drain): 503, x-carlos-answer: pending-host, Retry-After 5, the "Almost ready" page. This is the hub's answer for any route-form host under a platform domain (internal/edge/pending.go, the same in v0.36.1). It is not a 404, so the brief's expectation does not match what dev has answered all along.
  • The same host with an uppercase Host header (outside the route-table form): 404 text/plain "unknown host", no X-Carlos-Answer.
  • Can outsiders tell hosts apart? fb83b78e changes only requests the hub delivers on a fleet channel. The hub only forwards hosts it has a row for, so a stranger's answer for a host that does not exist is unchanged. A host in a move gap answers 503 fleet-unrouted (Retry-After 2), which is different from the unknown-host 503 pending-host (Retry-After 5). That only shows a host that answers 200 before and after the move, so nothing new is revealed.

Timings

| What | Time | |---|---| | Restart to first reconcile (box-2) | +16.9 s and +17.3 s (armed +9.5 s and +9.4 s) | | Drain request to records relabelled | 0.66 s | | Relabel to hub forward rewritten | 1.6 s (drain), 3.9 s (detach) | | Relabel to box-1 minting the route | 5.9 s (drain), 6.5 s (detach) | | Drain outage under load | 6.6 s (a1), 6.2 s (a2) | | Detach request to record relabelled | 0.14 s | | Wakes on box-1 | 1.056 s, 1.262 s (drain), 993 ms (detach) | | B2 window console downtime | window 1: 0.28 s + 48.4 s. Window 2: 0.27 s + 48.3 s |

Deviations from the brief

  1. box-2 was added twice, on two machines, never at once, as in the last witness. A drain leaves nothing labelled to box-2 and a draining box takes no new labels, so the detach witness needed a second box-2. M1 carried witness 1 and the drain. M2 carried the detach. Each add needed its own B2 window. The lock post said so.
  2. Restarts were stop, create, start (stopped 9.2 s and 8.6 s), so the first reconcile had a known record to mint and could be timed.
  3. M2 ran with CARLOSHIBERNATEIDLE=60s, so fdw2-a3 could sleep and release its lease before its machine was terminated.
  4. My first instances-delete attempt (20:44:02Z) used the wrong syntax and deleted nothing (rc 1, usage printed). The second attempt, with --host, worked.

Product findings

  1. P3: a fleet box's first reconcile still comes about 17 s after a restart. ad371857 removed the startup HA ingress hold. There is no "context deadline exceeded" now, but that pass was not the main delay: it saved about 0.3 s. - About 9.4 s pass between "tunnel connected" and "fast converge loop armed", with nothing logged. - The first pass's reconcile stage takes about 9 s and mints about 5 s in. The moves stage takes about 4 s. - These are suspects, not measurements: the seeds before arming (restartSeed, sidecarWakeSeed, refreshMovesHolds, refreshOfflineView, systemLeg.observe), and slow reads over the fleet store door. Timing each step of the arming sequence would show where the time goes.
  2. Note: the unknown-host answer under the apps domain is a 503 pending page, not a 404. Expected behaviour, but the brief assumed a 404.
  3. Note: after a detach, the hub keeps answering "fleet unreachable: no connected box" for about 4 s (13 requests here) until its forward row is rewritten. It is a 503 with Retry-After 2, not a 404, so it is not this fix's case. It is listed so the gap is fully accounted for.
  4. Note: the drain and detach doors are still over their 500 ms budget (808 ms and 692 ms), as in the last witness.

Deleted

  • EC2 i-0f61dd420e2aba586 (box-2 machine M1, t4g.small): launched 20:24:12Z, terminated 20:36:42Z, 0 volumes left.
  • EC2 i-0315209c7abfa0fcd (box-2 machine M2, t4g.small): launched 20:36:56Z, terminated 20:42:33Z, 0 volumes left.
  • r10r box-2 detached with --terminated twice (20:36:44Z, which moved nothing, and 20:42:48.8Z, which moved fdw2-a3). Its console row stays, because there is no delete verb.
  • App fdw2-a: instances fdw2-a1, -a2 and -a3 deleted at 20:44:10Z. No record left under apps/bab/fdw2-a/instances/ (checked 20:44:14Z). The app was trashed at 20:44:15Z and purges 2026-12-15 20:44Z.
  • Bucket objects I wrote, in carlos-r10r-fleet-640012953448: - scratch/fdw2/scan.jsonl version xfRLRGC85c1J3UhT95mnYcVO7sFaqWXl (window 1); - the same key, version XxC38O8XPTcISvb1vyQIhnpq5Y511aGu (window 2). - scratch/fdw2/ now has 0 versions and 0 delete markers.
  • On sophie: /root/hu-fdw2/registry.db.window, /run/hu-fdw2/roster.json, /run/hu-fdw2/scan.jsonl and both directories. c3 removed /root/hu-fdw2/console.env at the end of each window.
  • Local scratch (/home/paulca/.cache/tmp/claude-1001/fdwit2.ipE6, with the box config copy and fixture build), removed by exact path. No IAM user, security group or bucket was created.

Left in place (written by the product, or by design)

  • Box-written binding objects for fdw2-a1, -a2 and -a3 in carlos-dev-640012953448, and replica objects under instances/fdw2-a* in the r10r fleet bucket.
  • On box-1: the parked data of fdw2-a1, -a2 and -a3 and their empty systemd slices. No process runs in them (hibernated 20:44:17Z to 18Z).
  • The fdw2-a release d1, in the trash with its app.
  • The hostnames fdw2-a1, -a2 and -a3, now in the history (606 recorded).
  • The history floor is now v0.36.2 (6ef00911), because activate records the running console build.
  • box-2's last heartbeat, until it ages out.

Final state of dev (20:45Z)

  • healthz: ok v0.36.2. fdw2 hosts answer 503 pending-host (their records are gone).
  • Console: pid 3517968, NRestarts 0. It restarted only for the B2 stops.
  • sophie's hub carlos-edge: pid 3513669, NRestarts 0 since 20:17:28Z, untouched. It has 0 fdw2 forward rows.
  • box-1 carlos-edge: pid 622122, NRestarts 0, exe b7482ffb, untouched since 19:57:11Z. It has 0 fdw2 rows, and its gen units run only shop and railsdemo.
  • fleets show r10r: box-1 active, box-2 detached.
  • Not touched: the flagship, the IE HA group, leo, dennis, the demo box and hapair. The B2 scans read them read-only.

Evidence: /home/paulca/.cache/fdwit2/progress.log and /home/paulca/.cache/fdwit2/evidence/ (load logs, lease watches, journals, window outputs, scripts).

Fleet box first reconcile (follow-up from the v0.36.2 witness: ~17 s from agent start to the first mint, unchanged by #964):

  • 25c57de (merged): startup timing. One "agent: startup:" journal line per step from agent start to the end of the first full pass, with store door op counts. Log-only.
  • 35b7c25 (merged, not released): the boot full pass runs as soon as the fast converge loop has built the moves hold and offline keep views, with no tick sleep; the restart/wake baselines, runs boot pass, schedule converge and system observe run beside it. The first serial read waits for the request baselines, so no request is half-taken.

Before: armed +9.4 s, first tick about 2.3 s later, mint +17 s (dev r10r box-2, v0.36.2). After: not yet measured on dev. The local slow-door model (60 ms/op) puts the saving at 2 to 3 s, about 0.8 s more where runs are armed. The rest of the gap is in costs the local model cannot show. The two main suspects are the wait for the activator startup latch before the duties start, and the door's whole-subtree List("apps/") in the record walk. The 25c57de lines will settle both after the next release; the door-shaped walk (d941a849, reverted) is ready to cherry-pick if the list numbers justify its S3 cost.