Conversation
Behind agentic_handoff, compact_handoff and local_turn_budget_seconds (all off by default): tell the capable tier once per user turn that it inherits unverified tool-using work, optionally condense the local history into a cache-stable digest, and escalate a user turn once its local wall-clock budget is spent.
|
This was referenced Oct 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behind agentic_handoff, compact_handoff and local_turn_budget_seconds (all off by default): tell the capable tier once per user turn that it inherits unverified tool-using work, optionally condense the local history into a cache-stable digest, and escalate a user turn once its local wall-clock budget is spent.
What
Adds three optional controls for agentic escalation: a handoff note, history compaction, and a local wall-clock budget per user turn. All are disabled by default and exposed through the existing VGR TOML configuration.
Why
When the capable tier takes over, earlier tool activity and completion claims may still be unverified. The handoff makes that explicit. Compaction reduces the history sent repeatedly after escalation, while the turn budget limits time spent locally across model calls and client-side tool execution.
Notes for reviewers
Review this against #719. Start with
hand_offandturn_budget_spentincrates/libsy/src/algorithms/vgr/runtime.rs, then readcompact,digest, andCompactor::scoreinvgr/compaction.rs.has_new_user_turn,State.extra, theClassifierpipeline, andclip_mid. Request edits useappend_noteordrop_exact_replayso preserved provider payloads cannot bypass the rewritten content. TOML construction rejectscompact_handoffwithoutagentic_handoff.