phase 2 single provider

Phase 2 — Decision Log

Quick decisions during Phase 2. Promote durable choices to `docs/adr/` when they affect multiple phases.

Phase 2 — Decision Log

Quick decisions during Phase 2. Promote durable choices to docs/adr/ when they affect multiple phases.

The Date column is the linked ADR acceptance date (not a separate planning-log date).

DateDecisionRationaleADR
2026-07-12LLM provider abstraction (provider.Provider, registry)Phase 4 multi-provider without rewriting proxy handlersADR-0025Accepted
2026-07-12OpenAI HTTP client, pooling, retry policyProduction-grade forwarding for first providerADR-0026Accepted
2026-07-22Streaming dual-write and backpressureReal-time SSE without buffering full body on hot pathADR-0027Accepted
2026-07-23Auth LRU + bloom filter cacheMeet <20ms proxy overhead under loadADR-0028Accepted
2026-07-19Token revocation via Redis pub/sub (token_id events)Meet 5s revoke exit gate without migrationADR-0029Accepted
2026-07-23Directive immutable versioning (active_version_id pointer)Safe rollback and cache keys without lost updatesADR-0030Accepted
2026-07-24System prompt injection orderingDirective precedes caller system messageADR-0031Accepted
2026-07-24Session and checkpoint data modelFoundation for Phase 3 memory extractionADR-0032Accepted
2026-07-25ClickHouse llm_traces schema and 90-day TTLAnalytics backbone without hot-path blocking; compose-dev CHADR-0033Accepted
2026-07-26Proxy overhead measurement methodologyReproducible p99 benchmark for exit gate; real package stages onlyADR-0034Accepted
2026-07-26Chat idempotency with optional Idempotency-KeyPrevent duplicate non-streaming completions with Redis claim/commit while failing open when Redis is unavailableADR-0035Accepted
2026-06-05Auth cache required in Phase 2 (not optional)Phase 2 latency budget impossible with per-request gRPC onlySee phase-1 decisions

Pending decisions (resolve during milestones)

  1. OpenAI API base URL — default https://api.openai.com/v1; document override for Azure in Phase 4.
  2. E2E smoke OpenAI key — sandbox key in CI secrets vs skipped required check (resolve in 2.6.2).

Log pivots in roadmap findings.

Edit on GitHub

Last updated on

On this page

0%