MEGAINFRA-WEBAPP/docs
DEls 252dd7eb6a fix(dn): let staged ingestion run against the real PocketBase schema
Three faults stopped the staged pipeline from ingesting anything once it
met a live PocketBase rather than a test double.

PocketBase treats 0 as blank for a required number field, and two staged
fields legitimately hold zero: dn_batch_sources.ordinal is 0 for the
first source in a batch, and dn_batch_pages.region is 0 for a whole-page
read. Both creates were rejected with validation_required, so the first
file of every upload failed and no page ever persisted. The migration now
declares them optional, and pb-relax-dn-zero-fields.py relaxes instances
that already have them required.

The staged runner verifies its batch lease and commits the protected
write in one transaction, which needs PocketBase's batch API. That is off
by default, so the runner failed closed with
dn_pipeline_transactions_required and no deployment note explained why.
pb-enable-batch-api.py turns it on and raises the 3s transaction timeout,
which is tight for a commit carrying page images.

compare-dn-pipelines used top-level await while resolving as CJS, so the
command in the rollout runbook always failed to transform. Renamed .mts.

The tests missed all of this because they mock PocketBase, and the mock
accepts what the real server rejects.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 23:49:58 +02:00
..
handoffs docs: add the Hermes brief for the needs-attention queue 2026-09-18 00:23:47 +02:00
n8n chore: 410 the old ocr-result route and archive its workflow export 2026-09-17 15:31:29 +02:00
setup feat(delivery-notes): enhance delivery note upload and processing 2026-08-26 15:33:30 +02:00
superpowers feat(worker-qr): real PDF + CSV batch export 2026-09-20 20:43:10 +02:00
api-reference.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
architecture.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
cooler-env.template docs(deploy): document POCKETBASE_ADMIN_TOKEN for process-batch + n8n 2026-08-19 20:01:45 +02:00
data-flows.md docs(schema): bring bootstrap and data-model docs back to truth 2026-09-11 16:17:41 +02:00
data-model.md docs(schema): bring bootstrap and data-model docs back to truth 2026-09-11 16:17:41 +02:00
minimax-multi-site-audit-prompt.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
modules.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
multi-site-assessment.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
operations.md fix(dn): let staged ingestion run against the real PocketBase schema 2026-09-20 23:49:58 +02:00
pwa-install-verification.md docs(pwa): manual install verification steps for real devices 2026-08-30 22:42:55 +02:00