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
This is a Go project. Let me find the check command and eval discovery logic.
- Assistant
Let me look at the check command and workspace resolution code.
- Assistant
Let me search for eval discovery logic in the check command and related files.
- Assistant
I'll inspect workspace eval discovery and the full
runCheckflow next. - Assistant
The nested skills path looks central — I'll read the full workspace detection and resolve helpers.
- Assistant
Let me continue reading FindEval and scanForSkills
- Assistant
I see - scanForSkills only scans immediate children. The issue structure has nested skills:
- Assistant
The root cause is clear: recursive discovery works for coverage, but not for check. I'll inspect tests and related code next.
- Assistant
Inspecting DetectContext with absolute skills dirs and the real workspace structure.
- Assistant
I'll compare coverage's recursive discovery and any skip rules we should mirror.
- Assistant
Let me read more of the FindEval tests and the check readiness flow carefully.
- Assistant
There's a discovery package that already handles nested layouts — I'll inspect that and the eval suite check.
- Assistant
I'll set up a minimal multi-skill workspace that matches the issue and reproduce the bug.
- Assistant
Need to set up Go environment.
- Assistant
Waiting for build to complete - it might still be running? The output got cut off. Let me check.
- Assistant
Build succeeded. Now let me reproduce the issue.
- Assistant
Reproduced. I'll make skill scanning recursive and ensure path-based
checkuses workspace context for eval discovery. - Assistant
Implementing recursive skill scanning and more robust FindEval.
- Assistant
Now update DetectContext comment and scanForSkills function, and Fix FindEval.
- Assistant
Now update comment for step 4 and FindEval and scanForSkills.
- Assistant
Now update FindEval to try separated convention even when skill isn'tseafoam in context, and update scanForSkills.
- Assistant
Now ScanForSkills recursive rewrite.
- Assistant
I need to navigate to that lines first with the open file editor.
- Assistant
Now try the replace again.
- Assistant
I'll update
cmd_check.gonext so path-based checks get workspace context and auto-detect uses config options. - Assistant
I'll update the path-based branch to resolve workspace context, and update checkReadiness auto-detect to use configDetectOptions.
- Assistant
Now update checkReadiness to use configDetectOptions and ensure skill is injected into context.
- Assistant
I'll update the eval discovery section to be more robust - ensure skill is in context and use configDetectOptions.
- Assistant
I need to check whether
sameFilePathexists or switch to another helper. - Assistant
sameFilePathdoesn't exist — I'll switch to cleaned path equality instead. - Assistant
I'll rebuild and re-run the reproduction to verify the fix.
- Assistant
skill-creator works. mcp-ecosystem shows Not Found because I didn't create its eval.yaml — adding it and verifying.
- Assistant
The main cases look good. Next I'll run the related unit tests.
- Assistant
Recursive scanning of the whole repo root broke an existing expectation — I'll recurse only under
skills/, and keep the CWD scan one level deep. - Assistant
Need to goto that line first.
- Assistant
Also update the doc comment at the top for step 4.
- Assistant
Checking the docstring, then adding
scanImmediateSkills. - Assistant
I'll fix the docstring and add
scanImmediateSkills. - Assistant
Let me fix the docstring and add scanImmediateSkills.
- Assistant
There's a typo "ofövCWD" - need to fix that.
- Assistant
I need to add scanImmediateSkills function after scanForSkills.
- Assistant
Now rebuild and retest.
- Assistant
All tests pass and the repro is fixed. I'll check whether the changelog needs an entry, then do a final edge-case pass.
- Assistant
I'll add a changelog entry for the fix.
- Assistant
I'll run gofmt and a final verification pass.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.