pub fn table_instance_risks(
db: &Database,
records: &[CarvedRecord],
attributions: &[Attribution],
) -> Vec<TableInstanceRisk>Expand description
Per-record TableInstanceRisk, parallel to records and their
attributions — the Detector-A diagnostic pass.
A record trips TableInstanceRisk::RowidExceedsAutoincHighwater only when
ALL hold: it is Attribution::Known(table); table is an AUTOINCREMENT
rowid table (sqlite_core::is_autoincrement on its CREATE TABLE); table
has a sqlite_sequence entry seq (Database::sqlite_sequence); and
rec.rowid > seq. Every other record is TableInstanceRisk::None. This is
orthogonal to attribution — it reads the same inputs but never alters the
attribution, tier, or routing.