Go to file
JasonFraser da1b8b325e Fix RBC's last transaction absorbing the Account Fees footer line
RBC prints "Account Fees: $48.75" directly under "Closing balance" on
the statement's last page - not a money token this module recognizes
("$48.75", not "48.75"), no reference-number prefix, no page-number
pattern, so it fell through to plain narrative text and landed on the
last real transaction's description via the trailing-leftover-buffer
rule (correct behavior for a GENUINE trailing narrative line, wrong
for this one).

Fixed by treating the closing-balance line as a position-based
boundary, the same way the header row already is: once extract_page()
recognizes it, every subsequent line on that page is skipped outright
rather than reaching money/narrative classification at all. A no-op
for HSBC, which never emits a closing_balance row in the first place.

measure.py: RBC field accuracy 0.9977 -> 1.0, HSBC unaffected. RBC's
overall status is still "Failed" after this - a separate, pre-existing
engine_agreement disagreement on page 4, not touched by this fix.
2026-10-12 19:31:54 -04:00
backend Fix RBC's last transaction absorbing the Account Fees footer line 2026-10-12 19:31:54 -04:00
docs Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
fixtures Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
frontend Remove the seam between the header row and the filter row 2026-10-12 18:13:11 -04:00
outputs Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
uploads Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
zexample Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
.gitignore Route scanned/photographed statements through Docling OCR 2026-10-11 09:04:24 -04:00
CLAUDE.md Fix RBC's last transaction absorbing the Account Fees footer line 2026-10-12 19:31:54 -04:00
Dockerfile Restructure frontend to Vue 3 + Vite (Stage 2 of 2) 2026-10-12 06:32:49 -04:00
ENTERPRISE_STANDARDS.md Fix edit-icon color, description autogrow, and add image zoom controls 2026-10-11 23:44:06 -04:00
UI_DESIGN_THEME.md Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
UI_DESIGN_THEME_ENTERPRISE.md Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
docker-compose.yml Initial commit: Phase 1 extraction, dual-engine checks, measurement harness 2026-10-11 07:56:19 -04:00
requirements.txt Add raw-OCR-word-box fallback for Docling table-structure failures 2026-10-11 17:22:34 -04:00