INTENT / RECOVERY · RETENTION BOUNDARY
키보다 먼저 사라지는 기록When the key outlives the record
중복 처리를 막으려고 재시도에 같은 식별자(키)를 붙였습니다. 응답을 잃은 사이 상대가 중복 방지 기록을 지웠다면, 같은 키로 다시 보내도 될까요?Retries reuse one identifier—a key—to prevent duplicate work. If the response is lost and the receiver later deletes its deduplication record, is that same-key retry still safe?
두 실행을 나란히 비교하기 →Compare the two recorded runs side by side →
기록의 무결성과 근거 관계를 확인하고 있습니다.Verifying the recording and its evidence relationships.
기록과 표시 조건이 일치하지 않거나 파일을 읽지 못했습니다. 이 상태에서는 실험의 결론과 수치 그림을 표시하지 않습니다.The recording does not match this presentation, or a required file could not be read. Experimental conclusions and numerical figures are hidden.
원본 JSON 열기Open raw JSON · 기록 출처Recording provenance
응답 유실 뒤의 재시도 정책을 확인하려고 HTTP로 연결한 두 프로세스를 만들었습니다. 요청을 보내는 쪽은 요청과 확인 번호를, 수신 측은 처리 내역과 중복 방지 기록을 각자의 SQLite DB에 저장합니다. 두 DB를 묶는 트랜잭션은 없습니다. ‘효과’는 수신 측에 저장된 처리 한 건입니다. 재시도를 멈추면 미확정 상태가 남고, 계속하면 중복 효과가 생길 수 있다는 선택을 비교합니다.
This retry-policy experiment connects two processes over HTTP. The local sender stores requests and receipts; the receiver stores completed operations and deduplication records. Each owns a SQLite database, with no transaction spanning both. An “effect” is one operation recorded by the receiver. Stopping retries can leave an unresolved outcome; continuing can create a duplicate effect.
01같은 관측, 다른 이력The same observations. Different histories.
기록된 두 실행을 비교해 보겠습니다. 첫 실행에서는 상대 시스템이 아무 효과도 저장하기 전에 연결을 끊습니다. 두 번째에서는 효과를 저장한 뒤 응답을 잃고, 나중에 키에 연결된 응답 기록을 삭제합니다. 이후 조회 결과는 둘 다 absent입니다.
오류 메시지만 비슷한 것이 아닙니다. 같은 요청과 같은 키를 사용한 두 실행의 로컬 HTTP 응답 본문과 전체 DB 테이블이 그대로 같습니다. 비교를 위해 식별자를 바꾸지도 않았습니다. 하지만 상대 기록의 효과는 한쪽이 0건, 다른 쪽이 1건입니다. 두 실행 모두 로컬에는 확인 번호가 남아 있지 않습니다. 아래 그림의 감사기는 실행 후 양쪽 DB를 읽는 검증 프로그램입니다.
Consider two recorded executions. In the first, the downstream owner closes the connection before committing anything. In the second, it commits an effect, loses the acknowledgement, and later prunes the retained response. A subsequent lookup returns absent in both executions.
This is stronger than two similar error messages. The same intent and key produce identical local HTTP response bodies and identical local database tables, without renaming identifiers. Yet the downstream journals contain zero effects in one execution and one in the other. The local owner has no receipt in either case. The auditor in the figure below is a checking program that reads both databases after the run.
재시도 정책이 가진 정보AVAILABLE TO THE RETRY POLICY
unknownabsentneeds-reconciliation
로컬 응답과 모든 로컬 테이블이 동일합니다. 식별자 치환은 없습니다.Local responses and all local tables match exactly. No identifier normalization.
감사기만 보는 이력 AAUDITOR-ONLY HISTORY A
상대 효과remote effects
효과 저장 전에 연결 종료Connection lost before commit
원본 효과 목록Original effect rows →감사기만 보는 이력 BAUDITOR-ONLY HISTORY B
상대 효과remote effect
효과 저장 후 응답 유실, 이후 키 삭제Effect committed; acknowledgement lost; key later pruned
원본 상대 기록Original downstream journal →조회 API는 보존 중인 중복 방지 기록을 반환할 뿐, 과거의 모든 처리를 보여 주지는 않습니다. 감사기의 DB 접근 권한을 정책에도 있다고 가정하면, 구현하지 않은 복구 수단에 의존하게 됩니다.
그래서 보호 정책은 재전송 기한 이후 요청을 미확정 상태로 남깁니다. absent를 실패로 바꾸거나, 키를 교체하거나, 조용히 다시 보내지 않습니다. 이 정책에서는 실제로 처리되지 않은 요청도 자동으로 해결할 수 없습니다. 효과가 0건이었던 실행에서도 요청이 미확정 상태로 남았습니다. 상태 이름은 needs-reconciliation입니다. 이 실험이 실제 운영자의 판단 절차까지 구현한 것은 아닙니다.
The lookup returns retained deduplication records, not every past operation. Giving the policy the auditor’s database access would assume a recovery mechanism this system does not have.
The guarded policy therefore leaves the intent unresolved after its retry cutoff. It does not turn absent into failed, replace the key, or silently send again. That refusal has a cost. In the zero-effect execution, a legitimate request remains unresolved too. The state is called needs-reconciliation; this experiment does not implement an operator workflow that can resolve it.
02보낼 수 있는 시점과 도착하는 시점Permission to send is not an arrival guarantee.
로컬 시스템은 최초 전송 전에 첫 전송 시각, 알려진 최소 보존 기간, 가정한 시간 여유로 계산한 기한을 저장합니다. 논리 시각 10,020의 재시도는 기한 10,900 이전이므로 허용됩니다. 로컬에서 전송 기한을 지켜도, 상대 시스템에 도착하는 시점까지 제한할 수는 없습니다.
두 번째 비교에서는 HTTP 중계가 재시도 요청의 전달을 보류합니다. 부모 프로세스가 양쪽 실험 시계를 12,000으로 진행하고, 상대 시스템에서 만료된 키를 삭제합니다. 그 뒤에야 중계가 동일한 요청을 전달합니다. 수신자는 중복 방지 기록을 더 이상 갖고 있지 않으므로 효과를 새로 만들고 새 확인 번호를 돌려줍니다. 로컬 결과는 1건입니다. 상대 시스템의 효과는 2건입니다.
Before the first send, the local owner durably records a cutoff derived from its first-dispatch time, the known minimum retention, and an assumed timing margin. A retry at logical time 10,020 is permitted because the cutoff is 10,900. But permission to send is not a guarantee about when the receiver will accept it.
In the second comparison, an HTTP relay holds that retry. The parent advances both fixture clocks to 12,000 and instructs the downstream owner to prune the expired key. Only then does the relay forward the same request. The receiver no longer has the deduplication record, so it creates another effect and returns a new receipt. The local owner records one grant. The downstream journal contains two effects.
주입한 논리 시각 · 시간 간격을 그린 그래프가 아닙니다INJECTED LOGICAL CLOCKS · NOT A MEASURED-TIME AXIS
-
정책 · 전송 판단POLICY · DISPATCH DECISION
<
저장된 로컬 기한 안에서 재시도 전송Retry sent before the stored local cutoff
전송 기록Dispatch record → -
제어기 · 순서 관측CONTROLLER · OBSERVED ORDER
보류 → 시계 진행 → 삭제 완료 → 전달Hold → advance clocks → acknowledge prune → forward
중계가 같은 attempt-2를 붙잡았다가 전달The relay holds and then forwards the same attempt-2
중계 관측Relay observation → -
감사기 · 상대 이력AUDITOR · DOWNSTREAM HISTORY
>
기록 삭제 뒤 새로운 효과와 확인 번호 생성After pruning, a new effect and receipt are created
두 번째 효과 기록Second-effect record →
같은 키로 상대 효과가 중복 실행됐습니다.The same key produced a second remote effect.
상대 효과remote effects
로컬 결과local grant
재시도는 로컬 전송 기한 안에 보냈지만, 상대 시스템에서는 같은 키로 두 번째 처리가 일어났습니다. 여기의 숫자는 주입한 논리 시각이며 네트워크 지연 측정값이나 벤치마크가 아닙니다. 중계의 보류와 해제로 순서를 만들었고, 계산에 넣은 시간 여유가 실제 통신 지연을 감당한다고 검증한 것은 아닙니다. 이미 전송한 요청은 송신자의 기한이 지났다고 회수되지 않습니다.
The retry was sent before the local cutoff, yet the receiver processed the same key twice. These numbers are injected logical clock values, not measured network delay or a benchmark. The relay controls the schedule; the configured margin establishes no real transit bound. A request already in flight is not revoked when its sender’s cutoff passes.
03주장을 실제 기록까지 따라가기Follow the claim into the recording.
기록 선택은 읽기 전용입니다. 재생·시뮬레이션 없이 원본 JSON의 실제 위치를 보여 줍니다.This selector is read-only. It shows actual locations in the raw JSON, with no replay or simulation.
선택한 원본 JSON 펼치기Expand the selected raw JSON
각 스트림의 순번은 해당 스트림 안에서만 비교합니다. 로컬·상대 기록과 부모 관측의 번호를 하나의 전역 순서로 합치지 않습니다. 상대 DB와 전체 이력은 종료 후 감사기만 읽으며, 정책의 조회 권한이 아닙니다.Sequence numbers are ordered only within their own stream. Local journals, downstream journals and parent observations do not form one global numbered order. The downstream database and complete history are post-stop audit evidence, not policy lookup access.
04기록이 없을 때 내릴 수 있는 판단Deciding what to do when the record is missing
검사기는 상대 기록을 순서대로 재구성합니다. 중복 방지 기록을 최소 보존 기간 전에 지운 실행은 유효한 반례로 인정하지 않습니다. 로컬 결과는 바로 그 시도에서 받은 확인 번호와 연결합니다. 같은 키로 발급된 과거 확인 번호가 있어도, 이번 시도의 결과라는 근거로 사용할 수는 없습니다. 로컬 1건의 기록이 내부적으로 일관돼도, 늦게 도착한 조건의 상대 효과는 2건이라고 명시합니다.
실제 제공사와 연동한 실험은 아니며, 모든 요청이 정확히 한 번 처리된다는 증명도 아닙니다. 최소 보존 기간이 지났더라도 기록이 남아 있으면, 조회해서 기존 확인 번호를 복구할 수 있습니다. 기한이 지났다는 사실만으로 기록이 사라지지는 않습니다. 그러나 기록이 없다는 응답만으로는 미처리와 처리 후 중복 방지 기록 삭제를 구분할 수 없습니다. 이 조건에서는 조회 결과만 보고 재시도를 결정할 수 없습니다.
The checker reconstructs retained records in journal order. A run that prunes before minimum retention is not a valid expiry counterexample. It binds the local grant to the positive receipt from that exact attempt. Merely finding some earlier receipt under the same key is insufficient. The recorded comparison explicitly marks the late-arrival case as two remote effects, even though one local grant is internally consistent.
These synthetic runs do not integrate with a real provider or prove exactly-once processing. A record that remains after the minimum retention period can still return the original receipt; expiry alone does not erase it. But a missing record cannot distinguish an unprocessed request from a completed one whose deduplication record was deleted. Under these conditions, the lookup alone cannot tell the sender whether to retry.
같은 키만으로는 부족합니다. 효과를 만드는 시스템이 그 키를 구별할 기록을 아직 갖고 있어야 합니다.Reusing the key is not enough. The receiver must still retain the record that identifies its previous result.
시계는 같은 속도와 기준점을 가정합니다. 응답 유실·보존 기한·중계 순서는 실험에서 주입했으며, 실제 서비스의 전송 상한이나 시계 신뢰를 입증하지 않습니다. 기록은 신뢰한 관측이며 해시는 실행 진위를 인증하지 않습니다.The clocks assume equal rate and zero offset. Lost acknowledgements, retention and relay scheduling are injected fixtures; they establish neither a real transit bound nor clock trust. Journals are trusted observations, and hashes do not authenticate execution.
고정된 기록의 출처와 검증 범위Capture provenance and validation scope
- 엔진 소스Engine source
c60801f969ab0223812bb4fa609c2de3e7651c91- 완료 시각Completed
- 2026-10-16T18:29:09.869Z
- Runtime
- Node 24.19.0 · SQLite 3.53.3 · Windows x64
- Raw SHA-256
-
c700118d900858be573d6924be16ae96ffe95369a57a9aa01aed0f1c83dd8fdd
이 페이지는 과거 실행을 설명합니다. 현재 소스의 재실행 결과가 아닙니다. 페이지에 저장된 예상값은 선택한 원본 기록과 기록 간의 관계를 확인하는 데 사용합니다. 새로 측정한 값은 아닙니다. 전체 감사기는 소스 저장소에 있고, 이 페이지는 두 비교에 필요한 관계만 다시 확인합니다.This page describes a historical run, not a rerun of the current source. Fixed expected values are presentation assertions, not additional measurements. The full auditor lives in the source repository; this page rechecks only the relationships needed for these two contrasts.
23개 원본 선택 위치All 23 record selectors · 출처 및 파일 해시Provenance and file hashes
-
Stripe API v1 · Idempotent requests
키가 삭제된 뒤 재사용하면 새 요청이 될 수 있습니다.Reusing a key after pruning can create a new request. -
PayPal · Idempotency
재시도 안내는 각 API가 ID를 보존하는 기간에 연결됩니다.Retry guidance depends on how long each API retains the ID.
이 실험은 독자적인 가상 계약을 사용하며 제공사의 구현을 재현하지 않습니다.This experiment uses its own synthetic contract, not a reproduction of either provider.