fix(batch): harden status score handling#1133
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesBatch runner hardening and --status prerequisite bypass
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
What
-vinstead of interpolating shell/state data into awk programsbcdependency from batch status/summary score averages--statusand--watchread an existingbatch-state.tsvwithout requiringbatch-input.tsv,batch-prompt.md, or theclaudeCLICloses #1125.
Closes #1127.
Why
batch-runner.shpreviously treated CLI/state score data as awk source code in a few places, which created a code-injection surface. The read-only status paths also ran the full batch prerequisites and still usedbc, making status inspection fail in minimal or post-cleanup environments.Validation
bash -n batch/batch-runner.shgit diff --checknode verify-pipeline.mjsnode test-all.mjsreached the new batch assertions successfully; the overall local run reports387 passed, 1 failed, 15 warningsbecause the existing smoke step forverify-portals.mjstimes out against my realportals.yml. Runningnode verify-portals.mjsdirectly completed successfully afterward.Summary by CodeRabbit
Release Notes
--status/--watchbehavior to avoid unnecessary prerequisite checks when state is unavailableN/Ahandling for missing valuesbcand that score values are passed intoawksafelybatch-state.tsvcontents