Skip to content

Projects

Public reference implementations, design notes and a playbook, each in its own repository. The four reference implementations and the design notes were written from scratch with AI coding agents (Claude Code), using fictional data. The playbook is a generalized rewrite of a private execution framework, drafted with AI assistance, and carries none of that framework's private names, systems or data. None of the six shares code or data with any private system.

Together they are about keeping AI agents reliable once they can take actions: work that is lost or repeated when a worker dies, a side effect nobody approved, a release judged on missing or stale evidence, a model change whose cost and behavior nobody checked. The pages show the mechanism, how it was verified, and where it stops.

They are separate from the case studies under Work. Every test count and recorded run on these pages was observed by running the repository at the commit its page cites. All six are on GitHub.

  • Design notes

    Governed agent systems: field notes

    Six short design notes on what has to be true around a model before its output is allowed to change anything.

    Problem
    Once an agent's output becomes an action, most of the engineering moves out of the prompt and into the system around it, and the questions become ordinary distributed-systems and operations questions.
    Stack
    Markdown · Mermaid
    Demonstrates
    Systems architecture reasoning · Failure-mode analysis · Technical writing · Mapping principles to runnable code
    Verified
    Seven Markdown files, every relative link resolving, and four links to the companion repositories; the repository has no CI.
    Status
    Design notes: principles and tradeoffs, argued. No private system is described, named or quantified.

    Case study: Governed agent systems: field notesRepository on GitHub: Governed agent systems: field notes

  • Reference implementation

    agent-task-runtime

    A crash-safe, lease-based task runtime for long-running agent jobs, as a dependency-free Python package on SQLite.

    Problem
    A long agent job can outlive the worker running it. A naive queue answers a crash, a stall or a slow worker with lost progress, duplicated work, or a late worker overwriting the result.
    Stack
    Python 3.11+ · SQLite (standard library) · pytest · ruff · uv
    Demonstrates
    Leases and fencing tokens · Transactional outbox · Checkpoint and resume · Retry with backoff and dead-lettering · Append-only audit log enforced by triggers
    Verified
    171 pytest tests pass, ruff check and format check are clean, and the scripted demo is deterministic across runs.
    Status
    Reference implementation. Single host, single SQLite file; simulated executors only, no model calls. No benchmarks.

    Case study: agent-task-runtimeDemonstration: agent-task-runtimeRepository on GitHub: agent-task-runtime

  • Demonstration application

    agent-approval-console

    A human-in-the-loop approval gate for side-effecting actions proposed by AI agents, with a hash-chained, tamper-evident audit trail.

    Problem
    An agent that can act needs a control point between the model deciding and the system doing it. Without one, a wrong amount ships unseen, a double click pays twice, an agent approves its own work, and nobody can later say who allowed what.
    Stack
    Next.js (App Router) · TypeScript (strict) · Tailwind CSS · Vitest · Playwright
    Demonstrates
    Policy engine with rules as data · Explicit proposal state machine · Separation of duties and two distinct approvers · Idempotent execution under concurrent requests · SHA-256 hash-chained audit log with verification
    Verified
    130 Vitest unit and API-handler tests and 56 Playwright end-to-end tests pass; lint, type check and production build are clean.
    Status
    Demonstration application. Demo roles stand in for authentication; the executor is simulated and calls nothing; state is in memory.

    Case study: agent-approval-consoleDemonstration: agent-approval-consoleRepository on GitHub: agent-approval-console

  • Reference implementation

    evidence-gate

    Decides whether a revision is ready to release from evidence, and answers with one of three verdicts: GO, NO_GO or UNDETERMINED.

    Problem
    A release gate that can only say yes or no has to round missing, stale or wrong-revision evidence to green or to red, and the rounding is usually invisible. Green ships unchecked work; red teaches people to route around the gate.
    Stack
    TypeScript · Node.js 22 · Vitest · No runtime dependencies
    Demonstrates
    Three-valued (strong Kleene) evaluation · Policy as data with strict validation · Evidence binding to one revision, with expiry · Explicit, time-boxed waivers · Reproducible, explained verdicts with CI exit codes
    Verified
    76 Vitest tests pass; lint, type check and build are clean; the CLI returned exit codes 0, 1, 2 and 3 for GO, NO_GO, UNDETERMINED and invalid input.
    Status
    Reference implementation of the decision step only. Evidence is supplied as JSON and trusted as given; no collectors, no signing, no history.

    Case study: evidence-gateDemonstration: evidence-gateRepository on GitHub: evidence-gate

  • Reference implementation

    llm-routing-gateway

    A policy-driven model router with explainable decisions, fallbacks behind circuit breakers, tenant budgets, and a replay harness that regression-tests routing changes against recorded traffic.

    Problem
    When the choice of model is a string literal at each call site, every outage, vendor restriction, residency rule or cost question becomes a scattered code change that is slow to make and impossible to test as a whole.
    Stack
    TypeScript · Node.js 22 · Vitest · No runtime dependencies
    Demonstrates
    Constraint filtering with reason codes · Deterministic weighted ranking · Fallback chains and circuit breakers · Windowed tenant budgets · Replay diff as a CI gate
    Verified
    122 Vitest tests pass; lint, type check and build are clean; route and replay return their documented exit codes, and the sample log regenerates byte-identically.
    Status
    Reference implementation. Providers are in-process mocks, and models, prices and tenants are fictional. No network calls.

    Case study: llm-routing-gatewayDemonstration: llm-routing-gatewayRepository on GitHub: llm-routing-gateway

  • Playbook and templates

    Claude Execution Playbook

    A decision framework and prompt-template kit for running coding tasks with Claude and Claude Code. Unofficial; not affiliated with Anthropic.

    Problem
    Most problems with agent-written changes trace back to a decision or a boundary left implicit: which model and effort, what topology, what may change, what may be released, and what result counts as done.
    Stack
    Markdown · Python 3.10+ (build and check scripts) · Claude Code skill format
    Demonstrates
    Decision guides with stated defaults · Copy-ready templates and worked examples · Generated single-file edition and skill · Documentation CI with a freshness rule · Reproducible release assets
    Verified
    14 unit tests pass, the repository's consistency checks pass on 35 Markdown files, and the published v1.0.0 assets match their checksums and a rebuild from the tagged commit.
    Status
    Released as v1.0.0. A generalized rewrite of a private execution framework. Reasoned defaults, not benchmarks; the examples are illustrative; the skill passed five functional smoke runs, and its output quality has not been benchmarked.

    Case study: Claude Execution PlaybookDemonstration: Claude Execution PlaybookRepository on GitHub: Claude Execution Playbook