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 at hand.
The issue is about
waza checknot discovering eval suites consistently withcoverageandruncommands in multi-skill workspaces.Let me first explore the repository structure to understand what we're dealing with.
Assistant
This is a Go project. Let me explore more to understand the codebase structure.
Assistant
Let me explore the directory structure more, specifically the
cmddirectory andinternaldirectory to find thecheckcommand implementation.Assistant
Let me explore the cmd/waza directory.
Assistant
Let me look at the
cmd_check.gofile to understand the check command.Assistant
Let me open it with the correct parameter.
Assistant
Let me continue reading the check file
Assistant
Let me read more of this file, especially the workspace resolution and checkReadiness function
Assistant
Let me look at the
workspace_resolve.gofile to understand workspace resolution:Assistant
Let me continue reading this file.
Assistant
Now let me look at the internal/workspace package to understand skill/eval detection.
Assistant
Let me look at the workspace.go to understand the detection logic.
Assistant
Let me continue reading the detection logic.
Assistant
Let me continue reading the rest of the file
Assistant
Let me see the rest of the file.
Assistant
Let me look at the coverage command to understand how it discovers skills.
Assistant
Let me continue reading the coverage command
Assistant
Let me look at the
discoverSkillFilesfunction.Assistant
Let me search for
discoverSkillFilesin the coverage file.Assistant
Let me see the
discoverSkillFilesfunction.Assistant
Now I can see the core issue. Let me confirm by looking at the tests for workspace
Assistant
Let me look at how
discoverEvalFilesworks in coverage for comparisonAssistant
Now I have a clear understanding of the issue. Let me also look at the
discoverEvalFilesin the coverage command to understand how it discovers evals forAssistant
Let me open the coverage file and then goto line 266.
Assistant
Now I have a clear understanding of the bug. Let me also verify by looking at an existing test file for check_workspace
Assistant
Now let me implement the fix. The core issue is in
scanForSkillsin/waza/internal/workspace/workspace.go- it only scans immediate child directories, missing skills nested deeper than one level.Assistant
Let me check if
utilsis used anywhere in workspace.goAssistant
Let me see the end of the file
Assistant
Now I have a complete understanding. Let me implement the fix. The
scanForSkillsfunction needs to be recursive, similar todiscoverSkillFilesin the coverage command.Assistant
Let me use replace instead
Assistant
Let me navigate to the imports first
Assistant
Now let me replace the import block
Assistant
Now let me replace the
scanForSkillsfunction to make it recursiveAssistant
Now let me replace the
scanForSkillsfunctionAssistant
Now let me verify the code compiles and tests pass.
Assistant
Let me check the environment and set up Go properly.
Assistant
Go is installed. Let me set up GOPATH and GOMODCACHE.
Assistant
Let me set up the Go environment
Assistant
Let me set HOME and try again
Assistant
Now let me run the workspace tests.
Assistant
One test is failing. Let me look at it
Assistant
Let me look at that test
Assistant
I see - the test failure is because step 4 of
DetectContextnow recursively scans CWD, which shouldn't happen. I need to keep step 4 non-recursive while making step 3 recursive. Let me revertscanForSkillsand instead create a separate recursive function for steps 3 and 3b.Assistant
Let me go back to workspace.go and fix the approach
Assistant
Let me revert
scanForSkillsto non-recursive and create a recursive version for step 3Assistant
Let me navigate to the function location
Assistant
Now let me replace the function.
Assistant
Now let me update step 3 and 3b in
DetectContextto usescanForSkillsRecursiveAssistant
Now let me replace
scanForSkillswithscanForSkillsRecursivein step 3 and 3bAssistant
Now let me verify the code compiles and run the tests again.
Assistant
All workspace tests pass. Let me also run the check-related tests.
Assistant
All check-related tests pass. Let me now create a test script to verify the fix addresses the reported issue - where skills are nested in subdirectories.
Assistant
Let me write the test inside the workspace package instead.
Assistant
The test passes. Let me clean up the temporary test file and run the full suite.
Assistant
All workspace tests pass. Let me run the full cmd/waza test suite to be safe.
Assistant
Let me also run all the tests to make sure nothing else is broken.
Assistant
All tests pass across the entire project. Let me review the final diff of my changes.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.