Files
solon/scripts
CatoandClaude cbfcc99dfa Estonia: read acts without sections, say why a load fails, stop when refused (#408)
The first production load stored 4,195 of 9,958 texts and reported 5,763
failures, but the workflow keeps only its last 80 lines, so all but 30
reasons were lost. The same code against the live gazette locally failed
4 of 400: two regulations laid out without sections and two acts that
give two sections one id. The rest of production's failures were
something the log could not show, most likely the publisher refusing the
box after a few thousand requests.

- An act without sections (a regulation of a preamble, points, parts and
  tables) is read as its preamble and its text, in order; the gazette's
  link targets are left out of every text
- Two sections with one id are both kept: the second as `para1-2`
- A failure says the database's own reason, not the statement; the report
  counts failures by reason and stops after 20 refusals in a row, saying
  which; acts are paced at 1.5 s; the command prints 5 sample failures so
  the counts survive the workflow's 80 lines


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-07 19:41:22 +01:00
..