Skip to content

fix: confirm handoff transitions before reporting - #268

Merged
cport1 merged 1 commit into
mainfrom
fix/handoff-transition-confirmation
Dec 6, 2026
Merged

cport1 merged 1 commit into
mainfrom
fix/handoff-transition-confirmation

Conversation

@cport1

@cport1 cport1 commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • debounce isolated contrary actor windows before emitting a handoff
  • require repeated windows or independent evidence families on both actor segments
  • make calibration fail when detection is more than 500 ms early or 10 seconds late
  • match same-direction transitions by nearest ground-truth time
  • keep the observation non-scoring and non-enforcing

Real calibration evidence

A controlled human-to-agent form session initially exposed a human-phase click classified as agent evidence, producing the right direction 68.25 seconds too early. The new calibration gate correctly rejects that report.

A fresh isolated rerun against this fix produced:

  • expected handoffs: 1
  • detected handoffs: 1
  • missed / extra: 0 / 0
  • timing error: +250 ms
  • production score: 0.1051, allowed, token issued

Raw mixed-session reports remain local and outside the ordinary corpus.

Validation

  • Node server suite: 176/176
  • benchmark suite: 85/85
  • Go server suite: pass
  • Python shared handoff fixture: pass
  • corrected real capture analyzer: pass

@cport1
cport1 merged commit e8b10af into main Dec 6, 2026
31 checks passed
@cport1
cport1 deleted the fix/handoff-transition-confirmation branch December 6, 2026 02:21
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