Full pipeline to reproduce the native bridge state classification (BS1 / BS2) served by Invarians for Arbitrum, Base and Optimism. Calibrated using a P97 over 30 days of collector signals with deterministic, published guard rails.
ans_bridge_signals.last_batch_age_seconds, elapsed time since the last L1 commitment of an L2 batch.bridge_thresholds table, one row per physical bridge.ans_bridge_signals, computes P97 per chain, applies guard rails, updates thresholds.migration_bridge_thresholds.sql to a Postgres instance.calibrate_native_p97_30d.sql as a transaction.expected_thresholds.md.ans_bridge_signals table with the declared schema.calibrate_native_p97_30d.sql.expected_thresholds.md.p97_s IS NULL — chain has no usable samples.n_samples < 1000 — not enough support for a stable P97.days_span < 25 — not enough time coverage inside the 30 day window.