Drift Sentinel
Path:
loom-sprint-scaffold/loom/src/orchestrator/core/drift-sentinel.tsRelative: loom/src/orchestrator/core/drift-sentinel.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 137Bytes: 4,012Imports: 2Exports: 2
Content Preview
- /**
- * H1.6 — Drift Sentinel: embed last N stage summaries, compare cosine distance
- * against the original_spec embedding (computed once, stored on GoalState).
- *
- * Sustained divergence (distance > threshold for ≥2 consecutive checkpoints)
- * produces a DRIFT signal included in checkpoint decisions.
- */
- import { createLogger } from "../../lib/logger";
- import type { Embedder } from "./types";
- const log = createLogger({ component: "drift-sentinel" });
- export interface DriftConfig {
- /** Numb