Oblive Docs

Data platform table export

An organization-scoped, read-only export with explicit completeness and independent permissions.

The standalone platform-agent-export.command.ts exports the 20 explicit harness table projections for a configured organization. It reads all tables in one repeatable-read, read-only transaction, checks organization ID, slug and active status, and applies sanitizeExecutionCapture. Object contents and integration credentials are excluded.

A dedicated PostgreSQL login receives column-level SELECT grants. The independent host container receives that login and a short-lived, put-only S3 identity. Application environment files and archive credentials are not mounted. The deployment scripts live in scripts/platform-agent-export/; the operational runbook is docs/operations/platform-agent-export.md.

Parts contain gzip NDJSON, bounded to 64 MiB before compression. Each unique drop publishes its manifest last, recording stored-byte checksums, lengths and record counts. Every stream must have files, an explicit empty_streams entry or a gap. Missing tables or required columns produce gaps. Consumers must validate the whole manifest and cannot derive deletes from partial exports.

The host timer runs at 02:00 UTC and is installed disabled. Enable it only after a complete drop has passed platform collection and conversion. The container uses 1 CPU and 2 GiB, small cursor fetches and Bun’s compact heap mode. A failed upload or killed process never publishes a complete manifest. Rollback disables this timer and preserves existing drops. This schedule does not control ordinary Oblive capture, archives, agent execution or replay environments.