Reinjector
Path:
_archive/loom-stale-pre-sprint-snapshot/src/execution/reinjector.tsRelative: loom-stale-pre-sprint-snapshot/src/execution/reinjector.tsSubproject: _archiveCategory: archivedLines: 57Bytes: 2,135Imports: 2Exports: 5
Content Preview
- import { sha256Hex } from "../lib/ids";
- import type { BlobStore, ToolOutcome } from "./ports";
- /**
- * H3.4 — Structured re-injection (P1, P6).
- * Observations are hashed over the FULL payload, truncated to the tool's
- * obs_cap_tokens for the context channel, with overflow persisted to R2.
- * The wrapped form carries hash + status so the ack gate has ground truth.
- */
- export interface PreparedObservation {
- obsHash: string;
- status: "ok" | "error";
- summary: string; // truncated, chan