Archived

66 files

_archiveconfig

Wrangler

{ "$schema": "node_modules/wrangler/config-schema.json", "name": "loom", "main": "src/index.ts", "account_id": "…

{}66 lines2,002 bytes
_archiveother

.Gitignore

node_modules/ dist/ .wrangler/ .dev.vars *.log

·6 lines47 bytes
_archiveother

.Dev.Vars

# Copy to .dev.vars for local workerd (never commit .dev.vars). # Edge: wrangler secret put ANTHROPIC_API_KEY && wrangle…

·5 lines226 bytes
_archiveconfig

Tsconfig

{ "compilerOptions": { "target": "ES2022", "module": "ES2022", "moduleResolution": "Bundler", "lib": […

{}23 lines608 bytes
_archivedoc

Readme

# LOOM — Multi-Loop Cybernetic Orchestrator Sprint 0 scaffold per **LOOM-SPEC-001**. Cybernetics in the harness, never …

MD80 lines4,231 bytes
_archiveconfig

Package

{ "name": "loom", "version": "0.1.0", "private": true, "description": "LOOM — Multi-Loop Cybernetic Orchestrator…

{}29 lines901 bytes
_archivesource

Drizzle.Config

import type { Config } from "drizzle-kit"; /** * Drizzle is the typed query layer over D1 (src/db/schema.ts). * Migra…

TS16 lines550 bytes
_archivesource

0001 Init

-- LOOM 0001_init — 7 core tables + FTS5 + append-only enforcement. -- Identical on local workerd (--local) and edge D1 …

SQL101 lines4,113 bytes
_archivetest

Retry.Test

import { describe, expect, test } from "bun:test"; import { withRetry } from "../src/lib/retry"; import { RetryExhausted…

TS66 lines2,287 bytes
_archivetest

Tsconfig

{ "extends": "../tsconfig.json", "compilerOptions": { "types": ["bun-types"], "baseUrl": "..", "paths": …

{}14 lines479 bytes
_archivetest

Hmac.Test

import { describe, expect, test } from "bun:test"; import { mintApprovalToken, verifyApprovalToken } from "../src/lib/hm…

TS42 lines2,124 bytes
_archivetest

Ids.Test

import { describe, expect, test } from "bun:test"; import { actionHash, canonicalJSON, dispatchId, newEventId, newGoalId…

TS47 lines1,923 bytes
_archivetest

Contracts.Test

import { describe, expect, test } from "bun:test"; import { parseContract, checkContract, isContractName } from "../src/…

TS81 lines3,573 bytes
_archivetest

Fakes

import type { AssistantBlock, BlobStore, Clock, HarnessDeps, MemorySink, ModelClient, ModelRequest, ModelTurn, ToolD…

TS157 lines6,003 bytes
_archivetest

Monitors.Test

import { describe, expect, test } from "bun:test"; import { ConfMonitor, extractConf } from "../../src/execution/conf-mo…

TS96 lines4,032 bytes
_archivetest

Harness.Test

import { describe, expect, test } from "bun:test"; import { runDispatch } from "../../src/execution/harness"; import { m…

TS165 lines8,465 bytes
_archivetest

Gates.Test

import { describe, expect, test } from "bun:test"; import { AckGate } from "../../src/execution/ack-gate"; import { Loop…

TS103 lines4,287 bytes
_archivetest

Dispatch Envelope

{ "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "stage_id": "stg_a1b2c3d4e5f6",…

{}17 lines895 bytes
_archivetest

Goal State

{ "goal_id": "goal_a1b2c3d4e5f6", "original_spec": "Rebuild oregonsmbdirectory.com category pages with JSON-LD on As…

{}20 lines869 bytes
_archivetest

Execution Trace

{ "event_id": "evt_a1b2c3d4e5f6", "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",…

{}23 lines689 bytes
_archivetest

Memory Record

{ "record_id": "mem_a1b2c3d4e5f6", "scope": "execution", "level": "semantic", "topic": "astro-jsonld-phantom-bug…

{}19 lines661 bytes
_archivetest

Stage Spec

{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Generate JSON-LD LocalBusiness sch…

{}18 lines784 bytes
_archivetest

Dispatch Envelope.Bad Reversibility

{ "dispatch_id": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", "stage_id": "stg_a1b2c3d4e5f6",…

{}12 lines434 bytes
_archivetest

Memory Record.Bad Scope

{ "record_id": "mem_a1b2c3d4e5f6", "scope": "global", "level": "semantic", "topic": "t", "summary": "s", "cr…

{}9 lines156 bytes
_archivetest

Goal State.Bad Status

{ "goal_id": "goal_a1b2c3d4e5f6", "original_spec": "x", "spec_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b…

{}11 lines429 bytes
_archivetest

Stage Spec.Bad Predicate Kind

{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Done criterion uses a non-machine-…

{}13 lines413 bytes
_archivetest

Goal State.Bad Id

{ "goal_id": "goal_TOOSHORT", "original_spec": "x", "spec_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822c…

{}11 lines425 bytes
_archivetest

Dispatch Envelope.Bad Dispatch Id

{ "dispatch_id": "not-a-sha256", "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "attempt": 1, …

{}12 lines336 bytes
_archivetest

Memory Record.Extra Prop

{ "record_id": "mem_a1b2c3d4e5f6", "scope": "execution", "level": "semantic", "topic": "t", "summary": "s", …

{}10 lines184 bytes
_archivetest

Stage Spec.Empty Done

{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Stage with no verifiable completio…

{}11 lines351 bytes