G6 follow-ups: stale routes after purge, fence residuals, small gaps open
G6 follow-ups (from the g6-fence and g6-pool build reviews, 2026-11-13). None blocks the G6 merges; each was ruled during the build (ledgers under .superpowers/sdd on each branch).
Pool path (g6-pool)
- Purging an app leaves its registry routes behind. A born-HA app recreated under a purged fleet app's name no longer inherits the fleet (effectivePlacement, c2e4ab43). Three views still list routes by their region: the fleet page's placed-apps list (fleets.go:1550), fleetbox.go:496, and accountfleet.go:159. They may show the stale route. Fix at the root: retire a purged app's routes.
- The placement caller-census guard (TestEffectivePlacementIsTheOnlyRouteFallback) does not catch a hand-written loop over reg.List() that reads a route's fleet, or a bare-identifier routeFleet read.
- When an HA enable refusal and an analytics save failure happen together, only the HA flash shows. Showing both needs reviewed copy.
- Settings > General makes one extra manifest read per view (request-cached).
- Tests missing: a forged haregion without ha, and ha with both region and haregion (the code path is unambiguous).
- The pre-hook recorder does not witness Gets or snapshot the fleet registry. TestCreateAppHASendsTheFlag reads got without a mutex.
Write fence (g6-fence)
- A fence-cancelled wake latches no HA loss. The next request takes ordinary wake timing (up to about 30 s) and may get a 503 without X-Carlos-Holder while the store is out. No data risk.
- Residual (d): litestream's deferred checkpoint write can fence an instance that was idle when an outage started less than 1 minute after its last write. The drill's idle control idles more than 90 s.
- Paths that can set a non-stream class on an HA route without the CLI rail: wake-state import (ValidateHAWake/ReplaceHAWake), the registry's remote dispatch, and provision/reconcile.go:1068 marking an existing row HA whatever its class. Accepted: such routes are simply unfenced. The flagship class check before the first app covers it.
- markerPutHook is an unsynchronised package var restored in t.Cleanup. A litestream-internal race (DB.Close vs the snapshot monitor) shows under -race in TestWriteFenceArmedOnlyForHAStream's unarmed cases.
- recoveryprobe.go finishRecoveryProbe goes awake without reading e.writeFenced (claims path only). A trip that lands exactly as a clean finalization ends can latch an HA loss over a clean marker; it heals itself.