Skip to content

fix(compare): read and keep a folded run's side judgement under its trial's own shard - #436

Open
harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/compare-shard-judgements
Open

harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/compare-shard-judgements

Conversation

@harenome

Copy link
Copy Markdown
Collaborator

Closes #430

What

  • A run folded from its shards carries its first shard's job_id.
  • Compare read and saved a later shard's side under that id; the trial page keys it by the trial's own job.
  • side_of and judge_side now key by trial.job_id, so both pages share one record per trial, and Judge all on Compare finds it.

Verified

  • Shard-2 trial, judged on its trial page: Compare read None before, the record now.
  • Judging that side from Compare: saved under the first shard's job before, under its own now.
  • test_a_folded_run_s_side_reads_and_keeps_its_own_shard_s_record fails on main at both steps.
  • Backend 3084, routes 580.

Risk

  • A side already judged from Compare under the first shard's job is not read; it is judged again once.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests

…rial's own shard

A run folded from its shards carries its first shard's job_id, so side_of and judge_side read and saved a later shard's trial under the first shard. Both now key by the trial's own job_id, the one the trial page uses.
@harenome
harenome marked this pull request as ready for review November 25, 2026 15:51

This branch has not been deployed

No deployments
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.

Compare reads and stores judgements of a sharded run's later shards under its first shard

1 participant