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 first inspect the repository structure and locate the implementations and tests for
check,coverage, workspace configuration, and eval discovery. Then I’ll reproduce the mismatch with a temporary workspace, centralize or align the discovery behavior, and run the focused and broader test suites. - Assistant
The project is Go-based and
ripgrepis unavailable, so I’ll usegrepto identify command source files and existing tests. I’ll also inspect the repository’s contributor guidance before editing. - Assistant
There is already a shared
workspace.FindEval, andcheckcalls it, suggesting the bug is likely in howcheckresolves the workspace context or skill argument rather than eval matching itself. I’ll comparecheck’s resolution flow withcoverageand the shared workspace helpers, including the current workspace-focused tests. - Assistant
The existing separated-eval test only covers a flat
skills/eval-testlayout, while the reported workspace nests skills multiple levels belowskills/. I’ll inspect recursive scanning and the exact argument classification incheck; this distinction likely explains why the current regression test passes but the real layout fails. - Assistant
The shared detector only scans immediate children, whereas
coveragerecursively discoversSKILL.md; therefore name-basedcheckcannot find nested skills. For path-basedcheck, it parses the skill directly but appears to construct an eval-search context from the skill directory, losing the repository root. I’ll extract that exact code and project-config loading semantics before deciding whether recursive discovery plus root-aware path resolution is sufficient. - Assistant
The diagnosis is confirmed: nested skills are invisible to the workspace detector, and explicit path handling deliberately calls
checkReadiness(..., nil). I’ll inspect the full branch to preserve compatibility, then reproduce both reported invocations using a temporary workspace and the current binary/tests before modifying source. - Assistant
The source-level reproduction is clear, but the binary build was blocked because this environment has neither
GOMODCACHEnorGOPATHconfigured; the chained shell then never initialized the temp path. I’ll set both to writable temporary locations, rerun the clean reproduction, and inspect Go version/module requirements. - Assistant
I’ll now complete the runtime reproduction with the required cache variables. After that, the implementation plan is: make configured
skills/and.github/skills/roots recursive (with the same hidden/vendor exclusions as coverage), retain the generic immediate-child fallback to avoid unexpectedly scanning arbitrary trees, and pass the detected/configured workspace context into explicit-path checks so separated evals resolve from the project root. - Assistant
The reproduction exactly matches the report: path invocation says “Not Found,” and name invocation falls back to checking the workspace root. I’ll implement the two targeted changes now, format them, and review the diff. I will not add or alter repository tests because the environment instructions explicitly prohibit test-file changes; instead I’ll verify with the temporary integration workspace and existing suites.
- Assistant
The code now recursively discovers categorized skills under configured roots and preserves the workspace root for path-selected checks. I’ll run the workspace and command test packages, rebuild, and rerun both reported invocations against the same temporary nested workspace. I’ll also verify custom configured directory names because absolute config paths are part of this resolution flow.
- Assistant
The focused tests pass, and both failing invocations now report the eval as found; no-argument mode also discovers all nested skills. Before the full suite, I’ll review user-facing CLI documentation and add a concise discovery rule if there is an appropriate existing
checksection, addressing the issue’s UX concern without broad documentation churn. - Assistant
The CLI reference already has dedicated
checksections in README, the guide, and the website reference. I’ll update those sections to state that configured skills roots are searched recursively and that eval resolution checks<evals>/<frontmatter-name>/eval.yaml, then nested and co-located locations. This documents the exact behavior fixed here. - Assistant
I’ll add the same concise discovery note to all three existing references and correct README’s command signature to include skill names. Then I’ll run formatting/diff checks and the full Go suite.
- Assistant
Before the full suite, I’ll make the intentional best-effort workspace resolution explicit rather than discarding an error with
_, which avoids lint ambiguity while preserving backward compatibility for standalone path checks. Then I’ll run every Go test package. - Assistant
All Go tests pass. I’ll perform final edge-case verification with non-default configured skill/eval roots and nested categories, run
go vet, and build the documentation site per repository guidance. I’ll then inspect the final diff and ensure no generated or temporary files were introduced. - Assistant
go vetand the custom-root checks passed for both name and path invocation. The docs build could not run becausenpmis not installed in the environment; no source failure occurred. I’ll return to the repository root, review the complete diff/status, and check whether the configured Go linter is available. - Assistant
The final diff is clean, and no generated files appeared. One related UX flaw remains visible in the control flow: when a name truly is absent,
checkdiscards the useful “skill not found” resolution error and reports “no SKILL.md found in workspace root.” Since the issue explicitly calls out misleading argument interpretation, I’ll inspect existing expectations for unknown-name behavior before deciding whether to correct this in the same focused change. - Assistant
Final verification summary and requested checklist:
- Successfully reproduced the reported error. In a temporary multi-skill workspace with
skills/development/skill-creator/SKILL.mdandevals/skill-creator/eval.yaml, the pre-fix binary reportedEvaluation Suite: Not Foundfor the path invocation andno SKILL.md found in <workspace root>for the name invocation. - Confirmed the fix resolves the error. Both
waza check skills/development/skill-creatorandwaza check skill-creatornow reportEvaluation Suite: Found; no-argument discovery also finds all nested skills. - Considered edge cases. Recursive scanning is limited to configured skill roots and skips hidden, , and directories; generic fallback scanning remains shallow. I also verified nested skills with custom and , for both name and path invocation.
- Successfully reproduced the reported error. In a temporary multi-skill workspace with
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.