carlos / platform Public

taskmonger.bdk.oncarlos.com is a route on two boxes (annie and barbara), both publishing it as home, with no instance record open

Side finding from the console remote-instances investigation (2026-10-25, read-only).

  • annie-welding's registry has taskmonger.bdk.oncarlos.com with region "".
  • barbara-tinkering's (AU) registry has it with region au.
  • Both control/edges/annie-welding.json and control/edges/barbara-tinkering.json publish it as a home host.
  • There is no instance record for it under its app, so it is a hand route on both boxes, outside reconcile's authority.

Two boxes both claiming one host as home means the steering and edge folds may send a request to either, and the two copies have separate databases unless the app is stateless. This may be the shape #286 describes (writes lost across boxes), though #286 is about two boxes in one region with the claim off; here the boxes are in different regions, so it may be its own thing.

Console effect: the app pages show the annie route only (local row). Branch console-remote-instances does not change that, because remote rows come from instance records and this host has none.

Needs an owner's call: which box should serve it, and whether it should become a record.

Investigated read-only (2026-10-26): the CLI, the edges files, and the registries on annie and barbara through SSM (mode=ro). The diagnosis is different from the one above, and the URL is broken.

What these rows are

Both rows are the app's platform apex mint (platform=1, account bdk, app taskmonger), not hand routes. The domains pass mints <app>.<sqid>.<apps domain> for every app that has a real route. It copies the upstream from the app's first ready route on that box (internal/domains/reconcile.go, section 2, mintedRoute). It runs on whichever box holds the housekeeper lease, into that box's own registry. So an apex on two boxes, with no record, is the design: annie minted its copy on 2026-08-14, and barbara minted its own on 2026-09-09, when barbara held the lease. story.bdj.oncarlos.com has the same shape. DNS sends taskmonger.bdk.oncarlos.com to annie only (99.81.104.219), so barbara's copy gets no direct traffic.

What is actually wrong

The mint copies its source's socket path once and never refreshes it ("minting is additive... already minted, idempotent"). Both copies still name the instance socket layout from before the /run/carlos/instances/<host>/app.sock move:

| box | apex upstream | exists? | |---|---|---| | annie | /run/carlos/test1.bdk.oncarlos.com.sock | no | | barbara | /run/carlos/au.bdk.oncarlos.com.sock | no |

carlos availability --app taskmonger --account bdk --since 720h shows 18 × 502 "the instance refused the connection" on taskmonger.bdk.oncarlos.com (2026-10-23 16:03). The app's own hosts (test1, canary, au) are fine.

The same frozen-socket shape is on six more apex mints on annie, each naming an old-layout socket that does not exist (not checked against traffic): hello.bab, birthday-alarm.bab, infinity-home.bdy, infinity.bdy, correomona.bdx and woodstar-community.bdm (all .oncarlos.com).

Correct state

The apex should serve the app from the box its DNS names (annie), through the current socket of the route it was minted from (test1, on stable).

Supported command

None. This is a product gap. No member or console command rewrites a mint's upstream, and the box-local verbs have no --socket edit for an existing row. The real fix is a box change: domains reconcile re-copies a Platform mint's upstream when its source's upstream has moved (or when the mint's socket is no route's socket). That is out of scope for the console-only follow-ups and needs its own branch.

Workaround for Paul's approval (production change, not run)

Account keymail (271376211898). annie is i-092c0c1eea75723cb in eu-west-1; barbara is i-022288023f5e7496d in ap-southeast-2. Through SSM, as the carlos user:

# annie
sudo -u carlos carlos remove --registry /data/registry.db taskmonger.bdk.oncarlos.com
# barbara
sudo -u carlos carlos remove --registry /data/registry.db taskmonger.bdk.oncarlos.com

Effect: the two stale rows go. The next domains pass on the box holding the housekeeper lease re-mints the apex, on that box only, from the app's first ready route there, in host order. On annie that is canary.bdk (channel canary, build 3bbdafe), not test1 (stable, ee59628). So the apex would come back serving the canary build. If the housekeeper is a box with no bdk route (iris, adi), nothing is re-minted and the apex answers as an unknown host until annie next holds the lease.

My recommendation: leave the rows in place (the URL is already broken, and nothing better comes from a remove) and fix the mint refresh in code. Run the annie remove only if bdk wants the apex back sooner and accepts the canary upstream.

MERGED d3c5601b (2026-10-26), not released or rolled. Branch alias-socket-follow-338, Paul approved the box fix.

  • Same step: registry SetInstancePaths (nest, un-nest, journal recovery) and Upsert (move landing, re-mint, adoption insert, carlos add) carry the same tenant's platform aliases in the same transaction: those naming the row's previous socket or its other-layout socket. Another account's or app's alias never moves.
  • Repair: every domains tick (first about 1 min after start, then 5 min + jitter), on every platform box, a platform alias whose socket does not exist is repointed at the live socket of the one same-tenant route whose other-layout socket it names (RepointPlatformSocket re-checks tenant and sibling in its own transaction). Idempotent; logs agent: platform alias <host> repaired: ..., or once per agent start ... left as is: <why>.
  • Status: carlos status --layout shows these rows as alias, not external (which also tripped the mixed warning), with a REASON when the socket does not exist.
  • Tests: production-wired through the layout pass (nest, revert, crash recovery), stale-row repair with real sockets, cross-tenant guards, mutation-checked. Astra: READY AFTER FIXES, one P2 fixed; census approved (#280).

After the box release: expect repaired lines for taskmonger.bdk (annie and barbara) and the six annie apexes from #392 within a tick of the source being awake.

Follow-ups, not built: (1) an alias row has Hibernate false, so the edge never wakes a sleeping source through it (internal/edge/edge.go:943): the apex 502s while the source sleeps, even with the right socket. Found by reading the code. (2) an alias whose source has left the box stays stale and is logged.

Follow-up MERGED a55f0f23 (2026-10-26), not released or rolled: a platform alias now wakes its sleeping instance.

  • The edge resolves a ready platform alias to the one ready route of its own account and app on its socket, and serves it with that route's own entry (as attached hostnames #151 are served). The wake, lease, fence, gate and generation socket are the instance's, with no new wake path.
  • An alias is not served when its owner is not ready (moving, failed), two routes own the socket, or only another tenant's route does. It never falls back to a direct proxy. The edges file stops advertising such an alias.
  • Side effects, intended: the instance's password gate now applies to its alias (before, the alias bypassed it), and usage counts against the instance.
  • Cuts (Astra round 2, stopping rule 2): an alias keeps only its own prefix map, and a hostname attached to a platform alias gets no asset-cache block. Both match current behaviour.
  • Astra: rounds 1-2 NOT READY (fixed or cut), round 3 READY; census approved (#280). Production-wired tests, mutation-checked.

Release together with d3c5601b. After the roll, a request to a repaired apex of a sleeping app wakes it instead of answering 502.