How it works
Prove nothing is lost, then switch
Six steps, three human decisions, one receipt.
Explained simply
Explained simply
Think of a post office counter that is closing. Letters have been handed over and stamped. Some are still in a sorting tray. A new counter opens next door, and it passes every one of its own training drills.
The risk is the tray. If the new counter reads "in the tray" as "already delivered", those letters are never sent, and no one is told.
So we do not trust the drills. We watch the old counter work. We fix the new counter's reading of the tray. A different person, in a room with no phone, builds it again and tests it with letters it has never seen. Only then a human says: close the old counter. We count every stamped letter, and we prove that the old counter can reopen and send what the new one took in.
The one uncommon part
What goes wrong with one message at its size limit
The old service is a queue. Producers hand it messages, and consumers take them one at a time, finish them and delete them. So that nothing is lost when it is switched off and on, it writes a diary of every message: accepted, taken, finished.
It has a size limit for one message. A message exactly at the limit, or one byte under it, is accepted when it arrives. When the service starts again and reads its diary back, it measures that same message a little differently, because the saved copy carries two extra bytes. It refuses the message. It then stops reading that page of the diary, and carries on as if nothing had happened. This needs the diary switched on, which is how anyone who cares about recovery runs it.
What a person sees is at the level of messages. Messages that were still waiting after that point are gone. Messages that had already been finished come back, and would be handled a second time. The service's own counters still add up, because they count only what it has left. The only sign is three lines on its error output.
Two bytes under the limit, nothing happens. That is the control, and it is on the demo page so you can check it yourself.
I found this on the stock program, not a modified one. I make no claim that it is new or that its maintainers do not know it. In one blind run, with one model, memory did not predict this edge.
Measured on the real original RECORDED
A stored scoring run, three seeds per row, at declared -z 1024 and -z 65535: the edge shows at both sizes. Process isolation on the Mac, not a container. Lost is accepted-then-gone. Came back is finished-then-handed-out-again.
| -z | Message size | Naive: lost | Naive: came back | Prepared: lost | Prepared: came back |
|---|---|---|---|---|---|
| 1024 | At the limit | 17 to 32 | 7 to 12 | 0 | 0 |
| 1024 | One under | 17 to 32 | 7 to 12 | 0 | 0 |
| 1024 | Two under (control) | 0 | 0 | 0 | 0 |
| 1024 | No large message | 0 | 0 | 0 | 0 |
| 65535 | At the limit | 17 to 32 | 7 to 12 | 0 | 0 |
| 65535 | One under | 17 to 32 | 7 to 12 | 0 | 0 |
| 65535 | Two under (control) | 0 | 0 | 0 | 0 |
| 65535 | No large message | 0 | 0 | 0 | 0 |
The naive and reconciling rule sets are constructed foils, written knowing the edge. They show what a reasonable-looking recovery does, and they are not blind work. Prepared is a reference repair, PREPARED, the labelled fallback: live, Argon writes the repair.
The six steps
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.
Repair the mapper
The belief that was wrong gets fixed in the replacement's mapper, by a builder that cannot grade its own work.
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.
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.
Reconcile every accepted message
Attempts are counted apart from committed effects, so a repeated delivery cannot hide a loss.
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.
Who does what
Four named parts, none of them a logo
Meta Wonder and Spark
Investigate the original: split it into claims, propose and challenge them, design probes. They read evidence and never write code.
Gemini Argon in an Antigravity builder
Writes the repair to the mapper, in one turn, from the ledger of what was observed.
An outbound-off Antigravity executor
Rebuilds alone from the package, with the network disabled, and writes a result file the engine re-validates from outside.
Fetch.ai uAgents, Agentverse, Chat Protocol and ASI:One
Carry the whole operator journey: the three approvals, the status, and the receipt, in one conversation.
The program being retired
Stock or modified is a stated parameter
The reference program is shown with its name, licence and binary hash. Whether it is the stock build or a modified one is printed on every receipt, with the disclosure.
The program being retired
- name
- beanstalkd stock at 25085c5 (25085c5f090031fd7110613a77fd6f816681d801); its own -v prints 'beanstalkd unknown' because the clone had no tags
- licence
- MIT-style permissive licence, read from LICENSE (Copyright (c) 2007 The authors of beanstalkd.) sha256:bad1fd0e5c
- binary hash
- sha256:58d45e6bad82a56bb83d
- build kind
- stock
- flags
- /Users/sidra/aie-code-lab/reference/frozen/beanstalkd-25085c5 -l 127.0.0.1 -p {port} -b {recovery_dir} -z 1024 -s 1048576
- durability
- persistence on; log sync every 50 ms
Stock build, unmodified. The hash above is the frozen binary that ran. Nothing to disclose.
The program being retired
- name
- beanstalkd stock at 25085c5 (seed text; a real record carries the program's own wording)
- licence
- MIT-style permissive licence sha256:bad1fd0e5c
- binary hash
- sha256:58d45e6bad82a56bb83d
- build kind
- stock
- flags
- /seed/frozen/beanstalkd-25085c5 -l 127.0.0.1 -p {port} -b {recovery_dir} -z 1024 -s 1048576
- durability
- persistence on; log sync every 50 ms
Stock build, unmodified. The hash above is the frozen binary that ran. Nothing to disclose.