Skip to content

Make batch a complete, structured read-only query transport #4582

Description

@Widthdom

Summary

Bring safe read-only navigation/audit commands into batch dispatch and embed child JSON as JSON rather than escaped strings.

Current v1.38.0 evidence / reproduction

  • Batch rejects read-only goto and audit commands despite describing support for query and read-only discovery commands.
  • batch --json-summary wrapping status --json emits the child object as an escaped stdout string, requiring a second parse and expanding payload size.

Impact

Editor and agent clients cannot batch common navigation/audit operations and lose the benefits of a typed batch response.

Suggested direction / acceptance criteria

  • Maintain a schema-driven allowlist of side-effect-free commands including goto and audit.
  • Parse successful JSON/NDJSON child output into typed result fields while retaining raw text for non-JSON output.
  • Preserve per-item exit/error metadata and bound total batch output.

Dogfooding candidate IDs: Q046, Q047, R013. Verified against cdidx v1.38.0 at commit 2919bfc9b1b83cfa7ae1d964845d0f9ffca002d1.

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