Skip to content
TheChatArchiveThe Chat Archive
MiniMaxminimax/minimax-m3· 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. MiniMax Assistant

    Let me start by exploring the repository structure to understand the codebase.

  3. MiniMax Assistant

    Let me look at the checkReadiness function and how it resolves the eval.yaml.

  4. MiniMax Assistant

    Now let me understand workspace.FindEval and FindSkill more deeply.

  5. MiniMax Assistant

    Now let me look at the related commands that work: coverage and run to see how they discover evals.

  6. MiniMax Assistant

    Now let me look at cmd_run.go to see how run discovers evals.

  7. MiniMax Assistant

    Now I understand the issue. Let me first reproduce the issue and understand the exact structure.

  8. MiniMax Assistant

    Let me look at examples to find a multi-skill workspace where I can reproduce the issue.

  9. MiniMax Assistant

    Let me create a temporary reproduction workspace based on the issue:

  10. MiniMax Assistant

    Now let me build the waza command and try to reproduce the issue:

  11. MiniMax Assistant

    Coverage works. Now let me try check:

  12. MiniMax Assistant

    The colons in USE FOR: cause YAML issues. Let me rewrite the skills:

  13. MiniMax Assistant

    I've reproduced the bug! Let me check the second case from the issue:

  14. MiniMax Assistant

    Now let me understand the bug. The checkReadiness is called with nil for wsCtx when the user passes a path. Let me trace it more carefully:

  15. MiniMax Assistant

    Let me trace through the code more carefully to understand the discovery problem:

  16. MiniMax Assistant

    Let me look at the tests to understand the expected behavior:

  17. MiniMax Assistant

    Now let me run the existing tests to see what's working:

  18. MiniMax Assistant

    Let me design the fix. The core problem is that scanForSkills only scans one level deep. Let me look more carefully:

  19. MiniMax Assistant

    Now let me look at FindSkill and the auto-detection logic to make sure my fix is complete:

  20. MiniMax Assistant

    Let me check the existing imports in workspace.go:

  21. MiniMax Assistant

    Let me look at more test cases in workspace_test.go to understand the test expectations:

  22. MiniMax Assistant

    Let me also check the workspace_resolve tests:

  23. MiniMax Assistant

    Now I have enough understanding. Let me design the fix:

    1. Make scanForSkills recursive so it finds skills in nested directories like skills/{category}/{name}/SKILL.md. This makes check consistent with coverage and run.

    2. Use configDetectOptions() in the fallback DetectContext(wd) call in checkReadiness so it picks up custom paths from .waza.yaml.

    Let me first look at the imports needed:

  24. MiniMax Assistant

    Now let me make the fix to make scanForSkills recursive:

  25. MiniMax Assistant

    Now let me make the change to make scanForSkills recursive:

  26. MiniMax Assistant

    I need to use the correct syntax. Let me use the open command first and then use sed or replace.

  27. MiniMax Assistant

    Now let me also add the io/fs import:

  28. MiniMax Assistant

    io/fs is needed for fs.DirEntry. Let me add it:

  29. MiniMax Assistant

    Now let me build and test:

  30. MiniMax Assistant

    Now let me test the fix:

  31. MiniMax Assistant

    The first case is now fixed! Let me test the second case:

  32. MiniMax Assistant

    Both cases are now fixed. Let me run the existing tests to make sure I didn't break anything:

  33. MiniMax Assistant

    I broke a test. Let me look at the test that's failing and understand the design intent:

  34. MiniMax Assistant

    The test expects that when no skills/ dir exists, the default detection should NOT find skills at my-skills/alpha/SKILL.md. I need to make the recursive scan only apply to the configured skills directory, not the fallback root scan. Let me refactor:

  35. MiniMax Assistant

    All workspace tests pass. Now let me also run the check tests and make sure they pass:

  36. MiniMax Assistant

    All tests pass. Now let me verify the fix works for the issue's scenarios:

  37. MiniMax Assistant

    Both scenarios from the issue now work. Let me also run a quick check to make sure the coverage scenario still works:

  38. MiniMax Assistant

    Now let me also add the second fix: use config options in the fallback DetectContext(wd) call in checkReadiness. This way, custom paths from .waza.yaml are also respected:

  39. MiniMax Assistant

    Both still work. Now let me also test edge cases:

  40. MiniMax Assistant

    All 5 skills are found. Let me also test edge cases like running from a subdirectory:

  41. MiniMax Assistant

    Let me also test with a custom skills dir:

  42. MiniMax Assistant

    Custom paths also work. Now let me run all the tests:

  43. MiniMax Assistant

    All tests pass. Now let me think about more edge cases. Let me check what happens when the user uses the waza check from the actual repo workspace:

  44. MiniMax Assistant

    Let me check the actual waza repo structure to see what was found:

  45. MiniMax Assistant

    Let me see what the waza repo's coverage shows:

  46. MiniMax Assistant

    OK so coverage finds the same 4 skills (including azd-publish from .github/skills/). My check command now matches this behavior.

    But wait, my check is showing only 3 evals. Let me check more carefully. In the waza repo, there is no evals/ directory. Let me check:

  47. MiniMax Assistant

    Let me also test the waza run skill-creator (without explicit eval path) scenario:

  48. MiniMax Assistant

    Let me verify the resolution is correct by running a dry-run-like test that just resolves paths:

  49. MiniMax Assistant

    Let me run the tests in the cmd/waza package that are related to the changes:

  50. MiniMax Assistant

    All tests pass. Now let me also check that the related run and coverage tests still pass:

  51. MiniMax Assistant

    All tests pass. Now let me also look at the final version of my changes:

  52. MiniMax Assistant

    Let me also check a few more edge cases. Let me look at the full state of the changed file:

  53. MiniMax Assistant

    Let me also test with a colocated eval:

  54. MiniMax Assistant

    Colocated eval is also found. Let me test a nested subdir eval:

  55. MiniMax Assistant

    Nested subdir eval is found. Let me also test the issue's exact scenario:

  56. MiniMax Assistant

    Wait, let me check what happened. Earlier I moved skill-creator to a custom dir:

  57. MiniMax Assistant

    I moved the SKILL.md earlier. Let me restore the structure:

  58. MiniMax Assistant

    Both scenarios from the issue are now fixed. Let me also rebuild to be sure my changes are reflected:

  59. MiniMax Assistant

    Now let me run all the tests one more time:

  60. MiniMax Assistant

    All tests pass. Let me also think about any additional tests I should consider. Let me re-read the issue one more time to make sure I've covered all the points:

  61. MiniMax Assistant

    Let me test the legacy layout (sibling skills at root) still works:

  62. MiniMax Assistant

    Let me also test when skills/ dir doesn't exist but there are deep-nested dirs at root:

  63. MiniMax Assistant

    Good. The legacy shallow-scan behavior is preserved. Let me also do a final review of my changes:

  64. MiniMax Assistant

    Let me run a final comprehensive test to make sure everything works:

  65. MiniMax Assistant

    All tests pass. Now let me clean up my temporary files and verify the issue is fully fixed:

  66. MiniMax Assistant

    Let me also do a final test to verify both issue scenarios work, by recreating the test workspace:

  67. MiniMax Assistant

    All scenarios from the issue are now fixed:

    1. ✅ waza coverage . shows both skills (consistency)
    2. ✅ waza check skills/development/skill-creator finds the eval
    3. ✅ waza check skill-creator (by name) finds the eval
    4. ✅ waza check mcp-ecosystem (by name in different category) finds the eval
    5. ✅ waza check (no args) finds all evals

    Let me also clean up:

  68. MiniMax Assistant

    Now let me also run the tests one final time to make sure everything is good:

  69. MiniMax Assistant

    No failures! Now let me check the final state of my changes:

  70. MiniMax Assistant

    Let me also run the linter to make sure my code is clean:

  71. MiniMax Assistant

    Code is properly formatted. Let me view the final state of my changes to ensure quality:

  72. MiniMax Assistant

    Let me also check the final state of the cmd_check.go changes:

  73. MiniMax Assistant

    My fix is complete. Let me do a final verification of the changes and the test results:

  74. MiniMax Assistant

    The 0 means 0 failures (grep returns 1 when no matches, but that's actually the desired outcome). Let me re-verify:

  75. MiniMax Assistant

    All 43 packages pass tests. Let me now think about the checklist one more time and ensure I've addressed everything:

    Checklist:

    1. If an error was reported in the issue description, I have successfully reproduced it.

      • ✅ I created a test workspace matching the issue's structure (skills at skills/{category}/{name}/SKILL.md and evals at evals/{name}/eval.yaml).
      • ✅ I confirmed both error scenarios from the issue:
        • waza check skills/development/skill-creator → "Evaluation Suite: Not Found"
        • waza check skill-creator → "no SKILL.md found in "
    2. If an error was reported in the issue description, I have confirmed that my fix resolves the error.

      • ✅ After my fix:
        • waza check skills/development/skill-creator → "Evaluation Suite: Found"
        • waza check skill-creator → "Evaluation Suite: Found"
        • waza check mcp-ecosystem (skill in a different category) → "Evaluation Suite: Found"
        • waza check (no args, all skills) → finds all evals
    3. I have thought about edge cases and made sure my fix handles them as well.

      • ✅ Custom paths.skills and paths.evals from .waza.yaml work correctly
      • ✅ Legacy layout (sibling skills at root, no skills/ dir) still works
      • ✅ Colocated eval.yaml still works
      • ✅ Nested subdir eval.yaml still works
      • ✅ Hidden directories, node_modules, vendor are properly skipped
      • ✅ The original test TestDetectContext_WithCustomSkillsDir still passes (preserving the contract that custom skills dirs require explicit configuration)
    4. I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass.

      • ✅ All 24 workspace tests pass
      • ✅ All Check, Run, Coverage, Resolve tests pass
      • ✅ All 43 packages pass tests (0 failures)

    Let me also write a brief summary of what the fix does:

  76. MiniMax Assistant

    The fix is minimal and focused:

    Summary of fix:

    The issue was that waza check failed to discover eval suites in multi-skill workspaces with nested skill directories (e.g., skills/development/skill-creator/SKILL.md), while waza coverage and waza run both worked correctly. The root causes were:

    1. internal/workspace/workspace.go::scanForSkills only scanned immediate child directories of the skills/ folder, missing skills nested in category subdirectories.
    2. cmd/waza/cmd_check.go::checkReadiness fallback used workspace.DetectContext(wd) without configDetectOptions(), so it didn't honor custom paths.skills and paths.evals from .waza.yaml.

    Changes:

    1. Made scanForSkills recursive using filepath.WalkDir. It skips hidden directories, node_modules, and vendor directories. It also handles .agent.md files (with SKILL.md taking priority in the same directory).

    2. Added scanImmediateChildrenForSkills as a separate function for the fallback case. This preserves the original behavior of detecting sibling-skill workspaces (no skills/ dir at root) without recursively scanning arbitrary user directories. This was needed to maintain the behavior enforced by TestDetectContext_WithCustomSkillsDir.

    3. Updated DetectContext to use recursive scanForSkills only on the configured skills directory, and shallow scanImmediateChildrenForSkills only as a fallback when the configured skills directory doesn't exist.

    4. Updated checkReadiness fallback to pass configDetectOptions() to DetectContext, ensuring custom paths from .waza.yaml are honored (consistent with coverage and run).

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