Harness
Path:
loom-sprint-scaffold/loom/src/execution/harness.tsRelative: loom/src/execution/harness.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 357Bytes: 13,236Imports: 11Exports: 1
Content Preview
- /**
- * H3 — Harness: runStage(envelope, modelCaller, deps): Promise<StageResult>
- * composing all monitors around the tool loop.
- *
- * Every monitor emits an ExecutionTrace event with monitor name from the
- * closed union type. No silent termination paths — every exit is one of the
- * StageTermination kinds, asserted in tests.
- */
- import { newEventId, actionHash, canonicalJSON } from "../lib/ids";
- import { createLogger } from "../lib/logger";
- import { errorDetail } from "../types/errors";
- impor