instinct-cli 0.3.9

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
# Unicode-aware recall normalization (development)

Status: local candidate under evaluation, not released. This changes lexical recall keys only. Stored lesson text, exact scope values, lesson identities and pure check-string equality are not normalized.

## First lever

- Preserve the existing ASCII tokenization/lowercasing and English ending rules.
- Normalize Latin-1 and Latin Extended-A accented letters to their base forms. Explicit expansions include `ß → ss`, `æ → ae`, `œ → oe`, and `þ → th`.
- Remove U+0300–U+036F combining marks only when they follow a Latin base. This keeps decomposed Latin spellings from splitting into different words.
- Retain non-Latin letters and Unicode-aware lowercase. This does not transliterate Cyrillic or Greek into Latin. CJK remains whole alphanumeric-run tokens, as before.
- Apply the same lexical normalization to query and document tokens on cold, resident-index and disk-snapshot paths.

No Slovak/Czech suffix rules or language detection have been added to this candidate. They require a separate measured precision gate. Accent folding can merge genuinely distinct words, so recall gains must be reported alongside wrong deliveries and unrelated-query false deliveries.

## Snapshot compatibility

The existing snapshot format remains unchanged. The bank's key receives a fixed lexical-revision salt only when raw bytes contain non-ASCII or a `\uXXXX` escape for a non-ASCII code point. The detector is streaming and preserves escape state across read blocks. It conservatively invalidates some literal escaped-Unicode strings too; this costs a rebuild but cannot reuse an old Unicode posting list.

ASCII banks without such escapes retain the same key and serialized snapshot bytes. A development fixture verified a 15,180-byte snapshot was byte-identical to the baseline. Old Unicode snapshots were rebuilt in all four combinations of UTF-8/escaped JSON and JSONL/Helix DB. These are compatibility checks, not a new storage security guarantee.

## Evaluation discipline

Base: `849915f913a9c5ae17198181c65b0b7de19ba6e3`. Baseline optimized binary SHA256: `917a7107c28e5989b3e466399c3e0c02f7bc714e5825a39a4d5336372d416778`.

A separate fixture author/scorer prepares and hashes multilingual lessons, accentless/inflected/paraphrased queries and negatives before candidate scoring. The implementer receives aggregate results, not failed-query contents. An authored blind set is not proof of broad real-user effectiveness. English holdouts are scored independently by the integration owner.

Development controls cover Latin folding, decomposed accents, idempotence, non-Latin preservation, exact scope matching, cold/snapshot parity, and split Unicode escapes. Existing flat-file output must remain byte-identical on ASCII questions. Preserve every measured latency run, including failures; do not retry until a favorable number appears. The target is 15 ms p50 at 2,000 lessons, with baseline and candidate measured in counterbalanced order.

The first candidate's added scalar bank scan exceeded that budget. A second candidate added an ASCII/no-backslash fast scan. Subsequent development controls caught and corrected automatic tag spelling changes and contextual Greek sigma lowercasing; the final implementation folds only Latin accents before the existing word-level Unicode lowercase. These corrections were independent of the hidden retrieval queries. The conditional snapshot salt is lexical revision 2 so intermediate Unicode candidate indexes also rebuild. Neither a unit-test pass nor unchanged English recall alone is sufficient to ship: multilingual precision, index compatibility and latency must all be reviewed.