Skill Proposer.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/synthesis/skill-proposer.test.tsRelative: loom/tests/synthesis/skill-proposer.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 206Bytes: 7,692Imports: 4Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for H5.2 — Skill Proposer.
  3. *
  4. * Proves:
  5. * - extractSuccessfulSequences groups tool calls by dispatch
  6. * - detectRecurringPatterns finds patterns across ≥ N distinct goals
  7. * - Detection at exactly N distinct goals (boundary test)
  8. * - writeSkillProposal writes via store and returns correct shape
  9. * - runSkillProposer orchestrates correctly
  10. * - Skills have status='proposed' (type-level guarantee)
  11. */
  12. import { describe, expect, test } from "bun:test";
  13. import {
  14. extrac