A design document is easy to mistake for a system. This page separates the two for this project, row by row, so that nothing on the other pages is read as more finished than it is.

Built and specified

PartStateWhere it is described
Page gate with seven outcomesin codeThe page gate
Normalisation and sec-line-cdc-v1 chunkingin codeChunking
Content-hash chunk ids, stored sources and chunks, retire and reactivatein codeChunking
Quote check and number check, with unverified values droppedin codeVerbatim quotes
Revision-locked writes, 409 on a stale formin codeWrite rules
Per-field origin, candidates, protection of human valuesin codeWrite rules
Readout as a job with a run id, heartbeat and stale-run refusalin codePipeline
One loader for the blog writer, card news and bannersin codeLoader and trace
Versioned retrieval config rc-0 and a trace saved with the outputin code, for three generatorsLoader and trace
Trace for detail pages and slidesnot built 
Skipping extraction for unchanged pagesspecifiedChunking
“Unknown” source status and retiring a page after two “gone” responsesspecifiedThe page gate
Local index, sparse and dense retrieval, rank fusionspecifiedHybrid retrieval
Generated query set and the offline evaluationspecifiedHybrid retrieval
Judging each generated claim against a chunkspecifiedLoader and trace
The blog writer’s older live fetch of the home pagestill in code, marked for removalPipeline

The ten regressions

The pipeline was built against a review of the earlier onboarding flow that listed ten failures. Each has at least one test that carries its number.

#What failedWhat fixed it
F1A late request from the browser reverted the customer’s correctionextraction applied on the server, human fields protected, revision-conditioned writes
F2Several stores on one marketplace host merged into one brandthe owner key includes the store path, and a bare marketplace host is refused
F3The model’s proof points became allowed facts with no source checkquote check, number check, drop
F4A failed save was shown as successthe run ends failed, and a retry applies
F5A re-read in another session overwrote human valuesthe origin of each field is stored on the server
F6Reading A, then B, then A let a stale result wina run id on the brand, checked at apply time
F7A blocked subpage’s body entered the extractor and the source listthe gate runs on every page
F8A near-empty JavaScript shell was reported as a successful readthin ends the run as no content, and the extractor is not called
F9Source addresses were lost, so evidence could not be re-checkedsources and chunks are stored, and evidence carries offsets
F10Card news lacked identity and products the customer had enteredthe facts port reads through the single loader

Two further problems are recorded in the code’s own comments and were fixed in the same work. A single extraction call covering every field was cut off at the token limit, so it was split into four groups with one retry each. A long synchronous request was closed by a proxy, so the readout became a job that returns at once and is polled.

CV lines and where they are shown

CV line, Brand knowledge pipelinePageNote
Read the AutoRAG lineage with its MinSync, Jikji and Jev components, and mapped each mechanism to adopt, adapt or exclude against one goalReading the lineage28 mechanisms: 16, 7 and 5
A fetch gate drops bot challenges and thin JavaScript shellsThe page gate 
Heading and line-hash chunking with content-hash idsChunkingan unchanged page writes nothing; it is still extracted
Extraction allowed only with a verbatim quote that code relocates and number-checksVerbatim quotes 
Optimistic-locked writesWrite rules 
A page that cannot be read is not deletedThe page gateit keeps its last good content
One loader for every generator under a single versioned retrieval configLoader and tracethe trace is per output
The hybrid sparse-and-dense stage is specified offline against a per-chunk QA set, starting without a rerankerHybrid retrievalspecified, not built

Numbers on these pages

Every number here is a constant or a count read from the code or the design: 300 and 1,500 characters, a modulus of 8, six chunks, 6,000 characters, 28 mechanisms. There are no quality measurements, because the stage that would produce them is not built.

The design document quotes memory and accuracy figures for learned sparse models and hybrid search. Those were measured by the AutoRAG and MinSync projects on their own data. Where one of them explains a decision I cite it as theirs.

Notes from the blog that touch the same questions: