Skip to content

docs: get-out collect — incremental Slack collection command (006-collector-incremental-streaming) #507

Backlog

Description

@jflowers

What changed

get-out gained collect (issue jflowers/get-out#23, spec 006-collector-incremental-streaming): an incremental, bounded-memory Slack collection command.

  • get-out collect [--config <dir>] — runs one incremental pass over the conversations.json scope (export-enabled entries only), streams conversations.history page-by-page, fetches thread replies inline (re-checking old threads only when latest_reply advanced), folds user profile changes in, and prints a per-conversation run summary. Exit 0 on success or partial success; non-zero when the scope is missing, state is corrupt, or every conversation failed.
  • Raw records land in ~/.get-out/raw/{team}/{conversation}/{yyyy}/{mm}/{dd}.jsonl — one JSON line per record, 0600 files under 0700 directories.
  • Checkpoint state: ~/.get-out/collector-state.json — atomically written (tmp+rename, 0600), only when something advanced; an unchanged re-run leaves it byte-equal.
  • get-out status gained a collector checkpoint summary; get-out doctor gained a collector-state health note and an orphaned v1 export-index.json warning.
  • Rate limits: all Slack calls route through the shared tiered limiter (Tier 3 1200ms for history/replies, Tier 4 600ms for users.info) with 429 backoff and retry.
  • Auth failures anywhere abort the run immediately with no state write.

Why it matters

collect is the core of the get-out v2 archive pipeline (epic jflowers/get-out#18) and replaces the removed Drive export. It is the command users will schedule (launchd StartInterval: 900 example ships in the README).

Pages needing updates

  • CLI reference: collect command, flags, exit codes; status / doctor output additions
  • Quickstart / installation: collect in the workflow, the ~/.get-out/raw/ archive layout, collector-state.json
  • Scheduling docs: the launchd example
  • The man page source lives in the repo (man/get-out.1) — the website CLI reference should match it
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

    docs

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions