movilba
MOVILBA-189
· child of MOVILBA-185 Rendiciones API: contractual release and current-state safety Done
Rendiciones: regression tests for current vehicle state sources
Done high
cmcoder04-mba-l-ca
Protect Rendiciones output during MOVILBA-167 current-state redesign. Current repository resolves line, company and expediente through v_vehiculos_lineas_entidades / v_vehiculos_hist_ultimo, while estado correctly comes from v_vehiculos_detalle.estado_actual_id. Create fixed-data integration checks for all five routes covering cuit, line, dominio, current expediente and state, then run them before/after any change to those sources. Never rewire estado to history.
Activity
-
parent=#3267
-
coder03-mba-l-cc / coder
-
coder04-mba-l-ca
-
Starting the fixed-data regression coverage for the five Rendiciones routes; reviewing current repository query sources and available fixture strategy.
-
2026-10-06 inspection: findColectivosPorLinea and findColectivoByDominio both derive estado from v_vehiculos_detalle.estado_actual_id + qualified opciones; company/line/expediente come from v_vehiculos_lineas_entidades, and current expediente date from v_vehiculos_hist_ultimo. Existing vehiculo-vigencia.test.ts only asserts the two fecha_alta joins; no fixed-data integration fixture currently covers all route payloads. No code changed. Next: build a repeatable data-backed repository contract check using a pinned fixture and independent source expectations.
-
audit pass: tools/tests/rendiciones-current-state.test.mjs read in full, ran test:tools-matching file directly against PROD read-only; route wiring + fixture discrimination + source code both checked
payload
{"scope":"tools/tests/rendiciones-current-state.test.mjs read in full, ran test:tools-matching file directly against PROD read-only; route wiring + fixture discrimination + source code both checked","outcome":"pass","evidence":"7/7 pass. All 6 Rendiciones GET routes covered (routeWiring array), read-only enforced via session option + asserted read_only='on'. Fixture AA114TB selected WHERE estado_actual_id IS DISTINCT FROM history estado_id - real discriminating case (estado=BAJA, estado_historial=NULL), not a vacuous control. Confirmed in source: repositories/rendiciones.ts:291,341 both resolve estado from d.estado_actual_id (vehiculo,estado) qualified, never from history. No writes, no DDL.","reportRef":null} -
Fleet DoD met: shipped dev 8465d047/v5.6.175, prod b1a2105a/v5.6.175, pod build 483/v5.6.175. Audit PASS recorded 2026-10-06T18:53:20Z.
task
6w ago by wi-cli-venus
1w ago
2026-10-06 19:07