Skip to content

Game catalog

The game catalog is the source and publisher of game data; the engine owns the games. A ranked game on BoardGameGeek becomes a candidate here, is enriched, reviewed by a person and then published to the engine. It implements the catalog API and has a database of its own.

Repository: stratastax-game-catalog (private).

Step Runs Result
1. Import ranking POST /pipeline/import-rankings The BGG ranking CSV as ranking entries, all or nothing
2. Enrich from BGG scheduled A candidate with BGG’s name, description, player count, image, …
3. Collect rules scheduled The rulebook, found with a web search
4. Interpret rules scheduled Score type and win condition, extracted by an LLM, with a reliability
5. Review POST /candidates/{id}/approve or /reject A reviewer approves, optionally overriding values
6. Publish scheduled The game or expansion in the engine

The reliability of step 4 compares what the LLM read with what BGG knows (player counts, playing time, …): HIGH when at least three fields agree exactly, LOW when any differs. The individual comparisons are on the candidate, so a reviewer sees why.

  • Small batches on a schedule. The whole ranking takes days to months, and that is fine.
  • Rate limits per external service (BGG, web search, LLM, engine), with the throttle of stratastax-http: calls wait, they are never rejected.
  • Circuit breaking. A 5xx, a 429 or an unreachable service suspends that step for 30 minutes, or for the Retry-After it sent. GET /pipeline/status shows it; POST /pipeline/pause and /resume stop and start steps.
  • Exactly once. Every publication carries the Idempotency-Key fixed at approval, so a retry never creates a duplicate in the engine.
  • Its own service account. It calls the engine with client credentials (role catalog-publisher), through the OIDC client of stratastax-security.
  • Tracing. OpenTelemetry over OTLP (quarkus.otel.exporter.otlp.endpoint, default localhost:4317): every API request is a trace with its statements as spans, grouped per transaction (stratastax.persistence.observability); X-Request-Id is echoed back. The scheduled pipeline steps run outside a request and are not traced (QueryTracingTest).

The features are bgg (the XML API and the ranking), websearch, ollama and rules (the LLM extraction and the reliability), candidate, artifacts (the raw responses, kept for review), engine (the client) and pipeline/workflow (the steps, the scheduler and its control).