Skip to content

fix(v1): report platform run errors - #2577

Merged
xeophon merged 1 commit into
mainfrom
fix/report-platform-run-errors
Sep 10, 2026
Merged

xeophon merged 1 commit into
mainfrom
fix/report-platform-run-errors

Conversation

@xeophon

@xeophon xeophon commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Summary

  • surface contained prime-runs update and finalization errors through the existing incomplete upload status
  • preserve the current best-effort evaluation and run lifecycle semantics
  • keep the change production-only; no test files are included

Validation

  • uv run pytest tests/ -q (credential-gated E2E cases skipped)
  • uv run ruff check --fix .
  • uv run ty check verifiers
  • uv run pre-commit run --all-files
  • deterministic fake-backend probe confirms a finalization failure renders as incomplete

Note

Low Risk
Small change to how incomplete upload messages are assembled after run.finish(); improves visibility without altering eval or push control flow.

Overview
Platform push “incomplete” reporting now includes prime-runs run-level errors (e.g. update/finalization failures), not only per-sink failed records and uploader overruns.

_losses builds its message from run.errors first, then the existing failed-record and dropped-record details, so a run that closes successfully can still show an incomplete footer line when the SDK recorded errors during the lifecycle.

Reviewed by Cursor Bugbot for commit 0b14aaf. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Include run.errors in platform _losses loss description

Updates the _losses utility in platform.py to prepend the run's existing errors to the returned semicolon-separated loss message, before failed-record and dropped-record messages. The message still returns None when no messages are present.

Macroscope summarized 0b14aaf.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@macroscopeapp

macroscopeapp Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 0b14aaf

Macroscope's review found this PR approvable — This is a focused one-file fix that reports existing platform run errors through the current incomplete-status path. It does not alter evaluation execution, run finalization, or persistence behavior.

You can add or adjust custom eligibility rules. Learn more.

@xeophon
xeophon merged commit 8645e39 into main Sep 10, 2026
14 checks passed
@xeophon
xeophon deleted the fix/report-platform-run-errors branch September 10, 2026 08:23
mikasenghaas added a commit that referenced this pull request Sep 14, 2026
Main moved the eval CLI's platform upload onto prime-runs (#2415, #2569,
#2577) and taught the runner `run.attach`. All of that lives in files this
branch deletes, so the merge keeps the deletions and drops the new
`tests/v1/test_platform_run.py` with them. Nothing in verifiers imports
`prime_runs` any more, so the dependency goes too; prime-rl depends on it
directly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant