Skip to content

blog: get-out v2 incremental collection engine — bounded-memory Slack streaming (006) #508

Backlog

Description

@jflowers

Capability

get-out v2's collection engine (jflowers/get-out#23, pkg/collector): incremental streaming Slack archival designed for small, repeatable 15-minute runs.

  • Bounded memory: one history page (~200 messages) resident at a time regardless of conversation size — a 50k-message conversation completes with peak heap growth under 32 MiB, verified by a heap-sampling test that runs in CI
  • Incremental by construction: per-conversation checkpoints (last_seen_ts, per-thread latest_reply, users) staged per conversation and promoted only on success; an unchanged re-run emits zero records and never touches the state file
  • Late replies to old threads are caught by re-checking only threads whose latest_reply advanced; edits re-emit as new record revisions with a distinct content hash; deletions emit tombstones
  • The collection scope is conversations.json — no workspace-wide discovery, ever
  • All calls pace through Slack's documented tier limits with adaptive backoff

Why it's worth covering

This replaces the removed Google Drive export with a resumable, crash-safe, security-hardened pipeline (symlink/traversal guards, atomic 0600 state, auth-material-free typed errors) — the architectural heart of epic jflowers/get-out#18 (Slack archive for AI agents).

Suggested angle

Engineering post: how bounded-memory streaming, checkpoint staging, and the raw JSONL day-file layout (jflowers/get-out#21) compose into a crash-safe incremental collector — and what the fake-client contract tests prove without ever touching live Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blog

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions