Skip to content

fix(idempotency): stop keeping upstream responses after they stop being usable - #30

Merged
fajarhide merged 1 commit into
mainfrom
fix/idempotency-retention
Aug 17, 2026
Merged

fix(idempotency): stop keeping upstream responses after they stop being usable#30
fajarhide merged 1 commit into
mainfrom
fix/idempotency-retention

Conversation

@fajarhide

Copy link
Copy Markdown
Owner

fix(idempotency): stop keeping upstream responses after they stop being usable

An idempotency row holds the upstream response body so a retry can replay it.
For a mail or a file provider that body is the customer's content.

Reads already stop at 24 hours, so a row past that is unreachable by design.
Nothing deleted it, so it stayed forever: content held with no purpose and no
way to reach it, which is the worst of both.

Expiry now happens on the next write for that workspace. No cron, one extra
round trip, and the workspace that writes is the one that gets cleaned.

Found while writing a privacy policy, where the honest sentence would have had
to be that tool responses are kept indefinitely.

…ng usable

An idempotency row holds the upstream response body so a retry can replay it.
For a mail or a file provider that body is the customer's content.

Reads already stop at 24 hours, so a row past that is unreachable by design.
Nothing deleted it, so it stayed forever: content held with no purpose and no
way to reach it, which is the worst of both.

Expiry now happens on the next write for that workspace. No cron, one extra
round trip, and the workspace that writes is the one that gets cleaned.

Found while writing a privacy policy, where the honest sentence would have had
to be that tool responses are kept indefinitely.
@fajarhide
fajarhide merged commit 0aeee5a into main Aug 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant