Repository navigation
Compaction and Recovery
Raw Slackdump archives accumulate historical row revisions. Slackpipe can build a compacted SQLite archive containing newest semantic rows while preserving the tables and metadata needed for future resumes.
Compaction writes a new destination. It never edits the active source in place.
Before replacement, verification compares source and compacted archives using newest-row maps and semantic counts. The compacted file must pass SQLite integrity checks and Slackpipe's equivalence rules.
Compaction changes source file identity and physical layout. After a verified replacement, Slackpipe rebases canonical checkpoints to the compacted source so future resumes do not treat maintenance as unapproved source replacement.
- Stop affected schedules and confirm no active writer.
- Preserve raw archive, attachments, canonical DuckDB, and Dagster PostgreSQL.
- Restore a mutually consistent set.
- Run archive and source/canonical verification.
- Reload the code location.
- Launch one bounded reconciliation.
- Resume schedules only after checks pass.
Back up raw archives, attachments, canonical DuckDB after checkpointing, Dagster PostgreSQL, and secret configuration through a secure system. Do not put any of those artifacts in the Git repository.