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
I’ll first map the CLI implementation and tests, then reproduce the differing discovery behavior with a temporary workspace before changing the shared resolution logic.
- Assistant
The project is Go-based and keeps command code under
internal; the initial search omitted that tree. I’ll locate the check, coverage, configuration, and eval-discovery implementations and inspect their tests side by side. - Assistant
rgis unavailable, so I’ll use recursivegrepand file listings to trace the same paths without installing tooling. - Assistant
There is already workspace-aware code and a separated-layout test, so the bug likely concerns how the workspace root/config is found from a deeply nested skill path, plus bare-name interpretation. I’ll inspect those exact functions and test setup to identify the missing case rather than duplicating discovery.
- Assistant
The eval lookup itself supports the expected layout. The likely failure is that
checkresolves a path directly but passes a context detected without configured options, while bare names bypass resolution entirely. I’ll inspect command argument handling and project config’s upward-search behavior, then reproduce both invocations. - Assistant
The bare-name test passes for a shallow
skills/eval-test, but the reported skill is nested by category. I’ll check whether recursive scanning stops too early and whetherLooksLikePath("skill-creator")incorrectly classifies a hyphenated name. Then I’ll create the exact nested workspace and run the current binary/tests. - Assistant
The root cause is confirmed in code: workspace detection scans only immediate children under configured
skills/, so categorized skills such asskills/development/skill-creatorare invisible. Consequently explicit paths can checkSKILL.mdbut lack a matching workspace skill for eval lookup, while bare names fall back to checking the repository root. I’ll inspect workspace test conventions and ignore rules before making scanning recursive and ensuring explicit paths use the same configured workspace context. - Assistant
I’ll preserve the existing “immediate children” fallback semantics while making only designated skill roots (
paths.skillsand.github/skills) recursive. This avoids unexpectedly treating arbitrary deeply nested repository files as workspace skills. I’ll also pass configured detection into explicit-path checks, which covers custompaths.evalsas well as the reported standard layout. - Assistant
The source now handles categorized skill roots and configured eval paths. I’ll compile with an explicit temporary Go cache (the environment lacks
GOPATH/GOMODCACHE), run focused workspace and check tests, then build a CLI binary and execute both reported forms in an exact temporary workspace. - Assistant
Focused tests and compilation pass. I’ll now verify the exact categorized layout using a root config; I’ll additionally use non-default configured directory names to confirm path-based checks really honor
.waza.yaml, not merely the defaultevals/convention. - Assistant
Both reported invocations now return
eval.found: true, including a non-default configured layout. I’ll run the complete affected package test suites next, then inspect the final diff and static analysis for regressions. - Assistant
The complete affected suites and
go vetpass, and the diff is clean. Before submission I’ll run the repository-wide Go test suite to catch consumers of workspace detection outsidecheck, since recursive configured-root discovery is shared byrunand other commands.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.