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:
textrepo/ ├── .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:yamlpaths: skills: skills/ evals: evals/ results: results/ server: resultsDir: resultsSteps to reproduce
From the workspace root:
powershellwaza 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:
- Waza version:
Assistant
Now let's check
SkillInfo.Dirfield naming andEvalPathfield usage - and checksi.Dirin FindEval nested check. Let's implement recursive scanForSkills similar to coverage's walk, then update usages. Also fixEvalSuiteCheckerandcheckReadinessto useconfigDetectOptions()consistently. Let's check other usages callingDetectContext(wd)without options (dev/copilot.go, tokens/count.go, tokens/profile.go, cmd_check.go).Assistant
Build works with env vars set. Let's persist these exports for the session and create a reproduction workspace.
Assistant
Now let's implement the recursive scan.
Assistant
Now add the
io/fsimport.Assistant
Now let's also fix
checkReadiness's and otherDetectContext(wd)calls without config options, for consistency (item 1 in the issue's "possible improvements": reuse same discovery logic). Let's check those spots more closely.Assistant
Now update the call sites for
configDetectOptions():Assistant
Now let's check other files that call
configDetectOptionsin tests, and also checkConfigDetectOptions(capitalized) used in tokens package.Assistant
Now let's also check
EvalSuiteCheckerin checks package, which usesworkspace.DetectContext(wd)without config options.Assistant
Multi-skill discovery now works consistently with
coverage. Now let's run the full test suite for the workspace and cmd packages.Assistant
Now restore the original shallow
scanForSkills(for step 4) and rename the recursive one toscanForSkillsRecursive.Assistant
All tests pass now. Let's rebuild and re-run the reproduction scenario fully, including the
.case and mismatched skill-dir-name check.Assistant
Now let's run the full test suite for the entire repo to make sure nothing else broke.
Assistant
All tests pass. Now let's test
waza runstill functions with a valid eval.yaml to fully confirm consistency, and also fix the eval.yaml schema to match actual schema for a real end-to-end test.Assistant
Now let's rewrite our repro eval.yaml/task to match the schema, and test full
waza run.Assistant
Now schema is valid too. Let's test
waza runwith this eval to complete the full reproduction from the issue.Assistant
Excellent,
runworks as well. All three commands (coverage,check,run) now consistently recognize the same eval suite. Let's view the final diff.Assistant
No test references it directly. Let's run the full test suite once more and also
go vet/gofmtto ensure code style correctness.Assistant
No formatting issues (grep found nothing, exit code 1 due to empty match). Let's run full tests once more, and also lint if available.
Assistant
All tests pass. Let's clean up the temp repro directory and temp binary.
Assistant
Now let me review the checklist items.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.