Retain epoch-scoped request results and detect conflicting retries #6

Closed
opened 2026-12-02 18:14:39 +00:00 by faumaray · 1 comment
Owner

The in-memory Messaging queue at 7b0fea6095f603f9e1904f66dfdc7752f4be4792 can deduplicate message IDs and return a publication sequence. A host handling an idempotent operation also needs to replay an application-defined result (including a rejected outcome) and detect reuse of a key with a different payload.

Please consider a reusable ledger keyed by epoch, trusted client and request ID, with caller-defined payload equality and result data. Exact repeats should receive the recorded answer without executing again. Changed-payload reuse or an obsolete epoch should fail before side effects. Specify capacity, admission, and any archival behavior so old request numbers cannot execute a second time after memory cleanup. Test a delayed retry after newer operations, a failed operation, payload conflict, rollover to a new epoch, and capacity pressure.

The game can adapt its session command dispatcher to the library when the same duplicate, conflict, retention and rollback tests pass. City-level authorization and operation effects stay with the caller.

The in-memory Messaging queue at `7b0fea6095f603f9e1904f66dfdc7752f4be4792` can deduplicate message IDs and return a publication sequence. A host handling an idempotent operation also needs to replay an application-defined result (including a rejected outcome) and detect reuse of a key with a different payload. Please consider a reusable ledger keyed by epoch, trusted client and request ID, with caller-defined payload equality and result data. Exact repeats should receive the recorded answer without executing again. Changed-payload reuse or an obsolete epoch should fail before side effects. Specify capacity, admission, and any archival behavior so old request numbers cannot execute a second time after memory cleanup. Test a delayed retry after newer operations, a failed operation, payload conflict, rollover to a new epoch, and capacity pressure. The game can adapt its session command dispatcher to the library when the same duplicate, conflict, retention and rollback tests pass. City-level authorization and operation effects stay with the caller.
Author
Owner

Implemented on branch issue/6-request-ledger (commit afd4d99).

Void::Messaging::RequestLedger added: epoch-scoped idempotency with payload-conflict detection, replay of rejected outcomes and explicit capacity/archival semantics.

Branch: https://git.faumaray.com/Void/Library/src/branch/issue/6-request-ledger
Merge request: https://git.faumaray.com/Void/Library/pulls/new/issue/6-request-ledger

Implemented on branch `issue/6-request-ledger` (commit `afd4d99`). `Void::Messaging::RequestLedger` added: epoch-scoped idempotency with payload-conflict detection, replay of rejected outcomes and explicit capacity/archival semantics. Branch: https://git.faumaray.com/Void/Library/src/branch/issue/6-request-ledger Merge request: https://git.faumaray.com/Void/Library/pulls/new/issue/6-request-ledger
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#6