Skip to content

feat(python): expose escalation mode to Python - #3

Merged
rbehal merged 1 commit into
gumloop-mainfrom
feat/escalation-python-binding
Aug 11, 2026
Merged

feat(python): expose escalation mode to Python#3
rbehal merged 1 commit into
gumloop-mainfrom
feat/escalation-python-binding

Conversation

@rbehal

@rbehal rbehal commented Aug 11, 2026

Copy link
Copy Markdown

What

Binds LlmClassifierConfig::Escalation to Python as libsy.escalation(judge_target, efficient_target, capable_target, *, prompt, confirmations, recent_turn_window, window_message_chars, max_output_tokens), with type stubs and binding tests. Bumps the dist to 0.2.0+gumloop.0.2.0 (wheels for this version are already in the Artifact Registry).

Why

The backend's Chew mid-run step layer (escalation variant) runs libsy's escalation algorithm per agent step: each efficient answer is judged, and a confirmed streak of escalate verdicts latches the run's session onto the capable tier. The capability existed in the Rust core but had no Python door.

Notes

  • Sessions ride request metadata (session-id header); a latched session serves the capable target directly with no further judge calls — covered in tests/test_libsy_escalation.py (streak below confirmations, latch, session isolation, judge fail-open, validation).
  • Same conventions as the custom_classifier binding; no changes to existing bindings.
  • Replaces the direct push to gumloop-main that was force-reset; the gumloop-v0.2.0+gumloop.0.2.0 tag was removed and should be re-pushed on the merge commit.

Made with Cursor

escalation(judge_target, efficient_target, capable_target, *, prompt,
confirmations, recent_turn_window, window_message_chars, max_output_tokens):
each efficient answer is judged and a confirmed streak of escalate verdicts
latches the session to the capable target. Sessions ride request metadata
(session-id header); a latched session serves capable directly without
further judge calls. Version 0.2.0+gumloop.0.2.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: rbehal <rahulbehal01@hotmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rbehal
rbehal merged commit dc3011d into gumloop-main Aug 11, 2026
7 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