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
Let me start by understanding the repository structure and the issue. The issue is about
waza checknot properly discovering evals in multi-skill workspaces, whilewaza coverageandwaza runwork fine. Let me explore the repository first.Let me understand:
- The repository structure
- How
check,coverage, andruncommands work - Why
checkhas different discovery logic
Let's start by exploring.
Assistant
This is a Go project. Let me explore the structure more to understand the codebase. The issue is about
waza checkcommand. Let me look at the cmd directory and internal directory to understand the command structure.Assistant
Let me look at the cmd/waza directory.
Assistant
Let me look at the key files for understanding the issue.
Assistant
Now let me look at the check command implementation.
Assistant
Let me see the
checkReadinessfunction which is key to the eval discovery.Assistant
Let me see the
checkReadinessfunction starting at line 358.Assistant
Let me now look at the workspace package to understand
DetectContextandFindEval.Assistant
Let me look at the workspace.go file.
Assistant
Now I see the potential issue. Let me verify by looking at how
coverageresolves skills (since it works correctly according to the issue). Let me also look atcmd_run.go.Assistant
Now I clearly understand the issue. The
coveragecommand usesfilepath.WalkDirto recursively discover skill files, butscanForSkillsin the workspace package only scans immediate children. Skills nested in subdirectories likeskills/development/skill-creator/are missed.Let me look at the workspace tests to understand the expected behavior:
Assistant
Now I have a clear understanding. Let me verify the bug by looking at the
scanForSkillsfunction more closely and comparing with coverage'sdiscoverSkillFiles:Assistant
Let me create a reproduction script to confirm the bug:
Assistant
Let me check the Go environment setup:
Assistant
The GOPATH and GOMODCACHE aren't set. Let me set them up.
Assistant
Let me write a test inside the workspace package instead:
Assistant
Let me set up the Go environment properly:
Assistant
Let me fix the unused import and re-run:
Assistant
Bug confirmed. Now let me fix the
scanForSkillsfunction. The issue is that it only scans immediate children, but skills can be nested in category subdirectories (e.g.,skills/development/skill-creator/SKILL.md). Let me fix it:Assistant
Let me use the open command correctly.
Assistant
Let me see the imports at the top of the file:
Assistant
Now let me replace
scanForSkillsto use recursivefilepath.WalkDir:Assistant
Let me use the replace command instead:
Assistant
Now let me re-run the reproduction test to confirm the fix works:
Assistant
The fix works. Now let me also fix the fallback in
checkReadinessto useconfigDetectOptions()for consistency:Assistant
Let me look at the context around that line:
Assistant
Let me fix the fallback to use
configDetectOptions():Assistant
The file is in cmd/waza/, not cmd/. Let me fix:
Assistant
Let me navigate to the right location:
Assistant
Now let me replace the text:
Assistant
Now let me run all workspace tests to make sure nothing is broken:
Assistant
I see a test failure. Step 4 (scanning immediate children of CWD) should remain non-recursive — it's a different use case from scanning the
skills/directory. Let me fix this by separating the two behaviors:Assistant
Let me open the workspace.go file:
Assistant
Let me see all calls to
scanForSkills:Assistant
I need to make step 4 (scanning immediate children of CWD) non-recursive while keeping steps 3 (skills directory) recursive. Let me update the code:
Assistant
Now update line 153 to use
scanImmediateSkills:Assistant
Now let me replace line 153:
Assistant
Now let me re-run all workspace tests:
Assistant
All workspace tests pass. Now let me run the check tests:
Assistant
All check tests pass. Let me also build the project to make sure it compiles:
Assistant
Good, it compiles. Now let me clean up the temporary test file:
Assistant
Let me verify the final diff of all changes:
Assistant
Let me run the full workspace tests one final time to confirm everything is clean:
Assistant
All tests pass. Let me run the check tests one final time:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.