ISSUE DESCRIPTION waza check eval discovery is inconsistent with coverage and run in…
- User
ISSUE DESCRIPTION
waza checkeval discovery is inconsistent withcoverageandrunin multi-skill workspacesSummary
In a multi-skill workspace,
waza coverage .andwaza run evals/.../eval.yamlboth recognize the eval structure, butwaza checkdoes not discover the related eval suite consistently.This creates a confusing user experience because the workspace appears valid for coverage and execution, but readiness checks report that no eval exists or fail to find the skill.
Environment
- Waza version:
0.31.0 - OS: Windows
- Shell: PowerShell
Workspace shape
This was reproduced in a repository with this structure:
textrepo/ ├── .waza.yaml ├── skills/ │ ├── development/skill-creator/SKILL.md │ ├── copilot-exclusive/mcp-ecosystem/SKILL.md │ ├── copilot-exclusive/fleet-parallel/SKILL.md │ ├── testing/eval-harness/SKILL.md │ └── copilot-exclusive/background-agent/SKILL.md └── evals/ ├── skill-creator/eval.yaml ├── mcp-ecosystem/eval.yaml ├── fleet-parallel/eval.yaml ├── eval-harness/eval.yaml └── background-agent/eval.yamlThe root
.waza.yamlincludes:yamlpaths: skills: skills/ evals: evals/ results: results/ server: resultsDir: resultsSteps to reproduce
From the workspace root:
powershellwaza coverage . waza check skills/development/skill-creator waza check skill-creator waza run evals/skill-creator/eval.yaml --task create-dev-skill-001 --trials 1 --output-dir results -vActual behavior
waza coverage .Coverage recognizes the pilot evals and shows the skill as partially covered.
Example outcome:
- Waza version:
- Assistant
I'll start by exploring the repository structure and locating how
waza check,coverage, andrundiscover evals so we can align their behavior. - Assistant
This is a Go project. Let me search for the check command and eval discovery logic.
- Assistant
There's an internal/checks directory and internal/discovery. Let me explore those.
- Assistant
Let me look at the check command and discovery logic more carefully.
- Assistant
Let me look at how runCheck works and how it finds evals.
- Assistant
I'll inspect
FindEvaland how check resolves skill paths next. - Assistant
The skill layout is nested; I'll check whether discovery only scans one level deep, and how coverage handles that.
- Assistant
Coverage walks nested dirs via discovery while workspace scanning may not—I'll compare those code paths next.
- Assistant
Coverage reportedly works with nested skills—I'll inspect how it locates evals.
- Assistant
I'll review existing workspace/check tests and any recent changes related to nested skill discovery.
- Assistant
I'll review the remaining workspace tests and reproduce the issue with a minimal fixture.
- Assistant
I'll build waza and reproduce the nested multi-skill check failure.
- Assistant
I'll set Go cache env vars and rerun the reproduction more carefully.
- Assistant
Build seems to still be running or completed without explicit success message. Let me check.
- Assistant
Good, binary is built. Now reproduce.
- Assistant
Reproduced: nested skills aren't scanned and path-based check misses separated evals. I'll make skill scanning recursive and tighten check's workspace eval discovery.
- Assistant
I'll check how project config is loaded and whether path-based check can resolve the workspace root.
- Assistant
Updating workspace scanning and check's eval discovery path.
- Assistant
I'll harden the check command so path and config-based discovery use the same workspace resolution.
- Assistant
Need to open the file first at the right location.
- Assistant
Now I can replace correctly.
- Assistant
I'll make
checkReadinessmore resilient when the skill isn't already in the workspace skill list. - Assistant
I'll improve the eval discovery section to:I agree with your plan to improve the eval discovery in
waza check. To ensure consistency withcoverageandrun, we should:- Inject the skill into the workspace context if it's missing before calling
FindEval, since the test expects an error when the skill isn't in context.
- Inject the skill into the workspace context if it's missing before calling
- Assistant
I need to add the
ensureSkillInWorkspacehelper next. - Assistant
I'll rebuild and re-run the reproduction to verify the fix.
- Assistant
Fix works. Next I'll run the related unit tests and a few edge cases.
- Assistant
Recursive root scanning is too aggressive—I'll recurse only under the configured
skills/paths. - Assistant
I'll change to:
scanForSkills(parentDir, recursive bool)or two functions
- Assistant
Now update the scanForSkills function signature.
- Assistant
Need to go to that line first.
- Assistant
Now replace.
- Assistant
Also update the package-level comment for DetectContext aboutScanning.
- Assistant
Need to goto first
- Assistant
Let me use edit instead for the comment.
- Assistant
Rebuilding and re-running tests and the reproduction.
- Assistant
I'll run a few more edge-case scenarios and a broader unit test slice.
- Assistant
All edge cases look good. I'll review the final diff once more before submitting.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.