Four entries. Every number below is measured, not estimated.
01Production2026
Clarus platform: CLM, CFO, HR, Nexus
Four live B2B SaaS products in one production monorepo. The model layer is a governed surface with routing, quotas, and anonymization in front of it.
- The four productsClarus CLM, contract intelligence that thinks at the clause level. Clarus CFO, the autonomous CFO for software. Clarus HR, the HR engine that runs itself. Clarus Nexus, the organizational reality engine.Three model paths behind one integration layer: GPT-4o, Anthropic Claude, and a self-hosted olmOCR model served on vLLM for document extraction and classification. Per-tenant API key routing, per-tenant token quotas, and Presidio-based PII anonymization apply to all of it.
- Family capabilitiesClauses as versioned searchable entities; amendments that create versions instead of overwriting; search that comprehends meaning; autonomous spend and contract operation; intercepting auto-renewals; three-way matching across purchase orders, invoices and contracts; policy rollouts and acknowledgment campaigns; payroll exceptions; contractor classification risk; multi-state compliance; continuous modeling of company operations across contracts, spend, approvals, vendors, obligations and workflows; detecting contradictions between stated intent and actual operation; preserving decision reasoning; simulating changes before they are made.Contract intelligence parses raw OOXML and PDF into a ProseMirror representation, types every clause against a 42-type taxonomy across 11 categories, scores per-clause risk, and overlays amendments as new versions instead of overwriting the original. Retrieval is hybrid: semantic search over pgvector embeddings fused with keyword search. Editing is real-time and collaborative over Yjs.
- Per-request tenant isolation is enforced in the database by PostgreSQL row-level security across all 263 tables, under 203 Alembic migrations and 10 backend services.
- ClarusStream, an in-house Kafka-wire-compatible message broker written in Go, with consumer groups, SASL, ACLs, and S3 segment tiering. Producers publish through a transactional outbox drained by a relay service with retries and exponential backoff. The nine OAuth platform integrations and Stripe billing are verified by an adversarial chaos-testing harness running nightly and weekly burn-ins in CI.
- Stack
- Python, FastAPI, async SQLAlchemy 2.0, Pydantic v2, Alembic, Go, PostgreSQL 16, row-level security, pgvector, Redis, AWS S3, Next.js App Router, React 19, TipTap/ProseMirror, Yjs, Zustand, vLLM, Presidio, Stripe, Docker, Helm
clarusclm.comclarusclm.com/products
02Two specifications2026
Agent harness architecture
Two specifications for long-running agent systems, one for a single operator and one for an organization. The second was written by taking the first apart and asking which of its invariants stop being true once there are many people, many permissions, and an erasure request.
Models change quarterly. The harness around them is the durable asset, which is the entire argument for writing these down.
02aSpecification2026MIT
RAG-OS
A vendor-neutral blueprint plus a runnable stdlib-only starter for a self-hosted, always-on personal AI operating system. It is the compiled architecture of a system I actually run.
- Compiled knowledgeA librarian-maintained Markdown wiki, read index-first. The hybrid index (BM25 keyword plus vector, fused with reciprocal rank fusion) is treated strictly as a rebuildable cache over the Markdown, never as a source of fact. Embeddings run locally on CPU through ONNX, so retrieval costs nothing.A zero-context supervisor kernel: one always-on process that holds no model context and is the only writer of a SQLite database. All intelligence runs in short-lived spawned sessions, so a crash, a restart, or a model downgrade loses no durable state. Above it, an orchestrator and worker split: one durable conversational session decides and delegates, and ephemeral headless workers do the real repository edits and never talk to the human.
- Memory disciplineSuperseded facts are invalidated into a history section excluded from retrieval instead of being deleted, so the knowledge base does not rot and old reasoning stays reconstructable.Four persistence layers ordered by authority: a transactional operational database, git-tracked Markdown as compiled knowledge, mission ledgers carrying proofs, and disposable model transcripts. The transcript is the least authoritative artifact in the system, which is what makes context compaction safe to do at all.
- Disk verifyA deterministic disk-verify stamp fingerprints a repository before and after a worker runs, so a model that fabricates an edit that never landed is caught by the fingerprint instead of believed.Security is enforced in code instead of in prompts, re-checked on every single tool call, failing closed, and audited. Path fences normalize against traversal, symlinks, directory junctions, home aliases, UNC and extended-length prefixes, and fail closed on any path that will not resolve. Dangerous actions sit behind an out-of-band single-use approval code with a short expiry.
- Nightly evalsA nightly deterministic zero-token evaluation suite runs the whole thing. Its most important check is a safety canary re-proving that the protected paths still deny.Cost and vendor independence are policy, not habit. Code requests capabilities such as classify, workhorse, or deep reasoning; model names appear in exactly one config file, enforced by a check that fails if a model name appears anywhere else, so switching vendors is a config edit. A budget governor meters spend in plain code before a session spawns: degrade to cheaper models, then park background work, then park everything.
Persistence layers
Authority increases downward.
Model transcriptsDisposable
Mission ledgersProofs
Git-tracked MarkdownCompiled knowledge
Operational databaseTransactional
Writers to the database1
- Stack
- Python (standard library only in the starter), SQLite, ONNX runtime, BM25, vector search, reciprocal rank fusion, git-tracked Markdown, MIT licensed
github.com/csnyder256/RAG-OS
02bSpecification2026MIT
org-memory-os
One shared, permission-aware, auditable AI memory that any number of employees use through their own agents, under one compaction and degradation-avoidance discipline. Published 2026.
- The 70 forksEach fork carries the options considered, a recommended default, and the reasoning, including the forks where carrying the single-user rule forward was the wrong answer.The organizing idea is naming exactly which single-user invariant breaks at organizational scale and what replaces it. Single-writer state becomes one writer per aggregate with a fencing token. Identity as a boolean becomes an identity graph with fresh permission checks on the candidate set. One conversation window becomes windows scoped per surface and per thread. Invalidate-never-delete stays right for institutional knowledge and becomes wrong for personal data the moment erasure applies.
- The 16 milestonesEvery milestone ends in a definition of done proven by a real command and its real output, so the build order is falsifiable rather than aspirational.The data model is authority-ordered. An append-only bi-temporal claim ledger is truth, git-tracked Markdown is a projection of it, and the hybrid retrieval index is an explicitly rebuildable cache. Nothing downstream of the ledger is ever allowed to be the source of a fact.
- ProvenanceWritten out of a large adversarial research process. Every figure in it was independently fact-checked before publication. A Principal Cloud Architect at AWS starred the platform write-up that led to this being written.Retrieval is permission-aware at the candidate set, filtered as the asking human through relationship-based access control with forced-fresh consistency. The generated answer is never filtered after the fact, and no shared service account holds the union of everyone's permissions. A cross-tenant isolation canary is a hard release gate: nightly it plants a unique marker in each team's memory and attempts to read another team's marker back through the real retrieval path, failing the build if that ever succeeds.
- The coordination layer owns the conversation window in its own database and treats the model transcript as disposable, so each turn is reassembled from recent exchanges, fresh permission-filtered retrieval, and externalized knowledge. Prompt zoning keeps a stable cached prefix and confines volatile retrieved content to an uncached tail. Governance sits in the schema: four retention classes, per-subject crypto-shredding for personal data, a legal-hold table consulted before any deletion, and an immutable audit tier with citation-level logging, so the blast radius of a bad fact can be reconstructed.
- Stack
- Architecture specification: bi-temporal claim ledger, relationship-based access control, hybrid retrieval with reciprocal rank fusion, prompt zoning, crypto-shredding, immutable audit tier, MIT licensed
github.com/csnyder256/org-memory-os
Full evidence ledger, margin notes and the harness breakdown at https://csnyder256.github.io/
03SaaS2026
ux-struggle-detector
Multi-tenant SaaS that reads a customer's own repository to understand their app, then detects user struggle server-side and answers inside the same request.
- Maps a customer web app by Babel AST parsing of its GitHub repository, producing the structure the detection rules run against.
- Runs 40 struggle-detection rules server-side over hydrated cross-request session history and returns interventions in the same HTTP response the events arrived in, so detection adds no extra round trip.
- Dependency-free browser SDK, client-side PII scrubbing, AES-GCM encrypted key storage.
- Stack
- TypeScript, Next.js 15, React, Prisma, PostgreSQL, Playwright
github.com/csnyder256/ux-struggle-detector
04Research2026
shadow-options-trading-laboption-contract-grader
Twenty strategies evaluated against live market data with zero orders placed, and a 6,000-name universe priced from first principles instead of from a vendor field.
- Runs 20 options strategies against live market data in shadow mode, placing zero orders. A subprocess-isolated test proves no order-placement code is reachable from the live path.
- Grades results with anytime-valid e-processes (test martingales, Ville's inequality), so nightly evaluation stays statistically valid under continuous monitoring.
- The grader sweeps a 6,000-name optionable universe, solving implied volatility and the Greeks from Black-Scholes-Merton locally instead of trusting vendor values, and scores every contract into A to F grades.
- Stack
- Python, numpy, pandas, FastAPI, SQLite, pytest, Hypothesis property-based fuzzing, GitHub Actions CI
shadow-options-trading-laboption-contract-grader
05
Also public: gba-rom-hack-ide, which exposes 71 tools through a Model Context Protocol server so a coding agent can edit a game directly, and grain-bids-to-excel, 97 tests green in CI. Together with the four systems above they account for the 1,037 tests.