Repository navigation
Conversation
TowersBlock.reward_scale holds only the first trial's scale, but ViRMEn can change the scale mid-block, so the stored value doesn't describe every trial. Count and list those blocks at the end of the run, and say so in the help text. Assisted-by: ClaudeCode:claude-opus-5-5
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.
🤖 AI text below 🤖
Problem
behavior.TowersBlock.reward_scaleholds only the scale of the block's first trial (TowersBlock.m:block.trial(1).rewardScale), but ViRMEn can change the scale mid-block, and the database has no per-trial column. For example, one 217-trial block starts at 1.5 and runs at 3.0 from trial 91. The backfill stores 1.5, following the same rule, and nothing told the user.Change
scripts/backfill_reward_scale.pynow lists the blocks whose scale changes mid-block at the end of the run, and the help text says what the stored value means. It doesn't change what gets written.The helpers are
read_trial_scalesandscale_changesinu19_pipeline/utils/reward_scale_backfill.py.Evidence
pytest tests/utils/test_reward_scale_backfill.py: 92 passed (71 before). Full suite: 797 passed, 7 skipped (no database, or extras not installed).uvx prek run --all-filespasses.Merge Danger
Door: two-way
Blast Radius: low. Only the output of an audit/backfill script run by hand changes. Independent of #218, but #218 should go in before the script is run with an account that can create tables.
Assisted-by: ClaudeCode:claude-opus-5-5