Skip to content
TheChatArchiveThe Chat Archive
x-ai/grok-4.5· unknownHugging Face ibragim-bad/swe_rebench_07_2026_trajectories

ISSUE DESCRIPTION waza check eval discovery is inconsistent with coverage and run in…

  1. User

    ISSUE DESCRIPTION

    waza check eval discovery is inconsistent with coverage and run in multi-skill workspaces

    Summary

    In a multi-skill workspace, waza coverage . and waza run evals/.../eval.yaml both recognize the eval structure, but waza check does 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.yaml
    

    The root .waza.yaml includes:

    paths:
      skills: skills/
      evals: evals/
      results: results/
    
    server:
      resultsDir: results
    

    Steps 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 -v
    

    Actual behavior

    waza coverage .

    Coverage recognizes the pilot evals and shows the skill as partially covered.

    Example outcome:

    • skill-creator appears with 2 tasks
    • 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-creator

    Output includes:

    Evaluation Suite: Not Found
    

    waza check skill-creator

    Output includes:

    no SKILL.md found in <workspace root>
    

    Expected behavior

    waza check should discover the corresponding eval suite consistently when:

    1. the workspace has a valid root .waza.yaml
    2. the skill exists under skills/.../<skill-name>/SKILL.md
    3. the eval exists under evals/<skill-name>/eval.yaml
    4. coverage and run already succeed against the same workspace

    At minimum, check should either:

    • locate the matching eval and report it, or
    • explain the discovery rule clearly enough that the user can resolve the mismatch

    Why this matters

    For new users, check looks like the natural readiness command. When it disagrees with coverage and run, it is hard to tell whether:

    • the workspace is invalid
    • the eval naming/path convention is wrong
    • or check is using different discovery rules

    This makes initial adoption harder, especially in multi-skill repositories.

    Additional note

    This may be either:

    • a discovery bug in check, or
    • a documentation/UX gap where check expects a different invocation pattern than users would infer from coverage and run

    Either way, the current behavior is surprising.

    Possible improvements

    Any of these would help:

    1. Make check reuse the same discovery logic as coverage
    2. Document the exact resolution rule from skill path/name to eval path
    3. Add debug output showing where check looked for the eval
    4. Improve the error message when the skill name/path is interpreted differently than expected

    Interface

    No new interfaces are introduced.

    ADDITIONAL ADVICE

    Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use git checkout <file> to restore the file to its original state. You can also reset all changes in the repository using git reset --hard command. Additionally, you can use git stash and git stash pop to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call submit) using git status or git diff commands. However you don't need to use git add or git commit before submitting your changes. In fact, submit only submits currently unstaged changes because it uses git diff to get the changes that need to be submitted.

    CHECKLIST

    Before submitting your solution, please go over the following checklist and make sure you've done everything:

    • If an error was reported in the issue description, I have successfully reproduced it.
    • If an error was reported in the issue description, I have confirmed that my fix resolves the error.
    • I have thought about edge cases and made sure my fix handles them as well.
    • I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass. I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.

    Repository has been uploaded and your shell is currently at the repository root. Time to solve the issue!

    (Current directory: /waza, current file: none) bash-$

  2. Assistant

    I'll start by exploring the repository structure and locating how waza check, coverage, and run discover evals.

  3. Assistant

    I'll inspect the check and coverage command implementations next.

  4. Assistant

    Let me search for how eval discovery works in check command.

  5. Assistant

    Let me look at the workspace.FindEval function and how runCheck resolves skills.

  6. Assistant

    Let me look at the full runCheck function and resolveWorkspace to understand how skill paths like skills/development/skill-creator are resolved.

  7. Assistant

    The path branch passes nil for workspace context — inspecting the full eval-discovery logic in checkReadiness.

  8. Assistant

    Nested skills may not be scanned — comparing skill discovery between coverage and check.

  9. Assistant

    Coverage walks nested skills recursively; I'll confirm workspace scan depth and how skill-name resolution behaves.

  10. Assistant

    Reviewing workspace tests and how other commands resolve nested skills.

  11. Assistant

    There's already a discovery package that handles nested skills — I'll inspect it.

  12. Assistant

    Reproducing the issue with a nested multi-skill layout, then fixing discovery.

  13. Assistant

    Need to set GOPATH or GOMODCACHE

  14. Assistant

    Good, tests pass. Now build and reproduce.

  15. Assistant

    Root cause confirmed: scanForSkills only scans one level deep. Making it recursive and ensuring check uses config-aware workspace detection.

  16. Assistant

    Need to cd back to /waza

  17. Assistant

    I'll update scanForSkills to be recursive, improve FindEval to try separated path even without skill in context for nested/colocated fall back when skill is found, and fix checkReadiness + runCheck.

  18. Assistant

    Improving FindEval so it can resolve the separated convention without requiring the skill in context first:

  19. Assistant

    Need to open the right lines first or use exact content from file.

  20. Assistant

    There's a test for skill-not-in-context — checking what it expects.

  21. Assistant

    Keeping the not-found error when separated eval is also missing so existing tests stay valid.

  22. Assistant

    I'll use edit with line numbers instead.

  23. Assistant

    Updating checkReadiness and the path branch in runCheck next.

  24. Assistant

    I'll update the path branch to still attempt workspace detection so eval can be found, and update checkReadiness to "use configDetectOptions().

  25. Assistant

    There's an extra brace to remove.

  26. Assistant

    Good. Now ends checkReadiness for auto-detect with configDetectOptions.

  27. Assistant

    I'll update auto-detect to use configDetectOptions, and also ensure skill is appended to context if not present (like resolveEvalPath does) - actually with recursive scan this should work for nested s...

  28. Assistant

    Updating the DetectContext docs and verifying the build against the reproduction case.

  29. Assistant

    Step 4 must stay shallow so custom skills dirs aren't picked up accidentally — I'll split recursive vs shallow scanning.

  30. Assistant

    The third replace for adding scanForSkillsShallow failed. Checking the current status of scanForSkills.

  31. Assistant

    I need to add the scanForSkillsShallow function — step 4 already uses it.

  32. Assistant

    Now I'll re-run the tests and the reproduction.

  33. Assistant

    Fix verified for path and name cases. Running a broader regression suite next.

  34. Assistant

    Verifying multi-skill nested categories and colocated evals as edge cases.

  35. Assistant

    The multi-nested setup had shell glob issues — fixing that and re-running.

  36. Assistant

    The multi-skill check works - both a and b found with evals. The grep for BY NAME failed maybe because of regex. Let me check.

  37. Assistant

    I'll run gofmt and review the full diff.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.