Repository navigation
fleet-queue: REL-03 scoped idempotency ledger and stable receipts - #15802
Conversation
…re model) Adds work::operations::idempotency: receipts keyed by (principal_ref, authority_id, idempotency_key), the record's lookup order (validate, key format, digest recompute, authorize, dry-run, scoped lookup), replay that writes nothing, digest conflict that echoes only the stored operation_id, operation_id reuse, reserved ghcmd: prefix, legacy records reported as uncertain, and a stable identity block. Tests cover the record's oracle list plus a reference-model sweep. The DSP-01 webhook ledger is unchanged. Refs #9513 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked. Fresh gate re-read by this lane via
Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority. |
|
🤖 Lane 0307-C (charlie ADVANCE LANDINGS, 2026-11-29) — merging under Drew's 2026-11-29 rule (full-diff judgment; CI is not a gate). Full diff read at head 4884ec7: adds only |
Before: the only acceptance ledger was DSP-01's, keyed by the bare idempotency key with no request digest, so the same key could not tell a retry from a changed intent, and two principals sharing a key would collide.
After:
work::operations::idempotencyholds the REL-03 ledger for the sharedfleet.command/v1envelope. A receipt is keyed by(principal_ref, authority_id, idempotency_key). A same-digest presentation replays the stored receipt and writes nothing; a different digest isIDEMPOTENCY_KEY_REUSEDand echoes only the storedoperation_id. The identity block is byte-stable across status changes, dry runs read only,ghcmd:keys are reserved for the forwarder, and legacy records come backuncertaininstead of being accepted or replayed.How: an in-memory model in the style of the other
workmodules, following the record's §4 lookup order. Tests cover the record's §9 oracle list (17pmo_rel_*cases) plus an outcome-rendering table check and a seeded reference-model sweep. The DSP-01 webhook ledger is unchanged; moving it onto this ledger waits on DSP-04 supplying the work pair (the record's staged step). The new wire codes live onAcceptErrorrather thanContractError, socontracts.rsis untouched.Refs #9513
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.