The verification layer for software factories

Factories generate the software.
Harel verifies it.

Software factories turn a spec into a whole product, and their agents write the tests that grade it. Harel plugs into the factory and checks every change against what the software actually does.

Illustration: a software factory moving changes from spec through its L3 architect, L2 planner and L1 builder agents to merge. Every stage shows a green tick, yet what ships is unverified and often broken. Under the HAREL verifier lens, each stage gains a check: a contract drawn from the spec, a plan check, a ticket check, a watch on what the software really did, a verdict and a fix brief. One change, billing marks invoice paid, is caught: its tests passed but the invoice stayed pending.

Move the verifier over the factory · right-click to zoom · click a change for its reportScroll ↓
Under the verifier · one change

Follow one change.

The factory's tests check what the code said. Harel checks what the software did, against a contract drawn from the spec. This is the billing change the lens caught.

The factory's test

  • L1 sendspay invoice 0194
  • L1 checksthe reply says OK
running…✓ 24/24 passed

Harel's contract

“When a payment goes through, the invoice is saved as paid.”

From the spec · hidden from L1

What it saved

invoicestatus0194pending
HAREL · WATCHING

The verdict

wanted  paidsaw     pendingFAIL · not mergedfix brief → L1

Caught. Fixed. Verified.The tests passed, but the invoice never changed. The coach sends L1 a fix brief, L1 fixes it, Harel checks again, and only a PASS merges.
Harel watches what the software really does: saved records, messages, calls to other services.
01·Why now

The person in the loop is leaving the loop.

Until now, AI wrote code next to a person who checked it. Factories build whole products from a spec, writing the code and its tests in hours, and nobody reads either one. Verification stops being a step and becomes the job.

  1. CopilotA person reads every line.Slow, but gated. Mistakes are caught by the person typing.
  2. Coding agentA person reviews the pull request.Faster. The gate is thinner, but someone still looks before it merges.
  3. Software factoryNobody reads the code.Agents write the code, the tests and the merge. Without a check of its own, a factory scales its mistakes and its bill.
02·Ways in

Bring your factory. Or use ours.

You have a factory

Plug in Harel

Harel connects to your merge step. Before anything lands, your factory asks Harel and gets an answer with the evidence.

  • Your agents, your models, your stack
  • Checks your agents never see or edit
  • Every failure comes back with a fix brief
You have a spec

Use the Harel factory

No factory yet? Write what you want built. Our factory plans and builds it, and Harel verifies every merge on the way to a working product.

  • From a spec to verified, merged code
  • TypeScript or Python services on Postgres
  • Questions come to you only when the spec is unclear

Verified software, for less than the rework.

Stop bad code at the gateA broken change is caught before other work is built on top of it, when it is cheapest to fix.
Fewer wasted agent runsEach failure says what broke and where, so the next attempt fixes it instead of guessing.
Less fighting with your specHarel asks a question only when the spec is truly unclear, and shows what each answer would change.
03·Proof of concept

We built a factory and put it to the test.

Their tests lied7 of 24

tasks passed the agent’s own tests and were still broken. Harel named what broke and the step where it broke.

Training on tests backfiresMore green, no more right

We retrained the agents on their work. They passed more of their tests, but no more of their work actually worked. Harel’s gate caught it and kept the old version.

Reading code is not enough19 of 19

deliberately broken builds caught, and every correct one passed. An AI reviewer reading the same code gave nearly all of them the same score.

In the proof of concept, Harel’s verdicts were used to retrain the agents. The lesson was that the check matters more than the training. So Harel now sits at the factory’s merge gate: no retraining, and it works with any factory.

See the published runs →
04·The verification gap

Agents mark
their own tests.

An agent's guard is the test suite it wrote itself. It learns what right means by reading its own code, so its tests share the code's blind spots, and it works until they go green.

A factory is the same agents with more control and a bigger budget. If its only check is its own tests, it ships broken software faster, and pays to build it twice.

CODE GENERATEDWHAT GETS VERIFIEDTHE GAPTIMEBEHAVIOUR
What lives in the gap
  • Tests · 24 passedA status that never flips.The payment goes through. The invoice stays pending.
  • Tests · 18 passedA balance that slips below zero.Two seat removals at once, and the count goes negative.
  • Tests · 31 passedAn order that loses its owner.Saved without its customer. Nobody notices until support does.
An old question

Who checks the checker? Asked since 1949. Now at factory scale.

  1. 1949Can a program be checked?Turing argues a program can be shown correct, not just run.
  2. 1970Tests never prove there are no bugs.Dijkstra: a green run is evidence, not proof.
  3. 1978Break it to test the test.Mutation testing plants bugs to see whether any test notices.
  4. 1987Behaviour gets a shape.Harel’s statecharts: states, events, what must happen next.
  5. 2015Knowing right is the hard half.The oracle problem: inputs are easy, the right answer isn’t.
  6. 2020sMachines write the tests.Models learn what right means by reading the code, bugs included.
  7. NowWho checks the factory?Factories write the code and the tests. HAREL is the check they can’t write.

“When a measure becomes a target, it ceases to be a good measure.”

Marilyn Strathern, after Goodhart · coverage became the target
05·How it works

Map. Run. Prove.

Harel sits beside your factory. It never writes the code. It decides what merges.

spec.mdwhat you wrote
  1. An invoice starts as a draft.
  2. Issuing it opens it.
  3. Charging it puts it in pending.
  4. When the payment goes through, it is paid.
  5. A customer can dispute it, and it can be resolved.
  6. A pending invoice can be voided.
The map Harel buildsStep 1 of 3 · Map
issue()charge()dispute()resolve()void()pay()STAYED PENDINGits tests: all passedPASS · NOW PAIDafter the fix briefdraftopenpendingdisputedpaidvoid
Harel's contract6 checks
  • ✓issue()draft → open
  • ✓charge()open → pending
  • ✓pay()pending → paid
  • ✓dispute()pending → disputed
  • ✓resolve()disputed → pending
  • ✓void()pending → void

Never shown to the factory's agents, so they can't write code to pass it.

Watching the runlive
  • L1 shipspay() · its 142 tests pass
  • Harelruns it on a throwaway copy
  • calledpayments service · OK
  • sentreceipt email
  • savedinvoice 0194 · pending
  • spec sayspaid
The verdictbilling · invoice 0194
FAILTests passed. The invoice stayed pending.
fix brief → L1Save the status as paid in the same step as the payment.
PASSRe-run matches the spec. Merged, evidence kept.
06·FAQ

Questions we get asked.

Do we have to switch to your factory?

No. Harel is a verification layer any software factory can call before it merges. Our own factory is there for teams that do not have one yet.

Why not have another AI review the code?

In our proof of concept, an AI reviewer reading the code gave broken and correct builds nearly the same score. Harel uses AI wherever judgment helps, but a pass or a fail comes from what the software actually did when it ran.

Can the factory’s agents game the checks?

They never see them. The checks are drawn from your spec and live only inside Harel, so the agents cannot read, edit or train against them.

What does Harel need from us?

A spec, and a way for your factory to ask Harel before it merges. Harel runs each change on throwaway infrastructure. It does not need your production data.

Which stacks does it work with?

Services in TypeScript or Python on Postgres today, with queues, caches and outside calls watched too. Tell us yours when you book a demo.

Why is it called Harel?

It is a homage to David Harel, whose statecharts gave complex behaviour a precise, checkable shape. Harel models every system it verifies that way.

Book a demo

See Harel verify a real factory.

Live demos are opening now, first to investors and design partners. Pick whatever is easiest.