Skip to content

(fix) chess: redo forfeit logic for new replay format - #1235

Merged
dominoweir merged 5 commits into
chess-v2/mainfrom
chess-v2/forfeit-labeling
Jun 16, 2026
Merged

(fix) chess: redo forfeit logic for new replay format#1235
dominoweir merged 5 commits into
chess-v2/mainfrom
chess-v2/forfeit-labeling

Conversation

@dominoweir

Copy link
Copy Markdown
Contributor

This is pretty much a port of #1218 to this v2 visualizer as @pim-at-stink and I discussed yesterday. Will wait until after #1234 is merged to triple check and merge this.

Background: We have a slightly different approach to forfeits in the latest batch of chess runs, and all episodes going forward- we now are overwriting the player's status to DONE when these forfeits from illegal moves happen. The fix here is to look for the specific case where the agent did try to make a submission (non null action status) but action.submission === -1.

Changes: borrow heavily from the PR for the default visualizer, plus centralize forfeit labeling and reasons in forfeit.ts

Before:
977FAsvq4uquEGA

After:
5PEdwP4ck5nVvid

@pim-at-stink pim-at-stink left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

@dominoweir
dominoweir merged commit f66873a into chess-v2/main Jun 16, 2026
3 checks passed
@dominoweir
dominoweir deleted the chess-v2/forfeit-labeling branch June 16, 2026 17:54
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.

2 participants