Skip to content

Skip shadowed Harbor tasks in training prompt rows - #1797

Draft
Gavin-Meng wants to merge 1 commit into
openenv:mainfrom
Gavin-Meng:fix/harbor-shadowed-prompt-rows
Draft

Gavin-Meng wants to merge 1 commit into
openenv:mainfrom
Gavin-Meng:fix/harbor-shadowed-prompt-rows

Conversation

@Gavin-Meng

Copy link
Copy Markdown

Summary

HarborSessionFactory.create() resolves duplicate instructions to the first task, but prompt_rows() also emitted rows naming the other tasks. A trainer could log one task while running and grading another. Build rows from the same instruction-to-task mapping that the factory uses at rollout time.

Type of Change

  • Bug fix

Alignment Checklist

  • Read .claude/docs/PRINCIPLES.md and this PR aligns with our principles
  • Checked .claude/docs/INVARIANTS.md and no invariants are violated
  • Ran bash .claude/hooks/lint.sh and the affected tests

RFC Status

  • Not required (bug fix)

Test Plan

  • The duplicate-instruction regression fails on f7a64306. With the fix, every emitted row resolves to its recorded task index. The test also checks that the raw task list includes all selected tasks.
  • PYTHONPATH=src:envs pytest -q tests/envs/test_harbor_session_factory.py tests/core/test_harness_runtime.py on macOS CPU: 51 passed, 1 skipped.
  • The broader Harbor run had 675 passed, 47 skipped, and 1 failure. test_start_refuses_a_port_held_by_a_non_capture_listener also fails on f7a64306 on the same machine.

Claude Code Review

N/A

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.

1 participant