Knowledge that lasts / 12SI · L00P.AI

Does a correction reach search?

An original persistent-index trial: two documents, a correction and an export that can remain stale.

2026-11-19 · 1.0 · PL / EN

01 / Correcting the text is a start

An editor changes a deadline, yet a colleague still finds the old answer. Saving the correction does not establish which revision search uses or which result reached a downloaded export. A leader needs acceptance of the whole route: source, index, result and file passed on.

This article develops the interview corpus with a correction history. That trial checked a small in-memory dictionary. Here a separate on-disk full-text trial reopened the database after closing its connection, checked a corrected document and an unchanged control document, then compared export metadata. All records are our own fiction; they describe no real archive or opening hours.

02 / Two documents, one correction

On 19 November 2026 a local trial used SQLite 3.47.1 and FTS5. In revision 1, DOC-A and DOC-B contain piatek (Friday). In revision 2 only DOC-A changes to sobota (Saturday); DOC-B keeps the earlier wording. The data deliberately uses ASCII forms, including “Archiwum Alfa otwiera sie w sobota.” These are technical test tokens, not a model of correct Polish or a word-inflection test.

A separate index file was explicitly built from each revision. Connections were closed; each query reopened the chosen file read-only. Building index 2 did not modify index 1. SQLite documentation describes FTS5 queries and opening a URI with mode=ro; current documentation explains the mechanism, while the recorded result belongs to the stated runtime version.

index 1 / piatek -> DOC-A, DOC-B
index 1 / sobota -> none
index 2 / piatek -> DOC-B
index 2 / sobota -> DOC-A

An empty result for piatek in index 2 would be wrong: it would also remove the unchanged control document. Querying only the new word is therefore insufficient. Both queries and a check of what should stay unchanged are needed.

03 / Which state are you passing on?

Source 1, index 1 and export 1 remain preserved. Source 2 leads to a separately built index 2 and export 2. Pairing source 2 with the old index or export gives a mismatch.
source 1 -> index 1 -> export 1 [PRESERVED]
    |
    v
source 2 -> index 2 -> export 2 [EXPLICITLY SELECTED]

source 2 + index 1: MISMATCH
source 2 + export 1: MISMATCH

The old index still returns DOC-A for piatek and does not find it for sobota. This is the expected behaviour of a preserved snapshot, not an automatic update. The error arises when someone presents that snapshot as a result for revision 2.

Index metadata stores the revision number and source file SHA-256. An export contains that metadata, the query and a list of identifiers. Comparison detected that the old index did not match the new source and export 1 did not match index 2 metadata. Separately, an identifier was changed in a copy of export 2: comparing the whole-file hash detected the difference despite its retained metadata.

The hash is compared with a preserved, trusted reference. Matching revision numbers or a recorded hash alone do not establish correct results. If someone can change both the file and reference, comparison provides no authentication. This trial did not examine signatures or permissions.

04 / What passed, what was not measured

Fifteen recorded checks passed: query results, revision and hash agreement, detection of deliberate mismatches and preservation of earlier data. Index 1 bytes were also confirmed unchanged. These are not 15 independent experiments or a search-quality assessment. A small corpus and explicitly chosen snapshots demonstrate a specific acceptance boundary.

No automatic propagation, operating archive update, RAG trial, latency measurement or reader study was performed. Building a new index here is not an instruction to use the FTS5 rebuild command: the script creates a separate database from the selected revision. Semantic search, Polish inflection, concurrent writes and crash recovery were not tested.

Source 1 and index 1 remain preserved. This enables reproducing an old result but requires an explicit stale-state label. Preserving history and selecting the current answer are separate responsibilities.

05 / Correction acceptance card

Document and change: DOC-A, piatek -> sobota
Unchanged control document: DOC-B / piatek
Accepted source revision and trusted hash:
Index file and its metadata:
Result after reopening: old word / new word
Export: query, identifiers, revision, source hash
Whole-export hash and location of trusted reference:
Deliberately stale index/export: detected / not detected
Accountable reviewer, date, remaining gaps:

Before your own trial, record expected identifiers for both queries. Afterwards retain results, revisions and mismatch evidence. Acceptance should cover more than a green index-build flag. In a real system, also check the route through which a reader actually receives the result: service, cache and supplied file.

06 / Provenance and correction trigger

The complete original trial script, protocol, 15-check result, nine manifest-listed files and both language editions of the preceding article were read. Preserved file hashes were compared again before adaptation. The experiment was not repeated just to give it a newer date. Public documentation consists of SQLite FTS5 and SQLite URI parameters.

Codex prepared the data, script, PL/EN text, original static SVG and ASCII, and performed the agent editorial, management and checking functions. No second model independently reviewed this edition. No private corpus or third-party statements are reproduced. The diagram explains the performed trial; it is not an additional measurement.

An incorrect result identifier, metadata mismatch, a new indexing method or a documented correction-propagation failure triggers review. Lech retains the option to withdraw publication. Can you identify which revision produced the result just passed to your team?