[0.31.0] - 2026-04-27
Added
queryAllFromArchive(query)+archiveAvailable()(#82). New read-side entry point in@relayburn/ledgerthat issues SQL againstarchive.sqliteand returns the sameEnrichedTurn[]shape asqueryAll, so consumers (starting withburn summary) can swap implementations without touching their aggregation code. Filters land asWHEREclauses against indexed columns (ts,model,project_key,session_id,source, materialized enrichment columns); arbitrary stamp keys not promoted to columns fall back to ajson_extractoverenrichment_jsonto matchqueryAllsemantics. Tool calls are bulk-hydrated keyed on(source, session_id, message_id)so callers that readturn.toolCallskeep working without an extra round-trip. Fidelity is reconstructed from the persistedattribution_fidelity/tokens_present/cost_presentcolumns plus class-implied coverage defaults — class equality (the load-bearing parity contract forsummarizeFidelity) is preserved; the synthesized coverage shape may differ from the on-ledger blob for classes that don't pin every flag.