Skip to content

fix: _compute_batch_size crash and batched assessment improvements#151

Merged
neoneye merged 1 commit intomainfrom
pr-149-cleanup
Mar 6, 2026
Merged

fix: _compute_batch_size crash and batched assessment improvements#151
neoneye merged 1 commit intomainfrom
pr-149-cleanup

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Mar 6, 2026

Summary

  • Fix @classmethod@staticmethod on _compute_batch_size — missing cls parameter caused TypeError at runtime, breaking the entire batched fallback path
  • Add _make_batches helper that merges a singleton tail into the previous batch to prevent biased single-lever assessments
  • Include lever_count in per-batch metadata for observability
  • Concatenate LLM-generated summaries from each batch instead of generic boilerplate

Test plan

  • Run pipeline with a local model that triggers the batched fallback path
  • Verify no TypeError on _compute_batch_size
  • Verify batch metadata contains lever_count
  • Verify merged summary contains meaningful LLM-generated text

🤖 Generated with Claude Code

…mary

- Change @classmethod@staticmethod on _compute_batch_size (missing
  cls parameter caused TypeError at runtime, breaking the fallback path)
- Add _make_batches helper that merges a 1-item tail into the previous
  batch to prevent biased single-lever assessments
- Include lever_count in per-batch metadata
- Concatenate LLM-generated summaries for batched assessment instead of
  generic boilerplate message

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@neoneye neoneye merged commit 3eabd4e into main Mar 6, 2026
3 checks passed
@neoneye neoneye deleted the pr-149-cleanup branch March 6, 2026 23:57
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.

1 participant