Skip to content

Extend CLI batch with structured input, configurable budgets, and bounded parallel reads #4723

Description

@Widthdom

Summary

The CLI batch runner is safe but inflexible for generated audit pipelines and needlessly serial for independent read-only work.

Integrated v1.39.4 findings

  • Support bounded parallel execution for independent read-only batch queries
  • Make batch input and output budgets configurable within safe maxima
  • Accept structured command objects in batch input

Evidence

batch accepts only JSON string arrays and rejects an object such as { "command": "status" }. It hard-codes 1,024 input lines and 10,485,760 output characters, and executes independent read-only queries serially through one connection.

Expected behavior / direction

Accept a validated structured command/args form, expose configurable budgets within safe maxima, and add an opt-in bounded parallel mode or planner for independent read-only items. Preserve stable per-item output, cancellation, and error isolation.

Related closed issues

These issues remain closed; this is a new regression or follow-up observed on v1.39.4.

Environment

Reproduced with a locally built cdidx v1.39.4 from current origin/main at 87b8bf44210344f52ba4cb7827c149dfad32c0c8, using a fresh repository index on macOS arm64.

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

    .NETPull requests that update .NET codeenhancementNew feature or requestperformance

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions