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 map the CLI implementation and tests, focusing on how
check,coverage, and workspace configuration resolve skill/eval paths. Then I’ll reproduce the mismatch with a temporary fixture, implement shared or equivalent discovery behavior, and run the targeted and broader test suites. - Assistant
The implementation is Go-based, and
cmd_check.goowns both the reported errors and eval status. Existing workspace-specific tests are especially relevant, so I’ll inspect command argument resolution, eval lookup, config loading, and those test fixtures before reproducing the nested multi-skill case. - Assistant
A likely root cause is now visible: explicit path arguments bypass
resolveWorkspaceand callcheckReadiness(..., nil), while the fallback auto-detection uses rawworkspace.DetectContext(wd)without.waza.yamlpath options. Name resolution should useresolveWorkspace, but its behavior for recursively nested skills needs inspection. I’ll read the complete relevant functions and workspace detector to determine whether both invocation forms need correction. - Assistant
configDetectOptionscorrectly anchors configured paths to the config directory. The explicit-path branch simply fails to use it. Forwaza check skill-creator, success depends onscanForSkills; the reported fallback-to-root error indicates nested category directories are not discovered (or detection errors are swallowed). I’ll inspect scanning depth and current tests, then create the exact category-nested fixture and invoke the command tests/binary to confirm both failures. - Assistant
The detector only scans immediate children of
paths.skills, so category-grouped skills are invisible by name. This explains the second symptom exactly. Before changing it, I’ll identify coverage’s traversal semantics and workspace detector expectations (hidden directories, symlinks, malformed files, duplicate names) so the fix is consistent and avoids unbounded traversal or accidental discovery in skill resource subtrees. I’ll also run a temporary standalone reproduction against the current CLI. - Assistant
The first build attempt was blocked by an environment-only Go configuration (
GOPATH/module cache unset), not source behavior; I’ll set a temporary cache for subsequent verification. Coverage recursively walks configured skill roots, whereas workspace discovery is immediate-only. I’ll inspect its skip rules and the olderinternal/discoveryimplementation, then decide whether to make workspace scanning recursive (the reusable fix for name and no-arg commands) and separately pass the configured context for explicit paths. - Assistant
The intended fix has two complementary parts:
- Make
workspace.scanForSkillsrecursive with the same exclusions as coverage (.*,node_modules,vendor), preserving deterministic first-name-wins behavior andSKILL.mdpriority. - In
check’s explicit-path branch, detect and pass the configured workspace context instead of passingnil; this letsFindEvaluse.waza.yaml’s anchoredpaths.evals.
This also handles custom eval roots and invocation from within a configured workspace. I’ll implement only production changes (per the instruction not to alter/add tests), format them, then reproduce both commands.
- Make
- Assistant
The changes are formatted and clean. I’ll now build with explicit temporary Go cache settings and run the exact nested fixture twice: once by path and once by name. I’ll use JSON output so the eval’s resolved path and
foundboolean can be verified unambiguously, then test a custom configuredpaths.evalsas an edge case. - Assistant
Both reported invocation forms now resolve the eval, including a non-default configured eval directory—confirming the path is coming from workspace config rather than accidental colocated lookup. Next I’ll run all workspace and check-command tests, then the full Go suite. I’ll also inspect static analysis and git status afterward.
- Assistant
The targeted tests exposed an important compatibility boundary: configured
skills/roots should recurse, but the generic final fallback must remain immediate-only; otherwise an unconfiguredmy-skills/directory is incorrectly treated as a workspace. I’ll preserve recursive behavior for configured and.github/skillsroots while restoring immediate-only fallback via a dedicated helper, then rerun the tests. - Assistant
The compatibility regression is resolved, and all targeted workspace/check tests pass. I’ll now run the complete repository Go test suite and
go vet; this may take several minutes due to the project size. - Assistant
The full Go suite and
go vet ./...both pass. I’ll perform a final review of the patch and repository status, checking that only production files changed, no temporary artifacts remain, and the recursive scanner’s fallback boundary and deduplication behavior are correct. - Assistant
The final diff contains only the two intended production files and no artifacts. To make the reproduction checklist rigorous (the initial pre-fix build was blocked before execution), I’ll now build the unmodified
HEADfrom a temporarygit archiveand run both reported commands against the same nested fixture. This does not alter repository files and will explicitly confirm the originalNot Foundand rootSKILL.mderror before submission.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.