Phase 3.5 extraction & assembly

Phase 3.5 — Risks and Mitigations

Risks for extraction worker + context assembly integration, including proxy hot-path latency, degradation ladder correctness, and cross-tenant isolation.

Phase 3.5 — Risks and Mitigations

RiskAreaLikelihoodImpactMitigation
Proxy hot-path latency regressionContext assembly + degradation ladderMediumHighHard latency budgets (40ms assembly target), async/timeout wrappers, and circuit-breaker behavior verified in integration tests
Degradation ladder fails closed or blocks responsesProxy integrationLowHighEnsure assembly failure never blocks LLM responses; verify each ladder level in fixtures with real dependencies
Wrong/unstable extraction output schemaWorker extraction + schema v2MediumHighContract tests against extraction output shape; reject invalid payloads with safe fallbacks
Cross-tenant memory leakage via orchestration codeWorker + context serviceLowCriticalISO-* cross-tenant test suite in CI; enforce org_id scope at every query path (not just at entrypoints)
MCP tool behavior diverges from API behaviorMCP Memory ToolsMediumMediumReuse the same service layer for MCP tools and API; golden tests for search_memory/write_memory/record_feedback
Cost-tiered extraction execution overloadProvider-agnostic executionMediumMediumStrict per-session/task timeouts; queue backpressure; bounded concurrency per cost tier
Dead-letter handling leads to permanent stalenessCelery tasksLowMediumDLQ observability + replay path; periodic sweeper to re-drive stalled extractions
Context packaging correctness regressionsDP packer + formatterMediumMediumGolden-output regression tests with contradiction fixtures; compare packed context to expected ordering
Edit on GitHub

Last updated on

On this page

No Headings