Skip to content

feat(test): add per-skill eval behavior specs#85

Open
mvanhorn wants to merge 1 commit intogarrytan:mainfrom
mvanhorn:feat/skill-behavior-specs
Open

feat(test): add per-skill eval behavior specs#85
mvanhorn wants to merge 1 commit intogarrytan:mainfrom
mvanhorn:feat/skill-behavior-specs

Conversation

@mvanhorn
Copy link

Summary

  • Adds structural behavior assertion framework for skill E2E testing (Phase 1 of Proposal: Automated Evals for Skills #24)
  • 6 behavior spec files (one per skill) defining expected output patterns as JSON
  • behavior-checker.ts module with 4 assertion types: pattern_exists, pattern_absent, section_exists, min_sections
  • 14 unit tests covering all assertion types including regex and case-insensitive matching

Implements Phase 1 of #24. Each skill gets a JSON spec defining patterns its output must exhibit (e.g., review must have CRITICAL/INFORMATIONAL sections, retro must contain quantitative metrics). Assertions are deterministic, free (no API cost), and fast. The behavior-checker module is designed to wire into the existing E2E test suite via checkBehaviors(capturedOutput, spec).

Test plan

  • bun test test/behavior-checker.test.ts passes (14 tests, 83 assertions)
  • bun run gen:skill-docs --dry-run passes (SKILL.md freshness)
  • Wire into skill-e2e.test.ts to run after E2E tests (follow-up)

Phase 1 of garrytan#24. Adds structural behavior assertions for each skill -
deterministic, free (no API cost), and fast. Each skill gets a JSON spec
defining patterns its output must exhibit (e.g., review must have
CRITICAL/INFORMATIONAL sections, retro must contain metrics). The
behavior-checker module runs assertions against captured output text.

Includes 14 unit tests covering all assertion types: pattern_exists,
pattern_absent, section_exists, min_sections, regex, case-insensitive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant