Skip to content

docs(9513): REL-03 idempotency identity and stable receipts design record - #15240

Merged
dezren39 merged 1 commit into
mainfrom
lane5/9513-rel03-record
Nov 25, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane5/9513-rel03-record

Conversation

@dezren39

@dezren39 dezren39 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #9513

Before: the REL-03 slice of #9209 had only its one-line component row. The landed DSP-01 acceptance ledger replays any repeat of a key without comparing intent, and its key namespace is shared by every principal, so an edited /fleet priority comment would come back as a successful duplicate of the old value.

After: a design record fixes the idempotency scope as (principal_ref, authority_id, idempotency_key), has the ledger recompute the request digest, and runs validate, digest check, authorization and lookup in that order. Same key with the same digest replays the stored receipt and writes nothing. Same key with a different digest is a conflict with IDEMPOTENCY_KEY_REUSED. The receipt has an immutable identity block, legacy operations stay uncertain, and the record states the exact delta to operations.rs, with 17 named pmo_rel_ tests.

How: one new record under doc/ plus its index line in doc/README.md. It is a design proposal only. It authorizes no code, storage or migration, and the issue stays open as the tracker.


Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…cord

Design of record for the REL-03 slice of #9209: principal- and
authority-scoped idempotency keys, ledger-recomputed request digest,
replay versus conflict, the immutable receipt identity block, legacy
handling and the delta to the DSP-01 acceptance ledger.

Refs #9513

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 marked this pull request as ready for review November 25, 2026 20:48
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 1c6c753 into main Nov 25, 2026
1 check passed
@dezren39
dezren39 deleted the lane5/9513-rel03-record branch November 25, 2026 20:48
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 29, 2026
…k; correct CEN-07 tuple conformance to REL-03 §3.4

The #15707 conformance command was red on main (run 46283950922:
14 passed, 2 failed, both OperationIdReused on op_conformance_1).
Adjudicated against the REL-03 design record (#9513, merged in
#15240), which the receipt fixture itself names as contract owner:

- Dry runs: record §4 step 5 defines the dry-run branch over the
  scoped lookup alone (absent scope -> would_accept); the §3.4
  collision rule governs first acceptance, which a dry run never
  performs. accept() now returns WouldAccept for a dry run over an
  absent scope before the operation_index check. Unit oracle added
  to pmo_rel_operation_id_collision_conflicts.

- Tuple scope: record §3.4 makes operation_id globally unique and
  its oracle list states a new scope presenting an existing
  operation_id -> OPERATION_ID_REUSED. The conformance tuple test
  asserted acceptance instead; it now asserts the refusal (nothing
  written) and that the same key under another principal / another
  key accepts anew under a fresh operation_id, which is the tuple
  claim the test exists to pin.

Refs #15707, #9513, #9437
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.

2 participants