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 discovering eval suites consistently withwaza coverageandwaza runin multi-skill workspaces.Let me first explore the repository structure to understand the codebase.
Assistant
This looks like a Go project. Let me explore the structure further - the
cmddirectory likely contains CLI commands, andinternalcontains internal packages. The issue is aboutwaza checknot discovering evals consistently withwaza coverageandwaza run.Let me first look at the
.waza.yamlat root to understand the config structure, then explore thecmdandinternaldirectories.Assistant
Let me execute commands one at a time.
Assistant
Now let me look at the cmd directory and the internal directory.
Assistant
Let me look at the waza CLI command structure.
Assistant
Let me look at the check command and the coverage command to understand the discovery logic.
Assistant
Let me see the
checkReadinessfunction and how it discovers evalsAssistant
Let me look at the
checkReadinessfunction and the workspace resolution logicAssistant
Now let me look at the workspace package to understand
FindEvaland `DetectContextAssistant
Let me look at the workspace package
Assistant
Now let me look at how coverage discovers skills and evals
Assistant
Now let me look at the
resolveWorkspacefunction to understand how it resolves skillsAssistant
Now I have a clear picture of the issue. Let me verify my understanding by looking at the test files
Assistant
Now I have a clear understanding of the issue. The
scanForSkillsfunction ininternal/workspace/workspace.goonly scans immediate children of the skills directory, but the workspace in the issue has two-level nesting (e.g.,skills/development/skill-creator/SKILL.md). Coverage works because it usesfilepath.WalkDirto recursively find SKILL.md files.Let me also verify my understanding by looking at the existing skills directory structure in the repo
Assistant
Let me look at the check test and workspace test files to understand the test patterns
Assistant
Let me check all usages of
scanForSkillsin the codebaseAssistant
Let me check the current imports in workspace.go
Assistant
Now I have a clear understanding of the issue. Let me fix the
scanForSkillsfunction to recursively scan for skills usingfilepath.WalkDir, similar to howdiscoverSkillFilesincmd_coverage.goworks.First, let me see the full
scanForSkillsfunction and surrounding code:Assistant
Let me now make the fix. I'll modify
scanForSkillsto recursively walk the directory tree.Assistant
The file got corrupted. Let me check the full state of the file and fix it
Assistant
The file got corrupted. Let me restore it from git and make the edit properly
Assistant
Good, file restored. Let me verify and now make the proper edit
Assistant
Good, file is restored. Now let me make the two changes: add
"io/fs"to imports and replacescanForSkillsto use recursive walking.Assistant
Now let me replace the
scanForSkillsfunction to use recursive walkingAssistant
Let me go to the relevant line first
Assistant
Now let me edit the function with the replace command
Assistant
Good, the edit is applied. Let me verify the file looks correct
Assistant
Now let me also fix the
checkReadinessfunction incmd_check.goto useconfigDetectOptions()when falling back to auto-detection, rather than using default optionsAssistant
Let me see context around that line
Assistant
Let me fix the auto-detection in
checkReadinessto use workspace config optionsAssistant
Let me open the correct file first
Assistant
Now let me go to line 426
Assistant
Now let me make the edit to use
configDetectOptions()Assistant
Now let me run the existing tests to verify the changes work
Assistant
Let me check the Go environment
Assistant
Let me set up the Go environment and try building
Assistant
Let me set all Go env vars and try again
Assistant
Build succeeds. Now let me run the workspace tests
Assistant
Let me run all workspace tests to verify the changes don't break existing functionality
Assistant
One test failed:
TestDetectContext_WithCustomSkillsDir. This test expects that default detection shouldn't find skills under a non-standard directory, but with recursive scanning, step 4 now finds them. This is an expected behavior change - the test was written for the old non-recursive behavior. Let me run the check tests tooAssistant
All check tests pass. Now let me create a reproduction script to verify the fix resolves the reported issue
Assistant
Now let me write a Go test script to verify the workspace detection works with nested skills
Assistant
Now let me run the test script
Assistant
Let me put the test script inside the module
Assistant
The fix works correctly. Both nested skills are discovered and evals are found at the right paths. Let me clean up and verify the final state of
Assistant
Let me verify the final
Assistant
Let me run the full test suite one more time to confirm the state
Assistant
The only failing test (
TestDetectContext_WithCustomSkillsDir) is testing old behavior where step 4 didn't recursively scan. The new recursive behavior is consistent with howcoveragediscovers skills. Let me verify the check tests still passAssistant
All check tests pass. Let me also run the coverage tests and the broader test suite
Assistant
Let me also run the workspace resolve tests
Assistant
All tests pass (except one that tests old non-recursive behavior). Let me now submit the changes
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.