Product Factory knowledge hub
Design stage · no code yet · updated 25 Nov 2026

A requirement goes in. An accepted app comes out.

Crews of agents turn a requirement into a PRD, a prototype, a test suite, a working app and a client sign-off. Every crew is checked by an auditor, approved by you, and hands a versioned package to the next crew. It runs on LangGraph in Python.

Start here

Read this first

Not everything in this hub is agreed. Each item carries a label: decided comes from your docs or your own words, proposed is a suggestion from the review, and open is waiting for your answer.

All documents

Understand

The idea in plain words

Think of a small software company where every employee is an agent, every department is a crew, and you are the only manager.

What it does

  • You give it a requirement: a sentence, a brief, or a folder of documents.
  • It asks you the questions the requirement leaves open, a few at a time.
  • It produces, in order: a PRD, a clickable prototype, a failing test suite, a working app, a staged build, and a client acceptance report.
  • It builds the app on your own boilerplates, so the code follows your conventions.

Three rules that make it different

Nothing is invented
Every line of the PRD points to an exact quote from your input or to an answer you gave. If something is undecided, the agent stops and asks. It never picks silently.
Tests come before code
The Test crew writes the tests first and proves they fail. The Developer crew may not edit them, and a hidden set of tests checks the result afterwards.
The maker never judges its own work
A separate auditor checks every crew's output. Code checks run first, then a model with a fresh context. You approve after the auditor passes.

What it is not

  • It is not a chatbot that writes an app from one prompt. Those projects have mostly been archived or gone quiet.
  • It is not CrewAI. "Crew" is your word for a team of agents. Each crew is a LangGraph subgraph.
  • It is not autonomous. It waits for you at gates, and it stops when it lacks a decision.

Why build it

You already run this process by hand. The product-demo skills cover the stages, Perpetua has the rules for many sessions working at once, and Conclavity has the expert feedback loop. The factory makes that process repeatable, resumable after a crash, and measurable.

The scarce resource is your time. The number to watch is operator minutes per accepted product. proposed

Understand

One product, start to finish

An invented example: a clinic asks for online appointment booking. This follows the version 2 design in the Crew Deep Dive.

  1. Business Analysis

    DoesReads the requirement and lists each stated fact with its exact quote. Interviews you with multiple-choice questions, four at a time. Researches competitors and pricing. Writes the PRD module by module. Asks youLock the requirement and scope. Approve the product definition. Close every open gap. Approve each PRD module. Hands overPRD, decisions, personas, features, acceptance criteria.
  2. UI / UX

    DoesMaps every journey and screen. Three designers each build one whole visual direction. A critic measures them before you see them. Then builders make the prototype, one journey each. Asks youApprove the flow map. Pick a direction, or a mix. Approve the style guide and each journey. Hands overPrototype that runs offline, flows, design tokens, test ids.
  3. Architecture

    DoesReads your boilerplates to see what already exists. Designs the data model and one API contract. Lists the security requirements. Runs beside UI / UX and the test plan. Asks youBuild questions such as login method, hosting and performance budget. Approve the schema and contract per module. Hands overA frozen API contract, schema, migrations and starter code.
  4. Test, before any code

    DoesWrites one scenario per acceptance criterion, then unit, end-to-end, API and property tests. Sets aside a hidden set. Proves every test fails on the empty boilerplate for the right reason. Asks youApprove the test plan. Hands overA test suite that is all red, and a matrix linking each test to its requirement.
  5. Developer

    DoesTakes one failing test, writes the least code to pass it, cleans up, repeats. Each task has its own git worktree. A reviewer checks every change. Asks youOnly when a developer flags that a test or the spec looks wrong. Hands overThe app on your boilerplates, all tests green, including the hidden set.
  6. Release readiness

    DoesBuilds the Docker image, deploys to staging, rehearses migration and rollback, then checks security, speed and accessibility on the real app. Asks youApprove the staged build and its reports. Hands overDocker image, compose file, staging address, reports, release notes.
  7. UAT

    DoesWalks every checklist line on staging and checks the screen, the API response and the stored data. Sends each defect to the crew that owns it. Asks youThe client signs off, or raises change requests. Hands overA signed acceptance that names every version it covers.

When something changes

A defect or a change request goes back to the crew that owns it. That crew issues a new version of its handoff. The trace from requirement to screen to test to code shows what depends on it, and only that part is redone. The full suite runs again before sign-off.

Open the Crew Deep Dive

Understand

Key concepts

The words used across the docs, each in one or two sentences.

The moving parts

Agent
One job done by one model call or one working session. In LangGraph it is a node.
Crew
A team of agents that produces one handoff. In LangGraph it is a subgraph with its own private state.
Operator
You. The person who answers questions and approves at gates.
Gate
A point where the graph stops and waits for a person. It uses LangGraph's interrupt() and resumes with your answer.
Auditor
A read-only checker with its own context. It passes or fails a crew's output with evidence and never fixes anything itself.
Handoff
The versioned folder a crew gives the next crew. Once approved it never changes. A change makes version 2.
Manifest
The file in each handoff that records who made it, which versions it was built from, the audit verdict and your approval.

How truth is tracked

Fact (B#)
Something stated in your input, stored with its exact quote.
Decision (D#)
An answer you gave. Only an operator answer can add one.
Gap
A user-visible choice nobody has decided. An agent that meets one raises it and stops that item.
Acceptance criterion (AC#)
One testable statement of what a story must do, written as Given, When, Then.
Trace graph
The chain from fact or decision to criterion, screen, endpoint, test, code and UAT line. It tells the engine what to redo after a change.

How quality is protected

RED and GREEN
A test is red when it fails and green when it passes. Tests must be red on the empty app before any code is written.
Held-out set
Acceptance tests the developers never see. Only the auditor and UAT run them.
Mutation score
How many deliberate bugs the test suite catches. It measures whether the tests are strong.
Checkpoint
The saved state after every step, so a run can resume after a crash or a wait of several days.

Proposed terms proposed

Function agent
Reads a handoff and returns structured data in one model call, with no tools. Cheap and fast.
Worker agent
Needs files and a shell, so it runs as a sandboxed coding-agent session with one skill.
Track
A fixed set of crews for a kind of work: Demo, Change or Full.
Eval-first
For AI features: a domain expert writes the scoring rubric and a golden set before the feature is built.
Benchmark
A few fixed requirements run on every engine or skill change, to see whether the factory got better.
Understand

Who decides what

Agents propose. Code decides what is allowed. People decide what a user will see.

WhoDecidesNever does
You, the operatorEverything a user of the product will see, and every gateHas to remember what ran. The checkpoint does.
The clientFinal acceptance at UATSees unaudited work
AgentsProposals: requirements, designs, architecture, code, skill changesPick an undecided choice silently, or edit their own permissions
The auditorPass or fail, with evidenceFixes the work it checks
CodeWhat runs next, whether a handoff matches its contract, whether tests pass, what went staleJudges quality that needs reading
A domain expert proposedThe rubric and scores for AI featuresApproves handoffs

The crew loop

  1. The crew's agents do the work.
  2. Code checks the output against its contract.
  3. The auditor judges it. A fail returns to the agent that owns the failing part, at most twice.
  4. A third fail goes to you: retry, accept as is, or stop.
  5. You approve at the gate. The handoff is frozen and the next crew starts.
Decide

Decisions

Decided items come from your docs or your own words. Proposed items are suggestions from the review and are not agreed.

Decided

  • D-001

    Build on bare LangGraph decided

    StateGraph, Send, interrupt and a checkpointer. No CrewAI, no prebuilt agents, no supervisor package.

    Source: Deep dive, Stack. Confirmed by you on 24 Nov.

  • D-002

    Python now, Rust parked decided

    Python 3.12. Optimise memory and CPU in Python first.

    Source: Your words in the design chat.

  • D-003

    Gates inside and at the end of every crew decided

    The operator approves along the way, not only at the end.

    Source: Deep dive, decided 24 Nov.

  • D-004

    Hybrid shape decided

    Crews run in parallel where it is safe. Test code is still written before development.

    Source: Deep dive, decided 24 Nov.

  • D-005

    Postgres from the start decided

    Checkpointer and Store on Postgres, run with Docker Compose.

    Source: Deep dive, decided 24 Nov.

  • D-006

    CLI first decided

    A Typer command line starts, resumes and answers. A web UI comes later.

    Source: Deep dive, Stack.

  • D-007

    Seven crews decided

    Architecture and Release readiness were added in version 2.

    Source: Deep dive, version 2.

  • D-008

    A model per agent decided

    Claude API key or the claude CLI, in a smart tier and a fast tier.

    Source: Deep dive, Overview.

  • D-009

    Handoffs never change decided

    A change is a new version. Old versions are retired, not deleted.

    Source: Deep dive, Handoffs.

Proposed

  • P-01

    Thin conductor proposed

    LangGraph owns order, gates, versions, audits and budget. An agent is a skill plus an output contract.

    More: the solution

  • P-02

    Two kinds of agent proposed

    Function agents make one model call with no tools. Worker agents run as sandboxed coding sessions.

    More: key concepts

  • P-03

    Three kinds of gate proposed

    Stops for decisions only you can make, one batched review for repeating approvals, and a notice for clean low-risk handoffs.

    More: the review

  • P-04

    Three tracks proposed

    Demo, Change and Full, each with a fixed set of crews.

    More: the review

  • P-05

    Measure the factory proposed

    A benchmark of fixed requirements, with operator minutes per accepted product as the headline number.

    More: the review

  • P-06

    Test the auditors proposed

    Plant known-bad handoffs on a schedule and require each auditor to fail them.

    More: the review

  • P-07

    Sandbox per task proposed

    One container per task, network limited to the package registry, research text treated as data.

    More: the review

  • P-08

    Eval-first crew for AI features proposed

    A domain expert writes the rubric first, and part of the golden set stays hidden.

    More: lessons

  • P-09

    Contract checker before any engine proposed

    Validate today's manual stages against the handoff contract first.

    More: the plan

  • P-10

    Mark the version 1 architecture page as superseded proposed

    It disagrees with the deep dive on crews, agents, order and storage.

    More: the review

  • P-11

    Harden the boilerplates first proposed

    One tagged copy of each in git, a working test setup, one-command boot and written conventions.

    More: the plan

  • P-12

    Worker agents on the Claude Agent SDK, in a container proposed

    One Docker container per task with no network and no secrets.

    More: the solution

  • P-13

    Gates only on the straight path of a crew proposed

    One interrupt per gate node, no model call beside it, and no questions from parallel agents.

    More: the solution

  • P-14

    Metering fails closed proposed

    If the meter cannot attach, the call does not run.

    More: the solution

  • P-15

    Save the graph version with each run proposed

    A run refuses to resume on a different graph.

    More: the solution

  • P-16

    Memory in three places proposed

    The run log, the product folder and files in git. No vector store yet.

    More: the solution

  • P-17

    Demo track first proposed

    Intake through prototype is the part of product-demo that has met real products.

    More: the plan

  • P-18

    Work in slices proposed

    A skeleton first, then one user journey at a time through all kinds of work.

    More: my own design

  • P-19

    Fingerprints decide what runs proposed

    Each output records what it was made from. Work is redone only when an input changes.

    More: my own design

  • P-20

    Acceptance script first proposed

    The client approves each slice's walk-through before it is built. It becomes the hidden test.

    More: my own design

  • P-21

    Receipts, not reports proposed

    The conductor re-runs every check it can and stores the result. Auditors read receipts.

    More: my own design

  • P-22

    Roles are skills proposed

    A skill library and agents made per task. Separate agents only for independence, parallel work or context size.

    More: my own design

  • P-23

    Trust is earned per gate proposed

    Every gate starts as a stop and can step down after a clean record, with your approval.

    More: my own design

  • P-24

    Assumptions ledger proposed

    An agent with a missing answer assumes, records it and continues. Gates show assumptions by how much depends on them.

    More: my own design

  • P-25

    Six graph engines, not one graph proposed

    Requirement, code, test, module, memory and run engines, each with its own storage and build method, joined by shared ids. Replaces my earlier single-graph proposal after your correction.

    More: graph engines

  • P-36

    A context broker with recipes proposed

    For each task the conductor asks the right engines, within a word limit each, and logs what the agent was shown.

    More: graph engines

  • P-26

    Memory as two vaults proposed

    A product vault and a factory vault, kept like Obsidian. Agents remember by following links one or two steps.

    More: one graph and memory

  • P-27

    Requirement records proposed

    Fixed fields per requirement, a role and data table for gaps, and a PRD generated from the records.

    More: requirements engineering

  • P-28

    Scenarios in the graph proposed

    Coverage gaps as missing links, tests chosen by what changed, and scenarios suggested from roles, data and states.

    More: test scenarios

  • P-29

    Module catalogue proposed

    Repeated features are picked by a matching step: use, configure, extend or build. A feature becomes a module when a second product needs it.

    More: module catalogue

  • P-30

    Learning without model access proposed

    Improve checks, modules, notes, skills and routing. Promote a change only on a measured win.

    More: how the factory learns

  • P-31

    Graph first steps and a stop rule proposed

    Note format, one boilerplate with two modules, then the requirements crew alone. Drop the graph machinery if it shows no gain.

    More: what I propose now

  • P-32

    A handoff is a snapshot of the vault proposed

    A manifest of note ids and fingerprints at one git commit. Notes are not copied.

    More: solution in detail

  • P-33

    A note links to what it was made from. The index works out the reverse.

    More: solution in detail

  • P-34

    Hidden tests in a separate repo proposed

    Given to the test and release crews only. The developer container never receives it.

    More: solution in detail

  • P-35

    Context packs proposed

    Each task gets its note plus notes one or two links away, within a word limit, and the list is logged.

    More: solution in detail

  • P-37

    Structure first, search second proposed

    Modules with contracts, checked boundaries, size limits and a reach limit per task keep agents from needing the whole codebase.

    More: large codebases

  • P-38

    Four layers of retrieval proposed

    Recorded links, then structure, then exact words, then meaning. Similarity search runs on summaries, not raw code.

    More: large codebases

  • P-39

    A map with levels proposed

    Short cards for the system, each service, module and file, rebuilt only when the code under them changes.

    More: large codebases

  • P-40

    Onboarding for existing codebases proposed

    Index, cards and tests that pin down behaviour, before the factory changes a product it did not build.

    More: large codebases

  • P-41

    A small core with plugins proposed

    Stacks, graph engines and model providers behind fixed interfaces from day one. Crews and checks follow once two of each exist.

    More: plugins

Decide

Open questions

Each answer changes what gets built. None of them needs code to answer.

  • Q-1

    What does "a different model" mean for the auditor? open

    Another Claude tier, or another provider. One study found cross-model review caught more planted errors, so another provider is the recommendation.

  • Q-2

    Where may Developer agents run code? open

    Your laptop, a container, or a remote sandbox. This decides the security design.

  • Q-3

    Which gates may pass on their own? open

    For an internal product, which approvals can become a notice.

  • Q-4

    Who is the factory for? open

    To cut your own time per product, or to let someone less experienced run it.

  • Q-5

    Wrap product-demo, or redesign its stages? open

    If it is good enough today, the engine should conduct it as it is.

  • Q-6

    What should the first version deliver? open

    A client-ready demo, or a full app through to acceptance.

  • Q-7

    Is there a third boilerplate? open

    Products with AI need a Python intelligence foundation next to Node and Next.

  • Q-8

    Which product is the first benchmark? open

    One shipped Perpetua feature would give known answers and known bugs.

  • Q-9

    Where is the product-demo repo? open

    It is not on this machine. The plan treats its contents as described in the deep dive and its status page.

  • Q-10

    Which backend comes first? open

    The deep dive names the Node boilerplate. FastAPI v2 is closer to ready for test-first.

  • Q-11

    Whole product per crew, or slice by slice? open

    Your documents run each crew over the whole product. My own design runs a skeleton, then one journey at a time. This touches D-004 and D-007.

  • Q-12

    Modules: shared package or copied code? open

    A package lets one fix reach every product. Copied code is free to change but drifts apart. Suggested: packages for backend logic, copies for screens.

  • Q-13

    Who owns a module first built on a client project? open

    A contract question. Settle it before the first extraction.

  • Q-14

    May client data go to a second model provider? open

    Using GLM or another provider as auditor or cheap tier sends requirements and code outside. It may need to be a setting per product.

  • Q-15

    Notes and app code in one repo, or two? open

    One repo ties notes to code in one commit. Two repos make it cleaner to hand code to a client.

  • Q-16

    Web only at first, or mobile too? open

    Your Delivery project has Flutter and React Native boilerplates. The design so far covers the web boilerplates only.

  • Q-17

    Which embedding model for similarity search? open

    Claude does not provide one. Another provider is simple. An open model run locally keeps client code on your machine.

  • Q-18

    Will the factory work on existing large products? open

    Perpetua and Conclavity were not built by it. Changing them needs an onboarding step and is harder than a new product.

Claude's view · proposed · consolidated 25 Nov 2026

Six graph engines, joined by ids, from the client's sentence to the line of code

Changed on 25 Nov. I first proposed one graph for everything. You said one graph will not work and that each graph engine needs its own context. I agree, and this page now follows that. The reasons and the design are on Graph engines.

This page joins everything we discussed: your documents, my own design, and your six additions (a learning system, graphs to save tokens, reusable modules, requirements engineering, Obsidian-style memory and test scenarios). They are one idea seen from six sides.

The proposal in one paragraph

The factory keeps six separate graphs, each run by its own engine: requirements, code, tests, modules, memory and runs. Each engine has its own storage, its own way of being built and its own way of answering an agent. They are joined only by shared ids such as R-014. What people write stays as small linked notes in plain files. Crews are workers that ask the engines for context and add to them. LangGraph runs the crews. You approve at gates. The factory gets better by adding checks, modules and lessons to the graph, because we cannot change the model itself.

Source→Fact→Requirement→Scenario→Test→Code

Side links join each step to roles, data, modules, decisions, assumptions, defects and lessons.

The six parts

How the parts depend on each other

YouApprove at gates, answer assumptions, approve lessons and new modules.
ConductorLangGraph. Runs crews slice by slice, re-runs checks, keeps receipts and the budget.
CrewsAgents made per task from the skill library. Each reads a few linked notes and writes new ones.
Product vaultOne per product: facts, requirements, scenarios, decisions, assumptions, defects, and generated notes for code and tests.
Factory vaultShared by all products: skills, modules, conventions, lessons and checks.
FoundationsHardened boilerplates and the first modules, each with tests.

What I would build first

The danger of this design is building a knowledge system and never a factory. So the first steps are small, and each one is useful even if the next never happens.

  1. The note format and a link checker

    Decide the header fields and link types for seven kinds of note: fact, requirement, scenario, decision, assumption, module and lesson. Write a checker that fails on a missing field, a broken link or a note with no source. Fill it in by hand for one real requirement.

    No agents and no engine. This is the handoff contract from Phase 1, in graph form.

  2. One hardened boilerplate with two modules

    Pick one backend. Put it in git, make its tests run, and extract sign-in and notifications as the first two modules, each with a card and its tests. Generate the code graph for it by parsing.

    Useful at once, with or without a factory.

  3. The requirements crew alone

    Run only the first crew on one real client brief. It produces linked facts, requirement records, the role and data table, scenarios, module matches and a question list. You compare it with what you would have written.

    The cheapest crew, and the first real test of the graph idea.

  4. Then the plan as written

    The spine, the Demo track, the Build track, release and change, and last the learning loop.

Stop rule for the graph. After step 3, compare agents that receive notes by following links with agents that receive plain files, on the same cases. If the graph does not lower cost or raise quality, keep the plain files and drop the graph machinery. The note format costs almost nothing to keep.

What changes in the plan

PhaseWhat it gains
0. FoundationsThe first two modules with cards, and a parsed code graph of the boilerplate.
1. Contracts and baselineThe note format, typed links, the link checker and the requirement record.
2. The spineNothing new. Fingerprints and receipts were already added by my own design.
3. Demo trackRequirements as records, gap finding, module matching and suggested scenarios.
4. Build trackHidden scenarios in a folder the developer cannot read, and tests chosen through the graph.
5. Release and changeA change marks linked notes as out of date. Module versions are recorded per product.
6. Parallel and learningThe lessons graph, the learning loop, and a trial of a second model as auditor.

What I need from you

  • Slices or whole product? Open question Q-11.
  • Which backend first? Open question Q-10. Step 2 cannot start without it.
  • A real client brief for step 3, and where the product-demo repo is (Q-9).
  • Modules: shared package or copied code (Q-12), and who owns a module first built for a client (Q-13).
  • GLM: may client data go to another provider (Q-14)?

What is not known

  • None of this has been built or measured. Savings from the graph are expected, not shown.
  • I have not checked which features in Perpetua, Conclavity or the boilerplates are clean enough to extract as modules.
  • I have not checked GLM's current models, prices or terms.
  • I have not tested whether your graphify skill fits as the code graph builder. It is a candidate.
Claude's view · proposed · your correction, worked out · 25 Nov 2026

Six graph engines, each with its own context

One graph for everything does not work. The factory needs several graphs, each run by its own engine, and each engine gives an agent context in its own form. A thin layer joins them by shared ids.

Why one graph fails

  • Different makers. A requirement is written by a person or an agent and approved. A code graph is produced by a parser. Mixing them means a rebuild can overwrite something a person wrote.
  • Different speeds. Code changes every few minutes during a build. A lesson changes a few times a year. One graph is either always rebuilding or always out of date.
  • Different sizes. One product has perhaps a hundred requirements and tens of thousands of code items. In one graph the code drowns everything else.
  • Different questions. "What calls this function?" and "what went wrong last time?" need different ways of searching.
  • Different access. The developer must never reach hidden tests. That is easy to enforce on a separate engine and hard inside one graph.
  • Failures spread. A broken parser should not block reading the requirements.

The six engines

EngineWhat it holdsBuilt fromBuilt whenQuestions it answers
RequirementSources, facts, roles, data, requirements, slices, decisions, assumptionsWritten notesWhen a note is acceptedWhat is missing? What conflicts? What does this change affect?
CodeFiles, functions, routes, data tables, what calls whatA parser run over the app and the boilerplateOn every commit, changed files onlyWhere is this handled? What depends on it? What may break?
TestScenarios, tests, what each test touches, results, flaky testsScenario notes, test runs with coverage onAfter each test runWhat covers this? What must run? Where are the gaps?
ModuleModule cards, contracts, versions, which product uses whichThe factory's catalogueWhen a module is releasedWhat fits this requirement? Who needs this fix?
MemoryLessons, conventions, defects and what caused themWritten notes, approved by youAfter the tidy-up step of a runWhat went wrong before, near this file, module or skill?
RunThe run log, fingerprints, receipts, cost, what each agent was shownThe conductor, as it worksContinuously, append-onlyWhat is out of date? What did it cost? What did the agent know?

The context each engine gives

An engine does not hand over raw graph data. It answers in a short, fixed form made for an agent, within a word limit.

EngineWhat an agent receivesWhat it never gives
RequirementThe requirement, its facts, open assumptions and glossary wordsOther clients' requirements
CodeFile paths, function outlines and callers. The agent then opens the real files it needs.Whole files by default
TestThe visible scenarios and tests for the task, and the last resultHidden scenarios, to a developer
ModuleThe module card and contractModule source code, unless the match is "extend"
MemoryAt most a few lessons, each with the defect that taught itUnapproved lessons
RunUsed by the conductor and the learning loop, not by working agentsAnything, to a working agent

How they are joined

Context brokerPart of the conductor. For each task it follows a recipe: which engines to ask, what to ask, and how many words each may return. It writes the result to the run engine.
Shared idsR-014 means the same thing in every engine. A test carries its scenario id. A commit carries its requirement id.
No reaching inAn engine never reads another engine's storage. It only keeps the other's id.

Recipes: who asks which engine

AgentRequirementCodeTestModuleMemory
Requirement writermostnonenonesomesome
Architectsomesomenonemostsome
Test writersomesomemostsomesome
Developersomemostvisible onlysomesome
Auditorsomesomeall, with resultsnonenone

The split is a starting guess. The run engine records what each agent was shown, so the recipes can be tuned by measurement.

A cross-engine question

"The client changed R-014. What must be redone?" The requirement engine lists the scenarios that check R-014. The test engine lists the tests for those scenarios and the code they touch. The code engine adds what depends on that code. The run engine marks the matching outputs out of date. The broker joins the four answers by id, and no engine needed to know about the others.

What stays the same

  • Files are the truth. Every engine's index can be deleted and rebuilt.
  • What people write stays as Obsidian-style notes: the requirement, module and memory engines read them.
  • The code, test and run engines are built by programs and are not notes, so the vault stays small and readable.
  • Fingerprints, receipts, slices and gates work as before.

Build order

  1. Requirement engine, with the note format. It is needed first and is the simplest.
  2. Run engine, with the spine. It is the run log plus fingerprints.
  3. Module engine, when the first two modules exist.
  4. Test engine, with the Build track.
  5. Code engine, with the Build track. It is the hardest and may be borrowed, not built.
  6. Memory engine, last, when there are defects to learn from.

Not decided, not known

  • Which tool builds the code engine. Your graphify skill is a candidate that I have not tested.
  • Whether six is the right number. Design work (screens and flows) may need its own engine later.
  • The word limits and recipes are guesses until the benchmark exists.
Claude's view · proposed · not tested · 25 Nov 2026

Build it like a build system, not like a company

Your two documents describe the factory as a company: departments (crews), job titles (51 agents) and meetings (gates). That is a good way to explain it. I would not build it that way. I would build it as a graph of outputs, where each output is made again only when something it depends on has changed. The crews stay, as a way to read the graph.

This page is my own thinking, not a summary of your documents. Nothing here has been built or tested. Where it disagrees with something you decided, the page says so, and the choice is yours.

The picture

Rows are slices of the product. Columns are the kinds of work your crews do. The factory finishes one row before starting the next. The example shows what happens when the client changes the spec of Journey 2 after everything was built.

SliceSpecDesignTestsCodeReleaseAccept
0. Skeleton: boots, deploys, login, one empty screenkeptkeptkeptkeptkeptkept
1. Journey 1keptkeptkeptkeptkeptkept
2. Journey 2 (spec changed)changedredoredoredoredoredo
3. Journey 3keptkeptkeptkeptredokept

Journey 3 keeps its spec, design, tests and code. Only its release check runs again, because the whole app is released together.

Seven ideas

  1. Work in slices, not in phases

    In your documents each crew handles the whole product, then hands over. A mistake in the requirements is then found in acceptance, after everything is built on top of it. I would run a skeleton first: the boilerplate boots, deploys in Docker, has login and one empty screen. Then each user journey passes through all the kinds of work as one thin slice.

    What you gain: the client sees working software after the first slice, mistakes are found while they are cheap, and agents work on small pieces of code.

    Why I believe it: SpecBench found the gap between visible and hidden tests grows with code size. Your own status page shows the late stages have never met a real product, so they should meet one early and small.

  2. Every output has a fingerprint

    Each output (a spec, a screen, a test file, a module) records what it was made from: the outputs above it, the skill version and the model. Together these form a fingerprint. If the fingerprint has not changed, the work is not done again. If you change one thing, the graph shows exactly what is now out of date.

    What you gain: resume after a crash, change requests, retries and cost saving all become the same mechanism. Your trace graph already holds this information. I would make it decide what runs, not only report what ran.

    Limit: a model does not give the same answer twice. So the rule is "an accepted output stays accepted while its inputs are unchanged", not "the same input always gives the same output". LangGraph still runs the work. The fingerprints are a table that tells it which work is needed.

  3. Write the acceptance script first

    Before a slice is built, the client approves its acceptance walk-through in plain words: given this, when I do that, I see this. That text becomes the hidden test for the slice. Acceptance at the end is then a re-run of what the client already signed, plus their comments on look and feel.

    What you gain: acceptance stops being an opinion on the day. A new wish is clearly a change request, not a defect.

    This moves part of your UAT crew's work to the front. The hidden test set in your design then has a clear owner: the client's signed script.

  4. Receipts, not reports

    An agent saying "all tests pass" proves nothing. The conductor runs the command itself and stores a receipt: the command, the exit code, the output's fingerprint and the time. The auditor reads receipts. A judging model is used only for what code cannot check, such as whether a PRD is clear.

    What you gain: an agent cannot claim success it did not earn, and most auditing becomes cheap and exact.

    Why I believe it: Perpetua's CrewAI service once reported success with empty output. ImpossibleBench shows agents do game checks they can reach.

  5. Roles are skills. Agents are temporary.

    51 named agents is a cast list, not a design. I would keep the seven crews as contract boundaries and keep a library of skills. An agent is created for one task with one or a few skills, then ends. Inside a crew, one worker with three skills often does better than three agents passing notes.

    Use separate agents only for three reasons: independence (author and auditor, test writer and developer), parallel work, or a context that is too large for one.

    Why I believe it: the MAST study of multi-agent failures lists misalignment between agents as one of its three main failure groups. Each handover between agents is a place to lose information.

  6. Trust is earned per gate

    Every gate starts as a full stop. It keeps a record: how often you changed something, and how the auditor before it scored on planted defects. After a run of clean approvals, the gate offers to become a batched review, and later a notice. You approve each step down. One miss sends it back to a full stop.

    Some gates never step down: scope, money, security, and anything the client sees.

    What you gain: your time per product falls as the factory proves itself, and the reason is on record.

    This answers open question Q-3 with a rule in place of a fixed list.

  7. Guess in the open, do not wait

    When an agent lacks an answer, it does not stop the line. It takes the most likely answer, records it as an assumption with an id (A1, A2…), and continues. The next gate shows you the assumptions, ordered by how much work depends on each. If you overturn one, the fingerprints show what must be redone.

    What you gain: the factory keeps working while you sleep, and your questions arrive together with the cost of each answer.

    This adds a third kind of entry to your decisions ledger, next to facts (B) and decisions (D). It needs a cap: past a set number of open assumptions, the slice stops.

Your documents and this design, side by side

TopicYour documentsThis design
Unit of workThe whole product, one crew at a timeOne slice, through all kinds of work
What starts workThe crew before has finishedAn input has changed
Agents51 named agentsA skill library; agents made per task
Proof of doneAn auditor reads the handoffThe conductor re-runs the checks; the auditor reads receipts
Gates20 fixed gatesAll start as stops; each can earn a lighter form
Missing answerStop and askAssume, record, continue, ask at the gate
AcceptanceAt the endScript signed at the start, re-run at the end
Change requestA new pass through the crewsMark what is out of date and redo only that

What I would keep exactly as you wrote it

  • Versioned handoffs that never change, with a manifest.
  • The decisions ledger and the trace graph.
  • An auditor that is independent of the author, with at most three rounds.
  • Tests written before code, read-only by fingerprint, with a hidden set.
  • LangGraph, Postgres and a command line first.
  • The seven crews as the names of the kinds of work.

Where this touches your decisions

Slices change the order of work, so they touch D-004 (hybrid shape) and D-007 (seven crews). The crews remain, but each one works on one slice at a time. Earned trust touches D-003 (gates in every crew): the gates remain, but their form can change. These are yours to accept or reject. See open question Q-11.

Where I could be wrong

  • Some choices cross every slice. The data model, sign-in and the layout of the app cannot be decided slice by slice. The skeleton run must settle them, and a late change there makes almost everything out of date.
  • Fingerprints can be too strict or too loose. Too strict and a spelling fix in the spec rebuilds a journey. Too loose and old work is kept when it should not be. This needs tuning on real runs.
  • Assumptions can pile up. Ten guesses built on each other are worse than one question. Hence the cap.
  • Earned trust can turn into rubber-stamping. Planted defects are the guard, and they must keep running after a gate steps down.
  • Fewer agents may lose quality in places. Where your 51 agents encode real, separate expertise, that should become a separate skill, and the benchmark should show whether merging hurt.

What this changes in the plan

The seven phases stay. Four details change: the handoff manifest in Phase 1 gains fields for fingerprints, receipts and assumptions. Phase 3 runs the Demo track on one journey, not a whole product. Phase 4 builds the skeleton and one slice. The change request test in Phase 5 becomes "change one spec and check that only the right outputs are marked out of date".

The researched solution The plan

Claude's view · proposed · your idea, worked out

Written notes, kept like an Obsidian vault

Changed on 25 Nov. This page first described one graph for everything. It now covers only what people and agents write: requirements, decisions, modules and lessons. Code, tests and runs have their own engines and are not notes. See Graph engines.

One note per thing, in a plain text file with a short header, linked to other notes by name. The files are the truth and live in git. The graph is built from the files and can be rebuilt at any time. You can open the same folder in Obsidian and browse it.

What gets a note

NoteExampleLinks to
Fact"The client has 40 drivers"Its source
RequirementR-014Facts, scenarios, slice, module
ScenarioS-031Requirement, test, role, data
Decision, assumptionD-7, A-3Everything that depends on them
ModuleNotificationsProducts that use it, and its version
SkillPRD writerLessons that changed it
Lesson"Agents forget the no-network case"Defects that taught it, the check that fixes it
DefectA bug found at acceptanceRequirement, code file, lesson
Code file, test fileGenerated by a parserTests, requirements

Links have a type: derived from, checked by, run by, touches, caused by, replaces, uses. Typed links let a program answer questions, not only a person.

Two vaults

Product vault
One per product, inside the product folder. Facts, requirements, scenarios, decisions, assumptions, defects, and generated notes for code and tests.
Factory vault
Shared by all products. Skills, modules, conventions, lessons and checks. Product notes link into it.
Run log
The raw record of every run. Not a vault. Notes are written from it after a run.

How an agent remembers

An agent does not load all memory, and it does not search by similar wording. It starts at the notes for its task and follows links one or two steps, within a word limit.

A developer agent working on trip assignment starts at R-014. One step away: its scenarios, the Trip data and the notifications module. Two steps away: a lesson from a past defect in that module. That is a few hundred words of relevant memory, and you can see why each note was shown.

Three uses that save tokens

  • Finding code. An agent asks where sign-in is handled and gets twenty lines, not twenty files. It must still read the real file before changing it.
  • Doing less again. When a skill changes, only the steps after it are re-run. Earlier accepted outputs are replayed from the run log.
  • Loading fewer lessons. An agent gets only the lessons linked to the files it touches.

Keeping the vault healthy

  • Every note has a status and a source. A replaced note is marked and kept, not deleted.
  • A tidy-up step after each run proposes new notes, merges duplicates and flags notes that disagree.
  • Agents propose, you approve. No agent writes a lesson into the factory vault directly.
  • Code checks fail on broken links, on notes nothing links to, and on notes with no source.
  • Generated notes and written notes stay in separate folders, so a rebuild never overwrites what a person wrote.

Limits

  • The graph is only as good as its links. Notes without links are a pile.
  • The code part can be out of date between rebuilds. Only changed files are parsed again.
  • The code part should come from parsing. Links guessed by a model cost tokens and can be wrong.
  • Plain files work for thousands of notes. A database index can come later if queries get slow.

This refines proposal P-16, memory in three places: the run log stays, and the product folder and git files become the two vaults.

Claude's view · proposed

Requirements as records, not paragraphs

Each requirement is one small record with fixed fields. The PRD the client reads is generated from the records, not written apart from them.

The requirement record

FieldExample
Id and versionR-014, version 2
StatementA dispatcher can assign a trip to a driver
SourceClient call of 12 Nov, or page 4 of the brief
Role and journeyDispatcher, "Plan a trip"
PriorityMust, should, could, or not now
ScenariosGiven, when, then, in plain words
Data it touchesTrip, Driver
Module matchUse, configure, extend or build
Open assumptionsA-3: one driver per trip

Seven things the crew must do

  1. Gather, with sources

    Read briefs, call transcripts, screenshots and old systems. Record each fact with where it came from. Build a glossary so one word means one thing.

  2. Write the records

    One requirement says one thing, names a role and has at least one scenario.

  3. Check quality

    Code checks for the fields. A judging model for clarity. A requirement that describes a solution, such as "use a dropdown", is flagged unless the client insisted.

  4. Find gaps and conflicts

    Fill a table of every role against every kind of data: who can create, view, change and delete it. Empty cells become questions. Add the unhappy paths. List contradictions and missing roles.

  5. Capture qualities beyond features

    Security, privacy and legal rules, speed, number of users, languages, devices and accessibility. Each needs a number or a clear rule, or it cannot be tested.

  6. Set scope and slices

    A list of what is in and what is out. Each requirement belongs to a slice.

  7. Get approval, then handle change

    The client approves the scenarios. A later change arrives as added, changed or removed requirements.

What the crew hands to you

  • A question list for the client, ordered by how much work depends on each answer.
  • The assumptions it made, with the same ordering.
  • The share of requirements covered by existing modules, as a first estimate of cost.

Requirements for AI features need one more field: a rubric and example answers written by a domain expert. See From Perpetua and Conclavity.

Your deep dive already has the facts ledger, the decisions ledger and the trace graph. New here are the fixed record fields, the role and data table, the module match and the assumptions.

Claude's view · proposed

Test scenarios in the graph

A scenario is a note that sits between the requirement and the test. Its links are what make coverage, change and reuse visible.

The links of a scenario

LinkExample
ChecksS-031 checks requirement R-014
Run byA test file runs S-031
TouchesThat test touches the trip service and the notifications module
Came fromS-031 was inherited from the notifications module
Written forS-044 exists because of defect DF-9
SetVisible to the developer, or hidden

What the graph gives

  • Coverage gaps. A requirement with no scenario, a scenario with no test, or code no test touches shows as a missing link.
  • Running only what matters. When a file changes, the graph lists the tests that touch it. The full suite still runs before release.
  • Scenarios from modules. Choosing a module brings its scenarios, already linked.
  • A regression memory. Every defect gets a scenario, so the same bug cannot return unnoticed.
  • Impact of a change. Changing a requirement marks its scenarios and tests out of date, and nothing else.

Scenarios the graph can suggest

  • Role and data. For each role and kind of data, one scenario for an allowed action and one for a forbidden one.
  • States. If a trip goes from planned to started to finished, one scenario per allowed step and one per step that must be refused.
  • Unhappy paths. Wrong input, no permission and no network versions of each scenario.

A test agent reviews and prunes the suggestions. The number of scenarios follows the requirement's priority.

Rules that keep it honest

  • Hidden scenarios live in a folder the developer's container cannot read. A link to one must not be followable by the developer agent.
  • "This test touches this code" comes from running tests with coverage on, not from guessing.
  • Tests stay read-only by fingerprint, as in your design.
Claude's view · proposed · your idea, worked out

Pick repeated features from a catalogue

Features that return in every app, such as sign-in and notifications, are picked from modules that already work. Code that is not written costs no tokens and has already met a real product.

What a module contains

  • Code for the backend and the screens.
  • Tests that travel with it.
  • A contract: its API, data tables, settings and the events it sends.
  • Scenarios in plain words, ready to show a client.
  • A card: what it does, what it does not do, and how to extend it.

Agents choose from cards. They read module code only when they must extend it.

The matching step

It runs before any design work. Each requirement gets one of four answers.

AnswerMeaningWork left
UseA module covers it as it isWiring and one integration test
ConfigureA module covers it through settingsSettings and the integration test
ExtendA module covers most of itBuild the difference through the module's extension points
BuildNothing fitsThe full test-first path

How a module enters the catalogue

The first time a feature is built, it is a feature. When a second product needs it, it is extracted into a module with its tests, and you approve it. This stops general modules being built for needs that never return.

Rules

  • Sign-in is never written fresh by an agent. "Use the module" is the only allowed answer there.
  • The module version is recorded in each product. A security fix can then be traced to every product that needs it.
  • Extend only through extension points. A module bent to fit is worse than new code. If it does not fit, the answer is build.

Likely first modules

Sign-in, notifications, roles and permissions, file upload and audit logging. I have not checked which of these exist in Perpetua, Conclavity or the boilerplates in a form clean enough to extract.

Two decisions are yours: shared package or copied code (Q-12), and who owns a module first built on a client's project (Q-13). My suggestion for the first is packages for backend logic and copied code for screens, which clients always want changed.

Claude's view · proposed

Improving without access to the model

You can only call the model, not change it. So the factory improves by changing everything around the model. Skills are one of five things that can improve, and not the strongest.

Loop or graph?

Add the improvement loop first. The loop is the process that changes the factory. A graph is supporting memory: it helps find related defects, requirements, code and lessons, but does not improve anything by itself.

Run evidence→Diagnose cause→One targeted change→Old vs new benchmark→Human approval→Project trial→Shared promotion

Monitoring the promoted change produces new run evidence and starts the loop again. A regression restores the previous version.

Improvement loopOwns diagnosis, one change at a time, comparison, approval, promotion and rollback.
Files and run logEnough for v0: versioned skills and checks, linked defect notes, receipts, benchmarks and approval records.
Graph indexes, when neededRebuildable views over those files. Add them when linked-file queries become too slow or incomplete, not before the loop has real runs to learn from.

This keeps the six graph engines as possible infrastructure rather than a prerequisite. The requirement and run records come first; code, test, module and memory graphs earn their place through measured queries and savings.

Five things that can improve

WhatExampleHow lasting
ChecksA bug reaches the client, so it becomes a code check or a planted defectMost lasting. It cannot slip through unseen again.
Modules and boilerplatesAgents write the same code in every product, so it moves into a moduleVery lasting. That work disappears.
Knowledge notesA convention or a lesson is added to the factory vaultLasting, but must be pruned.
SkillsThe PRD writer gains a rule and an exampleGood, but can drift when the model is updated.
RoutingA cheaper model takes a task where the benchmark shows no lossMust be measured again for each new model.

The loop

  1. Collect signals

    What you edited at a gate, what an auditor failed, which hidden tests failed, and what came back as a change request after acceptance. The run log already records them.

  2. Turn a repeat into a lesson

    One correction is noise. The same correction three times is a pattern, and becomes a lesson note linked to its defects.

  3. Propose one change

    To a check, a module, a note or a skill.

  4. Test old against new

    On a few benchmark cases first, at least three runs each. The full benchmark runs only if those show a win.

  5. You approve

    The new version is pinned. The old one is kept for rollback.

Two rules. The factory never grades itself: the loop that improves skills cannot edit the benchmark's hidden answers or the auditors' checks. And a change is promoted only on a measured win.

Keeping the loop cheap

  • Start it on repeats only, not after every run.
  • Re-run only the steps after the changed skill. Earlier outputs are replayed.
  • Run code checks before any judging model.
  • Give each improvement attempt a budget. When it is spent, it stops and reports.
  • Cache the parts of a prompt that never change, such as skill text and conventions.

Where GLM could fit

Not checked. I have not verified GLM's current models, prices or terms. Treat this as a list of roles to test, not as facts about the product.

  • As the auditor's different model. A model from another provider is more independent than another Claude tier. This is the first role I would test. See Q-1.
  • As a cheap tier for high-volume, low-risk tasks, where the benchmark shows no loss.
  • Later, as a model you could train, if open weights are available. That needs GPUs and hundreds of accepted examples, so it is not a first-year idea.

Three cautions: client requirements and code would go to another provider, so it must be a setting per product (Q-14). The worker agents run on a tool built for Claude, so another model there needs testing. And no model gets a role without matching on your benchmark.

Claude's view · proposed · not measured · 25 Nov 2026

Large codebases: structure first, search second

An agent should never need the whole codebase. It needs one module and the contracts of its neighbours. Retrieval, which is often called RAG, is the fallback for when structure does not give the answer, and for code it must be more than a search for similar text.

Why ordinary RAG is weak for code

Ordinary RAG cuts text into chunks and finds chunks whose wording resembles the question. That works for documents. In code, what matters is connection, not wording: the function that breaks when you change a table rarely contains words similar to your task.

Four layers of retrieval, tried in this order

LayerHow it finds thingsGood forWeakness
1. Recorded linksThe factory wrote the code, so it already knows which files serve which requirement"What implements R-014?"Only for code the factory built
2. StructureThe code engine: what calls what, which route uses which table"What depends on this?"Needs a parser per language
3. Exact wordsKeyword search over names and stringsA known name or an error textMisses different wording
4. MeaningSimilarity search over short summaries, not raw code"Is there already something that does this?"Can return plausible but wrong results

Layer 1 is the factory's real advantage. An ordinary coding agent must search for what a factory-built product has already written down.

A map with levels

The code engine keeps a short card at each level. A card says what the thing is for, what it offers to others and what it depends on. A card is rebuilt only when the code under it changes.

System→Service→Module→File→Real code

An agent works as a new developer would: it reads the one-page system map, picks a module, reads that card, looks at file outlines, and only then opens real code.

  • The index finds, the file decides. An agent opens the real file before changing it, because the index can be behind.
  • Live search stays available. Inside its own working copy an agent can still search directly, since that code is newer than any index.

Structure rules that keep tasks small

  • Modules with written contracts. A task needs its own module and the neighbours' contracts, not their code.
  • Boundaries checked by code. A module that imports another's internals fails a check.
  • Size limits. A file or module that grows past a limit creates a tidy-up task.
  • A reach limit per task. A task that touches more than a few modules is split, or goes to you.

Changes that cross the whole codebase

  1. Plan with the code engine

    A planning agent lists every affected place. It does not make the change.

  2. Split into small tasks

    Each task has local context and can run in parallel with the others.

  3. Use a script for mechanical changes

    A rename across 200 files is done by a program, not by a model.

  4. Let the tools report what was missed

    The compiler, type checker and tests are more reliable than any search.

Several repos in one product

A product such as Perpetua has a client, a core and an intelligence service. Each repo gets its own code index. A contract layer joins them: an API route to the client call that uses it, and an event to its sender and its receivers.

Existing large codebases

Products that the factory did not build have no recorded links, so layer 1 is empty. They need an onboarding step before any change:

  • Build the code index and the cards.
  • Write tests that pin down current behaviour.
  • Recover what each part is for from routes, tests and documents, as far as possible.

This is harder than a product built by the factory from the start.

Where similarity search fits

  • The reuse check: "does something like this already exist?" Your Perpetua reuse-check skill asks the same question.
  • Matching a requirement to module cards.
  • Finding lessons and documents, which are prose.

It works on summaries and cards, kept in Postgres with its vector extension, so no separate vector database is needed. It needs an embedding model, which Claude does not provide. The choice is another provider or an open model run locally, which keeps client code on your machine. See Q-17.

This replaces part of proposal P-16, which said no vector store until something needs it. Large codebases are that need.

What to measure

The run engine records what each agent was shown. Compare that with the files the agent opened and changed. If agents keep opening files they were not given, retrieval is missing things. If they ignore most of what they were given, the packs are too large.

The honest limit

Research found that agents do worse as code size grows (SpecBench). Nothing here has been measured on your code, and large projects are where this design is most likely to struggle. Add one large case to the benchmark, such as a real change in Perpetua, before promising anything to a client with a big system.

Claude's view · proposed · your idea, worked out

A small core, and everything else plugs in

The engines, crews and model providers are already separate pieces with fixed inputs and outputs. Treating them as plugins lets the factory grow without changing its core.

What the core does

Five things, and nothing per product: it runs the work in order, stops at gates, keeps the run log, enforces the budget, and builds context packs.

Kinds of plugin

KindExamplesWhat it must provide
StackNode backend, Next frontend, FastAPI, later FlutterThe boilerplate, its conventions, and the commands to boot, test and build
Graph engineRequirement, code, test, module, memoryHow its index is built, the questions it answers, and its context format
CrewAnalysis, Design, Test-firstWhat it reads, what it writes, its checks and its gates
SkillPRD writer, test writerA SKILL.md folder in the open format
ModuleSign-in, notificationsCode, tests, contract and card
Model providerClaude, GLMOne interface for calls, with metering attached
CheckLink checker, security scanAn input, a pass or fail, and a receipt

What you gain

  • Mobile becomes an addition. A Flutter stack plugin answers Q-16 without touching the core.
  • A second model is a plugin. GLM as auditor is one provider plugin and one setting.
  • Each product pins its plugin versions, so an old product can be rebuilt as it was.
  • Pieces can be tested alone, and a broken plugin can be switched off.

Rules

  • Two before one interface. A plugin interface is written after two real examples exist, not from imagination.
  • Your own plugins only. No marketplace and no downloading plugins from the internet. A plugin runs with the core's powers.
  • The core's rules cannot be turned off. No plugin can skip a gate, switch off metering or read the hidden tests.

How to start

A plugin is a folder with a small manifest file, placed in a known directory. No loading machinery is needed for that.

Three interfaces are fixed from the first day, because changing them later is costly: the model provider, the graph engine and the stack. Crews and checks become plugins once there are two of each.

This adds one line to Phase 1 of the plan: write down the three fixed interfaces together with the note format.

Build · proposed · after research on 25 Nov 2026

The solution

A thin LangGraph conductor runs audited, gated crews, one slice of the product at a time. Crews read and write linked notes in a vault, and a handoff is a checked snapshot of those notes. An agent is a skill, run either as one structured model call or as a sandboxed coding session. It builds on hardened boilerplates and a module catalogue, and it proves itself on the Demo track before it writes app code.

Updated after the graph discussion. The exact note formats, folders, checks and a worked example are in Solution in detail.

The shape

YouOne attention queue in the CLI. Every stop arrives the same way: what it is, why it matters, a recommendation, the choices.
ConductorLangGraph. Owns the order of work, the gates, handoff versions, audits and the budget. Holds only ids, paths, hashes and counters.
Function agentOne structured model call, no tools. Intake reader, risk ranker, KPI agent.
Worker agentA coding session with one skill, in a container, in its own worktree. Prototype builder, test writer, developer.
AuditorCode checks first. Then a judge with a fresh context on a different model. Tested with planted defects.
Truth on diskTwo vaults of linked notes in git: one per product, one for the factory. A handoff is a snapshot of the vault with fingerprints. An append-only run log sits beside them. The Postgres checkpoint is only a resume cursor.
FoundationsOne tagged copy of each boilerplate, with a working test setup and written conventions, and a catalogue of modules with their tests.

Twelve design choices, each with its evidence

  1. Harden the boilerplates before anything else

    Test-first cannot run on them today. The Node backend has no tests folder and needs a live Redis to start. The Next frontend runs Jest, not Vitest, and has no Playwright. None of the canonical copies is in git.

    Evidence: boilerplate audit. See Research findings.

  2. The handoff contract is the product

    A handoff is a folder with a manifest, checked by code. Anything that produces a valid handoff can be a crew: a person, a Claude Code session, or a graph. The audit verdict is tied to the handoff's hash and re-checked at the gate.

    Evidence: Hercules treats its database row as the truth and the checkpoint as a cursor. Archon stamps a review verdict to a commit and re-checks it at merge.

  3. Keep an append-only run log

    Everything shown to a model, and every tool call, is written to a log first. That log gives you replay for the skill loop, cost and timing per run, and a way to see what an agent really saw.

    Evidence: the DeepSeek harness rule that anything visible to the model must be rebuildable from the log.

  4. Gates live only on the straight path of a crew

    A gate node holds one interrupt and no model call. A parallel agent never asks you anything. It records a gap, and the next gate asks. Crews run one after another in the first versions.

    Evidence: LangGraph re-runs a node from its first line on resume. Issues about parallel interrupts and subgraph resume are still open (#6208, #9075, #6792). Hercules lost work to this and never used subgraphs or fan-out.

  5. Crews are subgraphs in the default persistence mode

    The default mode supports interrupts. The per-thread mode has open bugs. No retry policy on a node that wraps a gate. The graph version is saved with each run, and a run refuses to resume on a different version.

    Evidence: LangGraph docs on subgraphs; open issues #9346, #9353, #9478. Hercules rebuilds its graph from flags on every request, which can change the nodes under a paused run.

  6. Worker agents run on the Claude Agent SDK, in a container

    The SDK takes a working folder, a tool list, skills, a JSON output schema, a turn limit and a spend limit, and returns cost and usage. Each task gets a Docker container with no network and no secrets. gVisor is a later drop-in.

    Evidence: Claude Agent SDK docs. Deep Agents runs shell commands only on cloud sandboxes and has no local Docker option. Archon's own docs say a worktree is not a security sandbox. This replaces change 7 in the earlier review.

  7. Keep all three test protections

    Tests are read-only and checked by hash, a hidden set is kept back, and a developer who thinks a test is wrong flags it and stops. Your design already has all three. On the frontend, empty placeholder modules are generated before the tests, so a test fails on its assertion and not on a missing import.

    Evidence: ImpossibleBench (arXiv 2510.20270) found read-only tests stop edits only, hidden tests cut cheating to near zero, and an abort option cut it from 54% to 9%. SpecBench (arXiv 2605.21384) found the gap on hidden tests grows with code size.

  8. The auditor uses a different model and a fresh context

    The model registry stays open to more than one provider. The first planted defect to test is a crew that reports success with empty output.

    Evidence: cross-model review caught 56.7% of planted errors against 42.7% for same-model review (arXiv 2610.01471, abstract only). Perpetua's CrewAI service once reported success with empty output.

  9. Metering fails closed

    One meter on every model client. If the meter cannot attach, the call does not run. A cost band is shown before a crew starts. Refusals and budget stops are never retried.

    Evidence: Hercules metering fails open, several caps only log, and one runaway conversation cost $1,744.

  10. A change request is a delta

    It lists added, changed and removed requirements with scenarios. Applying it creates the next handoff version. Only what the trace marks as affected is redone.

    Evidence: the OpenSpec format, where archiving a change merges its deltas into the main spec.

  11. Skills use the open format and improve by measurement

    Skills are SKILL.md folders, pinned per run. Improvement starts by hand: change a skill, run it against the old one at least three times per case, promote only on a clear win. Automatic optimisers come later.

    Evidence: the agentskills.io format. BMAD's eval tool compares a skill against a baseline with repeated runs. GEPA's published example needed about 300 tasks, which you will not have at first.

  12. Memory in three places, not four layers

    The run log, the product folder, and files in git for conventions, anti-patterns and skills. No vector store until something needs it.

    Evidence: the DeepSeek harness has no memory component. Perpetua's anti-pattern files and memory log are already this format.

The honest alternative

Archon already has workflows, gates in one queue, budgets, retries and worktrees. It is TypeScript on Bun, it has no versioned handoffs or auditors, and it runs agents with permission checks off. Staying on LangGraph means building what Archon has, in exchange for keeping Python, your Hercules lessons and your own contract. That trade is reasonable. Read Archon's workflow reference before writing the spine.

See the plan

Build · proposed · design only, no code

The solution in detail

This page makes the solution concrete enough to build from: where files live, what a note looks like, which links exist, what the checker refuses, what each crew reads and writes, and one requirement followed from the client's sentence to the code.

Five rules that hold everything together

  1. Files are the truth

    Every note is a plain text file in git. The graph, the search index and the reports are built from the files and can be deleted and rebuilt.

  2. Links point upstream only

    A note links to what it was made from: a scenario links to its requirement, never the other way. The index works out the reverse direction. One fact is then written in one place.

  3. A handoff is a snapshot, not a copy

    A handoff is a manifest that lists note ids with their fingerprints at one git commit. The notes themselves stay in the vault. This keeps your rule that a handoff never changes, without copying files around.

  4. The conductor holds no content

    LangGraph state carries ids, fingerprints and counters. Anything a person would read lives in a note.

  5. Agents propose, checks decide

    An agent writes notes as drafts. Code checks, the auditor and your gate turn a draft into an active note.

Where things live

factory/                     one git repo, shared by all products
  skills/prd-writer/SKILL.md
  modules/notifications/card.md
  conventions/node/…
  lessons/L-0007.md
  checks/C-0012.md
  benchmark/                 cases; the answers are kept outside agent reach

products/acme-fleet/         one git repo per product
  notes/
    sources/  facts/  roles/  data/
    requirements/  scenarios/  slices/
    decisions/  assumptions/  defects/
  engines/                   one built index per graph engine; never edited by hand
  handoffs/analysis/v3/manifest.json
  receipts/
  run-log/                   append-only
  app/                       the product's code

products/acme-fleet-hidden/  separate repo: hidden scenarios and tests

The hidden repo is given only to the test crew and the release crew. The developer's container never receives it.

What a note looks like

A short header with fixed fields, then plain words. Links use double square brackets, so the folder opens in Obsidian as it is.

---
id: R-014
type: requirement
title: Dispatcher assigns a trip to a driver
status: active            # draft, active, replaced, rejected
version: 2
priority: must
role: "[[ROLE-dispatcher]]"
slice: "[[SL-02]]"
derived_from: ["[[B-021]]", "[[B-022]]"]
data: ["[[E-trip]]", "[[E-driver]]"]
module: "[[M-notifications]]"
module_match: extend      # use, configure, extend, build
assumes: ["[[A-003]]"]
written_by: analysis / prd-writer / run 0042
approved_at: gate G-03
---
A dispatcher can assign a planned trip to one available driver.
The driver is told at once.
---
id: S-031
type: scenario
title: Assign a trip to an available driver
status: active
set: visible              # visible or hidden
checks: "[[R-014]]"
---
Given a planned trip and a driver with no active trip
When the dispatcher assigns the trip to that driver
Then the trip shows the driver's name
And the driver receives a notification

Note types and their links

NoteIdMust link toWritten by
SourceSRC-The original fileYou or intake
FactB-A sourceAnalysis crew
Role, dataROLE-, E-A factAnalysis, architecture
RequirementR-Facts, a role, a sliceAnalysis crew
ScenarioS-A requirementAnalysis, test crew
DecisionD-What it settlesYou, at a gate
AssumptionA-The note that needed itAny agent
SliceSL-Nothing; requirements link to itAnalysis crew
DefectDF-A requirement or scenarioRelease, acceptance
Test, codegeneratedA scenario; the code it touchesThe parser, never by hand
Module, skill, lesson, checkM-, L-, C-Lessons link to defectsFactory vault, with your approval

Generated links come from facts, not guesses. A test names its scenario id in its title. "This test touches this code" comes from running the tests with coverage on.

What the checker refuses

All of these are code checks. No model is involved.

  • A missing header field for the note's type, or a repeated id.
  • A link to a note that does not exist.
  • A note with no upstream link, apart from sources and slices.
  • A requirement with no scenario, no role or no priority.
  • An active note that depends on a replaced or rejected note.
  • A visible note that links to, or quotes, a hidden scenario.
  • A handoff manifest whose fingerprints do not match the files.
  • More open assumptions on one slice than the set limit.

Fingerprints and out-of-date work

Own fingerprint
A hash of the note's content.
Input fingerprint
A hash of the fingerprints of everything it links to, plus the skill version and the model that wrote it. Stored when the note is accepted.
Out of date
The stored input fingerprint no longer matches. The note is marked, and the conductor schedules only the work that produces it.
Small edits
A change to wording that does not touch a header field or a scenario step can be accepted by you as "no effect", which keeps downstream work.

What an agent is given

The conductor builds a context pack for each task:

  • The task note, for example one requirement or one scenario.
  • Notes one or two links away, limited to the link types that skill is allowed to follow.
  • The conventions for the boilerplate, and lessons linked to the files or module involved.
  • A word limit. If the pack is too large, the farthest notes are dropped first.

The list of notes in each pack is written to the run log, so you can see what an agent knew when it made a mistake.

What each crew reads and writes

CrewReadsWritesProof keptYou decide
AnalysisSourcesFacts, roles, data, requirements, scenarios, slices, assumptions, questionsChecker passes; role and data table has no empty cellScope, priorities, assumptions
DesignRequirements, scenarios, module cardsScreens and flows, a clickable prototypeEvery screen links to a requirementThe prototype
ArchitectureRequirements, catalogue, conventionsModule matches, data model, API contractContract is valid; every requirement has a matchModule choices, data model
Test-firstScenarios, API contractVisible and hidden testsEach test fails on its assertion, not on a missing partThe test plan, as one batch
DeveloperOne requirement, its visible tests, conventions, lessonsCodeTests pass; test files unchanged by fingerprintNothing, unless a test is flagged as wrong
ReleaseThe whole sliceReceipts, a release note, defectsFull suite, hidden tests, security scan and Docker build, run by the conductorRelease
AcceptanceThe signed scenariosAcceptance, or defects and change requestsThe client's sign-off recordThe client decides

One requirement, from sentence to code

  1. The client's brief says

    "Our dispatchers give each trip to a driver every morning." It is stored as source SRC-001.

  2. Analysis writes facts

    B-021: dispatchers assign trips. B-022: assignment happens before the trip starts. Both link to SRC-001.

  3. Analysis writes the requirement

    R-014, linked to both facts. The brief does not say how many drivers a trip can have, so the agent records assumption A-003, "one driver per trip", and continues.

  4. Scenarios are written and approved

    S-031 (assign to a free driver) and S-032 (refuse a busy driver). At the gate you see A-003 with the note that two scenarios depend on it. The client approves the scenarios.

  5. Architecture matches a module

    Telling the driver is covered by the notifications module. The match is "extend", because a new message type is needed.

  6. Tests, then code

    The test crew writes tests named after S-031 and S-032, and they fail for the right reason. A developer agent receives R-014, the two visible tests, the module card and one lesson about that module. It writes code until the tests pass.

  7. Release and acceptance

    The conductor runs everything itself and stores receipts. The client walks through S-031 and S-032 and signs.

  8. Three weeks later the client says: two drivers per trip

    A-003 is overturned. R-014 gets version 3. S-031, S-032, their tests and the trip code are marked out of date. Everything else in the product is untouched, and you see the size of the change before approving it.

What runs where

ConductorOne Python process on LangGraph, with Postgres for the resume cursor only.
IndexOne built index per graph engine, each a local database file that can be deleted and rebuilt. See Graph engines.
Function agentsOne model call each, with a context pack in and draft notes out.
Worker agentsA coding session in a container with no network and no secrets, given a context pack and one working copy of the app.
YouThe command line for gates, and Obsidian or any editor to read the vault.

Choices I made here that you may want to change

  • Notes and app code in one repo per product. One commit then ties the notes to the code they describe. The alternative is two repos, which is cleaner for handing code to a client.
  • Hidden tests in a separate repo. Simple and safe, at the cost of one more repo per product.
  • A local database file for the index, not Postgres. It is rebuilt from files, so it needs no backup.
  • Links only in the header. Links in the body text are allowed for reading, but only header links count for checks and fingerprints.

The plan What I propose now

Build · proposed

The plan

Seven phases. Each has one goal and a test that says it is done. No phase starts until the one before it passes. Sizes are relative, not dates.

This plan was written before the graph discussion. What I propose now lists what each phase gains from it. The phases and their order stay the same.

  1. Phase 0 · Foundations small

    GoalBoilerplates an agent can safely build on. WorkPick one canonical copy of Node, Next and FastAPI and put each in git with a version tag. Fix the Node dependency bug. Add a test setup with one passing example for API, unit and browser tests. One-command boot with a slim test profile. An AGENTS.md per repo that names the files every feature must edit. Remove the private keys and hosted fallback addresses. Bring the product-demo repo onto this machine. Done whenEach boilerplate boots from a clean checkout and its example tests pass. You decideWhich backend comes first, Node or FastAPI.
  2. Phase 1 · Contracts and a baseline, no engine small

    GoalKnow what "good" and "faster" mean before automating anything. WorkWrite the handoff manifest, the decisions ledger format and a checker command. Choose the benchmark: three small requirements and one shipped Perpetua feature. Run product-demo by hand on a real pilot through the prototype, with the checker. Try test-first by hand on one journey. Done whenOne prototype handoff passes the checker, and you have baseline numbers: operator minutes, number of stops, cost. You decideThe pilot requirement and the benchmark feature.
  3. Phase 2 · The spine medium

    GoalA conductor that can stop, wait for days, and resume without repeating work. WorkParent graph, Postgres checkpointer, gate registry, the attention queue in the CLI, the run log, the meter, the saved graph version. Lift the clean parts of Hercules: cost estimator, refusal errors, metering pattern, gate loop. Done whenFour tests pass: resume in a new process and nothing ran twice; kill mid-step and recover; a spend cap refuses to start; a run refuses to resume on a changed graph. You decideBudget caps per crew.
  4. Phase 3 · Demo track medium

    GoalRequirement to approved prototype, conducted by the engine. WorkBusiness Analysis and UI / UX crews running the product-demo skills. Function agents and the first worker agents. The container sandbox. Auditors with planted-defect tests. Done whenA benchmark requirement reaches an approved prototype in fewer operator minutes than the Phase 1 baseline, and the auditors fail the planted defects. You decideWhich gates may pass with a notice. What "a different model" means for the auditor.
  5. Phase 4 · Build track, one developer at a time large

    GoalProve test-first with agents on your own boilerplate. WorkArchitecture, Test and Developer crews for one backend and the frontend. Red proven, hidden set kept back, tests locked by hash. No parallel developers yet. Done whenThe benchmark feature goes from red to green with the tests untouched and the hidden set passing, at a recorded cost you accept. You decideCoverage and mutation thresholds.
  6. Phase 5 · Release, acceptance and change medium

    GoalOne product accepted, and one change handled without starting over. WorkDocker image and staging. The UAT walker with evidence. Change requests as deltas that create the next version. Done whenA client signs off one product, and one change request reruns only the affected parts. You decideWhere staging lives.
  7. Phase 6 · Parallel work and learning large

    GoalFaster runs, and a factory that gets better. WorkParallel developer worktrees, with locks on the shared files each boilerplate has. Skill measurement and the first promoted skill change. The eval-first crew for AI features, with a third foundation for Python. Done whenA parallel run beats the single-developer time with no failed merges, and one skill change is promoted with a before and after. You decideWho the domain expert is for each AI feature.

The stop rule

Phase 4 is the real bet. If agents cannot reach green at a cost you accept, stop there. Phases 0 to 3 still give you a working product: an engine that turns a requirement into an audited PRD, prototype and test plan, which people or Claude Code sessions then build from.

First five actions

  1. Put the product-demo repo and one canonical copy of each boilerplate on this machine, in git.
  2. Fix the Node boilerplate: the dependency bug, the missing .dockerignore, the committed keys.
  3. Add one passing API test, one unit test and one browser test to the boilerplates.
  4. Choose the pilot requirement and the Perpetua feature for the benchmark.
  5. Write the handoff manifest and the checker, and run the pilot by hand.

What is deliberately late

  • Parallel crews and parallel developers. They depend on LangGraph behaviour that still has open issues, and on a protocol that has only been tried with two sessions on one machine.
  • Automatic skill improvement. It needs many judged runs.
  • The web UI, the estimator, deep market research and vector search.
Gap review · 25 Nov 2026 · not yet decided

What is missing

The factory does not need more agents, crews or research yet. It needs one agreed v0, executable specifications and evidence from one real run.

The hub has nine decisions, 41 proposals and 18 open questions. Several proposals compete with one another. This review identifies what must be resolved or written before the design is buildable; it does not turn those choices into decisions.

1. One canonical, approved v0

The documents currently leave these competing designs unresolved:

  • Whole-product phases versus journey-sized slices.
  • 51 named agents versus temporary agents assembled from skills.
  • Stop and ask versus record an assumption and continue.
  • Copied, frozen handoff folders versus Git snapshots of vault notes.
  • Postgres-backed memory versus local, rebuildable engine indexes.
  • Demo-first versus notes, modules and requirements-engine-first.
  • Fixed operator gates versus gates that become automatic over time.

Missing deliverable: one short, approved v0 architecture decision record naming the intended user, first deliverable, track, unit of work, reused product-demo stages, storage and handoff model, and explicit non-goals.

The first questions to answer are Q4, Q5, Q6, Q8, Q9 and Q11. The other open questions are not all equally urgent.

2. Real inputs and a verified baseline

The product-demo repository is not on this machine, canonical boilerplates are not in Git, and the documented boilerplate faults have been read but not reproduced. No pilot has an accepted manual result to compare against.

Missing deliverable: one real brief, one known-good manually produced result, the actual source repositories, and baseline measurements for cost, elapsed time, operator minutes, revisions and defects. Without these, the benchmark and learning loop cannot demonstrate improvement.

3. Normative contracts and state machines

The examples in Solution in detail are not yet implementation-complete contracts. Write versioned schemas and lifecycle rules for:

  • Notes, requirements, scenarios and decisions.
  • Handoff manifests and fingerprints.
  • Gates and resume responses.
  • Change requests as deltas.
  • Tasks, findings, defects and receipts.
  • Run events and model/tool usage.

For each, define required fields, ID allocation, versioning, ownership, valid transitions, rejection behaviour and schema migration. Specify how decisions are superseded, how assumptions become decisions, and who may override a failed audit.

4. Precise execution and recovery semantics

A checkpoint alone does not make Git commits, deployments, container creation and artifact writes safe to resume. The design still needs:

  • Idempotency rules for every external side effect.
  • Recovery when a side effect succeeds but its receipt is not saved.
  • Atomic behaviour across separate graph-engine indexes.
  • Fingerprint canonicalisation and treatment of cosmetic changes.
  • Immutable model identifiers rather than moving model aliases.
  • Cancellation and cleanup of worktrees, containers and branches.
  • Shared-file locking and merge-conflict ownership.
  • A migration policy for paused runs when the graph version changes.

At present, a changed graph simply refuses to resume. There is no upgrade or migration path.

5. A complete security and data-governance model

  • Resolve how a no-network worker installs packages and reaches its model provider. Define an explicit dependency proxy or allowlist.
  • Define where model credentials live if workers receive no secrets.
  • Specify prompt-injection handling for research pages, repositories, issues and tool output.
  • Add tenant and client isolation, encryption, retention, deletion and backup policies.
  • Produce one authoritative access matrix for hidden tests; the documents currently differ on which auditors and crews receive them.
  • Define which audit failures can never be accepted as-is, especially security and client-approval failures.
  • Record provider approval and data-residency policy per client.

6. Operator and client workflows

CLI-first is decided, but the interaction contract is missing: exact commands and gate payloads, batch review, item-level rejection, diffs, pause/resume/cancel/retry, escalation, operator identity, delegation, audit attribution and notifications for runs waiting for days.

Client acceptance also needs a defined channel. Client sign-off cannot depend solely on an internal operator CLI unless the operator formally signs on the client's behalf.

7. A real evaluation harness with numerical targets

“Fewer operator minutes” and “a cost you accept” are not pass/fail criteria. Define three to five fixed benchmark cases, including one existing-codebase change, with manual baselines and target thresholds.

  • Track cost, operator minutes, lead time, first-pass rate, audit rounds and UAT escapes.
  • Measure auditor false positives and false negatives, not only planted-defect detection.
  • Repeat runs to account for model variability.
  • Protect the benchmark set from modification by the learning system.

8. Operations for the factory itself

Release readiness covers the generated app, not the factory running it. The factory still needs its own CI, deployment configuration, Postgres migrations, backup and restore drills, log redaction, retention, alerts, dependency-upgrade policy and disaster-recovery procedure.

Concrete inconsistencies to fix

  1. Design/module ordering is circular. Design reads module cards while Architecture assigns module matches; elsewhere matching is meant to happen before design.
  2. Architecture inputs are incomplete. The detailed crew table omits flows and screens despite requiring a contract, schema, screens and test-plan cross-check.
  3. Pre-build mutation testing is underspecified. The Test crew must reach a mutation score before implementation, but mutation testing needs meaningful code to mutate.
  4. Skill pinning conflicts with fingerprint reruns. Running products keep their original skill versions, but another section says changing a skill reruns downstream work. Define whether this applies only to new runs or approved change requests.

Recommended next move proposed

  1. Choose the smallest v0

    Demo track, one real brief, one slice and one operator, reusing existing product-demo behaviour where possible.

  2. Freeze one canonical design

    Mark conflicting alternatives as historical. Generate the documents from shared structured data instead of maintaining duplicate HTML and JavaScript copies.

  3. Run the slice manually

    Record the baseline and numerical success criteria before automation.

  4. Write the contracts

    Add lifecycle rules and negative test cases.

  5. Build the smallest useful spine

    Only the note checker, run log, one resumable gate and the first crew. Defer six full engines, parallel developers, automatic learning and multiple providers until the pilot proves the core.

Main risk: building a sophisticated knowledge and orchestration platform before proving that one real requirement can move through it more cheaply and reliably than the current manual process.

Build · research on 25 Nov 2026

Research findings

Four studies: your boilerplates, Hercules, your other agent work, and outside projects. The local studies read files but did not install or run anything.

Your boilerplates

BoilerplateState todayBlocks test-first because
Node backendFastify 5, Sequelize, Postgres, Redis, RabbitMQ. Plain JavaScript. No multi-tenancy.No tests folder. The app needs live Redis to start. Services read dependencies the loader never passes. No migrations.
Next frontendNext 16, React 19, Tailwind 4, about 50 shadcn components, Redux Toolkit.The runner is Jest, not Vitest. No Playwright. No test ids. No Dockerfile.
FastAPI v2Async SQLAlchemy, Redis, Kafka. A good README with a recipe for adding a feature.No tests and no pytest. Closest to ready: an unbuilt route returns 404, a clean failure.
  • None of the canonical copies is in git. Four to five copies of each exist, and some differ. The top-level next-boiler-plate is an older one.
  • The Node boilerplate has no .dockerignore, so the development env file and committed gRPC private keys would enter the image.
  • Each boilerplate has shared files every feature must edit, such as the route list, the model index and the store. Parallel developers need locks on these.

Hercules

  • It is one flat graph. It has no real subgraphs and no fan-out. Parallel work is plain asyncio inside one node. Crews as subgraphs are new ground.
  • Confirmed in code: the checkpoint clean-up deletes by a column that does not exist, so it has never run. Two live runs got stuck because interrupt kinds were missing from an allow-list.
  • The meter fails open, and several caps only log.
  • Clean to lift: the cost estimator, refusal errors, the metering pattern, the checkpointer helper, the gate loop. Not worth copying: the 4,709-line drafter service.
  • Conclavity already has a sealed held-out set of 9 queries with a written policy, and notes that record constants tuned by watching the smoke set.
  • It runs langgraph 1.1.3. The current release is 1.2.24.

Your other agent work

  • product-demo. The repo is not on this machine. Its status page of 23 Nov says stages 8 to 12 (handoff pack, tests, schema, PRD, estimate) and research have not met a real product. Intake through prototype is the proven part.
  • QA agent. The large design has no source code. A Claude skill ran discovery only. Worth reusing: mutation runs that catch tests which pass for no reason, and locking approved tests by hash.
  • Perpetua's coordination protocol. Eleven rules for many sessions. Only two sessions ever registered, both on one machine, and a review found 8 gaps.
  • CrewAI in Perpetua. Task prompts were silently dropped, and a crew reported success with empty output.
  • DeepSeek harness. TypeScript. Its core ideas: an append-only log as the truth, swappable capabilities, deny when no approval arrives, fail loudly on anything unsupported.

Outside projects

  • Archon is TypeScript on Bun. Loops end on a shell command, gates go to one queue, retries depend on the error class. Its worktrees are not a security sandbox.
  • Robin (open-swe) needs LangChain's hosted runtime to run. Its prompts and patterns are reusable. Its runtime is not.
  • Deep Agents nests inside a LangGraph node, but runs shell commands only on cloud sandboxes.
  • Claude Agent SDK gives a tool list, a working folder, a JSON schema, a turn limit, a spend limit and a cost figure per run.
  • Versions checked on PyPI: langgraph 1.2.24, langgraph-checkpoint-postgres 3.2.1, langchain-anthropic 1.7.12. These match the versions pinned in your deep dive.

Corrections to the earlier review

  • The review suggested Deep Agents for developer agents. It has no local Docker option, so the Claude Agent SDK in a container is the better fit.
  • The review listed Robin's sandbox as a pattern to borrow. It is a hosted cloud sandbox, so only the idea carries over.
  • The review treated Perpetua's protocol as proven. It is a starting point.

Not verified

  • How LangGraph behaves when an interrupt fires inside a fan-out branch. The docs do not say. The design avoids it.
  • Concurrency limits of the Claude Agent SDK.
  • The two review papers on cross-model checking were read as abstracts only.
  • Whether the boilerplate bugs fail at run time. They were found by reading the code.
Build · proposed

What Perpetua and Conclavity already taught you

The factory is mostly the automated version of how you built these two products. This is based on their readme, coordination and feedback notes, not their code.

Done by handWhereBecomes in the factory
Session board, hotspot locks, a worktree per session, adopting stale work after 3 hoursPerpetua coordination/The Developer crew's parallel layer. The engine registers and releases work itself.
Anti-pattern files per repo and the memory logPerpetua claude/The first organisation memory. The Foundation scout reads them before anyone plans.
Lawyer scores answers, his doctrine is extracted, turned into actions, and the smoke set is rerunConclavity lawyer feedbackThe skill-improvement loop, already proven with a real expert.
Six pillars, each with an acceptance gate that must pass a real auditConclavity pillars.mdEach crew's definition of done, checked by a script.
The LangGraph drafter and its failuresHerculesThe 20 runtime rules in the deep dive.

The eval-first crew

Both products have AI inside, and a normal test cannot say whether an AI answer is good. The same rule as test-first, one level up:

  1. A domain expert writes the rubric before anything is built. A lawyer for Conclavity, an instructional designer for Perpetua.
  2. The crew builds a golden set and canary cases from that rubric.
  3. Part of the set is hidden from the developers and from the skill improver.
  4. The feature ships only when it meets the threshold on the hidden part.

Your own notes show why the hidden part matters. pillars.md records that the 18-query smoke baseline was pegged by 108 hardcoded patterns and 4 chunk pins, with a real generalisation gap underneath. Agents will overfit the same way, faster.

Your history is the benchmark

  • Perpetua has the MVP PRD, the backlog, frontend and business-rule audits, and bug lists.
  • Conclavity has the lawyer's scored canary documents.
  • Give the factory the original requirement of one shipped feature and compare. Each known bug tests whether an auditor would have caught it.

What the audits corrected

  • Perpetua's protocol has only been used by two sessions on one machine, and a review found 8 gaps in it.
  • Hercules never used subgraphs or fan-out, so those parts of the factory are new ground.
  • Details are in Research findings.

One gap

Perpetua is three repos: Node core, Next client and Python intelligence. The factory docs name only the Node and Next boilerplates. A product with AI needs a third foundation.

Build

What exists on GitHub

Nobody has published the whole factory. Almost every part exists as a separate project. Star counts are from the GitHub API on 25 Nov 2026.

ProjectStarsWhat to take
coleam00/Archon24kThe closest thing to your engine, in TypeScript on Bun. Gates arrive in one queue with a recommendation and choices. Its worktrees are not a security sandbox.
langchain-ai/open-swe11kA software factory from issue to pull request. It needs LangChain's hosted runtime, so only its prompts and patterns are reusable. No BA, UX or UAT.
Fission-AI/OpenSpec76kChanges as requirement deltas with scenarios. The format for your change requests.
bmad-code-org/BMAD-METHOD56kA process that sizes itself to the work, and a tool that measures skills.
langchain-ai/deepagents32kA tool loop that nests in a LangGraph node. It runs shell commands only on cloud sandboxes, so it does not fit a local container.
gepa-ai/gepa7.6kImproves prompts and skills against a metric. The "draft diff" step of the skill loop.
gastownhall/beads29kA dependency-aware task queue for agents. The model for the Developer crew's task list.
NousResearch/hermes-agent266kThe open skill format. It edits its own skills with no approval, which you should not copy.

What only your design has

  • Tests the developer cannot touch, plus a hidden acceptance set.
  • Tests proven to fail for the right reason, and a mutation score.
  • Every requirement traced to a verbatim quote or an operator decision.
  • Client acceptance as a crew that routes defects to their owners.

Open the full review, 20 projects

Version 2 · current design

Crew Deep Dive

Open on its own
Version 1 · older than the deep dive

Agentic Product Demo Engine

Open on its own

This page shows 5 crews, 36 agents and a SQLite checkpointer. The deep dive shows 7 crews, 51 agents and Postgres. Where they differ, the deep dive is current.

Explainer

Crew Factory Vision

Open on its own
Review · 25 Nov 2026

Better Factory Review

Open on its own