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
| Part | State | Where it is described |
|---|---|---|
| Page gate with seven outcomes | in code | The page gate |
Normalisation and sec-line-cdc-v1 chunking | in code | Chunking |
| Content-hash chunk ids, stored sources and chunks, retire and reactivate | in code | Chunking |
| Quote check and number check, with unverified values dropped | in code | Verbatim quotes |
| Revision-locked writes, 409 on a stale form | in code | Write rules |
| Per-field origin, candidates, protection of human values | in code | Write rules |
| Readout as a job with a run id, heartbeat and stale-run refusal | in code | Pipeline |
| One loader for the blog writer, card news and banners | in code | Loader and trace |
Versioned retrieval config rc-0 and a trace saved with the output | in code, for three generators | Loader and trace |
| Trace for detail pages and slides | not built | |
| Skipping extraction for unchanged pages | specified | Chunking |
| “Unknown” source status and retiring a page after two “gone” responses | specified | The page gate |
| Local index, sparse and dense retrieval, rank fusion | specified | Hybrid retrieval |
| Generated query set and the offline evaluation | specified | Hybrid retrieval |
| Judging each generated claim against a chunk | specified | Loader and trace |
| The blog writer’s older live fetch of the home page | still in code, marked for removal | Pipeline |
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 failed | What fixed it |
|---|---|---|
| F1 | A late request from the browser reverted the customer’s correction | extraction applied on the server, human fields protected, revision-conditioned writes |
| F2 | Several stores on one marketplace host merged into one brand | the owner key includes the store path, and a bare marketplace host is refused |
| F3 | The model’s proof points became allowed facts with no source check | quote check, number check, drop |
| F4 | A failed save was shown as success | the run ends failed, and a retry applies |
| F5 | A re-read in another session overwrote human values | the origin of each field is stored on the server |
| F6 | Reading A, then B, then A let a stale result win | a run id on the brand, checked at apply time |
| F7 | A blocked subpage’s body entered the extractor and the source list | the gate runs on every page |
| F8 | A near-empty JavaScript shell was reported as a successful read | thin ends the run as no content, and the extractor is not called |
| F9 | Source addresses were lost, so evidence could not be re-checked | sources and chunks are stored, and evidence carries offsets |
| F10 | Card news lacked identity and products the customer had entered | the 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 pipeline | Page | Note |
|---|---|---|
| Read the AutoRAG lineage with its MinSync, Jikji and Jev components, and mapped each mechanism to adopt, adapt or exclude against one goal | Reading the lineage | 28 mechanisms: 16, 7 and 5 |
| A fetch gate drops bot challenges and thin JavaScript shells | The page gate | |
| Heading and line-hash chunking with content-hash ids | Chunking | an unchanged page writes nothing; it is still extracted |
| Extraction allowed only with a verbatim quote that code relocates and number-checks | Verbatim quotes | |
| Optimistic-locked writes | Write rules | |
| A page that cannot be read is not deleted | The page gate | it keeps its last good content |
| One loader for every generator under a single versioned retrieval config | Loader and trace | the trace is per output |
| The hybrid sparse-and-dense stage is specified offline against a per-chunk QA set, starting without a reranker | Hybrid retrieval | specified, 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.
Related reading
Notes from the blog that touch the same questions:
