Affected Component
Tests / CI
Skill ID (if applicable)
No response
Bug Description
Two framework tests assume legacy skill-root order (SKILLWARE_SKILL_PATH → cwd ./skills/ → bundled):
tests/test_discovery.py::test_get_skill_roots_order_env_project_bundled
tests/test_loader.py::test_resolve_skill_prefers_env_over_cwd
Since #246, when global or project YAML config exists, discovery uses configured mode with default paths.resolution.order: project → external → bundled.
After operator setup (e.g. skillware mail signature init from #292), a user-level config.yaml exists. Local pytest tests/ then uses configured mode and those two tests fail (458 pass, 2 fail). CI stays green on a clean home directory.
Not caused by #292/#293 skill code — test isolation + assertions that only match legacy mode.
Why it matters
Steps to Reproduce
-
Clone repo; pip install -e ".[dev,all]".
-
Run skillware mail signature init (writes global config.yaml).
-
From repo root:
python -m pytest tests/test_discovery.py::test_get_skill_roots_order_env_project_bundled tests/test_loader.py::test_resolve_skill_prefers_env_over_cwd -q
-
Failures: project tier listed/resolved before external/env.
Control (should pass): set SKILLWARE_CONFIG_DIR to an empty temp directory, then run the same two tests.
Error Logs
AssertionError: assert <SkillRootTier.PROJECT: 'project'> == <SkillRootTier.EXTERNAL: 'external'>
tests/test_discovery.py:46
AssertionError: assert 'from_cwd' == 'from_env'
tests/test_loader.py:398
Environment
Windows 11 · Python 3.13 · editable clone · global config.yaml after skillware mail signature init · full suite otherwise 458/460 pass
Affected Component
Tests / CI
Skill ID (if applicable)
No response
Bug Description
Two framework tests assume legacy skill-root order (
SKILLWARE_SKILL_PATH→ cwd./skills/→ bundled):tests/test_discovery.py::test_get_skill_roots_order_env_project_bundledtests/test_loader.py::test_resolve_skill_prefers_env_over_cwdSince #246, when global or project YAML config exists, discovery uses configured mode with default
paths.resolution.order: project → external → bundled.After operator setup (e.g.
skillware mail signature initfrom #292), a user-levelconfig.yamlexists. Localpytest tests/then uses configured mode and those two tests fail (458 pass, 2 fail). CI stays green on a clean home directory.Not caused by #292/#293 skill code — test isolation + assertions that only match legacy mode.
Why it matters
./skills/overrideSKILLWARE_SKILL_PATH; tests should lock both legacy and configured behavior.Steps to Reproduce
Clone repo;
pip install -e ".[dev,all]".Run
skillware mail signature init(writes globalconfig.yaml).From repo root:
python -m pytest tests/test_discovery.py::test_get_skill_roots_order_env_project_bundled tests/test_loader.py::test_resolve_skill_prefers_env_over_cwd -qFailures: project tier listed/resolved before external/env.
Control (should pass): set
SKILLWARE_CONFIG_DIRto an empty temp directory, then run the same two tests.Error Logs
Environment
Windows 11 · Python 3.13 · editable clone · global config.yaml after
skillware mail signature init· full suite otherwise 458/460 pass