fabro/lib/apps/fabro-server/tests/it/scenario
Scott Werner 14584bbc32 Reject bare provider names and unknown unpinned selectors
Fabro's shared resolver passed any unknown bare selector through verbatim
to the highest-priority ready provider. A provider name in the model field,
such as `gemini`, is not a catalog model, so it took that path and reached
Anthropic with wire model `gemini`. The same path turned any typo into a
request on whichever provider happened to win priority.

An unqualified unknown selector is now an error. Passthrough of an
uncatalogued model id still works, but only with a provider pin, which is
also how the operator docs already described it. A bare provider name gets
a dedicated error that names the provider and says to pin it and omit the
model to use its default.

The completions endpoint returns that error as a 400 before any provider
call; the models lookup returns it as a 404. Session creation keeps its
own provider-name message and no longer passes unknown unpinned names
through either. The OpenAPI description of `CreateCompletionRequest.model`
no longer advertises a provider id as a selector, and the TypeScript client
is regenerated from it.

Closes #950 by rejecting the input rather than resolving it: a provider
name in the model position is ambiguous with model aliases, and no
comparable library resolves it to a provider default.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-20 13:16:51 -04:00
..
archive.rs Fix what the gates found after the removal sweep 2026-09-19 10:15:15 -04:00
dry_run.rs Reject bare provider names and unknown unpinned selectors 2026-10-20 13:16:51 -04:00
lifecycle.rs Delete fabro-core and the engine half of fabro-workflow 2026-09-18 10:44:41 -04:00
mod.rs Serve a Petri run's events as one stream with a stream_seq cursor 2026-09-18 00:47:26 -04:00
petri.rs Preserve completed run results when sandbox cleanup fails 2026-10-12 11:39:52 -04:00
petri_stream.rs fix: run built-in sandbox providers in process 2026-09-24 17:14:47 -04:00
run_completion.rs Delete fabro-core and the engine half of fabro-workflow 2026-09-18 10:44:41 -04:00
sse.rs Delete fabro-core and the engine half of fabro-workflow 2026-09-18 10:44:41 -04:00
usage.rs Carry usage as lithos-llm's Usage and rename billing to usage 2026-09-14 12:31:34 -06:00