comicbox.formats.base.online.outcome_stats¶
source module comicbox.formats.base.online.outcome_stats
End-of-run outcome counters for online tagging.
Tracks how many comics fell into each match-resolution bucket across a run so the runner can print a summary like:
Online tagging summary: 16 auto-written 2 prompted (chose 1, declined 1) 3 skipped 1 no-match
Process-wide singleton; reset at the start of each Runner.run(). Thread-safe so -j N parallel batches contribute correctly.
Only the CLI prints any of this: Runner.run() is the sole caller of summary_lines(). An embedding application (codex) logs its own spend, so a counter an embedder needs has to be readable from api_snapshot() rather than waited for in a summary that is never printed there.