#tests

88 files tagged tests.

_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
_archivetest

Dispatch Envelope.Bad Dispatch Id

{ "dispatch_id": "not-a-sha256", "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "attempt": 1, …

{}12 lines336 bytes
_archivetest

Memory Record.Extra Prop

{ "record_id": "mem_a1b2c3d4e5f6", "scope": "execution", "level": "semantic", "topic": "t", "summary": "s", …

{}10 lines184 bytes
_archivetest

Stage Spec.Empty Done

{ "stage_id": "stg_a1b2c3d4e5f6", "goal_id": "goal_a1b2c3d4e5f6", "objective": "Stage with no verifiable completio…

{}11 lines351 bytes
_archivetest

Execution Trace.Bad Kind

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

{}8 lines189 bytes
_archivetest

Execution Trace.Bad Conf

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

{}9 lines205 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-scaffoldtest

Tsconfig

{ "extends": "../tsconfig.json", "compilerOptions": { "types": ["bun-types", "@cloudflare/workers-types"], "…

{}14 lines508 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

Contracts.Test

import { describe, expect, test } from "bun:test"; import { parseContract, checkContract, isContractName } from "../src/…

TS81 lines3,573 bytes
loom-sprint-scaffoldtest

Budget Governor.Test

/** * Tests for budget-governor (H3.6). * * Proves: * - all 3 hard cap types (calls, tokens, wallclock) are enforced…

TS190 lines6,388 bytes
loom-sprint-scaffoldtest

Reinjector.Test

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

TS167 lines5,612 bytes