Prove what a replacement preserves

When you migrate a legacy system, Bosun uses our tool Parity to run legacy and its replacement side by side and records every difference it observes. You get proof of behavior equivalence, slice by slice.

What is Parity?

Parity captures what a system really does, at the operating-system level, turns it into operations an engineer and agents can read, and compares the legacy system with its replacement.

  1. Capture

    Every process the system starts, every file it touches and every byte it sends, on both sides, without changing either.

    • processes
    • files read and changed
    • TCP and UDP
    • Unix sockets and pipes
    • TLS and SSH
    • final file and database state
  2. Understand

    Parsers turn the raw capture into operations with meaning.

    PostgreSQL traffic
    requests, parameters, rows, results
    HTTP traffic
    methods, paths, bodies, responses
    • Redis
    • DNS
    • SNMP
    • LDAP
    • SSH
    • email
  3. Compare

    The same input runs on the legacy system and on the replacement. Everything has to match, except what a proof allows.

It runs systems through their command, process or HTTP interfaces, so it works across languages and architectures.

Why is it different?

A replacement can look right and still be wrong. A regular test checks what its author thought to assert. Parity compares everything it captured. Automated differential testing build for engineers and agents.

COBOL to Rust Two customers can reserve the last item.

Legacy Replacement
Response Legacy 201, 1 remaining = Replacement 201, 1 remaining
Reservation event Legacy written = Replacement written
Database request Legacy one statement checks and reserves ≠ Replacement one reads, another updates

Two requests can both see one item left, and both reserve it. Nobody wrote an assertion about the SQL: Parity observed the database traffic.

Parity output
parity verify --scenario inventory.reserve --verbose
FAIL inventory.reserve [available]
  request.0.sql:
    - WITH updated AS (UPDATE inventory SET reserved = reserved + $2 WHERE sku = $1 AND available - reserved >= $2 …
    + SELECT sku, available, reserved, available - reserved AS remaining FROM inventory WHERE sku = $1
    … 55 more changes
Summary: 0 passed, 1 failed, 0 errors, 0 skipped

COBOL to Rust The response matched. The event was missing.

Legacy Replacement
Response Legacy 201, 1 remaining = Replacement 201, 1 remaining
Stock Legacy 3 available, 2 reserved = Replacement 3 available, 2 reserved
Reservation event Legacy one line appended to the event file ≠ Replacement nothing written

The file another system reads was never written.

Parity output
parity verify --scenario inventory.reserve --verbose
FAIL inventory.reserve [available]
  PASS result reserve.result (1/1 cases)
  FAIL views.events (0/1 cases)
  PASS views.inventory (1/1 cases)
Summary: 0 passed, 1 failed, 0 errors, 0 skipped

From the public COBOL-to-Rust experiment and RepoMod-Bench. COBOL-to-Rust example · AI code translation results

205 of 411 differences Parity found across 21 rewritten codebases had no test covering them AI code translation results

A proof an agent wrote for an Oracle Forms order: actions to run on both systems, then what must hold
proof orders-end-to-end.explicit-query-edit {  when entered = enter_query()
when criteria = type(item = "order-id", value = 101)  when queried = execute_query()
when changed = type(item = "customer-id", value = 201)when left = click(item = "date-shipped")  when saved = save()

  then {
assert steps.entered.mode == "query"assert steps.queried.order["order-id"] == 101assert steps.changed.order["customer-name"] == "Kam's Sporting Goods"assert steps.left.order["customer-name"] == "Unisports"assert result.order["rep-id"] == 12assert result.messages == ["FRM-40400: Transaction complete: 1 records applied and saved."]  }
}
values the proof asserts
6
interactions and calls compared per step
202

You decide what may change

Everything observed has to match. A difference passes only where a proof states it, with a reason, and that decision stays on record.

Proofs live in the specification and read like a test scenario. Your engineers review and change them, before and after the code is written.

differs at
One intended difference, with its reason.
exclude … because
Behavior outside the migration.
require target
Proof the new code did the work.
forbid
No calls back into the legacy system.

What does it deliver?

In mission critical systems, passing tests are not enough. Bosun uses Parity to drive each migrated slice with proof. This builds confidence and trust, and gives engineers and agents the confidence that behavior remains the same.

What a pass proves

  • A pass covers the inputs a proof ran. Parity supports fuzzing and can hook into code coverage to get a high confidence of success.
  • Observations run in a custom Linux kernel. Parity also supports large parts of the legacy Windows stack.
  • Tests and engineering review stay part of the migration. Parity proofs by observation, logical proofs like Lean4 can be used where applicable.
Start with the system you have.

Tell us what needs to change, what must stay stable, and how your team reviews work today.