Skip to content

feat(evals): build drafts from one day of raw traces - #477

Merged
aamir merged 2 commits into
mainfrom
feat/one-day-eval-trace-export
Sep 1, 2026
Merged

feat(evals): build drafts from one day of raw traces#477
aamir merged 2 commits into
mainfrom
feat/one-day-eval-trace-export

Conversation

@aamir

@aamir aamir commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

What changes

understudy evals build is now the recommended coding-agent workflow for a captured workload. It resolves the selected project and workload, downloads one raw 24-hour trace window, writes a private and resumable local source package, and creates an eval-project.json handoff for the coding agent.

The user can select a complete UTC day with --date YYYY-MM-DD; otherwise the command uses the latest rolling 24 hours. Downloads run concurrently, retry transient failures, verify capture identity and content hashes, and record unavailable captures explicitly instead of hiding them.

The coding-agent handoff asks the agent to infer the workload goal, output contract, success criteria, execution modes, and failure taxonomy from the raw traces and repository. It then points to a deterministic local draft check. No model provider is called during source materialization.

Why

We want the backend to remain a generic authorized trace data plane while the customer’s coding agent performs workload-specific eval and verifier authoring. One day is the smallest useful default for tomorrow’s Cedar test and should be practical to download within the five-minute target through direct R2 downloads.

Contract changes

  • Replaces the unused backend-heavy eval export/proof flow with the generic raw workload export from understudy-platform#647.
  • Adds requested, materialized, and skipped counts plus source/skipped.jsonl to the v2 project source contract.
  • Keeps raw trace payloads local and excludes them from published eval artifacts.
  • Labels the old sampled evals create command as legacy; evals build is the front door.

Validation

  • npm run check
    • build and typecheck passed
    • 1,299 tests passed
    • all 43 public skills validated
    • npm package smoke passed
  • git diff --check

Review follow-up hardened timeout retries, rejected future ingestion cutoffs, preserved explicit-date versus rolling-window resume semantics, and fully validated the skipped-capture ledger.

Dependency

Requires https://github.com/understudylabs/understudy-platform/pull/647 to deploy the scoped raw trace endpoint.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T23:35:06.798877Z 724895a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot 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.

Devin Review found 3 potential issues.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread src/workload-trace-export.ts
Comment thread src/evals/check.ts
Comment thread src/workload-trace-export.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 724895a572

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/trace-exports.ts
Comment thread src/evals/check.ts
- preserve rolling versus dated export resume semantics

- validate timeout, cutoff, skipped-index scope, order, and uniqueness
@aamir
aamir merged commit 0bfb2e4 into main Sep 1, 2026
8 checks passed
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