Skip to content

batch-runner.sh --status/--watch: blocked by check_prerequisites and still depends on bc #1127

@arslanmit

Description

@arslanmit

Version: v1.12.0 · File: batch/batch-runner.sh

The new read-only --status / --watch progress feature has two portability issues:

  1. Prerequisite gate: it runs only after check_prerequisites, which exits if batch-input.tsv, batch-prompt.md, or the claude CLI is missing. A read-only progress check only needs batch-state.tsv, so inspecting a prior/remote run from an environment without Claude (or after input cleanup) never reaches print_status_table.
  2. bc dependency: print_status_table computes score sum/average with bc, but check_prerequisites never verifies bc, and the rest of the script already migrated to awk. On minimal shells without bc, the average silently degrades to N/A.

Suggested fix: let --status/--watch short-circuit prerequisites (require only batch-state.tsv), and reuse the awk-based arithmetic from print_summary.

Flagged independently by Copilot, qodo, and Codex on a downstream sync PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions