Skip to content

fix(reports): say why the default report directory was refused and how to choose another - #541

Merged
chrisknvidia merged 1 commit into
mainfrom
fix/christopherk/report-dir-error-hint
Nov 14, 2026
Merged

chrisknvidia merged 1 commit into
mainfrom
fix/christopherk/report-dir-error-hint

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

When neither reports/ nor <skill>-reports/ can be claimed, validate stopped with only:

Error: Cannot safely reserve default report output directory: <dir>

That state is easy to reach when the ownership key changes between runs, for example containers that each start with a fresh home directory. The first run writes reports/, the second relocates to <skill>-reports/, and the third fails with no hint.

The refusal is on purpose (it protects folders SkillEvaluator cannot prove it created) and stays. The message now gives the reason and the way out:

Error: Cannot safely reserve default report output directory: <dir> (Generated output marker is missing, invalid, or bound to another path). Choose a report directory with -o/--output-dir.

docs/reports.mdx now says what happens when the sibling folder is unowned too, and that ownership is tied to a key in the home directory.

Verification

  • New test runs validate three times with three ownership keys, checks the third run fails with the hint and changes no file, then passes with -o.
  • The existing unowned-sibling test also checks the reason and the hint.
  • tests/test_commands.py, tests/test_cli.py, tests/test_base_install.py and the docs tests: 531 passed. ruff check and ruff format --check pass.

Release Impact

  • Updated CHANGELOG.md and docs/reports.mdx.
  • No behavior change besides the error text.

…w to choose another

When neither `reports/` nor `<skill>-reports/` can be claimed, validate
stopped with "Cannot safely reserve default report output directory:
<dir>" and no next step. That state is easy to reach when the ownership
key changes between runs, for example containers that each start with a
fresh home directory: the third run in one working folder fails.

Keep the refusal, which protects folders SkillEvaluator cannot prove it
created, and add the reason and the fix to the message: pass
-o/--output-dir. Document the case in docs/reports.mdx.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
@chrisknvidia
chrisknvidia merged commit 98469e6 into main Nov 14, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/report-dir-error-hint branch November 14, 2026 02:22
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