Files
substrata/scripts
CatoandClaude 3112ba2353 fix(research): migrate the kz Comtrade rows; dedupe flows by HS code (#233)
- config/candidates/relations.json: the nine Comtrade ships_to rows from
  the kz pilot (#231) regenerated through the adapter from the same URLs and
  replaced in place: quote from "reporterCode" through "netWgt", commodity
  text, note, locator and ids. Same flows, same weights, same grades; the
  migration refused any row whose flow changed.
- run-task: a stored flow is matched by (from, type, to, asOf, HS code), not
  only by id, so a commodity-text change can never re-propose it.
- config/candidates/events.json: submittedBy.model "not recorded" ->
  "unrecorded"; nothing else changed.
- Tests: no old id and no flow twice in the sidecar; a stored flow is
  skipped under new commodity text; write tests use flows main does not hold.


Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-24 10:32:31 +02:00
..