Skip to content

feat(results): simplify project + results config to one flat symmetric schema#1565

Merged
christso merged 2 commits into
mainfrom
av-results-schema-simplify
Jun 29, 2026
Merged

feat(results): simplify project + results config to one flat symmetric schema#1565
christso merged 2 commits into
mainfrom
av-results-schema-simplify

Conversation

@christso

Copy link
Copy Markdown
Collaborator

Summary

Replaces the dual flat/nested project + results config with one flat symmetric schema shared by the project source repo and the results block. Hard cut — no back-compat (per maintainer decision).

projects:
  - id: agentv
    name: AgentV
    repo: https://github.com/EntityProcess/agentv.git   # slug or URL, optional
    path: /home/entity/projects/EntityProcess/agentv     # local checkout
    branch: main
    results:
      repo: https://github.com/EntityProcess/agentv.git  # optional; defaults to source repo
      path: .                                            # existing checkout OR clone dest
      branch: agentv/results/v1
      auto_push: true

Removed wire fields (now fail validation)

results.remote, repo_url, repo_path, nested repo: / results.repo: objects, ref/source, results.sync.* (use flat auto_push), branch_prefix, push_conflict_policy, require_push.

The internal NormalizedResultsConfig still derives repo_url/repo_path and a remote='origin' alias — only the YAML wire surface is simplified. --results-require-push remains a per-run CLI override.

Rationale

  • results is nearly always a repo, so a flat shape is sufficient — nesting added no value.
  • Drops the misleading remote field (name-vs-URL ambiguity). Like beads, the git remote name is repo-owned state; AgentV assumes origin and never runs git remote add/set-url.
  • Symmetric source/results shape is easier for humans and agents to author.

Changes

  • packages/coreProjectResultsConfig, ResultsConfig wire type, parseResultsConfig, fromYaml/toYaml, normalizeResultsConfig, validation.
  • apps/cli results/run-eval mapping; apps/dashboard types/status.
  • Docs (dashboard.mdx, results.mdx, running-evals.mdx) incl. a migration section.
  • Tests updated for the new shape.

Verification

  • bun run buildbun run lint
  • Core schema tests (projects, config-loader, results-repo, config-validator): 180 pass
  • CLI/dashboard touched tests: 27 pass
  • Migrated real ~/.agentv/config.yaml; new build loads all 9 projects correctly.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

christso and others added 2 commits June 29, 2026 15:31
…c schema

Replace the dual flat/nested results config with a single flat shape shared by
the project source repo and the results block: repo (slug or URL), path (local
checkout), branch, and auto_push. Drop the removed wire fields entirely (hard
cut, no back-compat): results.remote, repo_url/repo_path, nested repo objects,
sync.{auto_push,push_conflict_policy,require_push}, and branch_prefix.

The internal NormalizedResultsConfig still derives repo_url/repo_path and the
origin remote alias; only the YAML wire surface is simplified.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: f09120c
Status: ✅  Deploy successful!
Preview URL: https://941d155b.agentv.pages.dev
Branch Preview URL: https://av-results-schema-simplify.agentv.pages.dev

View logs

@christso christso merged commit fcb36b0 into main Jun 29, 2026
8 checks passed
@christso christso deleted the av-results-schema-simplify branch June 29, 2026 13:48
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