Skip to content

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

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

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
@cobusgreyling

Copy link
Copy Markdown
Owner

Thanks for the contribution! Closing as a duplicate of the green PRs that just merged (same tests from the Wave 6 good-first-issue batch):

Your effort still matters — grab another good first issue anytime; we aim to review within 48h.

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

2 participants