Skip to content

docs: warn that --save-baseline overwrites the committed baseline - #6981

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
georgekhananaev:docs/save-baseline-warning
Nov 9, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
georgekhananaev:docs/save-baseline-warning

Conversation

@georgekhananaev

Copy link
Copy Markdown
Contributor

Summary

Adds a warning to the Regression Testing section of the eval guide: --save-baseline overwrites the committed eval/results/baseline.json, even after a run where everything fails.

Why

The guide says to save a baseline after a known-good run, but nothing enforces that. A 0% run replaces the tracked baseline and still exits 0, so it's easy to commit a broken baseline without noticing. Until there's a guard in the code, the docs should at least say so and show how to recover.

Linked issue

Closes #3461

Changes

  • docs/guides/eval.mdx: a <Warning> after the regression testing example explaining the overwrite, suggesting git diff before committing, and showing how to restore the file.

Test plan

  • python util/check_doc_links.py --internal-only passes
  • mintlify validate builds, with no warnings for guides/eval.mdx

Evidence

N/A for all surfaces: this is a docs-only change.

Checklist

  • I have linked a GitHub issue above (Closes #N / Fixes #N / Refs #N).
  • I have described why this change is being made, not just what changed.
  • I have run linting and tests locally (python util/lint.py --all, pytest tests/unit/). Docs-only change, so I ran the docs checks above instead.
  • I have attached real-world evidence matched to the surface I changed (see Evidence above), or marked each surface N/A.
  • I have updated documentation if user-visible behavior changed (see CONTRIBUTING.md).

@github-actions github-actions Bot added the documentation Documentation changes label Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve

This adds a warning to the eval guide: --save-baseline overwrites the baseline file that is committed to the repo, even after a run where everything fails, and the command still reports success. I checked each claim against the code and they all hold. The recovery steps are correct. Nothing blocks the merge.

Real-world evidence

N/A: this PR only changes docs, so there was nothing to run. The verdict rests on reading the code.

🔍 Technical details

What I checked

  • Overwrites a committed file: eval/results/.gitignore ignores everything except !baseline.json, and git ls-files lists eval/results/baseline.json, so the file really is tracked.
  • Writes on any run: src/gaia/cli.py:6028 only checks save_baseline and last_scorecard. A scorecard with every scenario failing or erroring is truthy, so it gets written.
  • Exits 0: after the write the handler hits a plain return, with no check on the pass rate.
  • Recovery commands: git diff and git checkout -- eval/results/baseline.json match that path and work from the repo root, which is where the guide's other commands assume you are.

Issues found: none.

Strengths

  • The warning sits right below the example that tells users to run --save-baseline, which is where someone would run into the problem.
  • It gives a check to do before committing and a one-line way back, not just a caution.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 9, 2026
Merged via the queue into amd:main with commit 6caadba Nov 9, 2026
21 checks passed
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--save-baseline is documented with no warning that it overwrites the git-tracked eval/results/baseline.json, even from an all-failed run

2 participants