Skip to content

Reject missing logprobs in the capture readiness probe - #1798

Draft
Gavin-Meng wants to merge 1 commit into
openenv:mainfrom
Gavin-Meng:fix/capture-probe-missing-logprobs
Draft

Gavin-Meng wants to merge 1 commit into
openenv:mainfrom
Gavin-Meng:fix/capture-probe-missing-logprobs

Conversation

@Gavin-Meng

Copy link
Copy Markdown

Summary

The capture readiness probe accepted replies with the expected number of logprob entries, even when an entry had a null or missing sampled logprob. Runtime capture drops those values. Check each entry before declaring the endpoint trainable and include a diagnostic when a sampled value is missing.

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 null-value and missing-field probe cases both fail on f7a64306. With the fix, the probe reports a reachable, eval-only endpoint and includes missing_sampled_logprob.
  • PYTHONPATH=src:envs pytest -q tests/envs/test_harbor_capture_level.py tests/envs/test_harbor_capture_normalise.py tests/envs/test_harbor_tito_training.py tests/envs/test_harbor_capture_graph.py on macOS CPU: 132 passed.

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