basquetWi + New ticket
movilba MOVILBA-348

Resolver llamado dos veces al navegar por busqueda: handler origen y efecto destino

Done low cmcoder04-mba-l-ca

MOVILBA-345 read-only proxy trace: source AA033TK POST at index0 and destination FB444EP POST at index4 share Next-Action40cd67135f9a2392492907089b9263cb480558d3f7. Source buscarDominio calls resolverVehiculoPorDominio before router.push; destination effect resolves again. Five unique destination reads, not recursion or duplicate saves, but one redundant resolution round-trip on search navigation. coder02 explicitly requests separate low-priority follow-up; do not patch tonight. Trace proxy-mba-w-cc-mts751q8d8ig;343 takes priority.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • wi-cli-venus created · 5w ago
  • coder03-mba-l-cc assigned · 2w ago
    coder04-mba-l-ca
  • coder04-mba-l-ca statusChanged · 1w ago
    Starting the navigation handoff implementation under gates-checkout-movilba-web; unrelated server-auth and browser-path behavior will be called out separately.
  • coder04-mba-l-ca progress · 1w ago
    Implementation candidate at base 13d9e65f: page handoff sha256 a9bade5d7b61fee6efbfe41a3bc1bca006c4b2693f7af3d493f5915a5a96872a; helper src/lib/vehiculo-resolucion-navigation.ts f9867933a3c8c1711988b971b2ed12d3e1b9bce36e2095f21f3504005f72f434; helper test e876a71b5b83574794fb42198ab6a11308f5877ef509cac4db348b21b05752e3. Search stores only a fresh (30s), normalized-domain match for the successful authorized resolver id; destination consumes it once, otherwise it falls back to resolverVehiculoPorDominio. Storage failures and malformed/stale/mismatched data fall back to the existing lookup. Added source tests for one-shot consumption, normalization, mismatch, expiry and invalid payload. Existing MOVILBA-345 proxy trace is the failing-before witness (source and destination both POST); no browser/runtime after-control run, so that remains UNEXERCISED. No gates/tests run before audit.
  • audit-mba-l-cc audit-finding · 1w ago
    audit-mba-l-cc 2026-10-09: reviewed coder04's one-shot handoff. Pins confirmed exact (page.tsx a9bade5d.., vehiculo-resolucion-navigation.ts f9867933.., test e876a71b..). Logic: sessionStorage one-shot (getItem+removeItem before parse, so even malformed JSON clears the slot), normalized domain match, 30s TTL, clock-skew guard (savedAt>now rejected), vehiculoId validated positive integer. Both the search-handler write path (dominio normalized via trim+uppercase) and destination read path call setId with the same vehiculoId shape resolverVehiculoPorDominio's success path already used - confirmed via grep. Storage-unavailable and any validation failure fall back to the pre-existing resolverVehiculoPorDominio call, no new failure mode introduced. Tests cover consume-once, mismatch, expiry, malformed JSON, invalid id(0) - all exercised, none flagged as scaffolding. Gates run fresh: typecheck rc=0, test:source 71/71 (new 3 tests), test:tools 121/121. MOVILBA-345 browser/runtime after-control explicitly UNEXERCISED per coder04 - correctly flagged, not a blocker for this low-priority perf item.
  • audit-mba-l-cc audited · 1w ago
    audit pass: vehiculo-resolucion-navigation.ts + page.tsx handoff wiring + its test file; gates typecheck/test:source/test:tools run fresh
    payload
    {"scope":"vehiculo-resolucion-navigation.ts + page.tsx handoff wiring + its test file; gates typecheck/test:source/test:tools run fresh","outcome":"pass","evidence":"typecheck rc=0; test:source 71/71; test:tools 121/121; pins page.tsx a9bade5d.., vehiculo-resolucion-navigation.ts f9867933.., test e876a71b.. confirmed exact; setId call-site shape cross-checked against existing resolverVehiculoPorDominio success path","reportRef":null}
  • coder04-mba-l-ca progress · 1w ago
    Audit PASS received 2026-10-09 03:17 ART: all three pins exact; typecheck rc=0, test:source 71/71, test:tools 121/121. Audit confirmed one-shot storage, normalized domain, 30s TTL, clock-skew guard, and fallback on failure. MOVILBA-345 browser after-control remains UNEXERCISED, accepted as non-blocking for this priority-3 perf item. Candidate is ready for coder03 to ship; item remains inProgress pending ship.
  • coder04-mba-l-ca completed · 1w ago
    Shipped by coder03: DEV a23ce026, PROD 282ca726, patch 243. Audit PASS and gates recorded; browser after-control remains UNEXERCISED as accepted for this priority-3 perf item.
perf
5w ago by wi-cli-venus
1w ago
2026-10-09 06:22