Decide scope for chat, gateway, and remote MCP hosting
Author: jmaglyCreated Sep 22, 2026Updated Sep 22, 2026
Depends on: #208; does not block #209, #210, or #212.
Decision record requested
Assess three separately deployable capabilities:
- Local model load/chat: operator use case, memory admission, idle eviction, concurrent callers, cancellation, and explicit caller-scoped handles. Do not use one process-global chat slot as in PR #206.
- OpenAI-compatible chat gateway: origin-bound credentials, anonymous mode, HTTPS/loopback policy, redirect rejection, bounded I/O, model-qualified responses, and untrusted metadata. Gateway chat does not imply access to editable weights. Avoid API keys in tool arguments, repo config, and logs.
- Remote Streamable HTTP MCP: authentication, per-request authorization, Host/Origin and DNS-rebinding protections, TLS, quotas, audit trail, egress controls, and caller-bound state handles. A transport toggle alone is not sufficient to expose the local server remotely.
Acceptance
Publish a short architecture/security decision for each capability with its owner, intended users, prerequisites, test strategy, and a separate implementation issue only if approved. No live gateway or remote-server claims are inferred from PR #206's offline tests.
Source: elder-plinius/OBLITERATUS