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 }}
Repository navigation
E11.3 — Bulk export: async artifact with expiry, tenant-scoped #1230
API product implementation work · part of #521 (E11) · child 3 of 6. Depends on child 2 (an export names its snapshot).
Probe
There is no export route in er-server. The segment CSV export is a BFF-side page walk (frontend segment export; #896 is its Postgres-less regression). DuckDB COPY TO is available and the lake already writes Parquet.
Scope
POST /v1/orgs/{org}/datasets/{ds}/exports{kind: golden|duplicates|lineage, format: parquet|csv, snapshot?|run_id?} → an async job (the existing queue) writing one artifact to the tenant's own object-storage prefix.
GET .../exports/{export_id}: status, row count, the snapshot it read, and a short-lived presigned download URL.
Bounded: row/byte ceiling, and an expiry + retention sweep for artifacts. Tenant-scoped: cross-org is a 404 and the artifact key never leaves the tenant prefix (security skill: tenant isolation).
Audit row per export, trace-joined.
Acceptance
Export of an empty dataset, a large one (over one page), a failed export (job.failed with an error class), and a concurrent newer run (the export stays on its snapshot) are all tested. Cross-dataset and cross-org access are refused.
Activity
[-]E11.2 — Run-to-snapshot identity, explicit snapshot reads[/-][+]E11.3 — Bulk export: async artifact with expiry, tenant-scoped[/+]athvin commentedon Nov 25, 2026
Claimed — working in #1239 (draft). Closing that PR releases the claim.
feat(api): bulk export — the export job kind, its artifact writer, an…
test(export): every page of a pinned snapshot over a real lake; empty…
test(export): the routes pin, serve, scope and expire, through the ro…
feat(export): lake_maintain sweeps expired artifacts and dead .partia…
docs(skills): the file envelope class and the export job kind (#1230)
docs: disambiguate the write() intra-doc links (#1230)
docs(skills): regenerate gates.md for the new test files (#1230)
feat(export): route the export pod task embedded, not DuckFleet-quali…
feat(docs): exports appear under Results in /docs/api; regenerate the…
feat(api): bulk export — an async, snapshot-pinned, tenant-scoped art…