Codex ReportingΒΆ
Last Updated: 2026-06-22
This guide documents how to generate audit trend reports and dashboards from the trend database produced by the audit pipeline.
InputsΒΆ
- Trend database: SQLite file created by the audit pipeline
(default:
audit_artifacts/trends.db). - Branch filter (optional): limit report data to a specific branch.
OutputsΒΆ
- JSON/YAML report payloads containing metadata plus summary, detail, or trend sections.
- HTML dashboard rendered from the trend payload.
- PDF (optional) rendered from the HTML dashboard if the PDF dependency is installed.
CommandsΒΆ
Generate a JSON summary report:
Generate a YAML trend report:
Generate an HTML report (dashboard view):
Generate the interactive dashboard directly:
Filter to a specific branch and custom DB path:
codex-report --format json --type detail \
--db-path audit_artifacts/trends.db \
--branch main \
--output reports/detail.json
Optional PDF OutputΒΆ
PDF generation requires an additional dependency:
If the dependency is missing, the CLI will exit with a clear error explaining how to install it.
Implementation StatusΒΆ
Current Phase: Phase 3 (Stub Implementation)
The codex-report and codex-dashboard commands are currently stubs that output
placeholder messages. Full reporting functionality will be implemented in Phase 3
of the project roadmap.
Planned FeaturesΒΆ
- Quality score trends over time
- Code smell metrics and visualizations
- Complexity charts and heat maps
- File-level drill-down capabilities
- Interactive HTML dashboards
- Export to JSON, YAML, HTML, and PDF formats
Related ScriptsΒΆ
The following existing scripts provide partial reporting functionality:
scripts/generate_audit_dashboard.py- Legacy audit dashboard generatorscripts/space_traversal/trend_dashboard.py- Trend analysis dashboardscripts/status/render_html_report.py- HTML status report renderer
These scripts will be integrated into the unified codex-report and
codex-dashboard commands in Phase 3.