Skip to content

Risk register

Risks are numbered stably across revisions; closed risks are kept (struck through), not deleted. Source: architecture-docs/code-indexer-expanded-architecture.md, Appendix B (risks 1–8 belong to the approved baseline documents).

# Risk Severity Mitigation / status
9 ~~Reranker latency/memory unacceptable on developer laptops~~ Closed (M4) Confirmed by measurement: 13.4 s p95 per reranked query even on a T4 GPU at fp32. Resolved by ADR-35: default-off / per-request opt-in; lazy load + enabled=false kill switch keep memory cost at zero unless opted in
10 ~~Hosted embedder leaks sensitive content off-machine~~ Closed (rev 2) Eliminated at the source: hosted embedding rejected per ADR-25. Residual guard: CI grep for HTTP clients in core/; dependency-addition rule
11 ast-grep vs tree-sitter-language-pack language-name drift Low Single explicit LANGUAGE_MAP; clean unsupported-language error
12 ~~Git fast-path silently wrong after history rewrite~~ Closed (M7) Anchor validity is git merge-base --is-ancestor <anchor> HEAD (a rewritten-away anchor fails ancestry even before gc) → silent full-walk fallback; hash still confirms every candidate; every fallback condition has its own test asserting identical final partitioning (ADR-37)
13 MCP v2 stable (2026-07-28) breaks transports mid-build High Scheduled M9 checkpoint; hard pins (mcp<2); FastMCP owns the mcp range; transport integration tests as the tripwire
14 Scope expansion erodes the M3 evaluation discipline Medium The gate is a named milestone exit criterion; M4 explicitly blocked on it; the /eval harness makes re-measurement one keystroke
15 Lesson store degrades: context bloat, stale lessons, or a persisted rationalization that weakens discipline Medium 15-lesson hard cap forcing promote-or-retire; lessons subordinate to the hard rules by construction; committed LESSONS.md gets PR review; human-only promotion to permanent rules
16 Shared-server topology makes one process a single point of failure for every agent Medium Introduced deliberately by ADR-86 — each agent used to be independent. Accepted because a standalone agent costs ~1.14 GB of unshared model memory (ten agents ≈ 13.4 GB against ≈ 3.1 GB shared). The shim probes before proxying and re-elects on a dead endpoint, so a crash costs one cold start rather than a wedged fleet; --no-spawn suits operators who supervise the server themselves; and standalone remains the default
17 A future change reintroduces the shared-client race, which is silent and latching Medium The defect class that survived six review rounds, because the damage is wrong results rather than exceptions. Three layers: the design makes a raw client unreachable from search code; CI greps forbid constructing a client or building a models.Document outside their owners (ADR-83); and the regression tests assert correct results rather than the absence of exceptions — the missing oracle was the actual root cause

See Lessons for how risk 15's guardrails work in practice.