Skill Proposer

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/synthesis/core/skill-proposer.tsRelative: loom/src/synthesis/core/skill-proposer.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 239Bytes: 7,685Imports: 2Exports: 7

Content Preview

  1. /**
  2. * H5.2 — Skill Proposer.
  3. *
  4. * Detects recurring successful sub-sequences across ≥ N distinct goals
  5. * (tunable, default 3) and drafts skill records with provenance
  6. * (trace event IDs) and status='proposed'.
  7. *
  8. * Type-level guarantee: the writer interface accepts ONLY status 'proposed'
  9. * via the SkillRecordInsert type (literal type, not string).
  10. *
  11. * Pure analysis functions + injectable writer.
  12. */
  13. import type { EnrichedTraceEvent, SkillProposal, SkillRecordInsert, SkillProposerStore,