You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
Parent epic: #738
Depends on: #739, #742
Admission requirement: apply docs/awcms-mini/21_module_admission_governance.md before implementation.
Context
Derived applications repeatedly need safe CSV/JSON import and export. Implementing this separately in every module risks long-running HTTP requests, partial writes, cross-tenant mixing, formula injection, unbounded file parsing, inconsistent validation, and irreconcilable exports.
The base needs a generic staged exchange framework while each owning module supplies its own schema, validation, mapping, and commit adapter.
Objective
Add a provider-neutral data-exchange capability for staged upload/intake, schema validation, preview/diff, asynchronous idempotent commit, resumable partial failure, export manifests/checksums, and reconciliation.
Scope
Complete module-admission decision/ADR before scaffold.
Add metrics for rows/bytes processed, validation outcome, queue/processing duration, retry/failure, and reconciliation mismatch using low-cardinality labels.
Security and safety requirements
Large imports never execute as one long HTTP request or one unbounded database transaction.
Tenant and business scope are captured server-side and revalidated at every job phase; staged data from tenants cannot mix.
Parsers are size/row/field/time bounded and resistant to CSV formula injection, zip/decompression bombs if archives are later supported, path traversal, unsafe encodings, and malicious content metadata.
Spreadsheet-compatible exports neutralize formula prefixes where applicable.
Preview/error artifacts minimize and mask PII; raw invalid values require explicit permission and retention limits.
Commit is permission-gated, reason/audit enabled, idempotent, and safe on worker restart.
Module adapters cannot directly write another module's tables.
Parent epic: #738
Depends on: #739, #742
Admission requirement: apply
docs/awcms-mini/21_module_admission_governance.mdbefore implementation.Context
Derived applications repeatedly need safe CSV/JSON import and export. Implementing this separately in every module risks long-running HTTP requests, partial writes, cross-tenant mixing, formula injection, unbounded file parsing, inconsistent validation, and irreconcilable exports.
The base needs a generic staged exchange framework while each owning module supplies its own schema, validation, mapping, and commit adapter.
Objective
Add a provider-neutral data-exchange capability for staged upload/intake, schema validation, preview/diff, asynchronous idempotent commit, resumable partial failure, export manifests/checksums, and reconciliation.
Scope
Security and safety requirements
Out of scope
Acceptance criteria
bun run api:spec:check,bun run security:readiness, unit/PostgreSQL/worker/UI/E2E tests, build, andbun run checkpass.