Skip to content

feat(gate3): session delta tracking, momentum computation, silence reward handler#177

Merged
devonakelley merged 2 commits intomainfrom
feat/gate3-pr2-pr3-delta-silence
May 3, 2026
Merged

feat(gate3): session delta tracking, momentum computation, silence reward handler#177
devonakelley merged 2 commits intomainfrom
feat/gate3-pr2-pr3-delta-silence

Conversation

@devonakelley
Copy link
Copy Markdown
Contributor

Gate 3 — PRs 2+3: Delta Tracking + Silence Handler

What changed:

Delta tracking (PR 2)

  • _compute_delta() — bag-of-words cosine similarity + length ratio + frustration/affirmation keyword counts
  • _compute_momentum() — rolling window of last 4 deltas → closing/widening/flat
  • report_user_turn() now computes delta vs prior message, maintains FIFO(8) history in session file, includes momentum in signal payload
  • report_pipeline() initializes delta state in session file

Silence handler (PR 3)

  • report_session_end(session_id) — fires weak signal on session end based on momentum
    • closing → strength=0.65, confidence=0.4 (weak positive)
    • widening → strength=0.25, confidence=0.4 (weak negative)
    • flat or <2 deltas → no signal emitted
  • Exported from kalibr/__init__.py

11 tests passing in tests/test_feedback_gate3.py

devonakelley and others added 2 commits May 2, 2026 21:59
…lence reward handler

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ed, async momentum, strip momentum from payload

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@devonakelley devonakelley merged commit e6dbc3c into main May 3, 2026
4 checks passed
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