Run.Ts
Path:
loom-builder-sol/_archive/run.ts-versions/run.ts.pre-dispatch-artifact-contract-2026-06-17Relative: _archive/run.ts-versions/run.ts.pre-dispatch-artifact-contract-2026-06-17Subproject: loom-builder-solCategory: archivedLines: 292Bytes: 11,116Imports: 0Exports: 0
Content Preview
- /**
- * loom-builder — homeostatic dispatch harness.
- * Runs one DispatchSpec: agent loop (pi-coding-agent SDK) under hard gates,
- * machine validation as the only done-criterion, bounded reformulation,
- * JSONL trace + digest/manifest outputs.
- *
- * Usage: bun run src/run.ts <spec.json>
- */
- import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
- import { join, resolve } from "node:path";
- import {
- AuthStorage,
- ModelRegistry,
- SessionManager,
- createAgentSession,
- createCodingTool