mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-28 00:42:37 -04:00
Add a final verification step to the provider matrix that bypasses the whole API path: snapshot the combined server's bind-mounted sqlite store.db (with WAL/SHM sidecars) and run the operator-facing raw SQL double-check against agent_network_request_usage — recompute each row's expected cost band from its own token counts (cache bucket bounded by [all-cache-read, all-cache-write]) using rates hardcoded from the public price lists, and fail on any row outside the band. Gateway-prefixed model ids must store cost 0. Each audited row is logged as [sql] so the run output doubles as a billing report. Also trigger the Agent Network E2E workflow on pushes to this branch so every change gets a live matrix run without a manual dispatch.