refactor: apply response history at turn acceptance #676
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.72) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.72 · 1256 lines diff across 26 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.400
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
2 items
Approved
Great work! can't believe this closes #308 ! That's one chunky issue you took care of, huge kudos!
<img src="https://static.klipy.com/ii/c3a19a0b747a76e98651f2b9a3cca5ff/be/4e/SyKoD7kT.gif"/>
andimarafioti
jackboyla
Model workers and the Realtime service currently make separate decisions about response relevance. A worker can write shared conversation history before the service drops its output. This change gives output and history the same acceptance decision.
ResponseHistoryproposals. The service-ownedHistoryHandlerwrites accepted proposals and rolls back unfinished responses.The change removes model-side rollback closures and Chat's cancellation tombstones. Existing tests use a small helper to apply proposals through the real history handler. Three added regression cases cover audio cleanup failure, successful audio-input retention after cancellation, and queued-worker history ordering. Both bugs reproduce on the original PR head.
Validation: 2,406 Python tests passed, four skipped; all 33 Agents SDK checks passed; Ruff lint/format and mypy passed (129 source files).
Closes #308.