Skip to content

fix: reject batch run_mode for synchronous tool/HITL actions at valid…#100

Merged
Muizzkolapo merged 2 commits intomainfrom
claude/nostalgic-dijkstra
Apr 2, 2026
Merged

fix: reject batch run_mode for synchronous tool/HITL actions at valid…#100
Muizzkolapo merged 2 commits intomainfrom
claude/nostalgic-dijkstra

Conversation

@Muizzkolapo
Copy link
Copy Markdown
Owner

Summary

  • Extend VendorCompatibilityValidator to emit a hard error when kind: tool or kind: hitl is combined with run_mode: batch
  • Add logger.warning at the runtime override site in pipeline.py as defense-in-depth
  • Add 8 tests covering validation rejection, no-regression, and runtime warning

Test plan

  • pytest passes (4287 tests, 0 failures)
  • ruff check . clean on changed files
  • ruff format --check . clean on changed files
  • Verify existing model_vendor: tool + batch validation still works
  • Verify kind: tool + run_mode: online is unaffected

Closes #85

Muizzkolapo and others added 2 commits April 2, 2026 13:14
…ation time

Previously, configuring run_mode=batch with kind=tool or kind=hitl
silently fell through to online mode at runtime with no warning.
This caused config dishonesty and made debugging batch failures
difficult.

- Extend VendorCompatibilityValidator to emit a hard error when
  kind is tool or hitl with run_mode=batch
- Add logger.warning at the runtime override site as defense-in-depth
- Add 8 tests covering validation rejection and runtime warning

Closes #85
@Muizzkolapo Muizzkolapo merged commit 413caa3 into main Apr 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ARCH-001: Batch run_mode silently ignored for synchronous (tool/HITL) actions

1 participant