Incremental Property FTS fails with Invalid UTF-8 on 1.6.12; --repair-fts cannot recover
Area
gitnexus (CLI / core / indexing / MCP server)
Summary
On GitNexus 1.6.12, an incremental analysis of a Swift-heavy repository completed with keyword search degraded after Property.property_fts failed with Failed calling LOWER: Invalid UTF-8. The recommended --repair-fts also failed; a full graph/FTS rebuild restored search.
Context
Observed on 2026-09-29 during ordinary code review. The repository is private; no project source, database, credentials, or private paths are included here.
This is current-version evidence related to closed #3031 (its closing comment requested a 1.6.10+ report distinguishing hard abort from graceful degradation) and #2889. It may share an underlying cause, but that is not established. Open #3101 specifically involves a local patch enabling streamed incremental graph emission; this observation used the installed release without that patch.
Expected behavior
Incremental analysis leaves configured FTS indexes available. If an index creation fails, targeted repair restores it or reports the underlying failure sufficiently to diagnose why it remains absent.
Actual behavior
- Incremental analysis reported three changed files and degraded FTS after a native
LOWER/UTF-8 failure in the Property index. analyze --index-only --repair-fts .exited 1, reportingProperty.property_ftsmissing after rebuild. Its error did not repeat an underlying per-table cause.analyze --index-only --force .then succeeded in 82.3 seconds, reusing cached parser output for 781 files.- Read-only verification after that recovery found all 22 configured FTS indexes in
SHOW_INDEXES, with the expected indexed columns. A directQUERY_FTS_INDEXcall onProperty.property_ftsreturned results, and an ordinary CLI query completed with BM25 timing and no degraded-search warning.
Impact: normal incremental maintenance temporarily disabled keyword search and required a full rebuild. Graph indexing completed; this report does not establish graph corruption or data loss.
Steps to reproduce
This is the observed sequence, not yet a reduced or deterministic reproduction:
- Start with an existing healthy index in a linked Git worktree of a Swift-heavy repository (about 2.7k covered files / 52.6k graph nodes).
- Change two Swift files and one Markdown file, then run
gitnexus analyze --index-only .from that worktree. The logged plan waschanged=3, added=0, deleted=0. - Observe the Property FTS failure below and the degraded keyword-search warning.
- Run
gitnexus analyze --index-only --repair-fts .; observe the missing-index failure below. - Run
gitnexus analyze --index-only --force .; observe successful graph/FTS reconstruction. - Verify with
gitnexus doctor,CALL SHOW_INDEXES() RETURN *, andCALL QUERY_FTS_INDEX('Property', 'property_fts', '<known-property-name>') RETURN node.name, score LIMIT 5through the CLI, using the exact worktree with--repo.
The three changed files at the recovered revision all strictly decode as UTF-8, with no NUL bytes or replacement characters. That rules out malformed bytes in those three final files; it does not prove every stored field or intermediate native string was valid. The failed database was already replaced by the successful recovery, so it is unavailable for row-level comparison. No new failure was induced in the active review worktree.
Environment
- GitNexus: 1.6.12, installed npm distribution; this is the latest published release observed during diagnosis.
- LadybugDB: 0.18.3 (matches the dependency pinned by GitNexus's v1.6.12 tag).
- Node: v26.8.2.
- macOS: 26.6.2 (25G83), arm64, 16 KiB page size.
- Doctor: native graph store, FTS, and VECTOR extensions available; extension policy load-only/offline.
- Disk: approximately 257 GiB available when checked.
- Successful recovery: 52,651 nodes / 655,073 edges / 1,092 clusters / 724 flows.
Logs / screenshots
Incremental analysis:
Incremental: changed=3, added=0, deleted=0 (skipping wipe + 2713 unchanged file rows preserved)
FTS index build failed (FTS index build failed for 1 of 22 tables: Property.property_fts (Runtime exception: Failed calling LOWER: Invalid UTF-8.)) — keyword search degraded this run. Graph and embeddings analysis completed successfully. Run `gitnexus analyze --repair-fts` to retry.
Warning: full-text/BM25 search is disabled — the search index build failed this run.
The FTS extension is available; rerun `gitnexus analyze --repair-fts`.Targeted repair:
Analysis failed: FTS repair failed - missing indexes after rebuild: Property.property_fts. Run `gitnexus analyze --force` to perform a full graph+FTS rebuild; if that also fails, verify FTS extension availability via `gitnexus doctor`.Successful recovery:
Rebuilt the graph and FTS while reusing cached parser output for 781 file(s) (parse cache 99+1.6.12).
Repository indexed successfully (82.3s)
52,651 nodes | 655,073 edges | 1092 clusters | 724 flowsDiagnosis is bounded to the incremental graph/FTS path and failed targeted recovery. Whether the native tokenizer received bad persisted content, encountered an internal string/scan defect, or left partial FTS state requires upstream investigation. Full rebuild is a verified workaround here, not proof that the underlying defect is fixed.
Source: abhigyanpatwari/GitNexus