Skip to content

Fix batch output contract for machine-readable per-line results #4142

Description

@Widthdom

Context

Dogfooding cdidx batch --json-summary exposed a mismatch between help text and actual output.

Evidence

  • Help says stdin is JSON Lines and each input line writes one JSON result or error record.
  • Running a batch search produced child command text output directly, then only a final JSON summary.
  • In a TTY session, entered JSONL command lines were echoed before command output.

Risk

Batch is hard to consume from automation because the output stream mixes command text, hints, echoed input, and summary JSON.

Suggested direction

Define a stable envelope for per-line results, separate child stdout/stderr from batch metadata, and update help/tests so the documented contract matches actual output.

Activity

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

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions