Skip to content

split_proxydb: clear the tags of any previous split - #20

Open
nickmckay wants to merge 1 commit into
mainfrom
fix-split-proxydb-tags
Open

nickmckay wants to merge 1 commit into
mainfrom
fix-split-proxydb-tags

Conversation

@nickmckay

Copy link
Copy Markdown

Fixes #14.

split_proxydb() now removes the assim and eval tags of any previous split before tagging, so calling it once per seed (as run_da_mc() does) gives an independent split each time. It also makes clear_proxydb_tags() reset tags to an empty set rather than a list, since other methods call tags.add().

Tests. test_resplit_replaces_previous_split splits 10 times with different seeds and checks that each split has the right number of assim and eval records and that they don't overlap. It fails on main. The full suite passes (218 tests).

Note. The existing test_same_seed_gives_same_split resets the tags by hand between splits, which is no longer needed but still passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TsdL1gpFWoD4LYexEPr6LD

split_proxydb only added 'assim' and 'eval' tags, so when it is called
once per seed (as in run_da_mc), a record drawn for assimilation by any
earlier seed stayed assimilated, and the eval set overlapped the assim
set. Also make clear_proxydb_tags reset tags to an empty set rather
than a list, since other methods call tags.add().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TsdL1gpFWoD4LYexEPr6LD
Copilot AI balanced review requested due to automatic review settings October 22, 2026 17:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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.

split_proxydb never removes old tags, so assim/eval sets accumulate across Monte Carlo seeds

2 participants