Stack Assay

Software factories Stackfrom the software factories track

Put AI agents on your tickets without merging wrong code

Buy the software factories Stack

$99 a month, or $990 a year, per instance. Full refund within 14 days.

In our lab, the tests agents wrote for their own changes were green in all 90 runs, and 2 of those changes were still wrong. The software factories Stack turns a labelled GitHub issue into a pull request in your own CI, then a merge gate runs checks the agent never sees and marks it ready, flagged or blocked. A person always decides the merge.

In its own lab, 18 of 18 tickets passed the hidden check at 0.48¢ of model spend each, and the gate sent 5 of them to a person with a reason.

Read every run

The pattern is in production at Stripe, Ramp, Airbnb and Microsoft .NET. See what they built and what it did.

$99 a month, per instance, or $990 a year

  • Full refund within 14 days, no reason needed (refunds).
  • Renews monthly or yearly, as you choose; cancel any time and it runs on, unlicensed, without updates.
  • Runs in your CI with your own model key. Nothing hosted by us.
  • Version 0.6.0, 1 December 2026. Install with npm i @stackassay/stack-software-factories.

Want more than one? Assay Platform includes every Stack.

Already bought? Sign in to your account for set-up steps, your licence file, a new key and invoices.

How it works, step by step

The software factories track’s explainer shows the system the Stack runs, one step at a time, in five views.

Each part of the system as a glyph on the floor; this step’s flows run as moving dashed lines.

Why you need it, what you are buying, and why now

QuestionSoftware factories: the categoryThe software factories Stack
What it isCoding agents wired into your issue tracker, CI and code review, so tickets turn into pull requests with little human help.A small software factory that runs in your own GitHub repository, as a GitHub Action and a factory command.
What it doesTakes an issue, plans and writes the change, runs the tests and opens a pull request. Some add planner and reviewer stages or learn from past work.Label an issue and one sandboxed agent works it. A merge gate runs your hidden checks, the agent’s tests and an optional whole-repo reviewer, then opens a pull request marked ready, flagged or blocked. A person always decides the merge.
Why you need itGreen tests are not enough. In the lab, agents’ own tests passed in every run, including two runs whose change was wrong, and reviewers that saw only the diff flagged 7 of 18 correct changes.A gate that never merges on green alone. It runs hidden checks the agent never sees and the agent’s own tests, and you can turn on a reviewer that reads the whole repo. Every flag is explained to the person who decides.
What you are buyingA hosted service (Devin, GitHub Copilot coding agent, Cursor Automations, Factory, Warp) that runs your code on its machines, on its terms and its model bill.Source you can read, running in your own CI on your own model key. It is Claude Code in a locked-down container, a gateway that holds the key, an offline grader and the lab’s cost meter. Defaults set by measured results, and the measurement itself so you can re-run it on your tickets.
Why nowThe category moves monthly. New agents ship, one hosted product shut down in October 2026, and pipelines with more stages sell as more capable without evidence that they are.Start on the shape the evidence supports (one agent per ticket did as well as a three-stage pipeline at a quarter of the cost) and keep your tickets, code and keys in your own CI whichever vendor wins.
Who it is forTeams that want agents doing real tickets and need to trust what lands in review.A team that wants agents on its backlog now, inside its own CI, with guardrails that were measured rather than assumed.

Teams already doing this

Companies that built this for themselves and published the result. Figures are as each source states them; these companies are not Stack Assay customers, and the Stack is how a team gets the same pattern without building it.

StripePayments

Stripe merges over 1,300 agent-written pull requests a week

Unattended one-shot agents called Minions start from a Slack thread or a ticket, work in a pre-warmed devbox cut off from production and the internet, pass lints and selected CI tests, and open a pull request that another engineer reviews.

Over 1,300 pull requests merged each week are written entirely by Minions and reviewed by people, up from over 1,000 a few weeks earlier.

“human-reviewed, but containing no human-written code”

With the Stack: The same shape on your own repo. A labelled issue becomes one sandboxed agent run and a pull request, and the merge gate keeps a person in the loop.

Stripe engineering blog, 19 February 2026.

RampCorporate cards

Ramp’s background agent wrote about 30% of merged pull requests within months

Inspect runs each task in its own virtual machine with a full development environment, starts from Slack, the web or a pull request comment, runs the tests itself, and opens pull requests under the requester’s name so nobody approves their own change.

Within a couple of months, about 30% of all pull requests merged to Ramp’s frontend and backend repositories were written by Inspect.

“You do not want to knowingly create a vector for unreviewed code”

With the Stack: An isolated run per task and a gate that never lets the agent approve itself are the Stack’s defaults, with no platform team needed to build them.

Ramp Builders, January 2026.

AirbnbTravel marketplace

Airbnb moved 3,500 test files in six weeks instead of a year and a half

A model-driven pipeline migrated each test file through gated stages. It rewrote the file, fixed the failing tests, fixed lint and type errors, and only then marked it done, retrying automatically when a stage failed. Engineers finished the remainder by hand.

About 3,500 test files migrated in six weeks against an estimate of a year and a half of engineering time; 75% were done in the first four hours.

“in just 6 weeks”

With the Stack: Gates that must pass before a change counts, and retries that stay inside the sandbox, so the work that reaches people is already checked.

Airbnb Engineering, March 2025.

Microsoft .NETDeveloper platform

In the .NET runtime, two in three agent pull requests merged, and review stopped the rest

Maintainers assign well-scoped GitHub issues to a coding agent that opens a pull request; an automated reviewer reads every one, and maintainers decide what merges. The agent cannot open pull requests on its own.

Over ten months, 535 of 878 agent pull requests in dotnet/runtime merged (67.9%, against 87.1% for the team’s own), with a median of about two days to merge.

“CCA cannot open PRs on its own”

With the Stack: This is why the Stack never merges on green alone. Even a strong agent needs a gate, and the Stack records what that gate stopped.

.NET Blog, 23 March 2026. Microsoft owns GitHub, which makes the agent.

Measured in its own lab

The same six tasks, sandbox, hidden checks and cost meter as every other option in the track, run on Claude Haiku 5.5. Recorded 19 November 2026.

Read every run
MeasureResult
Passed the hidden check (six tasks, 3 runs each)18 of 18
Model spend per ticket to build the change0.48¢
Model spend per ticket for the whole-repo reviewer0.50¢
Changes the gate flagged for a person, each with a reason5 of 18

Defaults set by results

One agent per ticket
A planner, builder and reviewer pipeline passed the same 18 of 18 tasks at 3.8× the cost. Experiment 1
Never merge on green alone
Agents’ own tests were green in all 90 runs; 2 of those runs were wrong on the hidden check. Experiment 4
The reviewer, when you turn it on, reads the whole repo
Reviewers that saw only the diff flagged 7 of 18 correct changes. Experiment 3
Tickets point to the doc with the rules
Thin tickets passed 16 of 18; tickets that named the doc passed 18 of 18. Experiment 5

The story behind this Stack

Software factories sell pipelines of agents. We measured what they add, then built one.

The long read covers the trend, who makes what, what the research says and what each experiment found, so you can see how the Stack’s defaults were set. It is also a book to keep, as an EPUB and a PDF.

Or get The Software Factories Lab Book, free by email. See what is inside.

How we keep your address

What you get

  • The factory command, which runs one ticket and has assay, validate, doctor and licence.
  • The sandboxed agent image and a merge gate with hidden checks the agent never sees, your own tests and protected paths.
  • A GitHub Action. Label an issue and it opens a pull request, a draft when the gate blocks. It never merges.
  • Worked examples with reference answers and planted wrong answers that validate proves are caught.
  • Every release while your licence runs, each tied to a lab result.

What you need

  • A GitHub repository and Actions minutes
  • Your own OpenRouter key, added as a repository secret
  • Hidden checks for the rules that matter to you (optional; without them the gate flags every run)

Set up, after you buy

npx factory init
npx factory image
npx factory doctor

One ticket, start to finish

  1. 1.Someone with triage rights labels an issue. The ticket is the issue as it was when labelled, so a later edit cannot change what the agent sees.
  2. 2.One Claude Code agent works the ticket in a locked-down container with no secrets and no network except a gateway that holds your model key.
  3. 3.The gate runs your hidden checks (which the agent never sees) and the agent’s own tests, offline, and an optional cheap reviewer that reads the whole repo.
  4. 4.A pull request opens, as a draft if the gate blocked it, with what each check found and what the run cost on your key. A person decides whether it merges.

Release notes

0.6.0, 1 December 2026. Upgrade with npm i @stackassay/stack-software-factories@latest; every release is included while your licence is active.

  • No defaults changed.
  • One spend cap for the calendar month across every provider, 20 US dollars until you change it (monthlyUsd at the top of .stackassay/models.json). It is the most the Stacks in your repo may spend on your model keys in a month, each call priced at its own provider's prices, so switching providers keeps the same budget. factory run and factory assay say where the month stands and do not start past the cap. An assay holds to it run by run. A run already going is bounded by its own budget and time limit. It starts again when the month turns. The count comes from your repo's spend ledger, so it is not the provider's bill. --max-usd still holds for one command.
  • Every line in the spend ledger now names the provider it was spent at. factory run and factory assay write to the ledger for the first time, one line a run for each provider its stages were called on (--ledger <file> and --ledger-track <name> say where and under what name).
  • The Stack says how it is set up, so Assay Platform can set it up in a project on one yes. factory help --json prints every verb with its flags, whether the verb spends, every setting in the config, and the set-up steps in order: init, image, then validate --examples. None of the three calls a model or spends. The last two need Docker, and Platform leaves them for later when Docker is not running.
  • factory init --dry-run lists the files a set-up would write and writes nothing.
  • factory validate --examples and factory assay --examples use the two worked examples that ship in the package, wherever the package is installed. factory status now names that command when the repo has no tasks of its own.
  • factory help is now written from the same list as help --json, so the two cannot differ. The verbs come in the order you use them, and each flag sits beside its verb.
Earlier releases (11)

0.5.1, 1 December 2026

  • No defaults changed.
  • --json on any command now prints its whole document when it is piped to another program. A document over about 64 KB could arrive cut short, because the command exited before the pipe had taken all of it.
  • The README calls factory report --html a one-file report.

0.5.0, 30 November 2026

  • One exit code changed; nothing a run measures changed. factory assay and factory report now exit 1 when a run failed its hidden checks. Until now they exited 0 whenever any run finished. factory run is unchanged and still exits 0 whatever the gate decides. Lab result: Experiment 4, Green tests, wrong code (software factories lab), 2026-11-18.
  • factory status says where this repo is with the Stack, in four stages. Adopt means the repo is set up and holds tasks of your own. Prove means the checks hold and an assay has given a verdict. Fix means the verdict was no. Watch means it was yes. It names what waits on you and the one next command, and under --json gives stage, why, waits and next. It reads files only, spends nothing and always exits 0. A yes is asked for again when the config or the tasks change after it, or when it is more than 30 days old.
  • factory report --html also writes the Stack's page as one file, report.html beside the records (or the file you name). It opens in any browser with no server and nothing loaded from the network, so it can be kept as a CI artefact. It shows where the repo is and the next command, then two columns. Running lists each stage of the factory, each marked proven, failed or unproven with what that rests on. Proven holds the verdict, what it was proven on, the last assay's table and each failed run by name. With no records on file the page still writes, and says unproven.
  • A verdict now says what it was proven on. verdict.json gains on, the cases folder and whether the cases are your own. A yes on the worked examples is no longer read as a yes on your work, by status or by the page.
  • factory validate on tasks of your own keeps its result as validated.json in the runs folder, which is how status knows the checks hold. Change one afterwards and status asks for validate again.
  • A model can be a role in the repo's shared settings file, .stackassay/models.json, which every Stack Assay Stack reads: a provider, a model id and prices. The builder, the planner, the reviewer stage and the gate reviewer can each name their own, on OpenRouter, on Anthropic's own API, or on any endpoint in the Anthropic Messages format, which is the format the agent speaks. Without the file nothing changes.
  • The gateway holds one key per provider and sends each only to that provider's own host. A host the settings file names for a key needs --allow-hosts (or STACK_ALLOW_HOSTS) from the person running the command.
  • Off OpenRouter, cost is counted at the gateway. It reads the token counts from each reply, cached tokens included, and prices them at what the role states (inPerM, outPerM, and cacheReadPerM and cacheWritePerM when given). A call with no stated price is counted and shown as unpriced.
  • factory doctor checks the keys the configured models need and names each model and its provider.
  • A stage's calls now counts model calls only. Until now it counted every request the gateway saw.
  • factory assay and factory report end with a verdict: yes, no or none, with one sentence of reason. It is on the last line of the text, in verdict and reason under --json, and kept beside the records as verdict.json. Only yes exits 0. yes means every judged run passed its hidden checks; no says how many failed and how many of those had green tests of their own; none means nothing was judged, or runs ended in an error.
  • Each run record now carries its totals at the top level, in the fields every Stack Assay Stack writes: runId, model (the build model), calls, priced, the token counts and licensed. The per-stage figures stay under stages. Records written by earlier versions still read: factory report fills the totals in from their stages.

0.4.0, 30 November 2026

  • No defaults changed.
  • factory help lists every command with its flags, and factory version (or --version) prints software-factories@<version>. Both were missing: help printed one line that pointed at the source.
  • factory report prints the last assay's result again from the records on file. It is free: no model calls and no Docker.
  • The Stack's files in your repo now live in .stackassay/software-factories/ (config.json, checks/, assay/, runs/), with the licence file and the spend ledger in .stackassay/, shared by every Stack Assay Stack in the repo. A repo set up on an earlier version keeps working as it is: the Stack reads .factory/ and .factory-runs/ until .stackassay/software-factories/ exists, and factory init there keeps the old files and prints the commands that move them.
  • The package ships stack.json, a manifest of the Stack's id, command, verbs and file paths, for tools that read a Stack without running it.
  • Every Stack's folders, old and new, are kept out of the agent's copy of the repo and are always protected paths, so the factory's agent cannot read another Stack's hidden checks.

0.3.5, 30 November 2026

  • No defaults changed.
  • factory run now stops at its budget. It checks the spend before each stage (plan, build, review, fix, the gate reviewer) and does not start one once the run has cost --max-usd. The usage text always said every run stops there; until now run only warned after the fact. A stage it skipped is named in the record (budget.skipped), in the pull request and at the gate: the pull request is flagged when a review did not run and blocked when the build did not. A stage already running is bounded by its time limit, as before.
  • The README no longer names a payment provider we do not use.

0.3.4, 28 November 2026

  • No defaults changed.
  • A renewed licence now reaches your copy on its own. Once the paid period on your licence file has ended, a run with STACKASSAY_KEY set asks our registry once for the renewed file and uses it; without the key, or if the call fails, nothing changes and the run goes on. Until then the check stays offline. licence --refresh still works by hand.
  • The licence text counts a Stack by instances, like Assay Platform. One instance is one codebase the Stack runs in, with its CI pipelines. It used to allow any number of your repositories. A licence bought before this release keeps the terms it was bought under until it renews.

0.3.3, 27 November 2026

  • No defaults changed.
  • The egress gateway, the one container that holds your OpenRouter key, now stops when the command that started it ends, unless another run of the Stack is still using it. It used to stay up until you removed it.
  • The licence text names its governing law: the State of California, USA (it said the jurisdiction where Orionfold LLC is established).

0.3.2, 23 November 2026

  • No defaults changed.
  • factory validate without Docker now stops with a plain reason and exit 2 instead of reporting every check as failing, reference solutions included. Found when coding agents installed the Stack on a machine without Docker.
  • factory doctor names npx factory image when the agent image is missing (it said make image).

0.3.1, 23 November 2026

  • No defaults changed.
  • --json on every factory command: one JSON document on stdout (for run, the gate decision, its reasons, pass, cost and the changed files), progress on stderr.
  • Exit codes every script and coding agent can branch on: 0 yes, 1 no, 2 could not run (with {"error"} on stdout under --json). factory run still exits 0 whatever the gate decides, so the GitHub Action keeps opening a draft PR when it blocks.
  • factory init adds a Skill for coding agents (.claude/skills/software-factories/SKILL.md, and the same file in .agents/skills/ for other coding agents) and a short section in your AGENTS.md, between markers so a later version can refresh it without touching the rest of the file.
  • factory doctor links to the Stack's own page for release notes.

0.2.2, 21 November 2026

  • No defaults changed.
  • The Stack Assay registry moves to https://licences.stackassay.com/npm/. Point your .npmrc there when you next touch it (new licence emails show the new lines); the old address keeps working, and doctor and licence --refresh trust both.

0.2.1, 21 November 2026

  • Same commands, flags, config file and defaults, now built on the shared Stack kit that every Stack Assay Stack uses (the sandbox, egress gateway, meter, hidden checks, validate, task loader and licence check), so fixes reach every Stack through one release path.
  • No defaults changed.
  • Copying the agent's work back never writes a file the agent was not shown: one already on your machine but not in its copy (a gitignored file), or one git ignores. The whole write-back is refused instead.
  • The AI review and check output in the PR body sit in a code block the text cannot close, so a review cannot write its own Markdown or fake a gate result.
  • The egress gateway forwards only the OpenRouter model and catalogue paths the agent uses; key, credit and cost-lookup endpoints are refused, so an agent cannot read your account through the key it is borrowing.
  • The agent no longer sees common credential files anywhere in the repo (.env files at any depth, .npmrc, .netrc, .pypirc, *.pem, *.key, SSH private keys, .aws/, .ssh/), and a change to one of them, or to .factory-runs/, is refused and blocks the run instead of reaching the PR.
  • A task's task.json may also give "prompt" (as well as "ticket" or "tickets") and "tests", its own test command, which factory validate uses instead of the config's.
  • Docker networks and containers the factory creates are labelled factory=1 (was stack-sff=1); their names and the 10.232.0.0/24 subnet are unchanged. Stage ids in run records start with stage-.
  • factory doctor says when a newer version is on the registry, using your licence key (it sends the key only to the Stack Assay registry); offline it skips the check.
  • The README has an Updates section: upgrading, Dependabot and Renovate with the Stack Assay registry, and renewals.
  • factory help (and --help, -h) prints the usage and exits 0; an unknown command says so and exits 1.

0.1.0, 20 November 2026

  • First release, published to the Stack Assay registry.
  • Ships under the Stack Assay Commercial Licence (LICENSE), replacing the prototype notice, and trusts the live licence signing key, so a purchased licence reads as licensed.
  • One agent per ticket in a locked-down sandbox behind an OpenRouter-only egress gateway (BYOK), with planner and reviewer stages off by default.
  • A merge gate that never merges on green alone: hidden checks, the agent's own tests and an optional AI reviewer, ending in ready for review, flagged or blocked. Ships as a GitHub Action.
  • make assay re-runs the lab's measurement on your own tasks and writes the lab's run record.
  • factory validate: proves each hidden check fails the starting repo, passes solution/ and catches every wrong/<name>/ before you trust it. examples/house-rules (ledger and parcels, 18 wrong answers) is a template.
  • factory licence [--refresh]: an offline licence check with 14 days' grace. It never blocks a run; unlicensed runs are labelled.
  • npm packaging from the Stack Assay registry, with factory init, factory image and factory doctor.
  • Grading uses a per-run nonce in the environment so a build can't forge a passing check, plus two more fixes from a security review.

Selling a Stack without bending the results

We sell software in categories we measure, which gives us a reason to favour our own. These rules are how you can check that we don’t. They sit alongside the rules every track follows. A licence is per instance and runs by the month or the year; a full refund within 14 days, no reason needed.
  • A Stack runs as an arm in its own track’s lab, on the same tasks, sandbox, checks and cost meter as every other option, and its results are published whether it wins or loses.
  • It is built only from patterns the lab recommends and from open-source parts. No vendor pays to be in a Stack.
  • A track where we sell a Stack says so beside its Players table, and Stacks are never ranked there.

Questions

How do I buy one?
On the pricing page. Choose one or more Stacks and pay by card, Link or a wallet right on the page. Your licence key and install steps arrive straight away, and you can ask for a full refund within 14 days.
Is it a hosted service?
No. It runs in your own CI and calls the model with your own key. We never see your code or your tickets.
What does running it cost?
Your CI minutes plus model spend on your key. In the lab, a factory ticket cost about 1¢ on Haiku 5.5 with the reviewer on, and a harness run on a hard task under half a cent. Your tasks will differ, which is what each Stack’s assay command is for.
Which models does it support?
Any model your OpenRouter key can call. The lab measured Claude Haiku 5.5; measure others on your tasks before you switch.
How do updates and renewals work?
Every release is included while your licence is active, major versions too. Each Stack’s release notes are at the end of its section above and in an Atom feed, and buyers get them by email, with a link to turn that off. Upgrade with npm i @stackassay/stack-<track>@latest, or let Renovate or Dependabot open the upgrade with the same .npmrc lines. A renewal keeps your key; run the Stack’s licence --refresh to fetch the new licence file. If a licence ends, the Stack keeps running with a notice that it is unlicensed, and updates from the registry stop.
Why should I trust a lab that sells?
Because the Stack is measured in public like everything else, with its losses included. The rules are above and on the About page.

Release notes for every Stack go to the list at the foot of this page, the same one that gets each new lab story.

Other Stacks

Run the software factories Stack on your own work

$99 a month, or $990 a year, per instance, every release included, and a full refund within 14 days if it is not for you.

Businesses that need this Stack

3 of the 66 published idea briefs name this as a part of the machine. Each says who pays and what the rest takes.

Browse every idea brief

One email per lab story

Why a trend matters, who the players are and what our lab measured, and a note when a Stack ships. No vendor money, and no tracking pixels in the emails.