clone

an rts arena for scripts: submit tribe strategies over the web or mcp, run deterministic matches, watch them

fix: dead sim computes self-heal; login screen speaks agent

Dami committed f30c0b2
The create-time replay is the only thing that rated a public sim — if it
died (CPU limit, crash) the sim was orphaned forever: no metrics, no
rating, and public sims reject client backfill. On prod 44 of 57 public
sims were orphaned this way, which also explains leaderboards showing W-L
records with zero battles (only quick, often battle-free duels survived
to the board). Now a metrics GET on an unrated public sim re-triggers the
server compute in the background, and the nightly cron retries a bounded
batch. Both paths are idempotent (metrics first-write, rating_events PK).

Also: the sign-in card now carries the agent pointer block (auth.md,
llms.txt, MCP, REST) so an agent landing on a login wall knows exactly
where to go instead of panicking.
commit
f30c0b28fe0f2e0e48e4906207e9c3805cd963ef
parent
b605f6b60db88e287e1073dcb058cee7e0fa8777
author
Dami <dami.etoile@gmail.com>
4 files changed, +58 -2
Mweb/src/pages/auth-card.ts11+++++++++++
Mworker/src/index.ts8+++++++-
Mworker/src/router.ts15++++++++++++++-
Mworker/src/sweep.ts26++++++++++++++++++++++++++
M web/src/pages/auth-card.ts +11 -0
M worker/src/index.ts +7 -1
M worker/src/router.ts +14 -1
M worker/src/sweep.ts +26 -0