Ack Gate.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/execution/ack-gate.test.tsRelative: loom/tests/execution/ack-gate.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 162Bytes: 5,577Imports: 3Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for ack-gate (H3.1).
  3. *
  4. * Proves:
  5. * - wrapResult produces deterministic hex hash from tool result
  6. * - checkAcks finds missing acks
  7. * - checkAcks passes when all expected are present
  8. * - buildCorrectiveNote returns expected format
  9. * - makeGateRejectEvent has correct shape/kind
  10. */
  11. import { describe, expect, test } from "bun:test";
  12. import {
  13. wrapResult,
  14. checkAcks,
  15. buildCorrectiveNote,
  16. makeGateRejectEvent,
  17. } from "../../src/execution/ack-gate";
  18. import type { ToolResultEntr