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 and locating how
waza check,coverage, andrundiscover evals. - Assistant
I'll inspect the check command and related discovery logic next.
- Assistant
Let me look at the runCheck function and how it discovers evals.
- Assistant
Let me look at the runCheck function and workspace detection more carefully.
- Assistant
The path-based check passes
nilfor workspace context — I'll inspect FindEval and resolveWorkspace next. - Assistant
Let me read FindEval and the rest of DetectContext, as well as resolveWorkspace.
- Assistant
I'll inspect FindEval and scanForSkills and compare them with coverage discovery.
- Assistant
Coverage uses different discovery helpers — I'll inspect those and how deeply nested skills are scanned.
- Assistant
Found that scanForSkills is shallow while coverage walks the tree — next I'll confirm checkReadiness eval lookup behavior.
- Assistant
I'll examine the repo skill layout and workspace tests to confirm the nested-discovery gap.
- Assistant
I'm checking all FindEval call sites and any prior work on nested skill discovery.
- Assistant
There's existing nested-skill walking in execution — I'll inspect that and the discovery package.
- Assistant
I'll look at AGENTS.md guidance and any existing nested-skill test patterns before implementing.
- Assistant
I'll reproduce the nested multi-skill discovery failure with a temporary workspace.
- Assistant
Need to set GOPATH or GOMODCACHE
- Assistant
Still building, let me wait
- Assistant
Build succeeded. Now I'll reproduce the nested-skill setup.
- Assistant
I've confirmed the bug. I'll make skill scanning recursive and align check's eval discovery with coverage/run.
- Assistant
Need to cd back to /waza
- Assistant
Implementing recursive skill scanning and aligning FindEval with path-based check behavior.
- Assistant
Next I'll update DetectContext comments, FindEval, and scanForSkills.
- Assistant
I'll check how projectconfig.Load finds the workspace root — that may affect eval path resolution for nested skills.
- Assistant
Updating FindEval and scanForSkills next.
- Assistant
Also there's a potential issue with single-skill detection when skills are nested. If workspace has no multi-skill scan da... wait.
- Assistant
Updating scanForSkills to recurse into nested skill directories.
- Assistant
The last edit corrupted the file — fixing the broken
parseAgentNameFromFilesection now. - Assistant
Closing the broken function and cleaning up that comment.
- Assistant
Updating
cmd_check.goso path-based checks use workspace context and config-aware eval discovery. - Assistant
I'll update runCheck path-based branch to:
- Assistant
Updating checkReadiness so eval fallback uses configDetectOptions and injects the skill when needed.
- Assistant
I'll improve the eval discovery block and add a helper to ensure the skill is in context.
- Assistant
Adding the ensureSkillInContext helper next.
- Assistant
I'll refactor ensureSkillInContext and use it from resolveEvalPath too.
- Assistant
Checking for tests that expect FindEval to error when the skill is missing:
- Assistant
There's TestFindEval_SkillNotInContext — I'll check what it asserts.
- Assistant
Restoring FindEval to return an error when the skill isn't in context and no separated eval exists, so existing tests still pass.
- Assistant
Building and re-running the reproduction steps.
- Assistant
Step-4 sibling discovery should stay shallow — only the configured skills directory needs recursive scanning.
- Assistant
There's leftover duplicate code from the earlier edit — removing it now.
- Assistant
Remove lines 164-165
- Assistant
There's a missing closing brace — I'll rewrite that whole block cleanly.
- Assistant
Updating scanForSkills to accept a recursive parameter.
- Assistant
Removing the duplicate closing brace.
- Assistant
Fixing formatting around the recent edits.
- Assistant
Restoring the broken body of parseAgentNameFromFile.
- Assistant
Running tests and the reproduction again.
- Assistant
Workspace tests passed. Rebuilding and re-running the reproduction.
- Assistant
The reported failures are fixed. Running related package tests next.
- Assistant
All related tests passed. Checking the full diff for cleanliness.
- Assistant
Fixing the outdated DetectContext comment.
- Assistant
Final verification of a couple edge cases, then I'll submit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.