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:
repo/ ├── .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:paths: skills: skills/ evals: evals/ results: results/ server: resultsDir: resultsSteps to reproduce
From the workspace root:
waza 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:
skill-creatorappears with2tasks- other pilot skills also appear in the coverage grid
waza run evals/skill-creator/eval.yaml ...Run executes successfully enough to:
- load the skill directories
- run the selected task
- apply graders
- save a result JSON file under
results/...
waza check skills/development/skill-creatorOutput includes:
Evaluation Suite: Not Found - Waza version:
- Assistant
I'll explore the repository structure and locate how
waza check,coverage, andrundiscover evals so I can align their behavior. - Assistant
Let me search for the check command and eval discovery logic.
- Assistant
I'll inspect the check command and workspace resolution code next.
- Assistant
Let me look at the check command more carefully and the FindEval / workspace discovery logic.
- Assistant
Let me look at how runCheck works and how coverage discovers skills, specifically looking at the skill path resolution in nested skills.
- Assistant
The path-style check path passes a nil workspace context — I’ll inspect discovery and path resolution next.
- Assistant
I'll examine
scanForSkillsand how coverage discovers nested skills. - Assistant
I've confirmed nested skill scanning is the gap — next I'll compare discovery/coverage walking and related tests.
- Assistant
I'll reproduce the nested-skill layout and inspect any related tests before implementing the fix.
- Assistant
I'll build waza and reproduce the nested multi-skill layout issue.
- Assistant
Need to set GOPATH or GOMODCACHE
- Assistant
The build might still be running or finished without binary. Let me check.
- Assistant
Build succeeded. Let me reproduce the issue.
- Assistant
Reproduced both failures. Making
scanForSkillsrecursive and ensuring path-basedcheckresolves workspace context for eval discovery. - Assistant
Need to use absolute path or cd first.
- Assistant
Let me update the scanForSkills function and the imports.
- Assistant
Now update the comment for DetectContext and scanForSkills itself.
- Assistant
Update the comment on step 4 too, and replace scanForSkills.
- Assistant
Now replace scanForSkills.
- Assistant
Need to navigate to the right line first.
- Assistant
Now I can replace.
- Assistant
Now I'll update
cmd_check.goso path-based checks solve workspace context and evals with the same config options. - Assistant
I need to open cmd_check.go
- Assistant
I'll update the path-based check to resolve workspace context.
- Assistant
Updating the fallback
DetectContextcall insidecheckReadinessto use the same config options. - Assistant
Let me read around line 425-455
- Assistant
Making
FindEvaltry the separated convention even when the skill isn't registered, and aligning the auto-detect path. - Assistant
Need to go to the FindEval location first.
- Assistant
Now replace FindEval
- Assistant
Now update checkReadiness fallback DetectContext
- Assistant
Need to navigate first.
- Assistant
Now replace
- Assistant
Improving error handling so an explicit skill name doesn’t fall back to checking the CWD.
- Assistant
Let me replace the fallback section.
- Assistant
Rebuilding and verifying the fix against the repro case.
- Assistant
Recursive scanning should apply under
skills/, not the entire workspace root — restoring a shallow scan for step 4. - Assistant
I'll change step 4 to use shallow scan, and rename/split the scan functions.
- Assistant
Now add scanForSkillsShallow function after scanForSkills.
- Assistant
I'll add scanForSkillsShallow after scanForSkills.
- Assistant
Also update the DetectContext topographical comment for step 4.
- Assistant
Navigate to line 75 first.
- Assistant
Update the comment.
- Assistant
Now run tests again and verify the repro.
- Assistant
All tests pass. Rebuild and verify repro again. Also run checks package tests.
- Assistant
Coverage may have been skipped due to the nonzero exit — verifying it separately.
- Assistant
Verifying multi-skill and diff completeness.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.