Reinjector
Path:
loom-sprint-scaffold/loom/src/execution/reinjector.tsRelative: loom/src/execution/reinjector.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 98Bytes: 2,802Imports: 3Exports: 3
Content Preview
- /**
- * H3.4 — Reinjector: normalize observations. Truncate to per-tool obs_cap_tokens
- * from the envelope; store full text via injected OverflowStore interface (R2 in
- * prod, in-memory in tests) with the ref in the trace.
- *
- * Append the trace event BEFORE the next model call.
- */
- import { sha256Hex, newEventId } from "../lib/ids";
- import { createLogger } from "../lib/logger";
- import type {
- ExecutionTraceEvent,
- OverflowStore,
- Sha256Hex,
- ToolResultEntry,
- } from "../types/execution";