Reinjector.Test
Path:
loom-sprint-scaffold/loom/tests/execution/reinjector.test.tsRelative: loom/tests/execution/reinjector.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 167Bytes: 5,612Imports: 3Exports: 0has tests
Content Preview
- /**
- * Tests for reinjector (H3.4).
- *
- * Proves:
- * - normalizeObservation truncates content exceeding obs_cap_tokens
- * - obs_hash computed from full content, not truncated
- * - overflow store is called when content is truncated
- * - full_ref is set when store used, absent otherwise
- * - makeToolResultEvent has correct shape
- */
- import { describe, expect, test } from "bun:test";
- import {
- normalizeObservation,
- makeToolResultEvent,
- } from "../../src/execution/reinjector";
- import type { Overf