Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

feat(trace): prepare trace artifact grading - #1419

Merged
christso merged 1 commit into
mainfrom
feat/prepare-trace-docs
Jun 19, 2026
Merged

christso merged 1 commit into
mainfrom
feat/prepare-trace-docs

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

Prepared-attempt grading can now consume imported trace/session artifacts, so manual or external-agent runs can feed trace-aware graders without rerunning the target provider.

The trace input accepts canonical agentv.trace.v1 JSON/JSONL plus AgentV transcript JSONL, matches multi-record files by test_id and target, and fails clearly when the trace is missing, ambiguous, or belongs to a different prepared attempt.

The prepare/grade docs now spell out the prepare -> external agent -> grade workflow and its observability boundary: AgentV prepares and grades, while Opik/Phoenix/OTel tracing is emitted by the harness or target rather than an agentv watch path.

The public trace naming is also converged on plain Trace* types and agentv.trace.v1 as the only canonical AgentV trace namespace.

Verification

  • git diff --check origin/main
  • bun test apps/cli/test/commands/grade/grade-prepared.test.ts apps/cli/test/commands/trace/trace.test.ts
  • bun test packages/core/test/evaluation/trace-envelope.test.ts packages/core/test/evaluation/trace-trajectory.test.ts
  • bun test packages/eval/test/define-code-grader.test.ts packages/eval/test/define-prompt-template.test.ts

Compound Engineering
Codex

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 85882bc
Status: ✅  Deploy successful!
Preview URL: https://c5006e01.agentv.pages.dev
Branch Preview URL: https://feat-prepare-trace-docs.agentv.pages.dev

View logs

@christso
christso marked this pull request as ready for review June 19, 2026 03:58
@christso
christso merged commit 43fe4e8 into main Jun 19, 2026
8 checks passed
@christso
christso deleted the feat/prepare-trace-docs branch June 19, 2026 03:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant