mix llm_db.history.backfill (LLM DB v2026.3.0)

Copy Markdown View Source

Backfills model history from committed provider snapshots.

The task walks git history for priv/llm_db/providers/*.json, computes model deltas per commit, and writes append-only history artifacts:

  • priv/llm_db/history/events/YYYY.ndjson
  • priv/llm_db/history/snapshots.ndjson
  • priv/llm_db/history/meta.json

Usage

mix llm_db.history.backfill
mix llm_db.history.backfill --force
mix llm_db.history.backfill --from <sha>
mix llm_db.history.backfill --to <ref>
mix llm_db.history.backfill --output-dir priv/llm_db/history

Options

  • --force - Remove existing generated history files first
  • --from - Start commit SHA/ref (inclusive)
  • --to - End commit SHA/ref (default: HEAD)
  • --output-dir - Directory for generated history files (default: priv/llm_db/history)