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 Foundwaza check skill-creatorOutput includes:
no SKILL.md found in <workspace root>Expected behavior
waza checkshould discover the corresponding eval suite consistently when:- the workspace has a valid root
.waza.yaml - the skill exists under
skills/.../<skill-name>/SKILL.md - the eval exists under
evals/<skill-name>/eval.yaml coverageandrunalready succeed against the same workspace
At minimum,
checkshould either:- locate the matching eval and report it, or
- explain the discovery rule clearly enough that the user can resolve the mismatch
Why this matters
For new users,
checklooks like the natural readiness command. When it disagrees withcoverageandrun, it is hard to tell whether:- the workspace is invalid
- the eval naming/path convention is wrong
- or
checkis using different discovery rules
This makes initial adoption harder, especially in multi-skill repositories.
Additional note
This may be either:
- a discovery bug in
check, or - a documentation/UX gap where
checkexpects a different invocation pattern than users would infer fromcoverageandrun
Either way, the current behavior is surprising.
Possible improvements
Any of these would help:
- Make
checkreuse the same discovery logic ascoverage - Document the exact resolution rule from skill path/name to eval path
- Add debug output showing where
checklooked for the eval - Improve the error message when the skill name/path is interpreted differently than expected
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you callsubmit) usinggit statusorgit diffcommands. However you don't need to usegit addorgit commitbefore submitting your changes. In fact,submitonly submits currently unstaged changes because it usesgit diffto get the changes that need to be submitted.CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
- If an error was reported in the issue description, I have successfully reproduced it.
- If an error was reported in the issue description, I have confirmed that my fix resolves the error.
- I have thought about edge cases and made sure my fix handles them as well.
- I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass. I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.
Repository has been uploaded and your shell is currently at the repository root. Time to solve the issue!
(Current directory: /waza, current file: none) bash-$
- Waza version:
Assistant
Let me start by exploring the repository structure to understand the codebase.
Assistant
Let me look at the checkReadiness function and how it resolves the eval.yaml.
Assistant
Now let me understand
workspace.FindEvalandFindSkillmore deeply.Assistant
Now let me look at the related commands that work:
coverageandrunto see how they discover evals.Assistant
Now let me look at
cmd_run.goto see howrundiscovers evals.Assistant
Now I understand the issue. Let me first reproduce the issue and understand the exact structure.
Assistant
Let me look at examples to find a multi-skill workspace where I can reproduce the issue.
Assistant
Let me create a temporary reproduction workspace based on the issue:
Assistant
Now let me build the waza command and try to reproduce the issue:
Assistant
Coverage works. Now let me try
check:Assistant
The colons in
USE FOR:cause YAML issues. Let me rewrite the skills:Assistant
I've reproduced the bug! Let me check the second case from the issue:
Assistant
Now let me understand the bug. The
checkReadinessis called withnilfor wsCtx when the user passes a path. Let me trace it more carefully:Assistant
Let me trace through the code more carefully to understand the discovery problem:
Assistant
Let me look at the tests to understand the expected behavior:
Assistant
Now let me run the existing tests to see what's working:
Assistant
Let me design the fix. The core problem is that
scanForSkillsonly scans one level deep. Let me look more carefully:Assistant
Now let me look at FindSkill and the auto-detection logic to make sure my fix is complete:
Assistant
Let me check the existing imports in workspace.go:
Assistant
Let me look at more test cases in workspace_test.go to understand the test expectations:
Assistant
Let me also check the workspace_resolve tests:
Assistant
Now I have enough understanding. Let me design the fix:
-
Make
scanForSkillsrecursive so it finds skills in nested directories likeskills/{category}/{name}/SKILL.md. This makescheckconsistent withcoverageandrun. -
Use
configDetectOptions()in the fallbackDetectContext(wd)call incheckReadinessso it picks up custom paths from.waza.yaml.
Let me first look at the imports needed:
-
Assistant
Now let me make the fix to make
scanForSkillsrecursive:Assistant
Now let me make the change to make
scanForSkillsrecursive:Assistant
I need to use the correct syntax. Let me use the open command first and then use sed or replace.
Assistant
Now let me also add the
io/fsimport:Assistant
io/fsis needed forfs.DirEntry. Let me add it:Assistant
Now let me build and test:
Assistant
Now let me test the fix:
Assistant
The first case is now fixed! Let me test the second case:
Assistant
Both cases are now fixed. Let me run the existing tests to make sure I didn't break anything:
Assistant
I broke a test. Let me look at the test that's failing and understand the design intent:
Assistant
The test expects that when no
skills/dir exists, the default detection should NOT find skills atmy-skills/alpha/SKILL.md. I need to make the recursive scan only apply to the configured skills directory, not the fallback root scan. Let me refactor:Assistant
All workspace tests pass. Now let me also run the check tests and make sure they pass:
Assistant
All tests pass. Now let me verify the fix works for the issue's scenarios:
Assistant
Both scenarios from the issue now work. Let me also run a quick check to make sure the coverage scenario still works:
Assistant
Now let me also add the second fix: use config options in the fallback
DetectContext(wd)call incheckReadiness. This way, custom paths from.waza.yamlare also respected:Assistant
Both still work. Now let me also test edge cases:
Assistant
All 5 skills are found. Let me also test edge cases like running from a subdirectory:
Assistant
Let me also test with a custom skills dir:
Assistant
Custom paths also work. Now let me run all the tests:
Assistant
All tests pass. Now let me think about more edge cases. Let me check what happens when the user uses the
waza checkfrom the actual repo workspace:Assistant
Let me check the actual waza repo structure to see what was found:
Assistant
Let me see what the waza repo's coverage shows:
Assistant
OK so coverage finds the same 4 skills (including
azd-publishfrom.github/skills/). My check command now matches this behavior.But wait, my check is showing only 3 evals. Let me check more carefully. In the waza repo, there is no
evals/directory. Let me check:Assistant
Let me also test the
waza run skill-creator(without explicit eval path) scenario:Assistant
Let me verify the resolution is correct by running a dry-run-like test that just resolves paths:
Assistant
Let me run the tests in the cmd/waza package that are related to the changes:
Assistant
All tests pass. Now let me also check that the related
runandcoveragetests still pass:Assistant
All tests pass. Now let me also look at the final version of my changes:
Assistant
Let me also check a few more edge cases. Let me look at the full state of the changed file:
Assistant
Let me also test with a colocated eval:
Assistant
Colocated eval is also found. Let me test a nested subdir eval:
Assistant
Nested subdir eval is found. Let me also test the issue's exact scenario:
Assistant
Wait, let me check what happened. Earlier I moved skill-creator to a custom dir:
Assistant
I moved the SKILL.md earlier. Let me restore the structure:
Assistant
Both scenarios from the issue are now fixed. Let me also rebuild to be sure my changes are reflected:
Assistant
Now let me run all the tests one more time:
Assistant
All tests pass. Let me also think about any additional tests I should consider. Let me re-read the issue one more time to make sure I've covered all the points:
Assistant
Let me test the legacy layout (sibling skills at root) still works:
Assistant
Let me also test when
skills/dir doesn't exist but there are deep-nested dirs at root:Assistant
Good. The legacy shallow-scan behavior is preserved. Let me also do a final review of my changes:
Assistant
Let me run a final comprehensive test to make sure everything works:
Assistant
All tests pass. Now let me clean up my temporary files and verify the issue is fully fixed:
Assistant
Let me also do a final test to verify both issue scenarios work, by recreating the test workspace:
Assistant
All scenarios from the issue are now fixed:
- ✅
waza coverage .shows both skills (consistency) - ✅
waza check skills/development/skill-creatorfinds the eval - ✅
waza check skill-creator(by name) finds the eval - ✅
waza check mcp-ecosystem(by name in different category) finds the eval - ✅
waza check(no args) finds all evals
Let me also clean up:
- ✅
Assistant
Now let me also run the tests one final time to make sure everything is good:
Assistant
No failures! Now let me check the final state of my changes:
Assistant
Let me also run the linter to make sure my code is clean:
Assistant
Code is properly formatted. Let me view the final state of my changes to ensure quality:
Assistant
Let me also check the final state of the cmd_check.go changes:
Assistant
My fix is complete. Let me do a final verification of the changes and the test results:
Assistant
The 0 means 0 failures (grep returns 1 when no matches, but that's actually the desired outcome). Let me re-verify:
Assistant
All 43 packages pass tests. Let me now think about the checklist one more time and ensure I've addressed everything:
Checklist:
-
If an error was reported in the issue description, I have successfully reproduced it.
- ✅ I created a test workspace matching the issue's structure (skills at
skills/{category}/{name}/SKILL.mdand evals atevals/{name}/eval.yaml). - ✅ I confirmed both error scenarios from the issue:
waza check skills/development/skill-creator→ "Evaluation Suite: Not Found"waza check skill-creator→ "no SKILL.md found in "
- ✅ I created a test workspace matching the issue's structure (skills at
-
If an error was reported in the issue description, I have confirmed that my fix resolves the error.
- ✅ After my fix:
waza check skills/development/skill-creator→ "Evaluation Suite: Found"waza check skill-creator→ "Evaluation Suite: Found"waza check mcp-ecosystem(skill in a different category) → "Evaluation Suite: Found"waza check(no args, all skills) → finds all evals
- ✅ After my fix:
-
I have thought about edge cases and made sure my fix handles them as well.
- ✅ Custom
paths.skillsandpaths.evalsfrom.waza.yamlwork correctly - ✅ Legacy layout (sibling skills at root, no
skills/dir) still works - ✅ Colocated eval.yaml still works
- ✅ Nested subdir eval.yaml still works
- ✅ Hidden directories,
node_modules,vendorare properly skipped - ✅ The original test
TestDetectContext_WithCustomSkillsDirstill passes (preserving the contract that custom skills dirs require explicit configuration)
- ✅ Custom
-
I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass.
- ✅ All 24 workspace tests pass
- ✅ All Check, Run, Coverage, Resolve tests pass
- ✅ All 43 packages pass tests (0 failures)
Let me also write a brief summary of what the fix does:
-
Assistant
The fix is minimal and focused:
Summary of fix:
The issue was that
waza checkfailed to discover eval suites in multi-skill workspaces with nested skill directories (e.g.,skills/development/skill-creator/SKILL.md), whilewaza coverageandwaza runboth worked correctly. The root causes were:internal/workspace/workspace.go::scanForSkillsonly scanned immediate child directories of theskills/folder, missing skills nested in category subdirectories.cmd/waza/cmd_check.go::checkReadinessfallback usedworkspace.DetectContext(wd)withoutconfigDetectOptions(), so it didn't honor custompaths.skillsandpaths.evalsfrom.waza.yaml.
Changes:
-
Made
scanForSkillsrecursive usingfilepath.WalkDir. It skips hidden directories,node_modules, andvendordirectories. It also handles.agent.mdfiles (withSKILL.mdtaking priority in the same directory). -
Added
scanImmediateChildrenForSkillsas a separate function for the fallback case. This preserves the original behavior of detecting sibling-skill workspaces (noskills/dir at root) without recursively scanning arbitrary user directories. This was needed to maintain the behavior enforced byTestDetectContext_WithCustomSkillsDir. -
Updated
DetectContextto use recursivescanForSkillsonly on the configured skills directory, and shallowscanImmediateChildrenForSkillsonly as a fallback when the configured skills directory doesn't exist. -
Updated
checkReadinessfallback to passconfigDetectOptions()toDetectContext, ensuring custom paths from.waza.yamlare honored (consistent withcoverageandrun).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
claude-sonnet-5Compare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.6-35B-A3BCompare side by side →
Qwen/Qwen3.5-35B-A3BCompare side by side →
Qwen/Qwen3.5-35B-A3BCompare side by side →