page:docs-adr-adapters-proxy-disposition
ADR: disposition of `packages/adapters/proxy` (Python `adapters-proxy`) reference
packages/adapters/proxy was a separate Python package (adapters-proxy 0.4.9:
ADR: disposition of `packages/adapters/proxy` (Python `adapters-proxy`)
- Status: accepted — retire path (spec 20 WP-FN-24, orphan O6)
- Date: 2026-10-14
- Decides: whether the Python LiteLLM bridge stays in the platform
Context
packages/adapters/proxy was a separate Python package (adapters-proxy 0.4.9: FastAPI + LiteLLM, its own pyproject.toml, Dockerfile and docker-compose.yml, 25 pytest files) outside the TypeScript test lattice. No spec claimed it (spec 20 §3.2). Its README said it was "spawned on demand by adapters launch --with-proxy-if-needed". The TypeScript transport adapter (packages/adapters/transport, @fabricstack/model-gateway, spec 15 §3.1 row 19) is the named model gateway and carries the attestation seam (server.ts proxy attestation, WP-FN-03 H10).
Consumer search (AC1)
Executed on console/c2-a-journal (base 857d95fd0) with
git grep -n -I -E "adapters-proxy|adapters_proxy|with-proxy-if-needed|adapters/proxy" -- . ':!packages/adapters/proxy'and the Python-only form pip install adapters-proxy|python -m adapters_proxy|adapters_proxy|packages/adapters/proxy.
| Surface | Finding |
|---|---|
packages/kradle/charts | no reference |
.github/workflows | no reference; no job built, tested or published the package |
| Docker / compose outside the package | no reference; no image built from packages/adapters/proxy/Dockerfile |
Launcher (packages/adapters/launch/src/launch.ts) | --with-proxy-if-needed calls startTransportMuxRuntime from @fabricstack/model-gateway (launch.ts:23,999): the JS transport adapter, in process. Nothing spawns the Python package |
Kradle agent entrypoint (packages/adapters/cli/kradle-agent-entrypoint.mjs:224-231) | --with-proxy-if-needed "stands up the JS transport-mux" |
Triggers action / Azure pipeline (packages/adapters/triggers) | pass --with-proxy-if-needed to the launcher — the JS gateway |
adapters-proxy bin and atlas transport-runtime:adapters-proxy | the JS model gateway's runtime name (packages/adapters/transport), not the Python package |
packages/adapters/meta/github/workflows/{adapters-proxy-ci,publish}.yml | already titled "Archived:"; not under .github/workflows, never run |
packages/adapters/scripts/bump-version.sh | bumped a path (packages/adapters/adapters-proxy/...) that no longer existed |
| User/reference docs | described the Python bridge as the --with-proxy-if-needed backend and told users to pip install adapters-proxy — inaccurate |
History (docs/adapters/archive, research notes, .a5c/processes, packages/adapters/processes, specs) | design records and recorded process inputs; left as written |
No production consumer (deployment manifest, chart, workflow or runbook dependency) exists. The wire path's precondition is not met.
Decision
Retire the package (AC2):
are removed; the Python bump in packages/adapters/scripts/bump-version.sh is removed. History stays in git.
--with-proxy-if-needed backend (docs/user-guide/ecosystem/*.md, docs/user-guide/reference/adapter-types.md, docs/user-guide/architecture.md, docs/adapters/reference/10-cli-reference.md); the transport adapter's README and migration notes record the retirement; the atlas Hermes note points at the transport adapter.
tree returns or any active surface references the Python package.
packages/adapters/proxy/and the two archived workflows that only served it- User and reference docs now name the model gateway as the
scripts/check-adapters-proxy-retired.cjs(ci.ymltestjob) fails if the
**Exactly one model-proxy plane remains authoritative for attestation: the transport adapter (packages/adapters/transport, @fabricstack/model-gateway) (AC4).**
Capabilities only the Python package had
Recorded as transport-adapter backlog items, not silently dropped:
| Python capability | Transport adapter today | Backlog item |
|---|---|---|
| LiteLLM routing to 140+ providers | native engines (Anthropic, OpenAI, Google) and codecs (Anthropic, OpenAI chat/responses, Google, Bedrock); Vertex/Azure through configuration | add providers on demand through the model-route registry, not a LiteLLM dependency |
ollama serve lifecycle (providers/ollama_server.py) | launcher runs ollama pull (launch.ts:690); the gateway routes the ollama provider (server.ts:447) | start/stop a local Ollama server from the launcher when none is running |
in-memory response cache (cache.py) | none at the gateway (provider prompt caching only) | evaluate only with a measured need; caching completions can change agent behaviour |
pre/post-completion and pre-tool hook dispatch (hooks.py) | lifecycle hooks run in the harness hooks layer and the proof-based policy gates | none — the policy/hooks layers own this |
Consequences
platform neither launches nor documents it. PROXY_LAUNCH_FAILED now points at the in-process gateway.
(name, CI job, owner), per spec 20 WP-FN-24 AC3.
- One attested model-proxy plane; no Python runtime in the install.
- A user who pip-installed
adapters-proxyby hand keeps that copy; the - Re-entry (the wire path) needs a found consumer and a spec 15 amendment