Kedge

You can't retire an old service until you can prove no accepted work gets lost in the switch.

BLOCKED
A naive replacement: 306/306 of its own tests pass.17 accepted messages unaccounted for after cutover.10 finished messages came back.
RECORDEDSYNTHETIC
-z 1024, declaredstock programprocess isolation on the Mac, not a containerPREPARED reference repair: the labelled fallback, never the default

The old service keeps a diary of every message it accepts, and reads it back when it starts again. One message, sitting right at its size limit, goes in fine and is refused on the way back. The service then skips the rest of that page of the diary without a word. Messages still waiting vanish, and messages already finished come back to be done twice.

RECORDED REPLAYAn earlier run, replayed to explain. This is not happening live.

The loop that gets better

Each failure becomes a change it has to prove

Kedge ports the cutover decision itself and improves it: the port never sees the ledger, a judge scores it from the ledger alone, a failure becomes one versioned change, a held-out gate adopts or rejects it, an independent challenger records new cases on the real program, and a person approves the version that ships.

The problem

The old service holds unfinished work

Leah is an integration maintainer for Alder County. She keeps the old message service running, because switching it off might drop an imaging referral someone is waiting on. The replacement is ready and its tests are green. Nobody can say what happens to the messages already accepted.

How it works

Six steps, one receipt

  1. Probe the real original

    A fresh message and a chosen moment in its life run against the real program, with a tracer watching. Each probe states competing predictions first.

  2. Repair the mapper

    The belief that was wrong gets fixed in the replacement's mapper, by a builder that cannot grade its own work.

  3. Rebuild and test it somewhere else

    A separate executor, with the network off, rebuilds from the package alone and runs cases the builder never saw.

  4. Stop the original on a person's approval

    The approval is bound to the exact candidate. Fences outside the program close the doors, then the process ends.

  5. Reconcile every accepted message

    Attempts are counted apart from committed effects, so a repeated delivery cannot hide a loss.

  6. Prove the way back, hand over one receipt

    New work is accepted by the replacement, then the original is started and must process it. The receipt keeps the proof.

The three beats

You decide three times

1. Scope

A person approves what may be probed. Nothing outside it is touched.

2. Stop

A person approves the stop, for one candidate hash. Change a byte and the approval is void.

3. Return

A person approves the way back. It is tested after new work has arrived, not before.

Who it is for

The person who has to sign

An integration maintainer retiring one opaque message service, who cannot read the old code and cannot wait for the queue to drain. The second role is the oracle owner, a named person outside the build path who owns what "correct" means.

Follow Leah through one rehearsal

Pricing

Pay per boundary, then per rehearsal

Characterize one boundary

$4,000 once

Probe the original, build the ledger, set the oracle's contract, and keep the package.

Rehearse a transition

$600 per rehearsal

Rebuild, test, stop, reconcile, return, and receive one receipt. Every new candidate is a new rehearsal.

Draft prices, in test mode. No customer has paid. No charge is made from this page.