Repository navigation
docs(eval): point the compare examples at a run directory that exists - #6205
Conversation
|
Verdict: Approve The documented Real-world evidenceN/A: this changes only docs and 🔍 Technical detailsIssues found 🟢 The fixed timestamp could be read as a path to copy as-is ( This is optional. The same style is already used for the Strengths
|
|
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.
1e465cd to
f9663e2
Compare
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 alatestdirectory. The runner writes each run toeval/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--resumeexample. The CI example indocs/guides/eval-ci.mdxpicks 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=*.pyreturns 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 agentitself.If a
latestsymlink is preferred in code instead, this still applies as the documented path today.