{
  "slug": "czy-korekta-dociera-do-wyszukiwania",
  "ranking_id": "NB01",
  "edition": "1.0",
  "date": "2026-11-19",
  "series": {
    "pl": "Wiedza, która zostaje",
    "en": "Knowledge that lasts"
  },
  "number": 12,
  "title": {
    "pl": "Czy korekta dociera do wyszukiwania?",
    "en": "Does a correction reach search?"
  },
  "intro": {
    "pl": "Własna próba trwałego indeksu: dwa dokumenty, korekta i eksport, który może pozostać nieaktualny.",
    "en": "An original persistent-index trial: two documents, a correction and an export that can remain stale."
  },
  "source_dates": [
    "2026-11-18",
    "2026-11-19"
  ],
  "checked_at": "2026-11-19",
  "sources": [
    {
      "title": "Korpus wywiadów z historią korekt / An interview corpus with a correction history",
      "url": "https://www.l00p.ai/zasoby/serie/korpus-wywiadow-z-historia-korekt/",
      "access": "public"
    },
    {
      "title": "Original fictional persistent FTS5/export trial, 19 November 2026",
      "access": "internal",
      "kind": "15 recorded checks; SQLite 3.47.1; explicitly selected snapshots, not production propagation"
    },
    {
      "title": "SQLite FTS5",
      "url": "https://sqlite.org/fts5.html",
      "access": "public"
    },
    {
      "title": "SQLite URI filenames",
      "url": "https://www.sqlite.org/uri.html",
      "access": "public"
    }
  ],
  "evidence_scope": {
    "pl": "Wykonano 15 kontroli na dwóch fikcyjnych dokumentach. Nie sprawdzono automatycznej propagacji, RAG ani działającego archiwum.",
    "en": "Fifteen checks ran on two fictional documents. Automatic propagation, RAG and an operating archive were not tested."
  },
  "update_trigger": {
    "pl": "Błędny wynik, rozbieżność metadanych, zmiana indeksowania lub udokumentowana awaria przenoszenia korekt.",
    "en": "An incorrect result, metadata mismatch, indexing change or documented correction-propagation failure."
  },
  "ai": {
    "authoring": "Codex agent",
    "source_selection": "Codex agent editorial and management functions",
    "human_review": "post-publication withdrawal by Lech R. Rustecki"
  },
  "credits": {
    "pl": "Opracowanie i wybór: agent Codex. Brak niezależnej recenzji drugiego modelu. Kontrola człowieka: możliwość wycofania po publikacji.",
    "en": "Prepared and selected by a Codex agent. No independent second-model review. Human oversight: withdrawal after publication."
  },
  "interactive": "search-revision-text",
  "history": {
    "pl": "Historia: 1.0 — własna próba trwałego indeksu i eksportu, 19.11.2026.",
    "en": "History: 1.0 — original persistent-index and export trial, 19 November 2026."
  },
  "schema_version": 1,
  "language": "en",
  "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/",
  "markdown_sha256": "c874bfebcdb18a585b77fab3e35373a6a1040c23d9a3e11126afa5c9d31dc182",
  "sections": [
    {
      "id": "rozdzial-01",
      "title": "01 / Correcting the text is a start",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-01",
      "markdown": "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.\n\nThis article develops the [interview corpus with a correction history](/en/resources/series/korpus-wywiadow-z-historia-korekt/). 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."
    },
    {
      "id": "rozdzial-02",
      "title": "02 / Two documents, one correction",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-02",
      "markdown": "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.\n\nA 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.\n\n```text\nindex 1 / piatek -> DOC-A, DOC-B\nindex 1 / sobota -> none\nindex 2 / piatek -> DOC-B\nindex 2 / sobota -> DOC-A\n```\n\nAn 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."
    },
    {
      "id": "rozdzial-03",
      "title": "03 / Which state are you passing on?",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-03",
      "markdown": "![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.](https://www.l00p.ai/wydawnictwo/czy-korekta-dociera-do-wyszukiwania/rewizja-en-v1.svg)\n\n```text\nsource 1 -> index 1 -> export 1 [PRESERVED]\n    |\n    v\nsource 2 -> index 2 -> export 2 [EXPLICITLY SELECTED]\n\nsource 2 + index 1: MISMATCH\nsource 2 + export 1: MISMATCH\n```\n\nThe 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.\n\nIndex 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.\n\nThe 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."
    },
    {
      "id": "rozdzial-04",
      "title": "04 / What passed, what was not measured",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-04",
      "markdown": "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.\n\nNo 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.\n\nSource 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."
    },
    {
      "id": "rozdzial-05",
      "title": "05 / Correction acceptance card",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-05",
      "markdown": "```text\nDocument and change: DOC-A, piatek -> sobota\nUnchanged control document: DOC-B / piatek\nAccepted source revision and trusted hash:\nIndex file and its metadata:\nResult after reopening: old word / new word\nExport: query, identifiers, revision, source hash\nWhole-export hash and location of trusted reference:\nDeliberately stale index/export: detected / not detected\nAccountable reviewer, date, remaining gaps:\n```\n\nBefore 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."
    },
    {
      "id": "rozdzial-06",
      "title": "06 / Provenance and correction trigger",
      "url": "https://www.l00p.ai/en/resources/series/czy-korekta-dociera-do-wyszukiwania/#rozdzial-06",
      "markdown": "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](https://sqlite.org/fts5.html) and [SQLite URI parameters](https://www.sqlite.org/uri.html).\n\nCodex 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.\n\nAn 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?"
    }
  ],
  "media": [
    {
      "url": "https://www.l00p.ai/wydawnictwo/czy-korekta-dociera-do-wyszukiwania/rewizja-en-v1.svg",
      "kind": "diagram_in_code",
      "depicts_real_measurement": false
    }
  ]
}
