Menu

TypeScript Retrieval State Machine — 4 Failure Modes in Legal Contract Review
📰

TypeScript Retrieval State Machine — 4 Failure Modes in Legal Contract Review

DEV Community: typescript·MarenCrest5138·15 days ago
#stOWh3kQ
Long article (1388 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer: make retrieval recovery a per-document state machine, preserve the last verified index generation, and fail closed when a legal contract cannot be tied to its exact source revision. The deciding constraint is auditability, not raw query uptime. A workspace that quietly serves mixed revisions after a partial ingest is available in the least useful sense.

For an internal knowledge-base bot used during contract review, I would ship four explicit states: pending , verified , stale , and quarantined . Keep generation metadata beside every chunk. A query may read only one verified generation per contract, so recovery never creates a half-old, half-new answer context.

That sounds strict. Good.

Why recovery starts with the document generation

Retrieval-augmented generation separates the model's parametric memory from an external non-parametric memory.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.