Skip to content

fix(phase-7b): batch retrieve disposition parity with online collector#557

Merged
Muizzkolapo merged 2 commits into
integration/batch-online-unificationfrom
unify/phase-7b-dispositions
May 17, 2026
Merged

fix(phase-7b): batch retrieve disposition parity with online collector#557
Muizzkolapo merged 2 commits into
integration/batch-online-unificationfrom
unify/phase-7b-dispositions

Conversation

@Muizzkolapo
Copy link
Copy Markdown
Owner

Summary

  • Batch retrieve dispositions now match online ResultCollector.collect_results() rules (U-3.2a, U-3.5a)
  • SUCCESS records get DISPOSITION_SUCCESS (previously only DEFERRED was cleared)
  • FILTERED records get DISPOSITION_FILTERED via new _write_filtered_dispositions method
  • EXHAUSTED/FAILED dispositions include input_snapshot and detail for forensics
  • Prompt trace updates restricted to SUCCESS records only (tombstones no longer pollute traces)

Verification

  • 9 new parity tests in test_phase7b_disposition_parity.py (TDD: committed failing first, then green)
  • Updated 2 existing tests in test_async_evaluation_wiring.py to expect new input_snapshot field
  • Full test suite: 6932 passed, 2 skipped
  • ruff format + ruff check clean

Tests verify batch retrieve dispositions match online ResultCollector
rules (U-3.2a, U-3.5a):
- SUCCESS records must get DISPOSITION_SUCCESS
- FILTERED records must get DISPOSITION_FILTERED
- EXHAUSTED must include input_snapshot
- FAILED must include input_snapshot and detail
- Prompt traces must only be written for SUCCESS records

All 9 tests fail against current code, proving the parity gaps exist.
Closes U-3.2a and U-3.5a — batch retrieve dispositions now match
online ResultCollector.collect_results() rules:

- SUCCESS records get DISPOSITION_SUCCESS (previously only DEFERRED cleared)
- FILTERED records get DISPOSITION_FILTERED via new _write_filtered_dispositions
- EXHAUSTED dispositions include input_snapshot for forensics
- FAILED dispositions include input_snapshot and detail
- Prompt trace updates restricted to SUCCESS records only (tombstones excluded)
@Muizzkolapo Muizzkolapo force-pushed the unify/phase-7b-dispositions branch from e893ec5 to fba9a49 Compare May 17, 2026 22:02
@Muizzkolapo Muizzkolapo merged commit d8c5684 into integration/batch-online-unification May 17, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant