From 1b8a13b86459cbe44c0af6b19764279dc49e98be Mon Sep 17 00:00:00 2001 From: mptyl Date: Sat, 27 Jun 2026 13:59:51 +0200 Subject: [PATCH] fix(harness): nsp residuo nei moduli Onda 0 (lshindex msg + VENDORED.md) User review ha trovato 2 residui 'nsp' sfuggiti al renaming: erano nei moduli portati in Onda 0 (DOPO l'Onda -1 che aveva pulito), in messaggi utente/docstring non in import. L'import-smoke di Onda 0 non li catturava (verifica solo import, non stringhe). Corretti a tht: 'tht lsh build' (lshindex:61), 'tht schema introspect' (VENDORED.md:25). Lesson: dopo ogni port di file sorgente, grep di nsp su quel file, non solo import-smoke. Suite: 161 passed, zero residui nsp nel codice. --- harness/tht/lshindex/__init__.py | 2 +- harness/tht/vendor/VENDORED.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/tht/lshindex/__init__.py b/harness/tht/lshindex/__init__.py index 957539f9..6f3bbc03 100644 --- a/harness/tht/lshindex/__init__.py +++ b/harness/tht/lshindex/__init__.py @@ -58,7 +58,7 @@ def load_index(directory: Path, name: str) -> tuple[Any, Any, dict]: if not (lsh_path.exists() and mh_path.exists() and meta_path.exists()): raise LshIndexError( f"Indice LSH non trovato in {directory} (atteso {name}_lsh.pkl). " - f"Esegui prima `nsp lsh build`." + f"Esegui prima `tht lsh build`." ) lsh = pickle.loads(lsh_path.read_bytes()) minhashes = pickle.loads(mh_path.read_bytes()) diff --git a/harness/tht/vendor/VENDORED.md b/harness/tht/vendor/VENDORED.md index 7c04456b..70fe1d09 100644 --- a/harness/tht/vendor/VENDORED.md +++ b/harness/tht/vendor/VENDORED.md @@ -22,7 +22,7 @@ La selezione delle colonne da indicizzare è ora governata dal *principio di eleggibilità delle colonne* (spec: `docs/superpowers/specs/2026-06-13-tht-column-eligibility-principle.md`). L'esclusione dei testi larghi avviene a monte tramite il flag `eligible` persistito in -`physical.yaml` (impostato da `nsp schema introspect`), non tramite l'euristica sulla +`physical.yaml` (impostato da `tht schema introspect`), non tramite l'euristica sulla lunghezza del vendorizzato. Le funzioni restano nel file per fedeltà alla sorgente upstream; Thoth ha semplicemente smesso di importarle (vedi `tht/db/sampling.py`).