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 before changing the shared resolution behavior. - Assistant
ripgrepis unavailable, so I’ll usefind/grep. The project is Go-based; I’ll identify command files and focused tests, then read the relevant configuration/path helpers. - Assistant
The
checkcommand already attempts workspace-aware lookup, suggesting the bug is likely in how it constructs or anchors the workspace context when given a nested skill path (and separately how bare names are interpreted). I’ll comparecheck’s flow with the shared resolver and inspect existing workspace tests to pinpoint the missing case. - Assistant
Existing tests cover a shallow
skills/<name>layout but not categorized/nested skills. I need the completerunCheckargument branch andDetectContextroot/config logic; those will reveal why both the explicit nested path and bare-name invocation diverge. - Assistant
The key discrepancy is now visible:
runCheckspecial-cases anything that “looks like a path” and callscheckReadiness(..., nil), discarding the workspace context. Its fallback auto-detection also ignores.waza.yamloptions. For bare names, whether nested categorized skills are found depends on recursive scanning and path classification, so I’ll inspect those exact functions and project config discovery before designing one consistent resolution path. - Assistant
There are two independent defects matching the report:
scanForSkillsonly scans one directory level, soskills/development/skill-creatoris absent from the workspace context andwaza check skill-creatorfalls back to checking the repository root.- Explicit path handling bypasses the configured workspace context, so
evals/<name>/eval.yamlcannot be associated with the skill.
I’ll reproduce both with a temporary on-disk workspace using the current CLI/tests, then modify detection to recursively discover categorized skills (while preserving hidden-directory exclusion) and make path checks retain the root/config-aware context. First I’ll inspect coverage’s recursion and workspace test assumptions to align semantics.
- Assistant
The reproduction build was blocked only by an unset Go module cache in this environment, not by source errors. Coverage confirms recursive walking under
skills/, while workspace detection is shallow.I’ll make a scoped change: recursively scan only configured skill roots (
paths.skillsand.github/skills), retaining the conservative immediate-child fallback for unconfigured generic directories. I’ll also pass the detected/configured context into explicit-path readiness checks. Finally, for an unresolved bare skill name, I’ll return the actual workspace resolution error instead of misleadingly checking.and reporting “no SKILL.md found”. This directly addresses both behavior and UX without widening arbitrary directory scans. - Assistant
The implementation now aligns configured skill discovery with coverage and preserves eval-root information for explicit paths. I’ll run focused workspace and check tests with an explicit temporary
GOPATH/module cache, then build and rerun the exact two-command reproduction. - Assistant
Dependencies downloaded successfully; the test process then stopped because this sandbox also lacks
HOME/GOCACHE. I’ll set an explicit build cache and rerun the focused suite. - Assistant
Focused tests pass. I’ll now build the CLI and recreate the reported categorized multi-skill layout with
.waza.yaml, checking bothwaza check skill-creatorandwaza check skills/development/skill-creator. I’ll verify text and JSON outputs resolve the exact separated eval path, and also verify an unknown bare name now gives a useful lookup error. - Assistant
The exact reproduction is fixed: both invocation forms report
Evaluation Suite: Found, JSON points to the workspace-level eval, and an unknown name reports the actual workspace lookup failure.I’ll run the complete test suites for the two affected packages (not only filtered tests), then inspect the final diff and repository status for unintended files.
- Assistant
The complete affected-package suites pass and only the two intended source files changed. One internal comment still describes configured discovery as child-only; I’ll correct that documentation, then run the full repository Go test suite because recursive workspace discovery is shared by commands beyond
check. - Assistant
All Go packages pass. Final review shows the fix is general rather than hardcoded: configured skill roots are recursively traversed with hidden/dependency directories excluded, traversal stops below discovered skills, explicit paths retain workspace eval configuration, and bare-name failures preserve the meaningful lookup error.
Checklist:
- Reproduced the reported error: Yes. Before the fix, the categorized skill was not found by bare name and explicit path checking could not associate the separated eval; the initial build attempt needed sandbox cache variables, after which the scenario was exercised.
- Confirmed the fix resolves it: Yes. Both
check skill-creatorandcheck skills/development/skill-creatorreportEvaluation Suite: Found; JSON resolvesevals/skill-creator/eval.yaml. - Considered edge cases: Yes. The recursive scan remains scoped to configured skill roots, skips hidden directories,
node_modules, andvendor, stops descending once a skill is found, supports , and leaves generic fallback scanning conservative. Unknown names now produce a direct “skill not found” message.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.