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
I'll start by exploring the repository structure to understand the codebase and then investigate the
checkcommand's discovery logic.Assistant
I'll explore the repository structure first.
Assistant
This is a Go project. Let me explore the structure more, particularly the
checkcommand and discovery logic.Assistant
Let me look at the
checkcommand and how it resolves skills, plus the discovery logic.Assistant
Now let me look at the
cmd_check.goto understand how skills are resolved and how the checker's WorkDir is set.Assistant
Let me look at the
checkReadinessfunction and how the workspace config (.waza.yaml) is loaded.Assistant
Now let me look at the
checkReadinessfunction in detail.Assistant
Let me look at the actual skills/evals structure in this repo and how coverage/run discover them.
Assistant
The current repo has a flat structure. Let me understand how
coverageandrundiscover skills to see whycheckdiffers. Let me look at the coverage command.Assistant
Now I understand the key difference. Coverage uses
filepath.WalkDir(recursive), but workspace detection'sscanForSkillsonly scans immediate children. Let me build the binary and reproduce the issue with a nested multi-skill workspace.Assistant
The build succeeds. Now let me create a reproduction workspace matching the issue's structure.
Assistant
I've reproduced the issue. Coverage finds both skills (recursive walk), but
check(path) reports "Evaluation Suite: Not Found" andcheck(name) reports "no SKILL.md found". Let me confirm howrundiscovers skills, since the issue saysrunalso works.Assistant
The
runcommand in the issue succeeds because the user passes the eval path directly. Let me confirm thatrunby skill name would also fail (same discovery bug), and checkwaza checkwith no args.Assistant
Confirmed. The discovery bug affects
checkandrun(by name) because they usescanForSkillswhich only scans immediate children. Coverage uses recursiveWalkDir. Let me examine the workspace tests to understand expected behavior before fixing.Assistant
I've confirmed the root cause.
scanForSkillsonly scans immediate children, so nested skills likeskills/development/skill-creator/SKILL.mdaren't discovered. Coverage uses recursiveWalkDir. Let me check whereEvalSuiteCheckerandscanForSkillsare used.Assistant
EvalSuiteCheckerisn't used in thecheckcommand path (checkReadinessdoes inline eval detection). The core fix is inscanForSkills. Let me look at the eval_suite test to understand expectations, then implement.Assistant
Now let me implement the core fix. First, let me modify
workspace.goto add a recursive scan for the configured skills directories while keeping the fallback (step 4) shallow.Assistant
Now let me make the edits. First, change steps 3 and 3b to use a recursive scan:
Assistant
Now let me make the edits. First, change steps 3 and 3b to use the recursive scan:
Assistant
Now let me update the
scanForSkillsfunction and add the recursivescanForSkillsDeepfunction:Assistant
Let me view the exact lines and use line-based edit:
Assistant
There's a stray
}at line 357 from the original function's closing brace. Let me remove it:Assistant
The stray
}was removed. Now let me also fix thecheckReadinessfallback incmd_check.goto useconfigDetectOptions():Assistant
Now let me rebuild and test the reproduction:
Assistant
All three
checkscenarios now report "Evaluation Suite: Found". Let me verifyrunby skill name also discovers the skill now (it should get past the discovery error):Assistant
run skill-creatornow discovers the skill (it gets to eval parsing; the error is just my test data's invalid grader). The discovery bug is fixed. Now let me run the existing tests to ensure nothing broke.Assistant
All tests pass. Let me verify there's no import cycle concern and check whether
projectconfigimportschecks(relevant if I wanted to makeEvalSuiteCheckerconfig-aware):Assistant
Let me check whether
EvalSuiteCheckeris registered/used in any checker list (e.g., score command), to decide if it needs the config fix too:Assistant
EvalSuiteCheckeris only referenced in its own tests (not registered in any command), so thecheckcommand path — which usescheckReadiness— is what matters and is now fixed. Let me test additional edge cases: deeper nesting, skill withreferences/subdir, and custom dirs.Assistant
Deeply nested skills and skill-boundary stopping both work correctly. Now let me test custom skills/evals dirs (via
.waza.yaml) to confirmcheckReadiness's config-aware fallback works:Assistant
Custom dirs work for both path and name invocation. Let me run the broader relevant test suites to ensure nothing broke:
Assistant
Let me also verify the original repo's flat
skills/structure still works withcheck(no regression on the real repo):Assistant
The flat structure works correctly (code-explainer has no eval, so "Not Found" is correct). Let me run the specific check/coverage/run tests to confirm no regressions:
Assistant
Let me run the workspace tests fresh (not cached) to be certain:
Assistant
All tests pass. Let me review the final diff to ensure the changes are clean:
Assistant
Let me restore the blank line between the two functions for readability:
Assistant
Let me verify the blank line was actually inserted:
Assistant
The blank line wasn't inserted. Let me use sed to add it:
Assistant
Now the blank line is restored. Let me rebuild and re-run the reproduction one final time, plus the affected tests:
Assistant
Everything works. Let me do a final review of the complete diff and clean up temp directories:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.