## Problem
FCC replaced the stable gateway model selected by Claude Code with the
provider-facing model when serializing Anthropic responses. Claude then
persisted an ID absent from FCC's `/v1/models` catalog, so later
sessions warned that the model could not be restored and fell back. This
partially addresses #1269.
## Changes
| Before | After |
| --- | --- |
| Provider streams, local optimizations, and local server-tool responses
exposed the routed upstream model. | Every Anthropic response path
receives and emits the original gateway model while upstream requests
retain the provider model. |
| Traces labeled the routed upstream ID as the gateway model. | Routing,
execution, provider, and token-count traces preserve both identities
accurately. |
| No contract guarded model identity across routing and response
serialization. | Tests cover executor handoff, upstream request bodies,
Anthropic `message_start`, local optimizations, and server tools; the
patch version is `4.12.10`. |
<…
Move protocol models to their protocol owners (#1044)
## Problem
Anthropic Messages and OpenAI Responses wire models lived under the
inbound API adapter. Neutral protocol and provider code therefore
duck-typed requests, obscuring ownership and weakening dependency
boundaries.
## Changes
| Before | After |
| --- | --- |
| The API package owned Anthropic and Responses protocol models. | Each
protocol package owns and publicly exports its wire models. |
| Core and provider request paths accepted `Any` and probed known fields
with `getattr()`. | Core, transports, and providers consume concrete
`MessagesRequest` values. |
| Responses conversion and streaming received a dumped request mapping.
| Responses conversion and streaming receive one concrete
`OpenAIResponsesRequest`. |
| Anthropic request snapshots lived in generic tracing code. | Anthropic
request snapshots live with the protocol while generic tracing stays
protocol-independent. |
| Protocol tests and provider request doubles reflected the old API
ownership. | Protocol tests live u…
Move runtime packages under src namespace (#1029)
## Problem
Runtime modules were published as generic top-level packages like `api`,
`cli`, and `providers`. That shape is fragile for PyPI packaging and
weakens explicit ownership boundaries.
## Changes
| Before | After |
| --- | --- |
| Runtime code lived in root-level packages. | Runtime code lives under
`src/free_claude_code/`. |
| Console scripts targeted top-level modules. | Console scripts target
namespaced modules. |
| Tests and smoke helpers imported old package roots. | Tests and smoke
helpers import `free_claude_code.*`. |
| Packaging listed six root packages. | Packaging builds the single
namespaced package. |
| Contracts allowed old root package directories. | Contracts require
the src namespace and reject old root imports. |
<!-- greptile_comment -->
<details open><summary><h3>Greptile Summary</h3></summary>
This PR moves the runtime packages into the `src/free_claude_code`
namespace. The main changes are:
- Console scripts now point to `free_claude_code.*` entrypoi…