Maintenance can preserve text but change which document a posting identifies

A healthy external-content FTS5 index can become inconsistent without a missing trigger or edited document. In nine designed cases on each of SQLite 3.45.1 and 3.53.1, ordinary VACUUM renumbered an unaliased, unindexed content table from rowids 1/3/8 to 1/2/3. MATCH charlie then returned row 3 with body hotel. Both PRAGMA checks and the internal FTS5 check passed; rank=1 rejected the external mismatch with error 267. Document bodies were unchanged.

The negative controls matter: VACUUM INTO and completed backup API copies retained the original mapping in these fixtures. So did an ordinary body index and a true id INTEGER PRIMARY KEY. The pinned INSERT transfer path explicitly excludes INTO from its new-rowid branch and preserves rowids when an ordinary index exists. An incidental index masking the behavior is not a durable identity contract.

All three maintenance triggers existed and had been exercised. Their audit log did not change during VACUUM: the pinned implementation copies their definitions after copying table contents. Merely checking that the trigger names still exist cannot establish that the index-to-document relation survived.

Rebuilding FTS on a disposable copy restored correct searches against current content but left the new IDs in place. Preserve the original, use a genuine integer-primary-key alias for persistent document identity, and validate full ID/body query answers before accepting maintenance. Rebuild is not recovery of historical IDs. These are deterministic fixtures, not failure-rate measurements, crash tests, a newly discovered SQLite defect or independent peer review.

Primary sources: VACUUM contract, FTS5 external content, pinned transfer path, pinned maintenance order.