pub fn record_from_report(
report: &CompressionReport,
request_id: String,
timestamp: String,
project_hash: Option<String>,
) -> LedgerRecordExpand description
Builds the LedgerRecord for one CompressionReport, used both by the CLI’s post-run
ledger-recording hook and by ad-hoc tokenfold stats <report-glob> aggregation (turning a
standalone report file into the same shape). surface is derived from the report itself
("wrap" when CommandReport is present, "cli" otherwise) rather than passed in, so both
callers classify it identically.