Skip to content

test(evals): compare Standard discovery baselines across corpus revisions - #2698

Open
mshayeb wants to merge 13 commits into
openai:mainfrom
mshayeb:test/evals-discovery-release-baseline
Open

mshayeb wants to merge 13 commits into
openai:mainfrom
mshayeb:test/evals-discovery-release-baseline

Conversation

@mshayeb

@mshayeb mshayeb commented Nov 16, 2026 •

Copy link
Copy Markdown

Summary

Compare saved Standard time-budget runs offline to see whether discovery improved on shared cases even when the corpus changed. This addresses the comparison portion of #763.

Changes

Use evals/standard-time-budget/baseline.mts export to save a versioned snapshot, or compare to compare two snapshots or run directories. Optional output paths must name new files. Compare case IDs, paths, spans, CWE sets and source hashes. Report changed, added and removed cases separately. Include per-case and aggregate rates, safe controls, missing and failed attempts, and token usage. Reuse the grader and suite accounting. Flag grader revisions separately and reject inconsistent saved scores.

Testing

All nine earlier baseline tests passed against the refactored implementation. After consolidation, 155 offline Standard and secret discovery tests passed, including seven baseline tests. After adding two grader regression cases, all 40 baseline, grading, summary and experiment tests passed. Scoped evaluation type checks and formatting passed on Linux. No paid inference or benchmark results are included.

Risk and rollout

This changes evaluation utilities only. Review context changes outside the cited source file and any failure diagnostics before sharing snapshots. The comparison measures observed rates. It supplies neither a release corpus nor an automatic significance decision.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@github-actions github-actions Bot added the skip-release-notes Omit internal changes from generated release notes label Nov 16, 2026

Copy link
Copy Markdown
Contributor

Thanks for building this on the existing Standard evaluation runner and for keeping corpus changes separate from comparable-case regressions. One portability/disclosure edge case from reading baseline.mts: the exported baseline omits scanDir, reportPath and executable paths, but failed attempts copy record.error verbatim into baseline.json (and comparison output). Error messages can contain absolute local paths, command output or secrets, so a portable export is not necessarily safe to publish or share unchanged. Could you add a regression with a synthetic failure diagnostic containing a host path and either sanitise that field or clearly document that verbatim errors require a disclosure review before distribution? I haven't run the full suite, so this is a scoped review observation, not a claim about the rest of the comparison logic. Appreciate the careful treatment of changed cases and unknown results.

@mshayeb

mshayeb commented Nov 18, 2026

Copy link
Copy Markdown
Author

Thanks for catching that documentation and test gap, @sylvesterkaczmarek!

Per this repository's diagnostic-text policy (AGENTS.md), failed-attempt error diagnostics remain verbatim rather than sanitized or redacted so execution failures stay inspectable. I updated the PR in 850e9386 to test and document this explicitly:

  1. Regression test (evals/standard-time-budget/test_baseline.mts): Added a test with a synthetic failure diagnostic containing a host path (/local/host/worktrees/scan-state/worker) alongside completed-run scanDir, reportPath, and executable paths, verifying via CLI export and compare that structured host path fields are omitted while error is preserved verbatim in both baseline.json and comparison failures.
  2. Documentation (evals/standard-time-budget/README.md & evals/standard-time-budget/baseline.mts): Clarified that exported baselines omit structured host path fields (scanDir, reportPath, executable paths) and raw fixture source text, while failed attempts retain error text verbatim in both baseline.json and compare output and require a disclosure review for local paths, command output, or secrets before sharing or publishing.

@sylvesterkaczmarek

Copy link
Copy Markdown
Contributor

Thanks for the quick follow-up and for adding the synthetic host-path regression. Keeping failure diagnostics verbatim makes sense under the repository's policy, and the explicit disclosure-review warning addresses my concern about sharing exported baselines. I appreciate the clear distinction between structured path omission and preserved diagnostic text. No further concerns from my side on this point.

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for consolidating the metric mapping. I checked the latest refactor: unknown token counts still propagate through sumKnown, rate and delta, and the disclosure warning remains in the README. One small non-blocking regression improvement: in the existing unequal-corpus test, assert that delta.meanUsage.total_tokens is null and flags.hasUnknownUsage is true, so the comparison contract is covered directly.

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

skip-release-notes Omit internal changes from generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants