pub fn trace_exists(
db_path: impl AsRef<Path>,
tenant: &str,
trace_id: &str,
) -> Result<bool, StoreError>Expand description
Whether a trace with trace_id exists and is owned by tenant — used to reject feedback
for unknown traces and, crucially, to deny cross-tenant feedback (ADR 0004 §D3/§D4). A trace
owned by another tenant is indistinguishable from a non-existent one here, so the caller can
return a 404 with no existence oracle.
§Errors
Returns StoreError::Sqlite on a database error.