Skip to content

docs(eval): point the compare examples at a run directory that exists - #6205

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
burgulvedant:docs/eval-compare-real-run-path
Nov 1, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
burgulvedant:docs/eval-compare-real-run-path

Conversation

@burgulvedant

@burgulvedant burgulvedant commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3169

What was wrong
The compare examples in the CLI help and the docs use eval/results/latest/scorecard.json. No eval run creates a latest directory. The runner writes each run to eval/results/eval-<timestamp>/, so the documented command fails with "Current scorecard not found".

What changed
The examples now use a real run directory name, eval/results/eval-20261021-141300/scorecard.json, the same style as the existing --resume example. The CI example in docs/guides/eval-ci.mdx picks the newest run directory with $(ls -dt eval/results/eval-*/ | head -1)scorecard.json, so it works without knowing the timestamp.

Files: src/gaia/cli.py (help text), docs/eval.mdx, docs/guides/eval.mdx, docs/guides/eval-ci.mdx, docs/reference/cli.mdx, docs/reference/features.mdx. Seven lines in total, no behaviour change.

Test plan
grep -rn "results/latest" . --include=*.md --include=*.mdx --include=*.py returns nothing.
python -c "import ast; ast.parse(open('src/gaia/cli.py').read())" succeeds.
Checked the CI shell expression on a directory with two eval-* folders; it picks the newest.
Not run: the docs build and gaia eval agent itself.

If a latest symlink is preferred in code instead, this still applies as the documented path today.

@github-actions github-actions Bot added documentation Documentation changes cli CLI changes labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

The documented --compare command pointed at an eval/results/latest/ folder that no eval run ever creates, so anyone copying it got "Current scorecard not found". This PR swaps every copy for a real run-folder name, and the CI example now picks the newest run on its own. It covers the CLI help and all five docs pages, and nothing still refers to the old path. No blocking issues.

Real-world evidence

N/A: this changes only docs and --help text, and no evidence bundle was produced. The verdict rests on static review. I checked that the eval runner really names each run eval-<UTC timestamp> under eval/results/, so the new example paths and the CI glob both match what it writes.

🔍 Technical details

Issues found

🟢 The fixed timestamp could be read as a path to copy as-is (docs/eval.mdx:461, and the same line in docs/guides/eval.mdx, docs/guides/eval-ci.mdx:129, docs/reference/cli.mdx, docs/reference/features.mdx). The comment above it still says "Compare latest run", but eval-20261021-141300 is only an example name. A short hint makes that clear:

# Compare a run against saved baseline (use the run directory `gaia eval agent` printed)
gaia eval agent --compare eval/results/eval-20261021-141300/scorecard.json

This is optional. The same style is already used for the --resume example.

Strengths

  • The CI snippet "$(ls -dt eval/results/eval-*/ | head -1)scorecard.json" is quoted and relies on the glob's trailing slash, so it builds a valid path. If no run exists, it still fails loudly with "not found" instead of comparing the wrong file.
  • The change is limited to the stale path in every place it appeared, with no unrelated edits.

@burgulvedant

Copy link
Copy Markdown
Contributor Author

The Windows unit test job failed on tests/unit/test_file_watcher_settle.py::test_real_watcher_reports_a_copied_file_once_complete with a timeout waiting for the watcher to see ready.txt. This PR only changes docs, and the Linux and macOS jobs pass, so it looks like a flaky test. Could a maintainer re-run the Windows job when convenient?

The compare examples used eval/results/latest/scorecard.json, but no eval run creates a latest directory. Each run writes to eval/results/eval-<timestamp>/ (runner.py), so the documented command failed with 'Current scorecard not found'. Use a real run directory name in the CLI help and the reference docs, and in the CI example pick the newest run directory.
@burgulvedant
burgulvedant force-pushed the docs/eval-compare-real-run-path branch from 1e465cd to f9663e2 Compare October 31, 2026 13:47
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 1, 2026
Merged via the queue into amd:main with commit ddee92f Nov 1, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI changes documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The documented compare command points at eval/results/latest/, a path the runner never creates

2 participants