Skip to content

fix(examples): complete Arena metrics and generation defaults - #1746

Merged
sitabulaixizawaluduo merged 7 commits into
mainfrom
zjw/arena-followup-1702
Sep 22, 2026
Merged

sitabulaixizawaluduo merged 7 commits into
mainfrom
zjw/arena-followup-1702

Conversation

@Le8r0nJames

Copy link
Copy Markdown
Collaborator

Description

Complete Arena rollout observability and forward configured sampling defaults into proxy sessions.

  • Record turn distributions, bounded harness outcome rates, group solved-count/all-solved/all-unsolved metrics, and domain/stream breakdowns. Preserve existing metric names.
  • Attach session/task/status/outcome metadata to exported interactions and result audits. Missing or invalid optional metadata does not fail training or invent zero measurements.
  • Expose Arena generation arguments as session defaults and forward training top_p/top_k alongside temperature and the token limit. Explicit request fields and token-limit aliases retain precedence.

Harness rates cover usable exported episodes; group ratios cover attempted groups. Turn counts come from the last exported interaction (cumulative for concat exports). This adds no subprocess-agent metadata transport. Reward assignment, failure classification and filtering policies are unchanged.

Related Issue

Follow-up to #1702; the outcome metrics also extend #1724, and default precedence is related to #1725. No issue is closed by this PR.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation update
  • ♻️ Refactoring
  • ⚡ Performance improvement
  • ✅ Test coverage improvement

Checklist

  • I have read the Contributing Guide
  • Pre-commit hooks pass (pre-commit run --all-files)
  • Relevant tests pass; new tests added for new functionality
  • Documentation updated (English and Chinese CLI references regenerated; full site not built)
  • Branch is up to date with main
  • Self-reviewed via /review-pr command
  • This PR was created by a coding agent
  • This PR is a breaking change

Additional Context

Combined CPU regression: 205 passed against main c74b343c. Configuration consistency and CLI generation also passed in the target image. Read-only integration review found no blocking issues.

Full host pre-commit was run: formatting, lint, license and other static hooks passed; the configuration-consistency and CLI-generation hooks are blocked by host Python 3.10 / older PyTorch. Both scripts pass in the target Python 3.12 / PyTorch 2.9.1 image. No GPU end-to-end validation is claimed for this branch.

Record generated-turn distributions and bounded harness outcome rates
for exported episodes so rollout quality changes can be diagnosed.
Keep reward assignment and failure attribution unchanged.
Link exported interactions to Arena tasks and proxy sessions. Report
attempted-group quality by task type and stream while retaining existing
metric names. Tolerate missing measurements and invalid optional metadata
without fabricating rewards or changing failure attribution.
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