technology for cooperation

Infrastructure primitives that compose, and the agent-native method that builds them. A rules AST with three execution targets. A production framework on top of it — 95,000 lines of TypeScript, almost none of it typed by hand. And the governance work all of it is for: coordination as an engineering problem.

primitives

The composable stack

A rules AST with three execution targets, relationship-based authorization built on it, and a production SaaS framework that consumes both.

8 repositories · ~95k curated LOC
agentic

How it gets built

The tooling and conventions that let coding agents produce a large system that stays coherent — and a benchmark that measures whether they do.

sessions · orchestration · evaluation
whitepaper

Governance design

Designs for cooperation at scale: how groups set rules, hold each other accountable, and invest together without a central referee.

16 chapters · proposals · vocabulary
built by Aron Greenspan — currently available for work
primitives — the composable stack
~95k
curated lines of TypeScript, excluding generated code
12
public repositories, one composable system
205
test files across apps and packages
111
API routes, each generating its own OpenAPI contract
39
documentation modules, ~23k lines
how it composes

These aren't unrelated side projects. A single serializable predicate language sits at the bottom; four libraries build on it; a production framework consumes the result. The leverage is in the composition, not in any one package.

The inixiative ecosystem json-rules and prisma-map are roots with no dependencies. permissions, transitions, atlas and rules-builder build on json-rules. prisma-map is injected into permissions at runtime. config supplies CI and build presets to the libraries. template consumes json-rules, permissions, atlas and prisma-map. Separately, agent-session powers foundry. NO DEPENDENCIES prisma-map runtime model map json-rules one AST · memory · Prisma · SQL config shared toolchain injected CI + presets BUILT ON JSON-RULES permissions RBAC · ABAC · ReBAC transitions lifecycle guards atlas codebase map rules-builder headless builder UI THE FRAMEWORK template production SaaS framework · ~95k LOC consumes json-rules · permissions · atlas · prisma-map THE AGENT STACK agent-session foundry

Solid edges are package dependencies. Dashed edges are injection and shared tooling — prisma-map is injected into permissions at runtime so the engine stays ORM-agnostic, and config supplies CI workflows and build presets to the libraries.

flagship
the packages

Ordered by what depends on what. json-rules sits underneath most of the stack, and template consumes four of these directly.

json-rules

One AST, three execution targets. The same serializable condition evaluates in memory, compiles to a Prisma query, or compiles to a PostgreSQL WHERE clause. 38 operators. Write a rule once; enforce it at whichever layer it has to run.

coretypescriptrules-engine

permissions

RBAC, ABAC and ReBAC in one engine. Relationship-walking checks with per-row grants. The app-specific part — which model a relation points at — is injected, so the core stays generic.

authorizationrebacprisma

transitions

Lifecycles as predicates. A stateless primitive that guards a proposed state change and computes which transitions are currently available — so workflow rules and permission rules speak one language.

state-machineworkflow

prisma-map

Schema reflection at runtime. Extracts models, fields, relations, foreign-key direction and enums from a generated Prisma client, so authority can be expressed over the real data graph without coupling to Prisma internals. Supports v6 and v7.

prismaintrospection

atlas

A codebase map that cannot lie. Reads @atlas annotations, validates them against a repo-owned concept registry, and only ever asserts what is mechanically true — never maturity or correctness.

documentationai-agents

rules-builder

The authoring front-end. A headless React hook that composes conditions against a lens surface, offering exactly the operators and fields the engine can actually run. Bring your own components. Live demo →

reactheadless-uiin progress

config

One blessed toolchain. Shared TypeScript, Biome and tsup presets plus a version manifest, with a CLI that gates CI, heals drift across every checkout, and cascades a release through the dependency graph.

toolingmonorepocli

gloss

Decluttering as infrastructure. Keeps source files comment-free and moves explanation into a mirrored sidecar tree — src/foo.ts becomes .gloss/src/foo.ts.md. You read the code; you read the margin only if you're confused.

documentationcode-quality

agentic — how it gets built

The stack above was built with coding agents, and it holds together because the conventions came before the code. That is the actual work: persistent sessions instead of one-shot invocations, orchestration with context layers and capability gating, a codebase map that only asserts what is mechanically true so it cannot drift, and a benchmark that scores whether an agent left the repository better or barely working. atlas and gloss belong to this story too — they ship as packages in the stack above, but they exist so an agent can navigate a codebase it did not write.

foundry

Agent orchestration: context layers, capability gating, multi-thread pipelines and a real-time operator dashboard. Marketing site →

agentsmcpin progress

agent-session

Drive coding-agent CLIs as persistent, streaming, event-captured sessions. Most ways to script an agent are one-shot and throw the process away; this keeps one long-lived process and captures every event. Claude Code and Codex today.

agentssessions

bench — do i still have a job?

An AI coding benchmark. Agents rebuild the ecosystem's hardest primitives from a product brief and are scored against the real implementation — not just on passing tests, but on whether they leave the codebase better or barely working. Leaderboard →

benchmarkin progress

foundry-oracle

Corpus optimization. Mines merged PRs into evaluation fixtures, scores a codebase against them, and opens PRs with measurable improvements — turning git history into a feedback loop.

agentsclosed beta
Paused projects — not recommended for use

hivemind

Multi-agent coordination over MCP: a shared event log with role-scoped channels, so fleets of agents collaborate without stepping on each other. Likely to be revived.

paused

conditional-form

Dynamic forms whose show/hide and validation logic is the same predicate language the backend uses. Pairs with json-rules. May be revived.

paused

whitepaper — governance and institutional design

Designs for cooperation at scale

Every reform movement of the last 250 years has tried to fix governance by changing who holds power. The founders worked one level deeper. These proposals continue that lineage — treating governance as infrastructure and the cost of coordination as the thing to engineer down.

Sixteen chapters covering subsidiarity, voting mechanisms, proposal lifecycles, attack surfaces, epistemics, compensation and exit — plus a platform proposal for the infrastructure underneath.

thesis

Civilization is — and is built on — technology we invented to cooperate at scale. Let's keep building.

Open to work

Staff and principal engineering, founding roles, agent-infrastructure work, and advisory engagements.