#test

127 files tagged test.

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-cybernetictest

Meta.Test

import { describe, expect, test } from "bun:test"; import { ManagementEngine } from "../src/engines/management.ts"; impo…

TS124 lines5,119 bytes
pi-cybernetictest

Fixtures

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

TS128 lines3,508 bytes
pi-cybernetictest

Monitors.Test

import { describe, expect, test } from "bun:test"; import { LoopDetector } from "../src/monitors/loop-detector.ts"; impo…

TS97 lines3,898 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-cybernetictest

Memory.Test

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

TS111 lines4,808 bytes
pi-cybernetictest

Management.Test

import { describe, expect, test } from "bun:test"; import { ManagementEngine } from "../src/engines/management.ts"; impo…

TS325 lines14,039 bytes
pi-cybernetictest

Enforcement.Test

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

TS247 lines8,996 bytes
pi-cybernetictest

Consolidation.Test

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

TS31 lines1,388 bytes
pi-cybernetictest

Strategic.Test

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

TS174 lines7,912 bytes
pi-cybernetictest

Test Gate Governance

#!/usr/bin/env python3 """test_gate_governance.py — N10 discipline applied to the governance system. Every enforcement …

PY238 lines11,790 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