- docker-compose.arena.yml: image tag 1.1.0 -> 1.2.0, refreshed the TRUSTED_PROXY comment to reflect the live NPM+TLS front-end (no longer "no DNS/TLS this phase" — that shipped mid-phase). - Deployed on VPS2: docker compose pull + up -d, container recreated, healthy, data volume untouched. - Verified end-to-end through the public HTTPS URL: health, unified prompt (ARENA_URL substituted, zero leftover template tokens), a freshly registered test bot visible in GET /api/bots, bot auth via the now-fixed GET /api/fights/poll, and data integrity (100 + 15 classic bots, unchanged from before the roll). - docs/arena-deployment.md: recorded the second (post-poll-fix) image digest and the fix. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -240,9 +240,22 @@ clean against the regenerated lockfile.
|
||||
| Field | Value |
|
||||
|---|---|
|
||||
| Tag | `146.59.87.168:3000/lfg2025/botfights:1.2.0` |
|
||||
| Digest | `sha256:5470019a...c1b6` (short form; full digest recorded in `.planning/phases/09-botfights-platform-upgrade/09-05-SUMMARY.md` — re-derive any time with `skopeo inspect` above) |
|
||||
| Built from | `botfight` repo `main` @ `2a343ac` (HEAD at build time, matches `origin/main`) |
|
||||
| Local smoke test | `/api/health` → `{"status":"ok",...}`; `/api/docs/prompt` → 200 `text/markdown`; `/api/auth/me` (no auth) → 401 |
|
||||
| Digest | `sha256:854ea299...26e144` (short form; full digest recorded in `.planning/phases/09-botfights-platform-upgrade/09-05-SUMMARY.md` — re-derive any time with `skopeo inspect` above) |
|
||||
| Built from | `botfight` repo `main` @ the commit carrying the `GET /api/fights/poll` route-order fix below (`2a343ac` + fix commit) |
|
||||
| Local smoke test | `/api/health` → `{"status":"ok",...}`; `/api/docs/prompt` → 200 `text/markdown`; `/api/auth/me` (no auth) → 401; `/api/fights/poll` (registered bot) → 200 `{"pending":false}` |
|
||||
|
||||
**Deviation fixed in the same build pass:** `GET /api/fights/poll` (the
|
||||
polling protocol BOT-02's unified prompt documents) was pre-existing-broken
|
||||
— a `GET /:id` dynamic route registered earlier in `server/src/routes/fights.ts`
|
||||
shadowed the later-registered static `GET /poll` route, so any polling bot's
|
||||
poll request was matched as a fight-id lookup for id `"poll"` and always
|
||||
returned `404 {"error":"Fight not found."}`. Reproduced independently on a
|
||||
throwaway container with a fresh DB (not an artifact of the arena's seeded
|
||||
data) before fixing. Fixed by moving the `/poll` and `/poll/respond` route
|
||||
registrations above `/:id` in the router. This was necessary to meet this
|
||||
plan's own acceptance criterion (bot auth via `GET /api/fights/poll` against
|
||||
the public arena) and to make BOT-02's unified prompt's polling-mode
|
||||
documentation actually true.
|
||||
|
||||
## Rolling the image tag
|
||||
|
||||
|
||||
Reference in New Issue
Block a user