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

fix(dashboard): enforce configured run source contract - #1426

Merged
christso merged 1 commit into
mainfrom
fix/dashboard-run-source-contract
Jun 19, 2026
Merged

christso merged 1 commit into
mainfrom
fix/dashboard-run-source-contract

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

Dashboard no longer pretends it can serve arbitrary run folders or index.jsonl files as first-class sources. Passing a noncanonical direct source now fails at startup with actionable guidance to use the project's configured .agentv/results/runs/ source, --dir <project-dir>, or results: config, while one-off bundles are redirected to agentv results report.

The fix stays local to Dashboard source resolution: supported project auto-discovery and configured remote-results discovery still work, but the legacy positional source path is now treated as unsupported instead of being normalized into a manifest path. The CLI help text and Dashboard docs now describe that canonical run-source contract, and regression coverage exercises both direct run-directory and direct index.jsonl inputs with a WTG-style noncanonical fixture plus CLI-level failure assertions.

Test Plan

  • bun test apps/cli/test/commands/results/serve.test.ts
  • bun --filter agentv typecheck
  • bun x biome check apps/cli/src/commands/results/serve.ts apps/cli/test/commands/results/serve.test.ts apps/web/src/content/docs/docs/tools/dashboard.mdx
  • bun --filter @agentv/web build

Evidence

  • Red (HEAD, direct run dir): Serving 1 result(s) from /tmp/.../wtg-dogfood-noncanonical-run/index.jsonl
  • Green (this branch, same run dir): Error: Unsupported Dashboard source: /tmp/.../wtg-dogfood-noncanonical-run
  • Red (HEAD, direct index.jsonl): Serving 1 result(s) from /tmp/.../wtg-dogfood-noncanonical-run/index.jsonl
  • Green (this branch, same index.jsonl): Error: Unsupported Dashboard source: /tmp/.../wtg-dogfood-noncanonical-run/index.jsonl

Compound Engineering
Codex

@christso
christso marked this pull request as ready for review June 19, 2026 04:02
@christso
christso merged commit 553d509 into main Jun 19, 2026
8 checks passed
@christso
christso deleted the fix/dashboard-run-source-contract branch June 19, 2026 04:02
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