Revision Governor.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/synthesis/revision-governor.test.tsRelative: loom/tests/synthesis/revision-governor.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 170Bytes: 5,880Imports: 3Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for H5.5 — Revision Governor.
  3. *
  4. * Proves:
  5. * - Caps proposals at maxSkillProposals (default 5)
  6. * - N+? proposals → max X written
  7. * - Returns GovernorReport with notes
  8. * - suggestTunableChanges produces REPORT TEXT ONLY (never writes)
  9. * - Zero proposals → appropriate notes
  10. * - All proposals within cap → all accepted
  11. */
  12. import { describe, expect, test } from "bun:test";
  13. import {
  14. applyGovernance,
  15. suggestTunableChanges,
  16. DEFAULT_GOVERNOR_CONFIG,
  17. DEFAULT_MAX_S