Repository navigation
Commit 7e88436
committed
fix(drift): a provider whose live listing was too short to trust is not a quiet day
Ported from fd867dc on drift/348-followup, with the one hunk that described the
floor as a family count rewritten to match this branch's MIN_LISTING_SIZE.
The stale-key preflight in fix-drift.yml is keyed on a machine line
(`unchecked-providers=<csv>`) and fails closed on an absent or unreadable one —
but the line was BUILT from an allowlist of the two skip classes someone had
thought of: a missing key, and an `infra error (status 40[123])`. Everything
else returned false, i.e. "this provider was checked and nothing drifted".
There is a third class. `detectDeprecatedFamiliesForSync` abandons the entire
deprecation half for a provider whose live `/models` listing comes back too
short to trust, and pushes that onto `outcome.skipped`. The allowlist did not
name it, so `unchecked-providers=` came back EMPTY, the workflow read the run as
a quiet day, and deprecations for that provider stopped being checked at all:
green, no alert, every morning, for as long as it lasted. The core loop's own
`?? "live listing unavailable"` fallback fell through the same hole.
Inverted rather than extended by one case, because extending an allowlist of
faults leaves the NEXT class invisible in exactly the same way. TRANSIENT is now
the allowlist (a 429 or a 5xx — those resolve on their own and must never red an
unattended cron) and every other reason, including one a later change adds,
counts as unchecked. An UNKNOWN must not collapse into the answer that passes.
RED, watched on this base, EXECUTED against the real sync step body with the
machine line built by the real emitter and the skip reason taken from the real
producer: the step republished reason=ok-no-churn and exited 0. GREEN: it
publishes provider-unchecked, exits 1 and names openai. Three mutations bound —
always-checked reds 5 cases, always-unchecked reds the transient negative
control (4), and dropping the 5xx arm reds the classifier agreement test.
This is the half that keeps the class self-reporting. It ships WITH the floor
fix and not without it: on its own, anthropic is under the floor on every run,
so it would publish unchecked-providers=anthropic and red the daily cron every
morning — OBSERVED by reverting the floor and re-running the recorded shape.
The two workflow messages and DRIFT.md no longer promise that the cause is a
credential to rotate; they point at the per-provider `[skipped]` reason in the
drift-sync-log artifact instead.1 parent a0da196 commit 7e88436
4 files changed
Lines changed: 144 additions & 39 deletions
File tree
- .github/workflows
- scripts
- src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| |||
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
235 | | - | |
| 239 | + | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| |||
1515 | 1519 | | |
1516 | 1520 | | |
1517 | 1521 | | |
1518 | | - | |
| 1522 | + | |
1519 | 1523 | | |
1520 | 1524 | | |
1521 | 1525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1085 | 1090 | | |
1086 | 1091 | | |
1087 | 1092 | | |
| |||
1094 | 1099 | | |
1095 | 1100 | | |
1096 | 1101 | | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1100 | 1108 | | |
1101 | | - | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
1102 | 1115 | | |
1103 | 1116 | | |
1104 | | - | |
1105 | | - | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
1106 | 1132 | | |
1107 | | - | |
1108 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1109 | 1140 | | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
| 1141 | + | |
| 1142 | + | |
1117 | 1143 | | |
1118 | 1144 | | |
1119 | 1145 | | |
1120 | 1146 | | |
1121 | 1147 | | |
1122 | 1148 | | |
1123 | | - | |
1124 | | - | |
| 1149 | + | |
| 1150 | + | |
1125 | 1151 | | |
1126 | 1152 | | |
1127 | 1153 | | |
1128 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1129 | 1158 | | |
1130 | 1159 | | |
1131 | 1160 | | |
1132 | 1161 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1162 | + | |
1136 | 1163 | | |
1137 | 1164 | | |
1138 | 1165 | | |
| |||
0 commit comments