Phase 3 memory engine

Phase 3 — Memory Engine and Operator Platform — Risks

Latency, security, and operational risks for the Memory Engine and Operator Platform phase.

Phase 3 — Risks

Phase 3 is the most complex roadmap phase. These risks are tracked during execution; mitigations link to milestones and SECURITY.md.

Critical path risks

RiskImpactMitigationOwner milestones
Context assembly p95 exceeds 50msProxy SLO breach; blocks Phase 3 exit40ms parallel retrieval deadline; directive-only fallback; load test in 3.9.23.5.1–3.5.7, 3.9.2
pgvector IVFFlat recall too low at scaleWrong memories injected; user trust lossTune lists/probes; benchmark 1M vectors; ADR-00353.3.4, 3.5.3
Memory extraction worker backlogLearning lag; stale agent contextCelery concurrency; DLQ alerts; idempotent tasks3.4.1–3.4.6
Hot cache drift from cold storeInconsistent injection vs search resultsRefresh on write; periodic reconciliation job3.3.5, 3.4.3

Security risks

RiskImpactMitigation
Prompt injection via stored memoriesAgent ignores directives; data exfiltrationQuarantine high-risk content; delimiter injection; treat memory as untrusted (SECURITY.md)
Cross-tenant memory leakCatastrophic isolation failureRLS + app-layer org filters; 35+ security tests extended in 3.9.1
PII in memory contentCompliance violationRedaction in write pipeline (3.3.2); quarantine workflow
PAT in dashboard bundleToken leak to browser storageServer-side session pattern in 3.8.1; no secrets in client bundles

Operational risks

RiskImpactMitigation
MinIO archive GDPR cascade failureOrphaned PII after org deleteEnd-to-end delete test in 3.7.3; runbook in incident response
Embedding service cold startMemory writes block on slow model loadReadiness probe waits for warm inference (3.2.1)
Management API scope creepDelayed dashboardStrict milestone boundaries 3.6.x; defer analytics depth to 3.6.7
Six new services in compose-devDeveloper onboarding frictionUpdate Docker Compose and make targets in 3.4.1

Exit gate dependencies

Phase 3 exit (3.9.3) requires all ten criteria on the phase index — including make e2e-smoke-p3 green and Phase 1/2 security regression pass.

If context assembly cannot meet p95 under 50 concurrent requests, do not declare Phase 3 complete; escalate in findings and revisit IVFFlat tuning or hot-cache strategy before Phase 4.

Edit on GitHub

Last updated on

On this page

0%