pub fn load_all_traces(
db_path: impl AsRef<Path>,
) -> Result<Vec<Trace>, StoreError>Expand description
Load every trace from the database in insertion (chain) order — used by tests and
operators to verify the hash chain with firstpass_core::verify_chain.
Operator-wide read: every trace across ALL tenants, in seq order.
This deliberately crosses tenant boundaries and must stay reserved for operator-scoped work
where a global view is intrinsic — namely verifying the single hash-chain, which spans every
tenant’s traces in one sequence (ADR 0004 §D3). For tenant-facing reads use
load_tenant_traces.
§Errors
Returns StoreError::Sqlite on a database error, or StoreError::Json if a stored
row is not valid trace JSON.