SOFTWARE FACTORY

Capsule Corp

A software factory for one maintainer: an orchestrator agent files cards, sealed implementers build them, and nothing lands without independent review.

  • 4,775 Commits
  • 589 Test files
  • 1.92 Human step-ins per finished card

capsule-corp repo, git log, 2026-11-26; capsule-corp repo, 2026-11-26; capsule-corp/STATUS.md, 2026-10-18

ROLE
Designer and sole maintainer
TIMELINE
2026-09 to now
STACK
Python, SQLite, Docker, Claude Code
STATUS
Active

Be the reviewer

Watch for: what the diff touches, not what the card title promises.

Five illustrative cards go from a sealed implementer to you, then to the validator. Approve or reject each one and watch the human step-in counter. The cards are made up; the 1.92 baseline above is real.

Problem

I work on several projects alone. An agent that reports done has only told you that it reports done.

I wanted cards to finish without me approving each step, and I wanted a number that says whether that is actually happening. A feeling of babysitting is not something you can push down. A count is.

Constraints

  • One maintainer and one Mac. There is no deployed URL: the factory runs on a laptop under launchd (capsule-corp repo, 2026-10-26).
  • The harness is standard-library Python 3.11 with one SQLite file per board. Claude Code runs every role, so roles differ by contract, not by tool.
  • Nothing may land on main until an independent reviewer and validator have passed it.
  • An older agent runtime is being retired while this one takes over, so both had to coexist for a while.
  • The repo is public as a pre-alpha preview, v0.2.0-alpha.1, released on 27 November 2026 (GitHub release, capsule-corp). The numbers on this page come from the private development repo.

Approach

An orchestrator agent files cards on a board. A tick runs each card through a sealed Docker implementer, then through host-run reviewer, validator and guide agents. Those three are read-only: they can inspect the change but cannot edit it.

Each role has a contract in contracts/. There are 9 of them (capsule-corp repo, 2026-10-25). A contract says what the role may touch and what it must report.

The lander closes the loop. It re-runs the test suites in a clean clone and pushes only the exact commit that was checked. If the checked commit and the pushed commit could differ, the review would mean nothing.

Incidents close only through a gate, not because someone says they are fixed. Reliability rules live in docs/ZENKAI.md. Korin post-mortem roles look back at what went wrong. Every human intervention is recorded, because that record is the metric.

What shipped

  • The harness, with one SQLite board per project and a tick that moves cards through the roles.
  • The 9 role contracts: implementer, reviewer, validator, guide, Korin post-mortems, security reviewer, lookout, advisor and auditor (capsule-corp repo, 2026-10-25).
  • The lander, which re-runs suites in a clean clone and pushes the checked commit only.
  • Slack notifications, when enabled, and launchd schedules (capsule-corp README and docs/ARCHITECTURE.md, 2026-10-25).
  • A self-hosted observability stack alongside it: Grafana, Loki, Fluent Bit, Caddy, Postgres, Redis and Infisical (capsule-corp repo, observability/docker-compose.yml, 2026-10-25).

The repo has 1,139 tracked files, 402 of them real test files (git ls-files, files under test folders or named test_ / .test.*, capsule-corp repo, 2026-10-26). It has 2,183 commits between 2026-09-05 and 2026-10-26 (git log, capsule-corp repo, 2026-10-26), which is about seven weeks.

Outcome

At the M0 baseline on 2026-10-18 I stepped in 1.92 times per finished card (capsule-corp/STATUS.md, 2026-10-18). That is a starting line, not a result. It tells me what the factory costs me today, and later milestones are measured against it.

Where it stands as of 2026-10-23 (capsule-corp/STATUS.md, dated 2026-10-23): M0 (the 1.92 baseline, 18 Oct), M1 (foundations, 18 Oct) and M2 (go-live on its own tick, 20 Oct) are done. M3, shadow run plus self-merging, is 63% done with a target of about 2 Nov. Auto-merge is in practice mode: it checks everything but does not push yet, until 5 real changes show the practice verdict matching the merge helper.

What I learned

Counting every human intervention turned "babysitting" into a number: 1.92 step-ins per finished card on 2026-10-18 (capsule-corp/STATUS.md). A check that asks the same code that did the work proves little. The reliability rules start from "Reliable scripts can be reliably wrong" and require two independent oracles for every checked fact (docs/ZENKAI.md).

Twice the orchestrating agent tried to go faster by cutting checks, and I reversed it. It raised the card limit to 3 and broke the one-live-card-per-epic rule, and it shortened the dark test to 24 hours. My ruling was not to cut work to go faster: keep the 48-hour test, run the full suites, review every piece, and get speed from parallelism (vault Dev Log 2026-10-23).

How AI built this

The repo started on 2026-09-05, five weeks before my written delegation policy (2026-10-11) and the code-blind process write-up (2026-10-15). The split between a controller, Sonnet implementers and Opus or Sonnet reviewers was already in use from the first build days (vault Dev Logs 2026-09-06 and 2026-09-08).

  • Roles. A controller agent plans, Sonnet agents implement, and Opus or Sonnet agents review.
  • Tests. The tests are in the repo and were not written code-blind. A harness to enforce code-blind testing exists only as a design document (docs/code-blind-tdd-harness.md). What checks the work instead is the role design: the validator and reviewer cannot edit what they check, a mutation check tests the tests, and intent examples carry expected outcomes that come from named sources (docs/ZENKAI.md, Z1 and Z2).

Inside the factory, Claude Code runs every role. Implementers are sealed in Docker and reviewers are read-only (capsule-corp README, 2026-10-25).