All Files
Page 100 of 102 · 3,056 total files
Codeatlas
# CODEATLAS.md — queryable codebase index for this repo This repo is indexed by **code-atlas** (deterministic tree-sitt…
Confidence Calibrator
/** P5 — Brier-score confidence calibration over (stated confidence, outcome) pairs. */ import type { Escalation } from…
Config
/** Harness configuration — one section per loop. */ import type { ToolExecutionMode } from "@earendil-works/pi-agent-c…
Consolidation
/** * Offline consolidation: Hippocampus -> Neocortex. * * This engine is intentionally not called from transformCont…
Consolidation.Test
import { describe, expect, test } from "bun:test"; import { ConsolidationEngine } from "../src/engines/consolidation.ts"…
Cut Gate Version
#!/usr/bin/env python3 """cut_gate_version.py — the ONLY sanctioned way a gate pack changes (N15/N17). Creates gates/v<…
Cybernetic Harness
/** * ADR-001 — Concentric Wrapper. One pi-agent Agent instance, four regulatory * layers attached through its hook su…
Desideratum Gate
/** * ADR-004 — D1→D2→D3 enforced at runtime. Failed prerequisites put dependent * modules into degraded passthrough m…
Dispatch Scanner
import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…
Dispatch Scanner V2
import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…
Dispatch Scanner V3
import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…
Drift Detector
/** P3 — semantic drift between execution trajectory and original spec. */ import type { Escalation } from "../types/in…
Enforcement.Test
/** * Unit tests for the enforcement bridge: classifySkill, buildArtifact, emitArtifact. * Tests deterministic mapping…
Entropy Monitor
/** P6 — channel capacity tracking: context utilization, query/source entropy. */ import { estimateTokens, extractText,…
Episodic Store
/** Episodic memory — raw traces with deterministic term-overlap retrieval. */ import type { InteractionTrace } from ".…
Exporter
/** * exporter.ts — emits enforcement artifacts to a file-based queue. * * Callable from MetaEngine.consolidateLesson…
File Index
# FILE_INDEX — @leverageai/pi-cybernetic | File …
Fixtures
/** Shared deterministic test fixtures — mock the LLM, never the hooks. */ import { createAssistantMessageEventStream }…
Gate Integrity
/** * gate-integrity.ts — Layer 1 runtime enforcement (A13 / N15 / N16). * * Verifies a spec's pinned gate reference …
Gate Manifest
#!/usr/bin/env python3 """gate_manifest.py — single hashing authority for the gate governance system. Every component (…
Gear Shifter
/** * Loop 4 — GearShifter. Deterministic memory router (ADR-005..009). * Preserves the MemoryEngine hook surface whil…
Gear Shifter.Test
import { describe, expect, test } from "bun:test"; import type { AgentMessage } from "@earendil-works/pi-agent-core"; im…
Goal State
/** Loop 1 — goal homeostasis types (P3). */ export type GoalItemStatus = "pending" | "active" | "complete" | "failed";…
Governance
# Gate Governance (Phase 0) **Rule N15**: a gate pack file under `gates/v*/` is IMMUTABLE once it appears in `gates/MAN…
Harness.Test
/** * End-to-end: real Agent, real hooks, mock LLM (scripted streamFn). * Verifies the concentric wrapper against pi-a…
Import Input
{ "projectRoot": "/home/mikes/leverage-loops-projects/pi-cybernetic", "files": [ { "path": "examples/live-…
Import Output
{ "scriptCompleted": true, "stats": { "filesScanned": 40, "filesWithImports": 21, "totalEdges": 76 }, …
Index
export * from "./types/index.ts"; export * from "./monitors/index.ts"; export * from "./storage/index.ts"; export * from…
Index
/** * Enforcement artifact types — the bridge from pi-cybernetic Loop-5 lessons to * loom-builder gate enforcement art…
Index
export * from "./goal-state.ts"; export * from "./metrics.ts"; export * from "./tool-registry.ts"; export * from "./memo…