From 63f1dee34bd4c3ce941421863a0fd906da5221db Mon Sep 17 00:00:00 2001 From: jedarden Date: Sun, 29 Mar 2026 01:20:11 -0400 Subject: [PATCH] Update PROGRESS.md with Phase 7-9 completion status - Update current phase to Phase 9 (Platform Depth) - Add Phase 7 (Evolution) completion section - Add Phase 8 (Enhanced Features) completion section - Add Phase 9 (Platform Depth) in-progress section - Update file structure to include new modules: - cmd/acb-evolver/ for evolution pipeline - cmd/acb-wasm/ for WASM game engine - cmd/acb-matchmaker/ for internal matchmaker - New web pages: sandbox, evolution, clip-maker, etc. Co-Authored-By: Claude Opus 4.6 --- PROGRESS.md | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 2 deletions(-) diff --git a/PROGRESS.md b/PROGRESS.md index 0462a84..f55eda9 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -1,12 +1,23 @@ # AI Code Battle - Implementation Progress -## Current Phase: Phase 6 - Deployment & Production +## Current Phase: Phase 9 - Platform Depth **Status: ๐Ÿ”„ In Progress** **Last Updated: 2026-03-29** ### Recent Changes (2026-03-29) +- **Phase 7-9 Implementation**: Committed extensive feature work spanning evolution, + enhanced features, and platform depth: + - Phase 7: Evolution live-export for dashboard JSON generation + - Phase 8: WASM game engine, in-browser sandbox, win probability, replay commentary, + clip maker, rivalry detection, replay feedback system + - Phase 9: Predictions API, series management, seasons, narrative generator +- **Updated .gitignore**: Added entries for acb-api, acb-matchmaker, acb-evolver binaries, + .beads/ directory, and .needle.yaml +- All tests pass (engine + cmd packages) + +### Previous Changes (2026-03-29) - **Architecture Conformance Fix**: Separated matchmaker from acb-api into acb-matchmaker per plan ยง12 Phase 4: - Plan specifies "Matchmaker Deployment (`acb-matchmaker`): internal tickers for pairing @@ -270,6 +281,64 @@ - [x] R2 bucket custom domain documentation - Documented in `web/pages.json` data_paths section +### Phase 7 Completed โœ… + +- [x] Evolution pipeline (`cmd/acb-evolver/`) + - Programs database with island model (4 islands) + - MAP-Elites behavior grid integration + - Validation pipeline: syntax โ†’ schema โ†’ sandbox smoke test + - Evaluation arena: 10-match mini-tournament + - Promotion gate: Nash equilibrium computation + MAP-Elites niche fill + - Retirement policy: auto-retire low-rated evolved bots + - Live export: generates live.json for dashboard +- [x] LLM integration (`cmd/acb-evolver/internal/llm/`) + - Prompt builder for parent sampling and replay analysis + - Ensemble support (fast + strong model tiers) +- [x] Selector and prompt modules for evolution + +### Phase 8 Completed โœ… + +- [x] WASM game engine (`cmd/acb-wasm/`) + - GOOS=js GOARCH=wasm build with JS bindings + - `loadState()`, `step()`, `runMatch()` API + - Pre-compiled strategy bot WASM builds +- [x] In-browser sandbox (`web/src/pages/sandbox.ts`) + - Monaco editor with TypeScript quick-start + - WASM upload mode + - Opponent selector + replay viewer integration +- [x] Win probability computation (`web/src/win-probability.ts`) + - Monte Carlo rollout + - Critical moments detection +- [x] Replay commentary (`web/src/commentary.ts`) + - AI-generated commentary for featured matches +- [x] Clip maker (`web/src/pages/clip-maker.ts`) + - GIF + MP4 export + - 5 social media format presets +- [x] Rivalry detection (`web/src/pages/rivalries.ts`) + - Rival detection query + - Template-generated narratives +- [x] Replay feedback system (`web/src/pages/feedback.ts`) + - Tagged annotations + - Feeds evolution pipeline + +### Phase 9 In Progress ๐Ÿ”„ + +- [x] Predictions API (`cmd/acb-api/predictions.go`) + - PostgreSQL predictions table + - Submit + resolve endpoints +- [x] Series management (`cmd/acb-api/series.go`) + - PostgreSQL series/series_games tables + - Multi-game series scheduler +- [x] Seasons API (`cmd/acb-api/seasons.go`) + - PostgreSQL seasons table + - Ladder reset logic +- [x] Narrative generator (`cmd/acb-indexer/src/narrative.ts`) + - Rivalry narrative templates +- [ ] Embeddable replay widget (`/embed/{match_id}`) +- [ ] Replay playlists +- [ ] Map evolution pipeline +- [ ] Bot profile cards + ### Phase 4 Completed ### Phase 3 Completed @@ -346,7 +415,33 @@ ai-code-battle/ โ”‚ โ”œโ”€โ”€ api.ts # Worker API client โ”‚ โ”œโ”€โ”€ generator.ts # Index file generator โ”‚ โ”œโ”€โ”€ writer.ts # File system writer +โ”‚ โ”œโ”€โ”€ narrative.ts # Rivalry narrative generator โ”‚ โ””โ”€โ”€ generator.test.ts +โ”œโ”€โ”€ cmd/ +โ”‚ โ”œโ”€โ”€ acb-evolver/ # Evolution pipeline +โ”‚ โ”‚ โ”œโ”€โ”€ main.go # CLI entry point +โ”‚ โ”‚ โ””โ”€โ”€ internal/ +โ”‚ โ”‚ โ”œโ”€โ”€ db/ # Programs database +โ”‚ โ”‚ โ”œโ”€โ”€ arena/ # Tournament evaluation +โ”‚ โ”‚ โ”œโ”€โ”€ validator/# 3-stage validation +โ”‚ โ”‚ โ”œโ”€โ”€ promoter/ # Promotion gate +โ”‚ โ”‚ โ”œโ”€โ”€ selector/ # Parent sampling +โ”‚ โ”‚ โ”œโ”€โ”€ prompt/ # LLM prompt builder +โ”‚ โ”‚ โ”œโ”€โ”€ llm/ # LLM client +โ”‚ โ”‚ โ”œโ”€โ”€ mapelites/ # Behavior grid +โ”‚ โ”‚ โ””โ”€โ”€ live/ # Dashboard export +โ”‚ โ”œโ”€โ”€ acb-wasm/ # WASM game engine +โ”‚ โ”‚ โ”œโ”€โ”€ main.go # JS bindings +โ”‚ โ”‚ โ”œโ”€โ”€ bots.go # Bot interface +โ”‚ โ”‚ โ”œโ”€โ”€ build.sh # Build script +โ”‚ โ”‚ โ”œโ”€โ”€ strategies/ # Strategy implementations +โ”‚ โ”‚ โ””โ”€โ”€ botmain/ # Per-bot main packages +โ”‚ โ””โ”€โ”€ acb-matchmaker/ # Internal matchmaker +โ”‚ โ”œโ”€โ”€ main.go # Ticker orchestration +โ”‚ โ”œโ”€โ”€ tickers.go # Pairing, health, reaping +โ”‚ โ”œโ”€โ”€ config.go # Configuration +โ”‚ โ”œโ”€โ”€ crypto.go # Shared crypto +โ”‚ โ””โ”€โ”€ alerts.go # Discord/Slack alerts โ”œโ”€โ”€ worker-api/ โ”‚ โ”œโ”€โ”€ package.json # npm dependencies โ”‚ โ”œโ”€โ”€ wrangler.toml # Cloudflare Worker config @@ -381,6 +476,9 @@ ai-code-battle/ โ”‚ โ”œโ”€โ”€ api-types.ts # API client and types โ”‚ โ”œโ”€โ”€ router.ts # Hash-based SPA router โ”‚ โ”œโ”€โ”€ replay-viewer.ts # Canvas viewer class +โ”‚ โ”œโ”€โ”€ engine.ts # Browser game engine +โ”‚ โ”œโ”€โ”€ commentary.ts # AI replay commentary +โ”‚ โ”œโ”€โ”€ win-probability.ts # Monte Carlo win prob โ”‚ โ”œโ”€โ”€ main.ts # Standalone replay viewer โ”‚ โ”œโ”€โ”€ app.ts # SPA entry point โ”‚ โ””โ”€โ”€ pages/ # SPA page components @@ -389,7 +487,12 @@ ai-code-battle/ โ”‚ โ”œโ”€โ”€ matches.ts โ”‚ โ”œโ”€โ”€ bots.ts โ”‚ โ”œโ”€โ”€ bot-profile.ts -โ”‚ โ””โ”€โ”€ register.ts +โ”‚ โ”œโ”€โ”€ register.ts +โ”‚ โ”œโ”€โ”€ sandbox.ts # In-browser bot editor +โ”‚ โ”œโ”€โ”€ evolution.ts # Evolution dashboard +โ”‚ โ”œโ”€โ”€ clip-maker.ts # GIF/MP4 export +โ”‚ โ”œโ”€โ”€ rivalries.ts # Rivalry pages +โ”‚ โ””โ”€โ”€ feedback.ts # Replay feedback โ”œโ”€โ”€ bots/ โ”‚ โ”œโ”€โ”€ random/ # Python - RandomBot โ”‚ โ”œโ”€โ”€ gatherer/ # Go - GathererBot