strix/tests/core
Mads Hvelplund 0640e5c9ea
fix(core): backstop single-chunk overflow; add helper tests
Code review findings:

- factory._wrap_exec_command: add post-compression backstop that calls
  truncate_exec_result when compress_exec_result returns an oversized
  result (happens when _split produces 1 chunk, e.g. a single very
  large JSON record — compress_large_output correctly returns it
  unchanged, but the result was never guarded against threshold after).

- tests/agents/test_factory_helpers.py (new): unit tests for
  _resolve_model (run_config vs settings fallback, None/whitespace
  error cases, non-string Model object guard) and _extract_task_hint
  (valid cmd, missing cmd, non-string cmd, invalid JSON, non-dict JSON).
2026-06-19 13:52:18 +02:00
..
__init__.py fix: bypass image-strip recovery for ContextWindowExceededError 2026-06-19 13:40:45 +02:00
test_execution.py fix: bypass image-strip recovery for ContextWindowExceededError 2026-06-19 13:40:45 +02:00
test_large_output.py feat: truncate oversized exec_command output to prevent context overflow 2026-06-19 13:45:26 +02:00
test_mapreduce_output.py fix(core): backstop single-chunk overflow; add helper tests 2026-06-19 13:52:18 +02:00