Repository navigation
Conversation
1 of 2 tasks
cmunley1
force-pushed
the
cmunley1/subagents
branch
from
September 28, 2026 05:06
5ea6b1d to
f107cac
Compare
6 of 7 tasks
cmunley1
marked this pull request as draft
September 28, 2026 05:24
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
…kkeeping Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
6 tasks
Signed-off-by: Ali Roshan Ghias <[email protected]>
Preserve pending call custody, mask failed logical owners, retain healthy siblings, and drop unusable groups through the existing policy. Keep CC integrity failures fatal and avoid unsafe redispatch of request-local selections. Validation: 251 focused RL tests; seven private live vLLM/native-TQ failure, cancellation, and timeout cases. No checkpoint PR or private validation machinery included. Signed-off-by: Ali Roshan Ghias <[email protected]>
Adapt the continuation fallback and bounded manifest drain proposed in #4431. Preserve pending IDs when capture fails or times out: a failure record is not proof that a worker has stopped writing. Ordinary receipt mode masks unresolved capture; CC keeps its existing masking. Add regression coverage for public postprocessing, cancellation, pending write custody, and the real RL root decision through Gym HTTP admission. Document the paired buffered Responses SSE behavior. Co-authored-by: alexandery <[email protected]> Signed-off-by: Ali Roshan Ghias <[email protected]>
Allow omitted HTTP headers and stop requiring the old hinted intermediate candidate. Retain exact committed ancestry, segment counts, accepted-token coverage, rejected-token exclusion, and cleanup assertions. Validation: 113 focused local tests and two GPU smoke runs passed; 124 checkpoint compatibility tests passed with the updated Gym client. Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
Signed-off-by: Ali Roshan Ghias <[email protected]>
… subagents Add token_capture.train_all_calls. The scored conversation is the first segment and each other captured conversation is one more segment, so subagent calls train with the main agent. Failed calls end their conversation instead of masking the rollout. The segment planner accepts conversations captured interleaved. Signed-off-by: Christian Munley <[email protected]>
2 tasks done
cmunley1
force-pushed
the
cmunley1/subagents
branch
from
October 15, 2026 00:56
f107cac to
0d94d4c
Compare
cmunley1
changed the base branch from
main
to
aroshanghias/cc-checkpoint-resume-20260918
October 15, 2026 00:57
… limits that came with the compaction name Rename token_capture.context_compaction to multi_segment_rollouts, since a rollout trained as several chains does not care whether they come from compaction or subagents. Rename the CC helpers, messages, tests and guide to match. Accept sequence packing (rows only need to split evenly across DP ranks), advantage clipping, sequence logprob masking (which masks the whole rollout), seq-mask-tis, message-level advantages and reward penalties, and let a step close short when prompts were dropped (min_step_batch_fraction below 1). Signed-off-by: Christian Munley <[email protected]>
…ollouts The owner batch used to require a binary sample mask and overwrote it with 0/1, so multi-segment rollouts rejected non-unit loss multipliers. Keep the owner's weight (the minimum over its rows, zero when any row is invalid) for the loss and use a binary validity for the advantage estimator. Signed-off-by: Christian Munley <[email protected]>
cmunley1
marked this pull request as ready for review
October 15, 2026 05:53
…ture.call_selection Capture records every call, so the selection is the reassembler. Built-ins are accepted_history (match the harness output, as before), all (every conversation, subagents included) and main_chain (only the scored conversation). A package.module:function selection plugs in custom ones. This replaces the train_all_calls boolean. Signed-off-by: Christian Munley <[email protected]>
Make token_capture.call_selection default to all, since capture records the whole forest and the other frameworks surveyed do the same. accepted_history stays available for harnesses that need it, and the tests that exercise it select it explicitly. Signed-off-by: Christian Munley <[email protected]>
aroshanghias-nvd
force-pushed
the
aroshanghias/cc-checkpoint-resume-20260918
branch
2 times, most recently
from
October 17, 2026 00:19
69de5a0 to
c9c1b02
Compare
aroshanghias-nvd
force-pushed
the
aroshanghias/cc-checkpoint-resume-20260918
branch
from
October 20, 2026 18:44
c9c1b02 to
63631ae
Compare
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.
What does this PR do ?
Add
token_capture.call_selection, which decides which captured calls become training rows whenmulti_segment_rolloutsis on. Capture records every call, so the selection is the reassembler (calls in, rows out):all(the default) trains every conversation, including subagents. The scored conversation comes first, the latest continuation is kept at a branch, and a failed call ends its conversation instead of masking the rollout.main_chaintrains only the scored conversation.accepted_historyis the previous behavior: match the harness output to captured calls.package.module:functionplugs in a custom selection.Stacked on #4200 (and #4124). Their segment machinery already turns each captured chain into its own row with its own R3 routes and one shared reward per rollout, so this adds the selection and relaxes two planner checks: capture order across conversations is no longer required (each chain stays contiguous), and the scored terminal only has to end one of the chains.
It also renames
token_capture.context_compactiontomulti_segment_rollouts, because the trainer treats compaction, subagents and branches alike. It lifts the limits that came with the old name: sequence packing, advantage clipping, sequence logprob masking,seq-mask-tis, message-level advantages, reward penalties, non-unitloss_multiplier, andmin_step_batch_fractionbelow 1 are now accepted.Usage
Results
Unit tests only so far (the renamed multi-segment suites, plus new cases for the lifted limits): selection on interleaved subagent conversations, failures and branches, the planner on an interleaved capture, ingestion with a failed call, and the config check. A Claude Code subagent training run is pending.
Before your PR is "Ready for review"
Pre checks: