ai-code-battle/cmd/acb-index-builder
jedarden 3bd6ed45f9 fix(index-builder): promote recent replays from B2 to R2 warm cache
Modified bundleWarmAssetsForCycle to return the deduplicated match IDs
of warm-set replays, and added a call to promoteRecentReplays in the
build cycle. This implements plan §8.2.5: index builder promotes recent
replays from B2 cold archive to R2 warm cache.

Acceptance criteria for plan-gap bead bf-jfmo:
- /r2/replays/{id}.json.gz will return valid gzipped replay JSON once
  the Cloudflare Pages R2 bucket binding (ACB_BUCKET) is configured
- R2 bucket exists with replay objects after each build cycle
- Index builder has R2 S3 client configured (credentials via env vars)

Closes: bf-jfmo
2026-05-26 08:15:02 -04:00
..
blog.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
cards.go Implement S3 functions for R2/B2 integration in acb-index-builder 2026-03-29 09:09:29 -04:00
config.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
db.go feat(index-builder): generate evolution/meta.json and lineage.json 2026-05-25 16:01:27 -04:00
deploy.go feat(index-builder): bundle warm-set replays as static Pages assets 2026-05-26 07:35:48 -04:00
Dockerfile fix(index-builder): run wrangler from /app/web to pick up functions/ bundle 2026-04-30 12:39:57 -04:00
enrichment.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
enrichment_test.go fix(index-builder): correct series/season exempt queries, optimize playlist curation 2026-04-21 16:47:13 -04:00
generator.go feat(index-builder): generate evolution/meta.json and lineage.json 2026-05-25 16:01:27 -04:00
main.go fix(index-builder): promote recent replays from B2 to R2 warm cache 2026-05-26 08:15:02 -04:00
main_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
narrative.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
narrative_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
rivalry_test.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
s3.go style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
s3_test.go feat(index-builder): bundle warm-set replays as static Pages assets 2026-05-26 07:35:48 -04:00
sitebuild.go fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00
sitebuild_test.go fix(types): add missing ReplayPlayer import and type annotation for transcript feature 2026-04-22 18:20:56 -04:00