All Files

Page 98 of 102 · 3,056 total files

loom-sprint-scaffoldsource

Predicates

/** * H1.1 — Predicate evaluators for the six machine-evaluable predicate kinds. * * Each takes a Predicate spec + an…

TS109 lines3,011 bytes
loom-sprint-scaffoldtest

Predicates.Test

/** * Tests for predicate evaluators (H1.1). * All six kinds: pass + fail cases each. * Injects a scripted PredicateR…

TS120 lines5,367 bytes
loom-sprint-scaffoldsource

Preflight

/** * H3.7 — Preflight: before any recoverable|destructive action, scan a provided * list of staged file contents for …

TS84 lines2,426 bytes
loom-sprint-scaffoldtest

Preflight.Test

/** * Tests for preflight (H3.7). * * Proves: * - clean files (no markers) pass * - every marker (TODO, FIXME, <<<<…

TS133 lines4,732 bytes
loom-sprint-scaffoldsource

Probe Planner

/** * H2.5 — Probe Planner. * * For stages with variety_class === "api_integration" AND no management-scope * behavi…

TS129 lines4,290 bytes
loom-sprint-scaffoldtest

Probe Planner.Test

/** * Tests for ProbePlanner (H2.5). * * Proves: * - api_integration + no behavior model → probe prepended (recovera…

TS197 lines7,246 bytes
loom-sprint-scaffoldsource

Promotion Engine

/** * H4.2 — Promotion Engine. * * episodic → semantic: when a pattern recurs across ≥ m_promote distinct traces. * …

TS198 lines6,260 bytes
loom-sprint-scaffoldtest

Promotion Engine.Test

/** * PromotionEngine tests (H4.2). * * Proves: * - Promotion fires at EXACTLY m_promote distinct traces (not m-1;…

TS212 lines9,720 bytes
loom-sprint-scaffolddoc

Readme

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

MD60 lines3,623 bytes
loom-sprint-scaffoldsource

Registry Seed

/** * Seed data for the mode_registry D1 table. * * Three modes covering the spec's default model set, with typed see…

TS146 lines4,376 bytes
loom-sprint-scaffoldsource

Registry Updater

/** * H5.3 — Registry Updater. * * Recomputes mode_registry success_n / fail_n / avg_cost_tokens per * (mode, variet…

TS153 lines4,797 bytes
loom-sprint-scaffoldtest

Registry Updater.Test

/** * Tests for H5.3 — Registry Updater. * * Proves: * - computeModeStats groups correctly by (model, harnessProfi…

TS208 lines7,132 bytes
loom-sprint-scaffoldsource

Reinjector

/** * H3.4 — Reinjector: normalize observations. Truncate to per-tool obs_cap_tokens * from the envelope; store full t…

TS98 lines2,802 bytes
loom-sprint-scaffoldtest

Reinjector.Test

/** * Tests for reinjector (H3.4). * * Proves: * - normalizeObservation truncates content exceeding obs_cap_tokens …

TS167 lines5,612 bytes
loom-sprint-scaffoldsource

Report

/** * Synthesis Report Assembler. * * Orchestrates all Loop 5 monitors (H5.1–H5.6) into a single SynthesisReport: * …

TS227 lines7,181 bytes
loom-sprint-scaffoldtest

Report.Test

/** * Integration test for the full synthesis report pipeline. * * Proves: * - Synthetic trace corpus → determinis…

TS184 lines6,142 bytes
loom-sprint-scaffoldtest

Research

/** * Golden goal: research — mid-goal failing stage drives fail_streak to m=3 → REFORMULATE → recovers → completes. *…

TS152 lines5,484 bytes
loom-sprint-scaffoldsource

Retry

import { RetryExhaustedError } from "../types/errors"; /** * Exponential backoff with FULL jitter (HC-6): delay = rand…

TS45 lines1,583 bytes
loom-sprint-scaffoldtest

Retry.Test

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

TS66 lines2,287 bytes
loom-sprint-scaffoldsource

Reversibility Gate

/** * H3.3 — Reversibility Gate: every tool call checked against the envelope * allowlist. Each allowlist entry has re…

TS136 lines3,886 bytes
loom-sprint-scaffoldtest

Reversibility Gate.Test

/** * Tests for reversibility-gate (H3.3). * * Proves: * - allowlist lookup accepts allowed tools and denies unknown…

TS203 lines6,855 bytes
loom-sprint-scaffoldsource

Revision Governor

/** * H5.5 — Revision Governor. * * Hard caps on skill proposals per window (tunable, default 5). * Tunable-paramete…

TS109 lines3,687 bytes
loom-sprint-scaffoldtest

Revision Governor.Test

/** * Tests for H5.5 — Revision Governor. * * Proves: * - Caps proposals at maxSkillProposals (default 5) * - N…

TS170 lines5,880 bytes
loom-sprint-scaffoldsource

Schema

import { sqliteTable, text, integer, index } from "drizzle-orm/sqlite-core"; /** * 7-table D1 schema — mirrors LOOM-SP…

TS108 lines3,990 bytes
loom-sprint-scaffoldsource

Scope Wall

/** * H4.3 — Scope Wall. * * All reads/writes carry a required scope. Default read path filters to the * caller's sc…

TS117 lines3,264 bytes
loom-sprint-scaffoldtest

Scope Wall.Test

/** * ScopeWall tests (H4.3). * * Proves: * - Same-scope read works (constructor requires scope) * - Cross-scop…

TS266 lines8,984 bytes
loom-sprint-scaffoldsource

Semantic Index

/** * H4.6 — SemanticIndex: search abstraction with two implementations. * * VectorizeIndex — wraps Cloudflare Vecto…

TS161 lines5,866 bytes
loom-sprint-scaffoldtest

Semantic Index.Test

/** * SemanticIndex contract test suite. * * Shared tests run against BOTH Fts5Index (with fake D1/SQLite) and * Vec…

TS238 lines9,598 bytes
loom-sprint-scaffolddoc

Ship Summary Loom V1 2026 06 10

--- title: LOOM v1 Ship Summary category: ship-summary created: 2026-06-10 repo: /home/mikes/leverage-loops-projects/loo…

MD47 lines2,902 bytes
loom-sprint-scaffoldsource

Skill Proposer

/** * H5.2 — Skill Proposer. * * Detects recurring successful sub-sequences across ≥ N distinct goals * (tunable, de…

TS239 lines7,685 bytes