Repository navigation
Conversation
bruh code review: ACK
Spend: 7 min · 10.1M tokens (10.0M input, 94% cached, 108k output) · 4 agents, 103 model calls Open findings:
Lenses
History:
|
…and refuse NewModel
…ev for gemini-decision-1
| `WithMaxTokens` defaults to a bounded 4096 tokens (including reasoning), capped at the offering's output limit. Temperature is validated against the offering's range. `WithReasoningEffort` accepts only the selected binding's exact list; DeepSeek `none` maps to disabled thinking on Messages/Chat. MiniMax exposes `WithThinking(true)` for adaptive thinking and `WithThinking(false)` to disable it, without invented budgets or Claude-specific controls. MiniMax Messages with explicit `WithThinking(false)` reports `StructuredOutput == false` and rejects schema requests before HTTP: native testing observed broken schema enforcement with that combination. Omit the thinking override or use adaptive thinking for schema output; both configurations passed actual SDK tests in both modes. The native catalog/API schema capability remains true. Foreign `Request.Options` are rejected rather than silently ignored; configure these controls at model construction. Responses always sends `store: false`. No automatic Anthropic cache markers are added; authoritative native cache usage is preserved. Priority, speed, thinking budgets, top-p, stop controls, and provider-hosted tool search are not exposed by this runtime. | ||
|
|
||
| Resolution is exact, including exact authored aliases. An unlisted date suffix, deployment, router, shorthand, or `*-latest` alias must not inherit the base model's API support or price. No moving aliases are currently registered. Router variants, US-only capacity, custom/private/fine-tuned deployments, batch, embeddings, and decision-only models are outside this catalog's supported contract. Messages support does not advertise native count-tokens: the observed `/inference/v1/messages/count_tokens` endpoint returned 404. Hosted `ToolSearchProtocol` remains empty; ordinary tools and Fireworks' client-side deferred-tool compatibility do not establish provider-hosted tool execution. | ||
| Resolution is exact, including exact authored aliases. An unlisted date suffix, deployment, router, shorthand, or `*-latest` alias must not inherit the base model's API support or price. No moving aliases are currently registered. Router variants, US-only capacity, custom/private/fine-tuned deployments, batch and embeddings are outside this catalog's supported contract. Rune 26B-A4B (`ModelRune`) is catalogued decisions-only, for discovery and pricing: its `WireAPIs` are `typesafe_systemone` (`/inference/v1/systemone`) and `openai_decisions` (`/inference/v1/decisions`), its per-API records withhold every generative feature, and `NewModel` refuses it with `catalog.ErrDecisionsOnly`. This SDK has no decisions client. Messages support does not advertise native count-tokens: the observed `/inference/v1/messages/count_tokens` endpoint returned 404. Hosted `ToolSearchProtocol` remains empty; ordinary tools and Fireworks' client-side deferred-tool compatibility do not establish provider-hosted tool execution. |
There was a problem hiding this comment.
README still excludes US-only capacity, but catalogued Rune runs on US capacity (unverified)
The scope sentence the PR edits keeps "Router variants, US-only capacity, custom/private/fine-tuned deployments, batch and embeddings are outside this catalog's supported contract" and then, in the next sentence, catalogues Rune. The pricing section the Rune entry cites for its rates says Rune runs on US capacity. The same README and reconciliation.json withhold muse-spark-open for exactly that property (us_only_capacity), whose pricing note has the same shape (US capacity, no premium charged). After this PR the record says US-only capacity is out of scope while an in-scope offering is served that way, and nothing in the entry comment, README, hosts/fireworks.md or the PR description records Rune's capacity or why it is an exception. A reader, or a reconcile run deciding muse-spark-open or the next US-capacity model, gets two contradictory precedents. Uncertainty: the page says "US capacity" for Rune and "US-only capacity" for Muse Spark Open; I could not confirm whether Fireworks means a different thing by the two wordings, hence low.
Fix:
Record Rune's US capacity in the README scope sentence and the entry's source comment, and either narrow the exclusion to US-only variants that have their own ID and price beside a global offering, or state why Rune is the exception to it.
Evidence
providers/fireworks/README.md:34 ("Router variants, US-only capacity, ... are outside this catalog's supported contract. Rune 26B-A4B (ModelRune) is catalogued decisions-only ..."); providers/fireworks/README.md:62 ("muse-spark-open | Published rates but US-only capacity; deferred deployment/billing surface"); providers/fireworks/README.md:70 ("US-only variants not returned in the default listing | Separate capacity and prices; deferred"); providers/fireworks/testdata/discovery/reconciliation.json:25 (muse-spark-open withheld, reason us_only_capacity); providers/fireworks/models.go:123-125 cites https://docs.fireworks.ai/serverless/pricing.md, Decision models, for Rune's rates. That page, fetched 2026-11-22, line 69: "Rune runs on US capacity. There is no US-capacity premium, so the rates above are what you pay." and line 57: "Muse Spark Open runs on US-only capacity. The 50% US-only premium is waived, so the rates in that row are what you pay."
intent/docs · lens intent · F1
| api, ok := firstGenerativeWireAPI(offering) | ||
| require.True(t, ok) |
There was a problem hiding this comment.
Expected binding now computed by the helper under test (unverified)
TestRuntimeMetadataIsSelectedAndNotCatalogMutation used to take its expected binding from the catalog (api := offering.WireAPIs[0]) and now takes it from firstGenerativeWireAPI(offering), the same function newModelFromOffering uses to select the binding. The capability, reasoning-effort and SupportedParams assertions that follow therefore compare the factory against its own selection: a regression in the helper that picks a different binding for a real catalogue offering moves expectation and result together, and the walk over the real catalogue stays green. Impact is limited: TestFactoryRefusesDecisionsOnlyOfferings pins skip-not-select and no-fallback with literal bindings on synthetic offerings, so only a helper regression those two shapes miss gets through, which is why this is low.
Fix:
Compute the expectation in the test without the helper: i := slices.IndexFunc(offering.WireAPIs, func(a catalog.WireAPI) bool { return !a.Protocol.IsDecisions() }) and use offering.WireAPIs[i], or keep offering.WireAPIs[0] behind a require.False(t, offering.WireAPIs[0].Protocol.IsDecisions()).
Evidence
providers/fireworks/provider_test.go:73 api, ok := firstGenerativeWireAPI(offering); providers/fireworks/provider.go:137 api, ok := firstGenerativeWireAPI(offering) (same helper, defined at provider.go:222). Old line in the diff: api := offering.WireAPIs[0]. Independent pins: providers/fireworks/provider_test.go TestFactoryRefusesDecisionsOnlyOfferings (literal [decisions[0], responses, decisions[1]] and [decisions[0], gemini, responses] cases). No catalogued Fireworks offering mixes a decisions binding with a generative one today, so the literal WireAPIs[0] is still correct for every non-decisions-only offering.
tests/vacuity · lens tests · F2
| // https://fireworks.ai/models/fireworks/rune (read 2026-11-22): Metadata | ||
| // lists "Provider: Fireworks" and "Huggingface: surogate/rune-26b-a4b-GGUF". | ||
| // Only its meta description (the opening quote of rune.md) says "from | ||
| // Surogate". |
There was a problem hiding this comment.
Publisher evidence cites an unresolvable 'rune.md' (unverified)
The comment that justifies PublisherFireworks for Rune says the only source naming Surogate is "the opening quote of rune.md". No file of that name exists in the reviewed tree and no URL is given for it, so a reader checking the publisher attribution (which is what adds the fireworks reconcile leg) cannot tell which document is meant. Every other citation in this comment and in the Rune entry is a full URL with a read date.
Fix:
Replace "rune.md" with the full URL of the document meant (for example the model page's .md export), or drop the parenthetical.
Evidence
catalog/facts_data.go:192-195: // https://fireworks.ai/models/fireworks/rune (read 2026-11-22): Metadata lists "Provider: Fireworks" and "Huggingface: surogate/rune-26b-a4b-GGUF". Only its meta description (the opening quote of rune.md) says "from Surogate". git grep -n 'rune\.md' 2e2f5648 returns this line only. Presumably the model page's markdown export; not confirmed.
maintainability/comments · lens maintainability · F3
What
Catalog support for decision models: three decisions wire protocols, the Decisions API on
gpt-6-luna, and two decisions-only models (gemini-decision-1and Fireworksrune).Changes
openai_decisions,gemini_decisionsandtypesafe_systemone; an offering whose wire APIs are all decisions protocols is decisions-onlyMaxOutputTokens0, aRateFreeoutput rate and no output modality; generative entries keep today's rulescatalog.ErrDecisionsOnly, because cloudv2's agent admission relies onNewModelfailing for a model that cannot run an agentmax_output_tokens0 and an emptymodalities.output, so consumers must not read 0 as missing metadata or assume an output modalitygpt-6-lunakeeps its rate card: Decisions bills the same input and cache rates and reports zero output tokensnot_callable, and a person adds one in a reviewed PRfireworksleg to the reconcile workflow. Fireworks' model page names Fireworks as Provider and lists the Hugging Face repositorysurogate/rune-26b-a4b-GGUFReferences