Suman Patra.writing / praman

● Writing · PRAMAN

Suman Patra · 1 post · about 8 min read · November 2026 · written for Kiroween 2026

Build the trust: a realistic world to test AI-written software

AI agents write software in minutes. Trusting it still takes days. PRAMAN is the part in between: it runs the software in a realistic world and answers with evidence, not with an opinion.

What PRAMAN is, what it did on three real open-source apps, and what a green result does and does not mean. It is open source under MIT, and you can run the checks yourself.

read in order, or jump

  1. 1The gapCode arrives faster than anyone can trust it.
  2. 2A realistic worldA real browser, real data, many users, a slow network, a dead dependency.
  3. 3Proof on real appsHeadlamp and Shiori, with the actual results.
  4. 4How I used KiroSpecs, a custom agent, hooks, MCP and a Power.
  5. 5What green meansThe claim, and where it stops.

the receipt

public first-use outcomes, as documented
12 of 12
tests in the repository (checked 16 Nov)
397
MCP tools / CLI commands
14 / 16
real apps it was run on
Headlamp, Kan, Shiori
verdicts it can give
3
licence
MIT

The gap

A coding agent can write a feature in minutes and end with one confident word: done. A clean build and a few passing tests do not tell you whether it does what you asked, or whether it still works when real people use it. So someone reads every line, and the speed is gone.

Other fields that ship risky things build a place to test them first: crash labs for cars, wind tunnels for planes, flight simulators for pilots. Software that agents write has had no such place. It has had a claim.

PRAMAN is Sanskrit for proof. It is not another testing tool. It is an attempt to build the trust.

The coding agent still writes and fixes the code. PRAMAN runs the real software, collects evidence, and gives the agent something it can act on.

Three answers, never a quiet pass

Every run ends in one of three verdicts. The third one is the important one.

VerdictMeaningExit code
passedEvery declared check passed in every fresh repeat0
failedA declared check ran and did not hold1
not provenEvidence is missing: a step never ran, a screenshot is gone, a call was refused, a requirement has no check2

Missing evidence never turns green. Each declaration also runs two to ten times, each time in a fresh browser session, so a lucky pass does not count.

A realistic world

Testing in a clean, quiet room proves little. PRAMAN can put the software in a place that pushes back. Each piece below was built on real apps and has its own observed limits.

What PRAMAN doesHowWhat must be observed
Real browserHeadless Chromium, used like a personScreenshots, page errors, network calls
Saved starting worldThe data volumes are saved once as a hashed snapshot; every repeat starts from a fresh copyThe starting hash of each run equals the world
Network faultsA proxy between the app and a dependency: delay, timeout, drop, downThe fault’s effect, and the recovery after it is removed
Many users2 to 10 browser contexts at once, with rules that must hold for all of themPeak concurrency, per-user verdicts, the rules after the run
Recorded outside callsThe app’s real outside HTTP calls are recorded once and replayed with no internetA call that is not in the recording makes the run not proven
Real agent loopAn MCP server and a CLI the agent calls itselfThe same three verdicts and exit codes

If the effect of a fault cannot be seen, the run is not proven. That is the rule that makes the world honest.

Proof on real apps

Headlamp: a tooltip that was still missing

Headlamp is an open-source Kubernetes dashboard. PRAMAN ran its real frontend and Go backend against an isolated cluster. A link component crashed with props.getName is not a function. The first fix removed the crash. PRAMAN opened the real page anyway, and the tooltip was still missing.

resultHeadlamp #8175, first fix
no-runtime-crash       passed   expected 0     observed 0
name-tooltip-visible   failed   expected true  observed false

The second fix also forwarded the reference the tooltip depended on. It passed five checks in three fresh sessions. “No error” and “works” are different outcomes, and the first fix showed it.

Shiori: a bookmark manager under pressure

Shiori is an open-source bookmark manager. From a saved world, three users added bookmarks at the same time, with a peak of three recorded, and the rules that must hold for all of them passed. With its database stopped, the app behaved in ways a user would notice: the login page said “username or password do not match”, and the list page showed “Unknown error occurred”. That is what was observed. It is not a claim about a bug in Shiori. The same scenario passed again once the database came back.

Every run wrote one offline page with the verdict, the broken rule, expected against observed, and the screenshots. Kan, a kanban board with Postgres and file storage, was used the same way.

Demo video, only after proof

When the proof passes, PRAMAN can also make a narrated video of the real software. It records only after fresh runs pass, and it replays the workflow to match the proof. No proof, no video. A one-minute cut is available too.

The launch film for this project, which shows these scenes, is on YouTube.

The loop that runs itself

The agent builds. PRAMAN tests. Red goes back to the agent with the evidence. Green comes to you. In Kiro this is a hook: when the agent says it is done, the declared checks run again, and a failing one sends the agent back to work. In a recorded session the gate refused to let the agent stop on an off-by-one bug, and released it only after the fix.

Kiro also helped fix PRAMAN itself, spec first. One example: pressing Ctrl-C during a check left the tested program running. PRAMAN proved the fix in repair mode against the old build: orphan: yes before, orphan: no in 3 of 3 runs after. To be clear about authorship, Kiro did not build the original engine. It built the Kiro integration and then fixed and extended PRAMAN.

How I used Kiro

This post is written for Kiroween 2026, so here is the Kiro part in plain terms. Kiro did not write PRAMAN’s original engine. It built PRAMAN’s Kiro integration, and then it fixed and extended PRAMAN itself, spec first, in recorded Kiro CLI sessions. The repository keeps a session ID for every claim in docs/kiro-usage.md.

  • Specs. Sixteen of them, from kiro-evidence-gate to honest-coverage. Each one started from a real failing or refused run, then a spec, then a fix, then proof by PRAMAN itself.
  • A custom agent. praman-explorer may call only PRAMAN’s tools, so the agent that verifies cannot quietly do something else.
  • Hooks. A lint hook, and the finish gate on the Stop hook. In a recorded session the gate refused to let the agent stop on an off-by-one bug, and released it only after the fix.
  • MCP. A stdio server with 14 tools, wired through Kiro’s MCP settings, so the agent calls verification instead of trusting its own summary.
  • A Power and steering. An installable Kiro Power brings the tools and a verification skill to any project. Steering files tell the agent to map requirements to checks.

What changed my approach: I stopped asking whether the agent said it was done, and started asking what the evidence said. The Stop hook made that automatic. Two honest limits: the Kiro IDE was used only for checks plus one earlier 86-minute session, and I did not use property-based testing.

What green means

Green means every requirement you declared held up, in fresh runs, in a realistic world.

It does not mean more than that. These limits are part of the product, not footnotes:

  • Not a sandbox. Commands and browser actions run with your user’s authority.
  • Authored checks. PRAMAN checks what you declare. It does not find requirements or prove the whole app is correct or secure.
  • The requirement list is the agent’s. A requirement with no check turns a pass into not proven, but a weak agent can skip the list.
  • One machine, Chromium only. Tested on macOS, with CI on Ubuntu and macOS. The real-app environments use private integrations and are not in the public first-use route.
  • No outside tester yet. Nobody but me has followed the first-use guide so far.
  • Raw evidence is private. Screenshots and reports can hold application data, so they are for local review.

The goal is simple: agents will write more and more software, and someone has to build the trust. This is my attempt.

Try it

The public route runs twelve checks, with deliberate failures, and takes a few minutes.

bashrun the twelve outcomes
git clone https://github.com/ifelse-codes/praman
cd praman
npm ci && npm run build
node examples/first-use/run.mjs /tmp/first-use