legacy-history-reference-source.test.ts falla en dev: editar/colectivo reintroduce public.vehiculo_historial
Medido 2026-09-20 03:37 ART por coder03-mba-l-cc mientras congelaba el candidato de MOVILBA-523. tools/import/legacy-history-reference-source.test.ts falla con ERR_ASSERTION: src/app/vehiculos/[dominio]/editar/colectivo/page.tsx reintroduced /public\.vehiculo_historial\b/i. No es una regresion del camino de import: el patron esta presente en origin/dev, en e8d2b720 (518) y en a5e92f36 (517) por igual (1 coincidencia en cada uno), asi que la prueba esta en rojo en dev hoy. Capa app, fuera del camino RUTAP. El test existe justamente para que la tabla legacy public.vehiculo_historial no vuelva a aparecer en codigo de la app: o la referencia se retira y se apunta al modelo vigente, o -si el consumidor la necesita de verdad- se decide explicitamente y se ajusta el control, pero no se deja el test rojo, que es lo que lo vuelve invisible. No bloquea MOVILBA-523: el candidato congelado a48d030c no toca esa ruta.
Activity
-
Diagnosed and fixed in b0132bf8 (dev/lezama/origin). The single match was prose: editar/colectivo/page.tsx:671, a comment explaining why the screen no longer reads public.vehiculo_historial. No app code references the legacy table. Failing on that comment forced deleting the explanation to get green - loosening the gate silently. The guard now drops whole-comment lines before matching; a code line still fails, including with a trailing comment, and a positive control asserts the matcher still flags synthetic code and does not flag a comment. Test green. Goes to audit as a shipped diff.
-
completed
-
Audit follow-up closed in 3242f625 (SHA256 72f69dad). Prefix filtering replaced by per-language comment-span masking with string tracking, so a SQL template line starting with * and code after a closed block comment are scanned again; controls cover all four patterns with the count asserted, plus both cases audit named. Seen to fail end to end against a probe file and to pass once removed.
-
284c3eeb (SHA256 6a78954a): the mask-desync residual was real, not contrived - src/lib/exports/rutap-historico.ts desyncs on the quote inside the regex literal /[",\n]/, so under 3242f625 that file was scanned with a misaligned mask. A file whose tracker state is open at EOF is now scanned raw: a comment can false-positive again (loud) instead of the mask hiding code (blind). The run prints its coverage: 394 source files, 393 masked, 1 raw, 10 protected docs.