You can't retire an old service until you can prove no accepted work gets lost in the switch.
BLOCKEDAll its own tests pass, and the check measured 15 lost and 9 finished messages back. Scenario messages are SYNTHETIC.
01 / 08
The rejection
A replacement that passes every one of its own tests was turned away. It grades its own work. The messages it dropped were never in those tests.
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.
Which rules lost it
naive foil: constructed with knowledge of the near-limit edge. PREPARED reference repair, shown as the labelled fallback. Live, Argon writes the repair from the ledger in an Antigravity builder. The naive and reconciling rule sets are constructed foils, written knowing the near-limit edge.
Consequences are counted at message level only.
02 / 08
The flip
Workers agree with each other. That counts for nothing until a probe runs against the real original. Then a belief changes, or it does not.
Wonder and Spark investigate. They never write code. 23 of 24 agents listed here worked in this run.
| Claim | State | Agreement (never enough) | If wrong |
|---|---|---|---|
| H-01 Whatever the original accepts with put, it replays on the next start from the same log. | INFERREDbecameREFUTED | 3 concur, 1 dissent (from Spark-h01) | If wrong, accepted messages vanish on a restart and nothing fails: the server's own counts agree with what is left. |
| H-02 A body of exactly the size limit, or one byte under it, is accepted, then refused on replay, and the rest of that log file is ignored. | INFERREDbecameOBSERVED | 1 concur, 1 dissent (from Spark-h03) | If wrong, a recovery that trusts the replay loses every pending message after the large one and brings finished ones back. |
| H-03 A consumer that drops its connection mid-work hands the job back at once, not after the time limit. | OBSERVED | 1 concur, 2 dissent (from Spark-h02) | If wrong, a dead consumer's message waits out its limit during the switch and looks lost. |
| H-04 A job still reserved when its time limit passes goes back to ready. | OBSERVED | 1 concur, 0 dissent (from Spark-h04) | If wrong, every message in flight at the switch is read as done and never processed. |
| H-05 A job delayed past the cutover keeps its remaining delay. | UNKNOWN | 0 concur, 1 dissent (from Spark-h04) | Not probed: the receipt lists it as an unknown, never as a pass. |
| H-06 Two consumers reserving at the same instant never receive the same job. | INFERRED | 3 concur, 0 dissent (from Spark-h05) | Agreement among five workers is shown here and promotes nothing. Only a probe can. |
The one uncommon part, in the original's own words: sizes and limits
It wrote 3 lines to stderr when it started again
- stderr …/recovery/binlog.1:132: job 2 is too big (1025 > 1024)
- stderr /seed/frozen/beanstalkd-25085c5: Errors reading one or more WAL files.
- stderr /seed/frozen/beanstalkd-25085c5: Continuing. You may be missing data.
Its binlog files
| file | bytes |
|---|---|
| binlog.1 | 1,048,576 |
| binlog.2 | 1,048,576 |
| lock | 0 |
| after the restart | body bytes | still there |
|---|---|---|
| The job before yours | 24 | yes |
| Your message | 1,023 | gone |
| The job after yours | 23 | gone |
/seed/frozen/beanstalkd-25085c5 -l 127.0.0.1 -p 62000 -b /seed/rehearsal/original/recovery -z 1024 -s 1048576
What the tracer saw on the seed's example lines, not a measurement, line by line. Probe pr-03-near-limit SEED pids 4121, 4188 · process isolation on the Mac, not a container
- 0 ms exec /seed/frozen/beanstalkd-25085c5 -b /seed/rehearsal/original/recovery -z 1024
- 36 ms SIGKILL process ended on SIGKILL, exit -9
- 71 ms stderr …/recovery/binlog.1:132: job 2 is too big (1025 > 1024)
- 71 ms stderr /seed/frozen/beanstalkd-25085c5: Errors reading one or more WAL files.
- 71 ms stderr /seed/frozen/beanstalkd-25085c5: Continuing. You may be missing data.
- 71 ms binlog after start: binlog.1 1048576 bytes
- 71 ms binlog after start: binlog.2 1048576 bytes
- 71 ms binlog after start: lock 0 bytes
03 / 08
The repair
This is the PREPARED reference repair, the labelled fallback. Live, Gemini Argon writes the repair in an Antigravity builder, from the ledger, and never grades it.
replacement/internal/recovery/prepared.go SEED PREPARED shown as the seed's illustrative diff
@@ func decide(obs Observation) Action { replay := obs.Replays[len(obs.Replays)-1]- // import whatever the replay brought back- return Import(replay)+ if len(replay.Warnings) > 0 && replay.Z == obs.DeclaredZ {+ // the original ignores the rest of a log file after a record it refuses+ return ReplayAt(2*obs.DeclaredZ + 2)+ }+ if len(replay.Warnings) > 0 {+ return Hold("warnings remain at -z " + itoa(replay.Z))+ }+ return Import(replay) }PREPARED reference repair, shown as the labelled fallback. Live, Argon writes the repair from the ledger in an Antigravity builder. The naive and reconciling rule sets are constructed foils, written knowing the near-limit edge.
04 / 08
The independent check
The team that built it does not grade it. A separate executor, with the network off, rebuilt it from the package alone.
Executor
Antigravity executor, network disabled
Hash matches the package: yes.
candidate sha256:046b8387f537b14a
Conformance
412/412 sealed cases pass
The judge's own case: the message you typed on /demo
Blind sequences
36/36 pass never seen by the replacement
identity
OBSERVED PASS
The rebuilt artifact's hash equals the hash in the package.
measured by Antigravity executor SEED
reproducible build
OBSERVED PASS
Two clean rebuilds gave one hash.
measured by Antigravity executor SEED
conformance
OBSERVED PASS
Every sealed case passed, including sequences the replacement never saw.
measured by Antigravity executor SEED
05 / 08
The stop
Waiting for the human
Nothing stops until a person approves. Surface: ASI:One. The wait here was 38 s. The approval carries a one-use id, and the server binds it to this exact candidate.
- action
- stop_original
- candidate hash
- sha256:046b8387f537b14a67525390
- decision
- APPROVED: operator, action, candidate and expiry all match
Free text never authorizes a stop. A change to the candidate voids the approval.
06 / 08
The fence and the count
The fence sits outside the program, in three places, because fencing the queue alone is not enough. Then the count: lost work and finished work are different errors, and both are counted.
- 1Ingress closed. The proxy stops routing to the original. A producer now hears NOT_ACCEPTING. 8 reservations are held frozen so the fence doesn't release them.
- 2Recovery source sealed. Sealed from outside the program, digest 9c135bafa346. A test write was denied.
- 3Epoch advanced. Epoch 1 to 2. The sink now refuses a commit from the old epoch.
- 4The original ends. PID 4188 ends. SIGKILL, exit -9. Still alive: no. Writes after the seal: none.
- 5Sealed source replayed. WARNINGS ON STDERR Replay 1 of a copy, by the original's own binary at -z 1024: 39 jobs came back, and the server counts 39. It wrote 3 warning lines to stderr, the first: 'binlog.1:132: job 2 is too big (1025 > 1024)'. Next: replay.
- 6Sealed source replayed. Replay 2 of a copy, by the original's own binary at -z 2050: 45 jobs came back, and the server counts 45. Nothing on stderr. Next: import.
- 7Recovery rules decide. Import, by the prepared rules (PREPARED reference repair: the labelled fallback, never the default): a clean replay holds every job the journal has pending and every job the live frame showed.
- 8Pending state read. 45 jobs from the sealed source, digest c672eb50a172: 17 ready, 10 delayed, 8 reserved, 10 buried.
- 9Mapper import. The replacement took the pending jobs through the mapper's rule table.
- 10Replacement resumes. Traffic now goes to the replacement, pid 4300, epoch 2.
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.
Under the naive rules, 9 finished messages would reach the sink a second time. The sink has no durable dedup, so duplicates there are UNKNOWN.
- 15
- 0
Attempts are not effects. 159 attempts reached notice-sink; committed effects are UNKNOWN (no durable dedup). The ambiguous-ACK window was 340 ms.
| Sink | Durable dedup | Attempts | Committed effects | Dupes suppressed | Stale epoch rejected | Ambiguous-ACK window |
|---|---|---|---|---|---|---|
| notice-sink | no: effects UNKNOWN | 159 | UNKNOWN | 0 | 3 | 340 ms, 2 messages: msg-0031, msg-0044 |
07 / 08
The return
Starting the old program is not the test. Processing the new work is.
New work
New work accepted by the replacement only
Message: post-1 SYNTHETIC
The way back
HOLD The original did not process the new message: HOLD
the original did not process the message accepted only by the replacement
Approval: APPROVED. operator, action, candidate and expiry all match
08 / 08
The receipt
One receipt. Three separate claims, attempts against effects, the unknowns, the way back, the exact flags.
HOLD
- notice-sink: no durable dedup, effects are UNKNOWN
- notice-sink: 2 messages in the ambiguous-ACK window
- unknown: H-05: delayed jobs across the cutover were not probed
- the original did not process the message accepted only by the replacement
Candidate 046b8387f537b14a. SEED SEED: target, not measured.
Open the receipt