Ports

_archivesourcetypescript
Path: _archive/loom-stale-pre-sprint-snapshot/src/execution/ports.tsRelative: loom-stale-pre-sprint-snapshot/src/execution/ports.tsSubproject: _archiveCategory: archived
Lines: 88Bytes: 3,268Imports: 1Exports: 21

Content Preview

  1. import type { ExecutionTraceEvent, MemoryRecord, MonitorName } from "../types/contracts";
  2. /**
  3. * Hexagonal ports for the Loop 3 harness. Production adapters (adapters.ts)
  4. * bind these to the Anthropic API, D1, and R2; tests bind in-memory fakes.
  5. * The harness itself is pure control logic — that's what makes every
  6. * Hn.x feature independently testable (spec §Loops design rule).
  7. */
  8. // ── model ──────────────────────────────────────────────────────────────────
  9. export interface TextBlock { typ