Phase 3.5 — Tracks
Six execution tracks for extraction and context assembly.
Phase 3.5 — Tracks
Track A — Worker Infrastructure
Celery + Redis is the preferred starting worker stack for bounded extraction tasks. Alternatives (Temporal, Arq, Dramatiq) remain open for later investigation if workload shape changes.
Preferred sequencing within track: 3.5.A.1 → 3.5.A.2
Track B — Extraction Pipeline
LLM-powered memory extraction with structured output, cost-tiered execution, incremental turn tracking, and quality eval harness.
Preferred sequencing within track: 3.5.B.1 → 3.5.B.2 → 3.5.B.3 → 3.5.B.4 after Track A.
- 3.5.B.1 — Extraction Prompt v2 & Structured Output
- 3.5.B.2 — Cost-Tiered Extraction Execution
- 3.5.B.3 — Incremental Turn Tracking & Idempotency
- 3.5.B.4 — Extraction Quality Eval Harness
Track C — Context Assembly Engine
Token budget calculation, parallel retrieval, relevance-gated scoring, packing, context formatting, and gRPC service with degradation contract. Packer/scorer choices are planning defaults and should be validated against latency budgets.
Preferred sequencing within track: 3.5.C.1 → 3.5.C.2 → 3.5.C.3 → 3.5.C.4 → 3.5.C.5 → 3.5.C.6
- 3.5.C.1 — Token Budget Calculator
- 3.5.C.2 — Parallel Retrieval Orchestration
- 3.5.C.3 — Composite Scorer v2 (Relevance-Gated)
- 3.5.C.4 — Packer v2 (DP Knapsack)
- 3.5.C.5 — Context Formatter
- 3.5.C.6 — gRPC Service & Degradation Contract
Track D — Proxy Integration
Go gRPC client, handler wiring with fail-open semantics, response metadata, extraction enqueue, config/feature flags, and integration tests.
Preferred sequencing within track: 3.5.D.1 → … → 3.5.D.6 after Track C.
- 3.5.D.1 — Go gRPC Context Client
- 3.5.D.2 — Handler Wiring & Fallback
- 3.5.D.3 — Response Headers & Metadata
- 3.5.D.4 — Extraction Task Enqueue
- 3.5.D.5 — Config, Feature Flags & Env Vars
- 3.5.D.6 — Integration Tests
Track E — MCP Tool Surface
MCP tools backed by the same memory substrate as the proxy path, with observability and rate limiting.
Preferred sequencing within track: 3.5.E.1 → 3.5.E.2 → 3.5.E.3 → 3.5.E.4
- 3.5.E.1 — MCP Server Skeleton & Transport
- 3.5.E.2 — search_memory & write_memory Tools
- 3.5.E.3 — record_feedback Tool
- 3.5.E.4 — MCP Observability & Rate Limiting
Track F — Exit Gate
End-to-end learning-loop tests, cross-tenant isolation matrix, benchmark sign-off, and ADR index consolidation.
Preferred sequencing within track: 3.5.F.1 → 3.5.F.2 → 3.5.F.3 after Tracks A–E.
Last updated on