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.
This commit is contained in:
@@ -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()):
|
if not (lsh_path.exists() and mh_path.exists() and meta_path.exists()):
|
||||||
raise LshIndexError(
|
raise LshIndexError(
|
||||||
f"Indice LSH non trovato in {directory} (atteso {name}_lsh.pkl). "
|
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())
|
lsh = pickle.loads(lsh_path.read_bytes())
|
||||||
minhashes = pickle.loads(mh_path.read_bytes())
|
minhashes = pickle.loads(mh_path.read_bytes())
|
||||||
|
|||||||
Vendored
+1
-1
@@ -22,7 +22,7 @@
|
|||||||
La selezione delle colonne da indicizzare è ora governata dal *principio di eleggibilità
|
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`).
|
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
|
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;
|
lunghezza del vendorizzato. Le funzioni restano nel file per fedeltà alla sorgente upstream;
|
||||||
Thoth ha semplicemente smesso di importarle (vedi `tht/db/sampling.py`).
|
Thoth ha semplicemente smesso di importarle (vedi `tht/db/sampling.py`).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user