Skip to content

docs: get-out collect — push over SSH tunnel, --full/--conversation flags, exit codes 0-7 (007) #511

Backlog

Description

@jflowers

What changed

The get-out collect command (originally documented via issue #507 for 006 incremental streaming) gained its 007 push pipeline in jflowers/get-out:

  • SSH tunnel + remote push: collect now opens an SSH local forward (ssh -N -L) to the archive host and POSTs each redacted record to the ingest receiver (POST /ingest) instead of writing a local raw/ tree. The local raw/ write path is retired when collector.ingestEndpoint is configured (FR-019).
  • New flags: --full (re-stream from oldest, ignoring stored checkpoints) and --conversation <id> (restrict to one conversation; unknown ID exits 2). Both composable: get-out collect --full --conversation C123.
  • Stable exit codes 0-7 for launchd/alerting: 0 success, 1 unexpected, 2 bad args, 3 config/scope, 4 Slack auth (needs human login), 5 transport (tunnel/ingest unreachable, 5xx, rejected), 6 classifier down, 7 partial success. Precedence when classes coincide: auth > transport > classifier > partial > config/scope.
  • Redaction before push: records are classified and redacted ([REDACTED: <category>] placeholder with classifier provenance) before any POST.
  • Idempotent re-runs: state advances only after per-record ingest ack; server-side dedup means re-runs produce no duplicate archive lines.

Why it matters

Pages needing updates

  • get-out collect command reference (flags, exit codes)
  • get-out configuration reference (collector section: ingestEndpoint, sshTarget, stateDir)
  • get-out operator tutorial / launchd guide (exit-code alerting guidance)

Spec: jflowers/get-out specs/007-get-out-collect-collect-redact-and-push/

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions