Archived
66 files
Wrangler
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "loom", "main": "src/index.ts", "account_id": "…
.Gitignore
node_modules/ dist/ .wrangler/ .dev.vars *.log
.Dev.Vars
# Copy to .dev.vars for local workerd (never commit .dev.vars). # Edge: wrangler secret put ANTHROPIC_API_KEY && wrangle…
Tsconfig
{ "compilerOptions": { "target": "ES2022", "module": "ES2022", "moduleResolution": "Bundler", "lib": […
Readme
# LOOM — Multi-Loop Cybernetic Orchestrator Sprint 0 scaffold per **LOOM-SPEC-001**. Cybernetics in the harness, never …
Package
{ "name": "loom", "version": "0.1.0", "private": true, "description": "LOOM — Multi-Loop Cybernetic Orchestrator…
Drizzle.Config
import type { Config } from "drizzle-kit"; /** * Drizzle is the typed query layer over D1 (src/db/schema.ts). * Migra…
0001 Init
-- LOOM 0001_init — 7 core tables + FTS5 + append-only enforcement. -- Identical on local workerd (--local) and edge D1 …
Retry.Test
import { describe, expect, test } from "bun:test"; import { withRetry } from "../src/lib/retry"; import { RetryExhausted…
Tsconfig
{ "extends": "../tsconfig.json", "compilerOptions": { "types": ["bun-types"], "baseUrl": "..", "paths": …
Hmac.Test
import { describe, expect, test } from "bun:test"; import { mintApprovalToken, verifyApprovalToken } from "../src/lib/hm…
Ids.Test
import { describe, expect, test } from "bun:test"; import { actionHash, canonicalJSON, dispatchId, newEventId, newGoalId…
Contracts.Test
import { describe, expect, test } from "bun:test"; import { parseContract, checkContract, isContractName } from "../src/…
Fakes
import type { AssistantBlock, BlobStore, Clock, HarnessDeps, MemorySink, ModelClient, ModelRequest, ModelTurn, ToolD…
Monitors.Test
import { describe, expect, test } from "bun:test"; import { ConfMonitor, extractConf } from "../../src/execution/conf-mo…
Harness.Test
import { describe, expect, test } from "bun:test"; import { runDispatch } from "../../src/execution/harness"; import { m…
Gates.Test
import { describe, expect, test } from "bun:test"; import { AckGate } from "../../src/execution/ack-gate"; import { Loop…
Dispatch Envelope
{ "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "stage_id": "stg_a1b2c3d4e5f6",…
Goal State
{ "goal_id": "goal_a1b2c3d4e5f6", "original_spec": "Rebuild oregonsmbdirectory.com category pages with JSON-LD on As…
Execution Trace
{ "event_id": "evt_a1b2c3d4e5f6", "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",…
Memory Record
{ "record_id": "mem_a1b2c3d4e5f6", "scope": "execution", "level": "semantic", "topic": "astro-jsonld-phantom-bug…
Stage Spec
{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Generate JSON-LD LocalBusiness sch…
Dispatch Envelope.Bad Reversibility
{ "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "stage_id": "stg_a1b2c3d4e5f6",…
Memory Record.Bad Scope
{ "record_id": "mem_a1b2c3d4e5f6", "scope": "global", "level": "semantic", "topic": "t", "summary": "s", "cr…
Goal State.Bad Status
{ "goal_id": "goal_a1b2c3d4e5f6", "original_spec": "x", "spec_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b…
Stage Spec.Bad Predicate Kind
{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Done criterion uses a non-machine-…
Goal State.Bad Id
{ "goal_id": "goal_TOOSHORT", "original_spec": "x", "spec_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822c…
Dispatch Envelope.Bad Dispatch Id
{ "dispatch_id": "not-a-sha256", "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "attempt": 1, …
Memory Record.Extra Prop
{ "record_id": "mem_a1b2c3d4e5f6", "scope": "execution", "level": "semantic", "topic": "t", "summary": "s", …
Stage Spec.Empty Done
{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Stage with no verifiable completio…