Claims processing for claims teamsExplore the product

Platform engineering · Testing

How the platform is proven.

A claims system is trusted when it behaves correctly on the bad day: a crash mid-decision, a broker that answers late, a storage outage, a scan with coffee on it. This page describes how Brando, Niro and Pledge are tested against those days, and why each kind of test exists. Each item carries its status, marked as on the overview.

Deterministic simulation Built

Most of the testing runs in simulation. The whole system, its log, its state store, its object store and its clocks, runs in one process over in-memory twins of the real infrastructure, driven from a single seed. The same seed always produces the same run, byte for byte, on any machine.

  • Seeded worlds. A world is a scenario plus the invariants it must keep: no fact lost, no command applied twice, no answer released before its commit, every claim reaching its declared outcome. A test explores many seeds of each world; each seed is a different interleaving of work, timing and faults.
  • Fault injection at every boundary. Crashes at each commit, ownership moves, lost or delayed broker answers, throttled and full object stores, storage outages. Faults are typed per port and admitted only where the real adapter can actually produce them, which the same conformance suites check against real Redpanda and Apache Kafka.
  • Shrinking to a reproduction. When a seed fails, the run is shrunk automatically to a smaller run that fails the same way, and saved with its seed and recording as a committed regression file. Every test run replays every committed regression: an open one must still fail exactly as recorded, and a fixed one must run clean.
  • Shared oracles. The checks that know no domain, such as "no chain of facts ever forks", "a resume point skips no input", "a store settles under steady load" and "a cost grows no faster than its input", live in ford, the deterministic core shared by Brando's simulator, Niro's fuzzer and Pledge's synthetic data generator. ford is pure: no I/O, no clock and no ambient randomness. The seeded run engine and its shrinker live in Brando's simulation kit today; consolidating the remaining seeded randomness into ford is In progress.

At the last count (1 December 2026) the workspace held 7,703 tests, many of them worlds that each explore a budget of seeds.

Every bug gets a failing simulation first Built

A defect is fixed only after a simulation reproduces it and fails. The fix then turns that simulation green, and the simulation stays as a permanent regression test. A defect found outside simulation, in a lab run or a review, is treated first as a gap in the simulation. Thirty-four shrunk failures are committed today as regression files across Brando, its Kafka adapter and Niro.

This is why a fix can be trusted to stay fixed: the exact interleaving that broke the system is replayed on every build.

Exact cost counts Built

Simulated scenarios count their work: SQL statements and rows, broker produce requests, fetches, records and bytes, object-store calls, per claim and per round. The counts are held exactly, with no tolerance: measured must equal expected. The tables are checked in, and a ratchet in the build fails any increase that has not been approved, with every change logged against the commit that caused it.

A change that quietly doubles the database work per claim therefore fails the build, rather than showing up weeks later as a slow production system or a larger infrastructure bill.

The endurance world In progress

Short scenarios cannot catch slow growth: a table that gains three rows per claim forever looks fine for a day. The endurance world runs the whole claims service through simulated years of steady operation, claims of every class arriving and settling, with its time-driven parts firing for real (review timeouts, document expiry, appeal windows, retention, archiving and broker trims) and a take-over, a restart and store outages injected, all from one seed.

Once every retention window has passed, each store must hold the same amount at the end of every simulated month. Only the archive in object storage, the permanent record, may grow, and only linearly. A store that grows with claims fails the world, named, with its growth per claim. The world is built and runs; it currently lists a small number of known growing stores, each with its cause, and those are being fixed.

Process conformance: Niro

A process engine is trusted when it runs a standard model the way the standard says. Niro is held to that in three ways.

TestWhat it showsStatus
Conformance corpora133 BPMN, 89 CMMN and 38 DMN cases, each declaring whether it compiles or exactly how it is refused, and for those that compile, every step's recorded facts and the final state. Every declared run executes on Brando in simulation, with crashes and duplicate inputs.Built
Differential testing against a reference engineEvery corpus case runs in Niro and in Flowable, an established open-source BPMN engine, from the same inputs, and the two are compared after every step. Every disagreement must be listed and classified: a Niro bug with a failing simulation, a reference-engine deviation from the spec, or out of scope. The harness is built; some listed Niro bugs are still open.In progress
FuzzerGenerates new process models from Niro's supported elements, drives each through the inputs it can take, and checks every step against invariants. A failure is shrunk and saved as a new corpus case.Built

Realistic healthcare data, never real patients Built

Pledge is tested on synthetic healthcare data built from Synthea, an open-source generator of realistic synthetic patient records. Synthea's FHIR output supplies the clinical templates: patients' encounters, the professional and institutional claims they produce (recoded to CPT and ICD-10-CM), the payments, and the organizations and clinicians involved. From those templates and a seed, Pledge's synthetic data generator builds a member population, its health-plan configuration, and labelled claims in many shapes, submitted as FHIR bundles and X12 837 files. Every claim carries the outcome it should reach, so the result can be checked automatically.

No real patient data, and no protected health information, is used anywhere in testing. The same seed always yields the same population and claims, so any failing case can be regenerated exactly.

Paper documents and OCR Built

Real claims arrive as paper: photographed forms, faxed bills, handwritten appeals. Clean test PDFs would prove little. So the generator renders photo-like images of the documents around a synthetic claim, such as CMS-1500 claim forms, payer forms (including handwritten ones), receipts and appeals, and damages them the way paper is damaged: creases and crumples, coffee and ink stains, smears, tears, staples, fax banding, then scanner skew, phone perspective and shadow, low resolution and JPEG compression.

Because the damage is applied in layers that each record which pixels they obscure, the generator knows, for every field, whether an extractor should read it, flag it as uncertain, or report it missing. Those expected findings are derived by construction, never by eye. The rendered documents are read by Pledge's real extraction pipeline (OCR on page images and PDFs). Its recorded readings feed the whole-service simulation, where a claim is made from the claimant's paper and checked against its invariants, and the extraction image cannot even be built unless it reads a rendered claim form and finds the patient in it. Rendering is deterministic, so the same seed produces the same image bytes on every platform.

The lab soak In progress

Simulation proves logic; it cannot prove a real cluster. The lab soak runs the full system on a lab Kubernetes cluster with a real Kafka-protocol broker, PostgreSQL and object storage, and pushes large files of synthetic claims through it for hours. During the run one worker is deliberately deleted shortly after the load starts and a different one every thirty minutes after that, so ownership moves and recovery happen under load throughout. Any other pod restart stops the run, and a recovery that stalls is captured with its evidence and stops the run too. Disk, database, archive and broker growth are read every few minutes.

Lab soak, not a benchmark or a commitment. In a lab soak on shared hardware, with synthetic claims driven through Pledge, throughput scaled close to linearly with workers: about 52 claims/s on 10 workers, 75 on 15 and 95 on 20.

Each soak is treated as evidence: anything it finds gets a failing simulation first, then a fix, then another soak.