All Files

Page 100 of 102 · 3,056 total files

pi-cyberneticdoc

Codeatlas

# CODEATLAS.md — queryable codebase index for this repo This repo is indexed by **code-atlas** (deterministic tree-sitt…

MD33 lines1,979 bytes
pi-cyberneticsource

Confidence Calibrator

/** P5 — Brier-score confidence calibration over (stated confidence, outcome) pairs. */ import type { Escalation } from…

TS59 lines1,723 bytes
pi-cyberneticsource

Config

/** Harness configuration — one section per loop. */ import type { ToolExecutionMode } from "@earendil-works/pi-agent-c…

TS129 lines4,146 bytes
pi-cyberneticsource

Consolidation

/** * Offline consolidation: Hippocampus -> Neocortex. * * This engine is intentionally not called from transformCont…

TS78 lines2,583 bytes
pi-cybernetictest

Consolidation.Test

import { describe, expect, test } from "bun:test"; import { ConsolidationEngine } from "../src/engines/consolidation.ts"…

TS31 lines1,388 bytes
pi-cyberneticsource

Cut Gate Version

#!/usr/bin/env python3 """cut_gate_version.py — the ONLY sanctioned way a gate pack changes (N15/N17). Creates gates/v<…

PY154 lines6,863 bytes
pi-cyberneticsource

Cybernetic Harness

/** * ADR-001 — Concentric Wrapper. One pi-agent Agent instance, four regulatory * layers attached through its hook su…

TS231 lines9,352 bytes
pi-cyberneticsource

Desideratum Gate

/** * ADR-004 — D1→D2→D3 enforced at runtime. Failed prerequisites put dependent * modules into degraded passthrough m…

TS59 lines1,580 bytes
pi-cyberneticsource

Dispatch Scanner

import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…

TS114 lines3,693 bytes
pi-cyberneticsource

Dispatch Scanner V2

import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…

TS99 lines3,846 bytes
pi-cyberneticsource

Dispatch Scanner V3

import { Agent } from "@earendil-works/pi-agent-core"; import { getModel } from "@earendil-works/pi-ai"; import { Type }…

TS99 lines3,833 bytes
pi-cyberneticsource

Drift Detector

/** P3 — semantic drift between execution trajectory and original spec. */ import type { Escalation } from "../types/in…

TS43 lines1,258 bytes
pi-cybernetictest

Enforcement.Test

/** * Unit tests for the enforcement bridge: classifySkill, buildArtifact, emitArtifact. * Tests deterministic mapping…

TS247 lines8,996 bytes
pi-cyberneticsource

Entropy Monitor

/** P6 — channel capacity tracking: context utilization, query/source entropy. */ import { estimateTokens, extractText,…

TS49 lines1,457 bytes
pi-cyberneticsource

Episodic Store

/** Episodic memory — raw traces with deterministic term-overlap retrieval. */ import type { InteractionTrace } from ".…

TS51 lines1,621 bytes
pi-cyberneticsource

Exporter

/** * exporter.ts — emits enforcement artifacts to a file-based queue. * * Callable from MetaEngine.consolidateLesson…

TS108 lines3,453 bytes
pi-cyberneticdoc

File Index

# FILE_INDEX — @leverageai/pi-cybernetic | File …

MD44 lines8,534 bytes
pi-cybernetictest

Fixtures

/** Shared deterministic test fixtures — mock the LLM, never the hooks. */ import { createAssistantMessageEventStream }…

TS128 lines3,508 bytes
pi-cyberneticsource

Gate Integrity

/** * gate-integrity.ts — Layer 1 runtime enforcement (A13 / N15 / N16). * * Verifies a spec's pinned gate reference …

TS137 lines5,182 bytes
pi-cyberneticsource

Gate Manifest

#!/usr/bin/env python3 """gate_manifest.py — single hashing authority for the gate governance system. Every component (…

PY264 lines10,973 bytes
pi-cyberneticsource

Gear Shifter

/** * Loop 4 — GearShifter. Deterministic memory router (ADR-005..009). * Preserves the MemoryEngine hook surface whil…

TS313 lines12,599 bytes
pi-cybernetictest

Gear Shifter.Test

import { describe, expect, test } from "bun:test"; import type { AgentMessage } from "@earendil-works/pi-agent-core"; im…

TS42 lines1,852 bytes
pi-cyberneticsource

Goal State

/** Loop 1 — goal homeostasis types (P3). */ export type GoalItemStatus = "pending" | "active" | "complete" | "failed";…

TS60 lines1,669 bytes
pi-cyberneticdoc

Governance

# Gate Governance (Phase 0) **Rule N15**: a gate pack file under `gates/v*/` is IMMUTABLE once it appears in `gates/MAN…

MD48 lines1,879 bytes
pi-cybernetictest

Harness.Test

/** * End-to-end: real Agent, real hooks, mock LLM (scripted streamFn). * Verifies the concentric wrapper against pi-a…

TS218 lines8,984 bytes
pi-cyberneticconfig

Import Input

{ "projectRoot": "/home/mikes/leverage-loops-projects/pi-cybernetic", "files": [ { "path": "examples/live-…

{}205 lines4,633 bytes
pi-cyberneticconfig

Import Output

{ "scriptCompleted": true, "stats": { "filesScanned": 40, "filesWithImports": 21, "totalEdges": 76 }, …

{}147 lines3,972 bytes
pi-cyberneticsource

Index

export * from "./types/index.ts"; export * from "./monitors/index.ts"; export * from "./storage/index.ts"; export * from…

TS8 lines246 bytes
pi-cyberneticsource

Index

/** * Enforcement artifact types — the bridge from pi-cybernetic Loop-5 lessons to * loom-builder gate enforcement art…

TS167 lines5,861 bytes
pi-cyberneticsource

Index

export * from "./goal-state.ts"; export * from "./metrics.ts"; export * from "./tool-registry.ts"; export * from "./memo…

TS7 lines188 bytes