Keep the Fireworks poll when one model's metadata is forbidden #359
main fromfix/358-fireworks-metadata-403·merged by tombeckenham View on GitHubCloses #358
Problem#
Since 2026-10-19 15:48 UTC every Fireworks poll fails with ingest_failed:
fetch failed: https://api.fireworks.ai/v1/accounts/fireworks/models/minimax-m3p1-flash → 403 Forbidden
Fireworks now lists minimax-m3p1-flash but returns 403 for its native metadata. I reproduced this with our key: minimax-m3 and deepseek-v4p1-flash return 200. fireworksHostedReasoning loaded that metadata outside tryDocs. One model's failure therefore failed the whole provider poll, and all 21 Fireworks rows stopped updating.
Fix#
fireworksHostedReasoning now takes the adapter's DocsRun and loads through tryDocs, as CLAUDE.md requires for docs loads. When a load fails:
- That row gets
absent: { capabilities: 'unavailable' }, so the poller keeps the stored capabilities map. - The failure is counted in
docsFailures. It still emitsingest_failedand setsdocsFailingon/v1/status.
No value is filled in. The parser stays strict, and the listing itself is still unwrapped.
Test#
host-native-reasoning.test.ts covers one model whose metadata returns 403:
- That row comes back marked unavailable and the run records the failure.
- The next model is still read.
The test fails on main. bun run test (2061 passed), lint, typecheck and check all pass.
Review notes (non-critical, not changed here)#
- The whole map is frozen, not just one flag.
absentworks per fact, not per flag. On a failed load the row keeps its whole stored capabilities map, so this poll's listing flags (e.g.tools) are dropped for that row. A row first seen while it 403s (asminimax-m3p1-flashis now) is stored withcapabilities: nulluntil the 403 clears. The documentedunavailablecontract says exactly this. The alternative is to treat a 403 as "states nothing" and return the row unchanged. That would decide that a 403 means no statement, which is a judgement for the owner. - A 403 that never clears keeps the alarm on. Failures are not cached, so every poll re-fetches.
docs-failing:fireworksandingest_failedstay on until Fireworks opens the endpoint or drops the id. That is visible on purpose. - No adapter-level test. Nothing asserts that
listModelssurvives the 403. The newrunparameter is required, so the wiring is checked by types, anddocsReportreads the same run.
🤖 Generated with Claude Code
- 1
tombeckenham merged thisb52e5d2
tombeckenham closed this
Sign in to join this conversation.
Triage summary#
minimax-m3p1-flash) returns 403 on its native metadata. That failed the whole Fireworks poll every 15 minutes, and all 21 rows had been frozen since 15:31 UTC.tryDocswrap around an existing load (+~20 lines in src).ingest_failed+docsFailing, and the row keeps its stored capabilities per theunavailablecontract.fireworksHostedReasoningis internal and its only caller is updated.tryDocs, the listing stays unwrapped, parsers stay strict, a focused test sits outsidesrc/routes, and the full checks pass.Generated by Claude Code