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 checkeval discovery being inconsistent withcoverageandrunin multi-skill workspaces. The problem is that:waza coverage .works and finds evalswaza run evals/skill-creator/eval.yaml ...works- But
waza check skills/development/skill-creatorsays "Evaluation Suite: Not Found" - And
waza check skill-creatorsays "no SKILL.md found in "
Let me explore the repository to understand its structure and find the relevant code.
Assistant
Let me explore more of the repository structure, especially around the
check,coverage, andruncommands.Assistant
Let me try one command at a time.
Assistant
Let me explore the cmd/waza directory.
Assistant
Let me look at the key files. First, the check command
Assistant
Let me see the
checkReadinessfunction:Assistant
Let me read the checkReadiness function
Assistant
Now let me look at
workspace_resolve.goand the workspace package to understand the discovery logic:Assistant
Let me look at the workspace package
Assistant
Let me read the workspace.go file.
Assistant
Let me look at how coverage discovers
Assistant
Now let me look at the workspace tests to understand expected
Assistant
Now I have a clear understanding of the issue. Let me trace through the problem:
waza check skills/development/skill-creator→ Goes to path-based branch → callscheckReadiness(skillDir, nil)→ detects workspace withoutconfigDetectOptions()→scanForSkillsonly checks immediate childrenwaza check skill-creator→ Goes toresolveWorkspace→DetectContext→scanForSkills("skills/")only checks immediate children ofskills/→ doesn't find skills nested in subdirectories likeskills/development/skill-creator/
The root cause is
scanForSkillsonly checks immediate children, whilecoverageusesfilepath.WalkDirwhich is recursive.Let me look at the key function more closely
Assistant
Let me see the existing
scanForSkillsand create a fix. First, let me open the file and look at the relevant areaAssistant
Now I'll implement the fix. The core issue is that
scanForSkillsonly scans immediate children, but for multi-skill workspaces with nested skill directories (likeskills/development/skill-creator/), we need recursive scanning. Let me also check the imports:Assistant
Now let me implement the fix. The main issue is that
scanForSkillsonly scans immediate children. I need to make it recursive usingfilepath.WalkDir. Let me also fix the secondary issue incheckReadinesswhere it doesn't useconfigDetectOptions().First, let me fix
scanForSkillsinworkspace.go:Assistant
Let me see the full file.
Assistant
Now I understand the full picture. Let me implement the fix. There are two issues:
scanForSkillsonly checks immediate children - needs to be recursivecheckReadinessdoesn't useconfigDetectOptions()when auto-detecting from CWD
Let me fix both. First, the
scanForSkillsfunction:Assistant
Now let me update the
scanForSkillsfunction to recursively scan for SKILL.md filesAssistant
I notice there might be an extra
}at line 324. Let me checkAssistant
There's a stray
}. Let me fix it:Assistant
Now let me also fix
checkReadinessincmd_check.goto useconfigDetectOptions()when auto-detecting workspace from CWD. Let me find the relevant lines:Assistant
Let me look at the context around that line in cmd_check.go:
Assistant
Now let me fix the
checkReadinessfunction to useconfigDetectOptions()Assistant
Now let me verify the build compiles:
Assistant
Let me check the Go environment and fix it:
Assistant
GOPATH and GOMODCACHE are not set. Let me set them up.
Assistant
Let me set the Go environment properly:
Assistant
Build succeeds. Now let me run the workspace tests:
Assistant
The test
TestDetectContext_WithCustomSkillsDiris failing because step 4 ofDetectContextnow recursively scans CWD's children. Step 4 was meant to only scan immediate children. I need to keepscanForSkillsnon-recursive for step 4 and create a recursive version for steps 3 and 3b.Let me fix this by adding a separate recursive function for steps 3 and 3b:
Assistant
Now I need to update
DetectContextto usescanForSkillsDeepfor steps 3 and 3b. Let me update those callsAssistant
I see there's a duplicate line. Let me fix it - remove the old
scanForSkillscall:Assistant
I see the
if isDir(skillsDir) {line is missing. Let me check the full context around lines 130-135Assistant
The
if isDir(skillsDir) {line is missing. Let me fix itAssistant
Now let me also update step 3b (
.github/skills/) to use the recursive scan:Assistant
Now let me verify the build and run the tests:
Assistant
Build passes. Now let's run the tests:
Assistant
All workspace tests pass. Now let me also run the check command tests:
Assistant
All check command tests pass. Let me also run a broader test suite to make sure nothing else is broken:
Assistant
All tests pass. Let me now create a reproduction script to verify the fix works for the multi-skill workspace scenario described in the issue
Assistant
Let me create a test workspace with the structure described in the issue.
Assistant
Now let me create the SKILL.md files and eval.yaml files.
Assistant
Now let me write a test script to verify the fix works:
Assistant
Let me run the test script to verify the fix
Assistant
Let me create a proper test instead using the existing test infrastructure
Assistant
Let me run these
Assistant
Let me fix the test file
Assistant
Let me fix the import block properly
Assistant
Now let me run the tests.
Assistant
Both tests pass. Let me clean up the temporary test files and run all tests one more time
Assistant
Now let me remove the temporary test file and run all workspace tests
Assistant
The instructions say I shouldn't add new tests, so I removed it. Now let me run the full workspace test suite to confirm everything passes.
Assistant
All workspace tests pass. Let me run the check tests also to be sure
Assistant
All tests pass. Let me review the final state of my changes
Assistant
The changes look correct. Let me clean up and check if the temporary test file is still
Assistant
Good, already removed. Let me check git status to confirm the
Assistant
Only the two relevant files are modified. Let me do a final build check
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.