All Files

Page 96 of 102 · 3,056 total files

loom-sprint-scaffoldtest

Escalation Ledger.Test

/** * Tests for EscalationLedger (H1.4). * * Proves: * - fail_streak increment/reset * - escalation records append-…

TS110 lines3,728 bytes
loom-sprint-scaffoldsource

Execution

/** * Execution harness types — Loop 3: model client, monitors, stage result. * All new execution types go here; barre…

TS119 lines4,106 bytes
loom-sprint-scaffoldtest

Execution Trace

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

{}23 lines689 bytes
loom-sprint-scaffoldtest

Execution Trace.Bad Conf

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

{}9 lines205 bytes
loom-sprint-scaffoldtest

Execution Trace.Bad Kind

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

{}8 lines189 bytes
loom-sprint-scaffoldconfig

Execution Trace.Schema

{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://leverageai.network/schemas/loom/execution-tr…

{}48 lines2,004 bytes
loom-sprint-scaffoldsource

Failure Clusterer

/** * H5.1 — Failure Clusterer. * * Groups trace failures by (tool, normalized error signature, variety_class). * Er…

TS181 lines6,193 bytes
loom-sprint-scaffoldtest

Failure Clusterer.Test

/** * Tests for H5.1 — Failure Clusterer. * * Proves: * - normalizeErrorSignature strips ids, paths, numbers deter…

TS200 lines7,278 bytes
loom-sprint-scaffoldtest

Fakes

/** * Shared fake implementations for LOOM E2E tests. * * Consolidates patterns from: * tests/orchestrator/checkpo…

TS384 lines13,629 bytes
loom-sprint-scaffoldtest

Fixtures

/** * Synthetic trace corpus for Loop 5 synthesis tests. * ~50 enriched trace events covering failures, successes, rep…

TS264 lines11,826 bytes
loom-sprint-scaffoldtest

Goal State

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

{}20 lines869 bytes
loom-sprint-scaffoldtest

Goal State.Bad Id

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

{}11 lines425 bytes
loom-sprint-scaffoldtest

Goal State.Bad Status

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

{}11 lines429 bytes
loom-sprint-scaffoldconfig

Goal State.Schema

{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://leverageai.network/schemas/loom/goal-state.j…

{}82 lines3,193 bytes
loom-sprint-scaffoldtest

Golden Runner

/** * E2E Golden Runner — in-process composition root for LOOM integration tests. * * Wires Loop 1 (CheckpointEngine,…

TS423 lines15,811 bytes
loom-sprint-scaffoldtest

Golden.Test

/** * E2E Golden Goal Tests. * * Runs all three golden goals end-to-end through all LOOM loops. * Each asserts: * …

TS50 lines2,037 bytes
loom-sprint-scaffoldsource

Harness

/** * H3 — Harness: runStage(envelope, modelCaller, deps): Promise<StageResult> * composing all monitors around the to…

TS357 lines13,236 bytes
loom-sprint-scaffoldtest

Harness.Test

/** * Integration tests for harness (runStage). * * Proves every StageTermination kind is reachable: * DONE | GATE_R…

TS612 lines20,705 bytes
loom-sprint-scaffoldtest

Helpers

/** * Test helpers for memory module tests. * * Provides: * - FakeD1: in-memory SQLite (bun:sqlite) implementing D…

TS324 lines10,577 bytes
loom-sprint-scaffoldsource

Hmac

/** * HMAC utilities shared by Loop 1 (token-mint) and Loop 3 (reversibility-gate). * WebCrypto only — workerd-compati…

TS77 lines2,257 bytes
loom-sprint-scaffoldsource

Ids

/** * Identity + hashing primitives shared by every loop. * Web Crypto only — identical behavior on workerd and Bun (H…

TS58 lines2,060 bytes
loom-sprint-scaffoldtest

Ids.Test

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

TS47 lines1,923 bytes
loom-sprint-scaffoldtest

Index

/** Barrel for golden goal scripts. */ export { script as codegenScript, assert as assertCodegen } from "./codegen"; ex…

TS6 lines299 bytes
loom-sprint-scaffoldsource

Index

import { drizzle } from "drizzle-orm/d1"; import { dispatches, traceEvents } from "./db/schema"; import { checkContract,…

TS269 lines10,644 bytes
loom-sprint-scaffoldsource

Index

/** * Loop 5 — Synthesis batch glue. * * Thin scheduled() handler that wires injectables from the worker's Env * int…

TS294 lines9,742 bytes
loom-sprint-scaffoldsource

Index

/** * Loop 2 dispatcher — thin worker-side barrel + concrete wire-ups. * * All logic lives in src/dispatcher/core/ (p…

TS120 lines4,364 bytes
loom-sprint-scaffoldsource

Index

/** * Loop 4 — Memory Service: thin worker shell. * * Factory: pick VectorizeIndex when env.SEMANTIC binding present,…

TS259 lines8,844 bytes
loom-sprint-scaffoldsource

Index

/** Barrel — import all LOOM types from "@/types" or relative "../types". */ export * from "./contracts"; export * from …

TS8 lines241 bytes
loom-sprint-scaffoldsource

Index

/** * Barrel — all core orchestration classes and types. */ export { type PredicateEvaluation, evaluatePredicate, eva…

TS11 lines727 bytes
loom-sprint-scaffoldtest

Isolation.Test

/** * Isolation test for src/synthesis/. * * Enforces at the grep level: * 1. No import from src/orchestrator/, sr…

TS132 lines4,331 bytes