ai_qc/backend/document_mode
nickviljoen a47be6f2fd feat(reports): surface est. cost + token usage on every per-analysis HTML
Standard QC reports (single + parallel) gain a 6th summary-grid card
"Tokens / Est. cost" showing aggregated token usage and a Gemini/OpenAI
priced estimate. Document-mode and document-diff reports gain a muted
footer line in the overall card matching the existing diff-report
"Tokens:" line.

New helpers in usage_tracker.py:
- estimate_cost(prompt, completion, provider) for single-call costs
- estimate_cost_for_checks(check_results) aggregating dict/list shapes

Cost rates already maintained in COST_PER_1K_TOKENS; no pricing change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 13:26:38 +02:00
..
data Add AXA document-mode QC pipeline (Phases 1, 3, 4, 5) 2026-05-01 18:38:14 +02:00
__init__.py Add AXA document-mode QC pipeline (Phases 1, 3, 4, 5) 2026-05-01 18:38:14 +02:00
accessibility_checks.py Wire veraPDF into axa_pdf_accessibility for PAC-equivalent PDF/UA-1 validation 2026-05-10 10:36:03 +02:00
checks.py Add AXA document-mode QC pipeline (Phases 1, 3, 4, 5) 2026-05-01 18:38:14 +02:00
diff_engine.py Add AXA document-mode QC pipeline (Phases 1, 3, 4, 5) 2026-05-01 18:38:14 +02:00
diff_report_writer.py feat(reports): surface est. cost + token usage on every per-analysis HTML 2026-05-19 13:26:38 +02:00
dispatcher.py perf(document-mode): parallelize per-page check dispatch in stages 3c/3d 2026-05-17 18:14:27 +02:00
ingest.py Add Boots Production Pack profile (multi-page document mode) 2026-05-05 12:47:13 +02:00
page_classifier.py Add Boots Production Pack profile (multi-page document mode) 2026-05-05 12:47:13 +02:00
print_preflight_checks.py Add AXA document-mode QC pipeline (Phases 1, 3, 4, 5) 2026-05-01 18:38:14 +02:00
result_writer.py feat(reports): surface est. cost + token usage on every per-analysis HTML 2026-05-19 13:26:38 +02:00