Skip to content

Rename use_token_client to trajectory#1864

Open
samsja wants to merge 1 commit intomainfrom
chore/rename-tito-to-trajectory-mode
Open

Rename use_token_client to trajectory#1864
samsja wants to merge 1 commit intomainfrom
chore/rename-tito-to-trajectory-mode

Conversation

@samsja
Copy link
Member

@samsja samsja commented Feb 24, 2026

Summary

  • Replaces the boolean use_token_client with a trajectory_mode field ("interleave" | "branching")
  • Interleave (default): uses the token-level client (openai_chat_completions_token). Requires linear history and a chat template with the extension property.
  • Branching: uses the message-level client (openai_chat_completions), re-tokenizing each turn independently. The interleave algorithm still does best-effort compression of branches into a single trajectory when the extension property holds.

Breaking change

orchestrator.use_token_client = true/falseorchestrator.trajectory_mode = "interleave"/"branching"

🤖 Generated with Claude Code


Note

Medium Risk
Breaking config change and it alters which inference client is used during training, which can affect rollout tokenization/throughput and compatibility with non-linear histories.

Overview
Replaces orchestrator.use_token_client with orchestrator.trajectory_strategy ("interleaved" | "branching"), where the setting now explicitly controls how multi-turn trajectories are tokenized and which OpenAI client type is used.

Updates orchestrator startup to pick openai_chat_completions_token only for "interleaved" (and emit an updated warning), otherwise defaulting to message-level openai_chat_completions. The changelog is updated to document the breaking config rename and new semantics.

Written by Cursor Bugbot for commit 6aa87f4. This will update automatically on new commits. Configure here.

@samsja samsja force-pushed the chore/rename-tito-to-trajectory-mode branch from 0dcddc4 to f6f3560 Compare February 24, 2026 04:20
@samsja samsja changed the title Rename use_token_client to trajectory_mode Rename use_token_client to trajectory Feb 24, 2026
@willccbb
Copy link
Member

willccbb commented Feb 24, 2026

@cursoragent can we do "interleaved" not "interleave" ?

@willccbb
Copy link
Member

willccbb commented Feb 24, 2026

@cursoragent Also "trajectory_strategy" for config name pls

…hing options

Replaces the boolean `use_token_client` field with a `trajectory_strategy`
enum ("interleaved" | "branching") for clarity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@samsja samsja force-pushed the chore/rename-tito-to-trajectory-mode branch from f6f3560 to 6aa87f4 Compare February 24, 2026 06:10
Copy link
Member

@mikasenghaas mikasenghaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure i like this renaming. seems less explicit to me. we should warn about the extension property assumption in the tito client in the config description + probably also a warning log or smth

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.

3 participants