Harness.Test

_archivetesttypescript
Path: _archive/loom-stale-pre-sprint-snapshot/tests/execution/harness.test.tsRelative: loom-stale-pre-sprint-snapshot/tests/execution/harness.test.tsSubproject: _archiveCategory: archived
Lines: 165Bytes: 8,465Imports: 4Exports: 0has tests

Content Preview

  1. import { describe, expect, test } from "bun:test";
  2. import { runDispatch } from "../../src/execution/harness";
  3. import { mintApprovalToken } from "../../src/lib/hmac";
  4. import { FakeModel, MemTrace, ackEcho, makeDeps, makeEnvelope, textTurn, toolTurn } from "./fakes";
  5. const SECRET = "test-secret-at-least-32-bytes-long!!";
  6. describe("harness integration — the Sprint 1 gates", () => {
  7. test("(a) H3.1: a blind turn NEVER reaches the executor; exhausted retry → ACK_REJECT", async () => {
  8. const mo