{
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "A shadow-blob count is not a count of recovered documents. Postings and deletion markers can contain the same token.",
      "citationIds": [
        "deletion-contract"
      ]
    },
    {
      "text": "Rebuild follows current content rather than restoring original text. Compare preservation against a trusted prior reference.",
      "citationIds": [
        "preservation-data"
      ]
    },
    {
      "text": "The external-content check can accept different token instances when its internal checksum collides.",
      "citationIds": [
        "checksum-witness-data",
        "checksum-witness-source"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-02",
  "slug": "fts5-integrity-check",
  "term": "FTS5 integrity-check",
  "aliases": [
    "FTS5 external-content check"
  ],
  "definition": "FTS5 integrity-check validates full-text index structures and can also compare them with an external content table.",
  "note": "For external content, rank=1 requests the additional comparison; a detected discrepancy raises SQLITE_CORRUPT_VTAB (267). [fts5]\n\nMissed maintenance and the tested base-table REPLACE with recursive_triggers off left stale searches while PRAGMA and internal checks passed. Rank=1 rejected these states. Completed backup retained the mismatch; destination rebuild repaired current searches. [data] [replace-data]\n\nConsistency checking is not residual-content checking. In four internal-content deletion controls, all checks passed while residue differed: core secure_delete alone left shadow-token residue; FTS5 secure-delete alone left file residue; both removed this token from both scans. This is not the external-content synchronization fixture or a general forensic-erasure guarantee. [deletion-data]\n\nPassing rank=1 does not prove historical text identity. Token-equivalent edits can pass. It also accepted unequal az/bq tokens through a checksum collision on SQLite 3.45.1 and 3.53.1; az/br was rejected. [preservation-data] [checksum-witness-data]\n\nOrdinary VACUUM renumbered an unindexed implicit-rowid content table. MATCH charlie returned hotel, PRAGMA/internal checks passed and rank=1 rejected 267. Rebuild restored searches, not original IDs. [maintenance-data] [maintenance-vacuum]\n\nAcross 59 dependent states from 17 designed cases per build, 13 passed all three checks but failed historical-row or current-index comparison. Seven rebuilt states matched current text but not the old ID-to-text mapping. These are selected counterexamples, not failure rates. [acceptance-data]",
  "related": [
    "fts5-external-content",
    "sqlite-integrity-check",
    "backup-verification"
  ],
  "citations": [
    {
      "id": "fts5",
      "title": "SQLite FTS5: external content and integrity checking",
      "url": "https://sqlite.org/fts5.html",
      "accessed": "2026-10-18"
    },
    {
      "id": "experiment",
      "title": "Hesela: FTS5 query and verification controls",
      "url": "https://hesela.com/analyses/sqlite-index-runtime-dependencies/#fts5-content",
      "accessed": "2026-10-18"
    },
    {
      "id": "data",
      "title": "Hesela: eight executed FTS5 states and full query results",
      "url": "https://hesela.dev/research/sqlite-fts5/results.json",
      "accessed": "2026-10-18"
    },
    {
      "id": "replace-data",
      "title": "Hesela: four REPLACE/UPSERT cases with rollback, trigger events and full query results",
      "url": "https://hesela.dev/research/sqlite-fts5/replace-results.json",
      "accessed": "2026-10-19"
    },
    {
      "id": "deletion-contract",
      "title": "SQLite FTS5: secure-delete and version compatibility",
      "url": "https://www.sqlite.org/fts5.html#the_secure_delete_configuration_option",
      "accessed": "2026-10-30"
    },
    {
      "id": "deletion-core",
      "title": "SQLite: core secure_delete and virtual-table limits",
      "url": "https://www.sqlite.org/pragma.html#pragma_secure_delete",
      "accessed": "2026-10-30"
    },
    {
      "id": "deletion-data",
      "title": "Hesela: generated SQLite deletion observations, two retained runs and explicit limits",
      "url": "https://hesela.dev/research/sqlite-deletion-scope/summary.json",
      "accessed": "2026-10-30"
    },
    {
      "id": "deletion-package",
      "title": "Hesela: standalone SQLite deletion evidence, code and 42 raw files",
      "url": "https://hesela.dev/research/sqlite-deletion-scope/package.zip",
      "accessed": "2026-10-30"
    },
    {
      "id": "preservation-tokenizer",
      "title": "SQLite FTS5: Unicode61 tokenization defaults",
      "url": "https://sqlite.org/fts5.html#unicode61_tokenizer",
      "accessed": "2026-10-31"
    },
    {
      "id": "preservation-data",
      "title": "Hesela: five-case text-preservation evidence on SQLite 3.45.1 and 3.53.1",
      "url": "https://hesela.dev/research/fts5-preservation/replay-comparison.json",
      "accessed": "2026-10-31"
    },
    {
      "id": "preservation-guide",
      "title": "Hesela: exact evidence package, source map and replay limitations",
      "url": "https://hesela.dev/research/fts5-preservation/GUIDE.md",
      "accessed": "2026-10-31"
    },
    {
      "id": "checksum-witness-source",
      "title": "SQLite 3.53.1 pinned entry-checksum implementation",
      "url": "https://github.com/sqlite/sqlite/blob/ccd445d76a9362c63add000354fac84ba9022176/ext/fts5/fts5_index.c",
      "accessed": "2026-11-01"
    },
    {
      "id": "checksum-witness-data",
      "title": "Hesela: three checksum controls on two SQLite builds",
      "url": "https://hesela.dev/research/fts5-preservation/checksum-witness/summary.json",
      "accessed": "2026-11-01"
    },
    {
      "id": "maintenance-vacuum",
      "title": "SQLite: VACUUM and unaliased rowid changes",
      "url": "https://sqlite.org/lang_vacuum.html",
      "accessed": "2026-11-01"
    },
    {
      "id": "maintenance-data",
      "title": "Hesela: nine maintenance-identity cases on each of two SQLite builds",
      "url": "https://hesela.dev/research/fts5-preservation/maintenance-identity/summary.json",
      "accessed": "2026-11-01"
    },
    {
      "id": "acceptance-data",
      "title": "Hesela: historical-row and current-index acceptance, 17 designed cases",
      "url": "https://hesela.dev/research/fts5-preservation/acceptance-contract/summary.json",
      "accessed": "2026-11-02"
    },
    {
      "id": "acceptance-vocab",
      "title": "SQLite FTS5: instance vocabulary and token positions",
      "url": "https://sqlite.org/fts5.html#the_fts5vocab_virtual_table_module",
      "accessed": "2026-11-02"
    }
  ],
  "provenance": [
    "Eight designed observations, five exact ASCII-token queries per state, SQLite 3.45.1. No physical corruption or power-loss test.",
    "The deletion fixture scans exact token bytes without reconstructing complete records. [deletion-data]",
    "Retained 3.45.1 and 3.53.1 outcomes agree for the same five fixtures; diagnostic and trace differences remain explicit. No independent peer review. [preservation-data]",
    "Five one-row in-memory controls used unicode61, detail=full, columnsize=1 and no maintenance triggers. Minus/accent edits passed; changed-token/position controls failed. No physical-corruption or incident-rate measurement. [preservation-data] [preservation-tokenizer]",
    "Three one-row in-memory checksum controls were executed on two builds; complete diagnostics, query answers, copy and rebuild states retained. Not independent peer review. [checksum-witness-data]",
    "Nine designed maintenance cases per build, closed DELETE journal and no concurrent writer. Independent source/prose review only; no independent native replication or incident-rate estimate. [maintenance-data]",
    "The acceptance demonstrator uses fixed TEXT-only, unicode61, detail=full fixtures and a fresh index in the same SQLite engine. The baseline is known original input, not independently authenticated history or a general production checker. [acceptance-data] [acceptance-vocab]",
    "FTS5 secure-delete can affect readers older than 3.42.0 after updates or deletions; the deletion experiment did not test older readers or physical media. [deletion-contract] [deletion-core]"
  ]
}
