fabro/lib/apps/fabro-server/tests/it/api
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
..
auth_sessions.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
automations.rs Align remote workflow selectors with run targets 2026-08-31 17:13:20 -04:00
cli_auth_token.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
compression.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
docs.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
environments.rs Require a server-managed environment for automations 2026-08-30 09:58:13 -04:00
install.rs build: track Lithos git dependencies on branch main 2026-09-23 12:40:52 -04:00
install_openai_compatible.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
mcp_servers.rs Hand Petri the server's environment and MCP catalogs 2026-09-19 07:08:08 -04:00
mod.rs Run the server's lifecycle over platform records instead of run_events 2026-09-18 12:32:06 -04:00
petri_store.rs Prove the checkpoint hooks and the recovery protocol 2026-09-18 00:25:10 -04:00
routing.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
run_files.rs Resolve durable final patch blobs for Files Changed 2026-10-01 14:42:33 -04:00
runs.rs Remove the engine flag: every run is a Petri run 2026-09-18 09:58:21 -04:00
sandbox_vnc.rs Retire legacy manifest run creation 2026-09-13 08:49:50 -06:00
sessions.rs Reject bare provider names and unknown unpinned selectors 2026-10-20 13:16:51 -04:00
settings.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
system.rs Remove the engine flag: every run is a Petri run 2026-09-18 09:58:21 -04:00
tcp.rs Remove the engine flag: every run is a Petri run 2026-09-18 09:58:21 -04:00
variables.rs Build the run's display graph from Petri's admission 2026-09-19 11:41:58 -04:00