Skip to content

feat(dashboard): serve trace session artifacts#1473

Merged
christso merged 1 commit into
mainfrom
feat/av-kve-2-trace-session-endpoints
Jun 22, 2026
Merged

feat(dashboard): serve trace session artifacts#1473
christso merged 1 commit into
mainfrom
feat/av-kve-2-trace-session-endpoints

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

AgentV Dashboard can now lazily inspect an eval result's agentv.trace.v1 sidecar from local or configured remote results sources. The new trace-session API mirrors the existing unscoped and project-scoped route pattern and wraps the shared Dashboard read model with typed artifact states, so missing, dangling, invalid, unsupported, or rejected trace artifacts do not break run detail.

Design Notes

  • Moved the pure Dashboard trace-session projector into @agentv/core and kept the Dashboard file as a thin re-export, so the CLI server and React app consume one read model.
  • Added GET /api/runs/:filename/evals/:evalId/trace-session and GET /api/projects/:projectId/runs/:filename/evals/:evalId/trace-session.
  • Reused manifest lookup, artifact pointer resolution, remote sidecar reads, and run-artifact path protections already used by transcript/file detail routes.
  • Raw OTLP or other non-agentv.trace.v1 artifacts return status: "unsupported"; normalization remains downstream av-kve.3 scope.

Validation

  • bun --filter @agentv/core build
  • bun test apps/cli/test/commands/results/serve.test.ts
  • bun --filter @agentv/dashboard test ./src/lib/trace-read-model.test.ts
  • bun run typecheck
  • bun run lint
  • bun --filter @agentv/dashboard build (passes; existing Vite chunk-size warning only)

Notes


Compound Engineering
GPT--5_Codex

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: f87be02
Status: ✅  Deploy successful!
Preview URL: https://259dae15.agentv.pages.dev
Branch Preview URL: https://feat-av-kve-2-trace-session.agentv.pages.dev

View logs

@christso christso marked this pull request as ready for review June 22, 2026 00:40
@christso christso merged commit 1a5ad4b into main Jun 22, 2026
10 checks passed
@christso christso deleted the feat/av-kve-2-trace-session-endpoints branch June 22, 2026 00:40
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