Skip to content

fix(data): derive saved totals from WHERE and keep fines honest - #78

Merged
ThatAlexPalmer merged 1 commit into
mainfrom
grokbot/honest-totals-fines-errors-6736
Sep 11, 2026
Merged

ThatAlexPalmer merged 1 commit into
mainfrom
grokbot/honest-totals-fines-errors-6736

Conversation

@ThatAlexPalmer

@ThatAlexPalmer ThatAlexPalmer commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

What?

Saved scope totals now follow the WHERE queryLaws already built. LawSummary.fine is number | null on list and notable-law rows. County-fill errors keep penalties. Incomplete national throws instead of "ready". Place lookup HTTP failures throw instead of [].

Why?

A parallel filter list overstates the rail when a field is missed. Core failures must not look empty or ready. One DTO, one WHERE, honest errors.

Testing

pnpm lint, pnpm typecheck, and pnpm test all passed (101 unit tests). Fixes #76.

@ThatAlexPalmer
ThatAlexPalmer marked this pull request as ready for review September 8, 2026 12:14
@ThatAlexPalmer
ThatAlexPalmer force-pushed the grokbot/honest-totals-fines-errors-6736 branch from 1975a02 to 87cbe38 Compare September 8, 2026 13:31
@ThatAlexPalmer
ThatAlexPalmer changed the base branch from main to grokbot/writer-env-helper-0b23 September 8, 2026 13:31
Saved scope totals now follow the WHERE queryLaws already built so a
missed filter cannot overstate the rail. LawSummary.fine is required on
list and notable-law rows. County-fill errors keep penalties; incomplete
national and place-lookup HTTP failures no longer look ready or empty.

Co-authored-by: Alex Palmer <ThatAlexPalmer@users.noreply.github.com>
@cursor
cursor Bot force-pushed the grokbot/writer-env-helper-0b23 branch from a925726 to 29e7606 Compare September 9, 2026 16:39
@cursor
cursor Bot force-pushed the grokbot/honest-totals-fines-errors-6736 branch from 87cbe38 to 5900d6e Compare September 9, 2026 16:39
@cursor
cursor Bot changed the base branch from grokbot/writer-env-helper-0b23 to main September 9, 2026 16:42
@ThatAlexPalmer
ThatAlexPalmer merged commit 548c02c into main Sep 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Honest saved totals, fines DTO, and layer errors

2 participants