Do
Path:
_archive/loom-stale-pre-sprint-snapshot/src/orchestrator/do.tsRelative: loom-stale-pre-sprint-snapshot/src/orchestrator/do.tsSubproject: _archiveCategory: archivedLines: 118Bytes: 4,599Imports: 7Exports: 1
Content Preview
- import { drizzle } from "drizzle-orm/d1";
- import { goals } from "../db/schema";
- import { parseContract } from "../lib/validate";
- import { newGoalId, sha256Hex } from "../lib/ids";
- import { createLogger } from "../lib/logger";
- import { ImmutableSpecError, NotFoundError, isLoomError, errorDetail } from "../types/errors";
- import type { Env, GoalState, GoalTunables } from "../types";
- /**
- * OrchestratorDO — Loop 1 substrate. One instance per goal.
- *
- * Sprint 0 functional surface (real, end-to-end