Repository navigation
feat(rsi): add sandbox curricula with knowledge cards - #345
Merged
tastelikefeet merged 2 commits intoOct 29, 2026
Merged
Conversation
Extend the existing RSI cookbook using Twinkle's environment, rollout and challenger lifecycle. Keep world/profile adapters, workspace fixtures, card and task-seed sampling, affinity production and task history inside the cookbook. Provide optional scikit-learn dependencies separately from the installed library. Resolve one profile per proposal group from its anchor card and restore that profile for every solver attempt, even on another slot. Knowledge and control routes use the same anchor for routing without disclosing card text to controls. Use profile-aware prompts for empty, seeded and host-served starting data. Validate generated Python checks on author, empty and mutated workspaces, with the author state restored afterwards. Carry artifact provenance, derived outputs, profile identity and provider routes into recorded trajectories and task history. Treat API-authored check/statement turns as context and preserve the judge's API reasoning budget. Synchronize database tools when profiles switch. Record the selected solver trajectories alongside proposal trajectories. Apply computed sibling novelty or the existing rubric judge to proposer rewards using the original novelty-floor formula. Fit on history plus current siblings, retain difficulty-only rewards for missing measurements, and drop incomplete judge groups. Preserve optional generated-token penalties and overlong filtering. Keep library changes confined to reusable result checks and two challenger hooks: generated-check validation and scoring with proposal context. The default challenger reward API, training core and shared CLI schema remain unchanged. Validation: - Selected regression suite: 664 passed, 12 skipped; five transfer_queue modules excluded because the dependency is unavailable in this environment. - Final cookbook/verifier checks: 259 passed, 1 skipped. - pre-commit passed. - Original prompt constants, task-seed runtime AST and remote verifier program preserved; reproduced the original 429-card affinity payload byte for byte. - DLC launcher prepared separately for real microVM checks and two optimizer steps. Local tests substitute model generation and do not establish RL gains.
The string-fixer hook under Python 3.11 converts these f-strings to single quotes; Python 3.12 tokenizes f-strings differently and left them unchanged. Normalize the quotes so both environments pass without modifying files. Executable AST is unchanged; all pre-commit hooks pass under Python 3.11 and 3.12.
tastelikefeet
approved these changes
Oct 29, 2026
tastelikefeet
added a commit
that referenced
this pull request
Nov 28, 2026
main carried 17 commits (#311..#291) over merge-base 96dab68. v5 had already ported everything up to #312 (a4ddc3b) and moved server/client to twinkle_cs, so: - server/client (src/twinkle/server, twinkle_cs/*, tests/server, tests/twinkle_client): kept the v5 tree; the legacy src/twinkle/server path and the old ci_container_test.sh stay removed on v5. - loss: #291 detached DFT weights, #335 Liger CE contract (delegates micro_batch_scale / batch_normalizer to CrossEntropyLoss), #334 chunked CE comments, #336 InfoNCE tests. - model: #343 Torch.empty_cache (auto-merged), #385 fused_lm_rl ported onto the v5 task registry (processor/tasks.py + model/tasks.py FusedRL + transformers postprocess), #386 NPU fused CE fast path in selective_log_softmax. - twinkle_agentic: #345 check kinds (hidden_python / sql_query / answer_one_of / answer_number / web_receipt / lean) adapted to the episode-scoped Env interface; AgenticChallenger gains the _verify_check / _proposal_reward hooks. Known: cookbook/rsi and tests/cookbook/rsi (#345) are written against main's stateless Env / AgenticChallenger API and do not run on v5 yet.
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.
PR type
PR information
Extend the RSI cookbook with read-only worlds, reproducible workspace fixtures, knowledge-card/task-seed inputs and novelty rewards. Proposal groups and solver attempts share the same tool profile. Generated checks must reject empty and mutated outputs.
Experiment code stays in
cookbook/rsi. Library changes add six result checks and two challenger extension points. No changes tosrc/twinkleor the CLI schema. Data-bundle and affinity setup is documented incookbook/rsi/README.md.Replaces the closed PRs #323, #324, #328, #329 and #330.
Experiment results
transfer_queuewere excluded.