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
checkresolution behavior with a temporary workspace. After identifying the shared discovery/config mechanisms used bycoverage, I’ll updatecheck, run focused and broader tests, and verify both path and name invocations. - Assistant
The implementation and workspace-specific tests are in
cmd/waza/cmd_check.goandcmd_check_workspace_test.go. I’ll inspect those alongside configuration and coverage discovery to pinpoint where path assumptions diverge. - Assistant
The existing separated-eval test only covers a flat
skills/<name>layout. Two likely gaps are visible: explicit paths bypass the resolved workspace context, and name lookup may not recurse through categorized skill directories. I’ll inspectresolveWorkspace,DetectContext, and the complete readiness eval fallback before reproducing the reported nested layout. - Assistant
Configuration options are absolute-rooted correctly, but detection’s documented “children” behavior needs confirmation against its scanner. I’ll inspect the scanner and
FindEval; then I’ll build the CLI and run the exact nested fixture to establish both failures before editing. - Assistant
The root cause is now concrete:
scanForSkillsonly scans immediate children, so categorized skills are absent for name lookup; explicit paths callcheckReadiness(..., nil), whose fallback ignores.waza.yamloptions and still cannot discover that skill in context. I’ll reproduce this with the built command and capture JSON output, then implement recursive workspace skill discovery plus config-aware explicit-path context handling. - Assistant
The first reproduction attempt was blocked by an environment-only Go setup issue (
GOMODCACHEandGOPATHare unset), not by repository code. I’ll set a temporary standard cache path and rerun the fixture without modifying the repository. - Assistant
A second missing environment variable (
GOCACHE) surfaced after dependencies downloaded. I’ll provide all three temporary Go cache variables and rerun; this is still isolated under/tmp. - Assistant
The path command reproduced the mismatch (the grep found no positive eval object), but the chained shell stopped before printing full diagnostics. I’ll run each invocation independently to record the exact outputs and exit codes.
- Assistant
Both reported failures are confirmed exactly: explicit path reports
"found": false, and name invocation exits withno SKILL.md found in <root>. The general fix will be in shared workspace discovery (recursive categorized skill scanning), whilecheck’s fallback will use.waza.yaml-derived detection options. I’ll also stop masking a name-resolution error as a rootSKILL.mderror, preserving the actionableskill "<name>" not found in workspacemessage. Before editing, I’ll review tests that may depend on fallback semantics. - Assistant
The reproduction changed the shell working directory to the temporary fixture, so repository-relative inspection failed. I’ll return to
/wazaand review the relevant assertions. - Assistant
No existing test relies on the misleading unknown-name fallback. I’ll make the smallest behavior-focused changes: recursively scan non-hidden directories under configured skill roots (stopping below an identified skill), and make readiness’s automatic context detection use the same config-derived options as other workspace-aware commands. Name invocation will then resolve normally without needing special-case logic.
- Assistant
Reviewing the detection flow reveals an important edge case: making the generic fallback recursive would discover skills under arbitrary custom roots even when they were not configured, changing established behavior and causing unnecessary repository-wide traversal. I’ll constrain recursion to configured
skills/and.github/skills/roots, while retaining immediate-only fallback scanning. - Assistant
Focused workspace and check tests pass, including safeguards for custom directory detection and existing flat layouts. I’ll now rebuild and rerun both exact reported invocations against the original nested fixture, checking the resolved eval path in JSON.
- Assistant
Both failures are resolved: explicit nested path and skill-name invocation now return the same separated eval path. I’ll run the complete Go test suite next, then inspect the final diff/status for unintended changes.
- Assistant
The full repository test suite passes. I’ll perform final hygiene checks (
git status, complete diff, whitespace validation) and confirm only the two intended source files changed before submission. - Assistant
Final review is clean: only
check’s config-aware fallback and shared workspace skill discovery changed. The recursive scan is intentionally limited to configured skill roots, skips hidden directories, and stops descending once it finds a skill, preserving legacy immediate-child fallback behavior.Checklist:
- Reproduced the reported error: a categorized
skills/development/skill-creatorfixture produced"eval": {"found": false}for the path invocation andno SKILL.md found in <workspace root>for the name invocation. - Confirmed the fix resolves it: both invocations now identify
skill-creatorand resolve/evals/skill-creator/eval.yamlwith"found": true. - Considered edge cases: retained immediate-only unconfigured fallback discovery, recursively scan only configured roots, skip hidden directories, stop below skill roots, and honor custom
.waza.yamlskill/eval paths.
- Reproduced the reported error: a categorized
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.