Skip to content

Add skill-dedup regression test for readiness-core - #490

Open
shaurya703 wants to merge 1 commit into
cobusgreyling:mainfrom
shaurya703:test/480-readiness-core-skill-dedup
Open

Add skill-dedup regression test for readiness-core#490
shaurya703 wants to merge 1 commit into
cobusgreyling:mainfrom
shaurya703:test/480-readiness-core-skill-dedup

Conversation

@shaurya703

Copy link
Copy Markdown

Fixes #480

Adds a regression test for scanSkillDirectories in tools/readiness-core, locking in the dedup fix from #475:

  • Same skill directory name under two scanned roots (.grok/skills/foo and skills/foo) is returned exactly once
  • Distinct skill names (bar) still count separately
  • A comment in the test documents why dedup matters: duplicates inflate the Loop Readiness score by flipping the skillsOne signal to skillsTwoPlus for what is really a single skill

Fixture dirs are created and removed inside the test itself — no permanent fixtures added, matching the existing test's style.

Suite results (cd tools/readiness-core && npm test): 4 tests, 4 pass, 0 fail.

- Same skill directory name under two scanned roots (.grok/skills/foo
  and skills/foo) must be returned once by scanSkillDirectories
- Distinct skill names still count separately
- Documents why dedup matters for skillsOne vs skillsTwoPlus score
  signals

Fixes cobusgreyling#480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add skill-dedup regression test for readiness-core

1 participant