Commit graph

530 commits

Author SHA1 Message Date
DEls
3a0aedec0d Merge branch 'codex/hybrid-dn-ingestion'
Staged, photo-first delivery note ingestion: bulk JPEG/PDF intake, one
persisted vision read per page, deterministic assembly into candidate
documents, site-scoped supplier/PO resolution, split review, a
supplier-grouped work queue with manual line linking, and fenced
idempotent posting.

The new pipeline stays dormant behind DN_STAGED_INGESTION_ENABLED; the
tick route keeps running the legacy runner until the flag is set to
exactly "true". The PocketBase schema is already applied in production
(verified by a read-only dry run: every collection, field and index
present, no financial rows touched).

The local draft of the multi-file upload route is superseded by the
branch version, which parameterises its PocketBase filters, checks
duplicates before creating a batch, and rolls back a partially written
batch. That draft is kept in stash@{0}.

Verified on the merged tree: tsc --noEmit clean, 1200 tests across 106
files passed, next build passed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 21:56:23 +02:00
DEls
df47e6d2ba docs: note queue server boundary runtime fix 2026-09-19 20:56:48 +02:00
DEls
03ac13d951 fix: keep queue model server safe 2026-09-19 20:56:25 +02:00
DEls
d00b5f1204 docs: record quoted index normalization verification 2026-09-19 19:37:18 +02:00
DEls
1a97d7db44 fix(migration): preserve quoted index semantics 2026-09-19 19:36:50 +02:00
DEls
485443a1e4 docs: record migration idempotency verification 2026-09-19 19:33:56 +02:00
DEls
bee2b3dd17 fix(migration): normalize PocketBase index definitions 2026-09-19 19:33:39 +02:00
DEls
d12ca92468 docs: record scoped ledger totals verification 2026-09-19 19:26:37 +02:00
DEls
bb70f3339a fix(dn): scope staged ledger totals to PO items 2026-09-19 19:26:20 +02:00
DEls
9fafec64b1 docs: record staged readiness follow-up 2026-09-19 19:23:40 +02:00
DEls
199dfba195 fix(dn): align staged readiness with ledger totals 2026-09-19 19:23:22 +02:00
DEls
0f910c1bf7 docs: record final delivery note fix verification 2026-09-19 19:17:46 +02:00
DEls
bbd7a7bb23 fix(dn): harden staged assembly and page identity 2026-09-19 19:17:46 +02:00
DEls
9ace0fbd3a docs: record audit identity fix 2026-09-19 19:00:06 +02:00
DEls
eed128ebb3 fix: bind posting audit to delivery note 2026-09-19 18:59:52 +02:00
DEls
4b0da73dcf docs: record audit and PO verification fixes 2026-09-19 18:58:25 +02:00
DEls
11bc1a4b6b fix: verify audit collisions and purchase orders 2026-09-19 18:58:07 +02:00
DEls
d2dc3a4262 docs: record posting fix verification 2026-09-19 18:54:38 +02:00
DEls
310219d09b fix: keep staged migration dry run additive 2026-09-19 18:54:24 +02:00
DEls
4b4c9b2590 docs: record delivery note posting fix round 2026-09-19 18:53:49 +02:00
DEls
2914eefacf fix: harden delivery note posting review gates 2026-09-19 18:53:25 +02:00
DEls
25d3dd6af0 docs: record delivery note ingestion verification 2026-09-19 18:47:58 +02:00
DEls
5d094183e6 feat: add delivery note posting and pipeline comparison 2026-09-19 18:45:30 +02:00
DEls
45b3c66480 docs: update task 11 round 3 report 2026-09-19 18:38:13 +02:00
DEls
81a4427fea test: cover correction transaction fencing 2026-09-19 18:38:02 +02:00
DEls
0846ce5790 docs: update task 11 round 2 report 2026-09-19 18:36:05 +02:00
DEls
fe59c618e0 fix: fail closed on persisted correction checks 2026-09-19 18:35:55 +02:00
DEls
9ce425063d docs: update task 11 fix report 2026-09-19 18:32:03 +02:00
DEls
8f2bb1fc13 fix: harden delivery note correction gates 2026-09-19 18:31:48 +02:00
DEls
70117628a6 docs: add task 11 report 2026-09-19 18:22:37 +02:00
DEls
25f8112f6d feat: add delivery note correction linking 2026-09-19 18:21:45 +02:00
DEls
bf00cc0bcd docs: report queue date fallback fix 2026-09-19 18:12:40 +02:00
DEls
e2bb799c52 fix: preserve staged queue upload dates 2026-09-19 18:12:24 +02:00
DEls
b2582d3225 docs: report delivery note queue fixes 2026-09-19 18:11:02 +02:00
DEls
c094aa0140 fix: harden delivery note queue mappings and counts 2026-09-19 18:10:40 +02:00
DEls
2e5e504054 docs: place task 10 report with delivery note sdd 2026-09-19 18:04:07 +02:00
DEls
94426e3bc0 feat: add supplier purchase order delivery note queue 2026-09-19 18:03:14 +02:00
DEls
26143e5ac3 docs(dn): report split review model fix 2026-09-19 17:57:24 +02:00
DEls
1d74905a91 fix(dn): isolate split review model and orphan pages 2026-09-19 17:57:07 +02:00
DEls
d22d7b1867 docs(dn): report split review fix round 2026-09-19 17:53:03 +02:00
DEls
5c57dcbf5c fix(dn): harden split review and page proxy 2026-09-19 17:52:44 +02:00
DEls
61c0e602fe docs(dn): report task 9 split review 2026-09-19 17:44:06 +02:00
DEls
da45513ead feat(dn): add staged inbox and split review 2026-09-19 17:43:36 +02:00
DEls
919124facb docs(dn): record task 8 fix round 4 2026-09-19 17:34:05 +02:00
DEls
b5ba219d10 fix(dn): transactionally fence protected writes 2026-09-19 17:33:38 +02:00
DEls
16f42a7518 docs(dn): record task 8 fix round 3 2026-09-19 13:24:01 +02:00
DEls
2f798ba586 fix(dn): lease legacy runs and renew ownership 2026-09-19 13:23:18 +02:00
DEls
e3e7135ca5 docs(dn): record task 8 fix round 2 2026-09-19 13:08:25 +02:00
DEls
c37821d232 fix(dn): serialize promotion under batch lease 2026-09-19 13:08:00 +02:00
DEls
43391a8aa0 docs(dn): record task 8 fix round 1 2026-09-19 12:57:44 +02:00