Repository navigation
v0.1.0
REVISION-3 FINAL multi-tenant rewrite. Tasks T1–T25 all delivered on main.
Delivered scope
Schema / Store (T4-rework + collapsed migration T24): teams, api_keys, providers, model_aliases (composite PK with team_id), request_logs, usage_counters, quotas, model_costs. Migrations v1→v3 collapsed to single final-shape schema.
Inbound (T1 / T1.5 / T6 / T6.5): OpenAI Chat Completions /v1/chat/completions, Anthropic Messages /v1/messages, Bearer auth middleware + structured errors, lgw_ API key path + 60s TTL cache.
Routing (T2a / T3 / T5 / T18): Pass-through preferred over IR translation, DeepSeek provider (byte-fidelity body, URL+header swap), GLM/Zhipu provider, Router resolves model → (provider, upstream_model), Team-scoped alias resolution.
MCP (T7 / T8 / T9 / T22 / T23): MCP stdio server + declarative ACL registry, Provider + model-alias tools, Tenancy tools (team CRUD, key mgmt, quota, usage, logs), Team-scoped alias tools, Streamable HTTP MCP transport at /mcp.
Operations (T10 / T11 / T11.5 / T12 / T13 / T14 / T19 / T20 / T21 / T25): Quota middleware (RPM/day/month), init subcommand + persistent token + boot banner + mcp-config, DeepSeek + GLM model_costs seeded at startup, goreleaser + VERSION ldflags + Makefile + CI workflows, list_request_logs MCP tool, Usage counter write-back + cost tracking, Error reference table + SDK config + MCP tool listing in docs, GET /v1/models with sizing + pricing metadata, README v0.1 with quick start, 5 MCP client snippets, env vars.
Pre-work
- Task 0 wizard-of-oz validation (
docs/task-0-wizard-of-oz.md) - DeepSeek protocol spike (
docs/spikes/2026-05-13-deepseek-protocols.md) drove REVISION-2 (pass-through preferred over IR) - Three plan revisions: REVISION-1 (dual-protocol), REVISION-2 (pass-through), REVISION-3 FINAL (multi-tenant)
Outcome
v0.1.0 is the multi-tenant baseline that v0.2 (Launchability) and v0.3 (Cognitive Gateway) build on top of.