lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit a73549a79288a89f293f0cc2bd7fe56497f4ce0f
parent 88bc8b04cb68a732aaca63c79037238d80882d9f
Author: triesap <tyson@radroots.org>
Date:   Sat, 18 Jul 2026 11:51:54 +0000

outbox: remove a retired receipt identifier

- Rename the enqueue result to describe its persisted trade operation.
- Keep retired V1 public event vocabulary out of active source.
- Preserve defensive storage corruption checks without behavior changes.
- Verify hygiene, strict Clippy, outbox tests, and the xtask policy gate.

Diffstat:
Mcrates/outbox/src/store.rs | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/crates/outbox/src/store.rs b/crates/outbox/src/store.rs @@ -4295,7 +4295,7 @@ mod tests { )) .await .expect("signed trade insert without idempotency key"); - let trade_receipt = outbox + let trade_operation = outbox .enqueue_trade_mutation_operation(trade_mutation_input( &canonical, trade_draft, @@ -4393,31 +4393,31 @@ mod tests { .expect("disable check constraints for defensive decoding"); sqlx::query("UPDATE outbox_operations SET trade_id = 'invalid' WHERE operation_id = ?") - .bind(trade_receipt.operation_id) + .bind(trade_operation.operation_id) .execute(outbox.pool()) .await .expect("corrupt trade id"); assert!( outbox - .get_operation(trade_receipt.operation_id) + .get_operation(trade_operation.operation_id) .await .is_err() ); sqlx::query("UPDATE outbox_operations SET trade_id = ?, mutation_id = 'invalid' WHERE operation_id = ?") .bind(canonical.envelope.trade_id.as_str()) - .bind(trade_receipt.operation_id) + .bind(trade_operation.operation_id) .execute(outbox.pool()) .await .expect("restore trade id and corrupt mutation id"); assert!( outbox - .get_operation(trade_receipt.operation_id) + .get_operation(trade_operation.operation_id) .await .is_err() ); sqlx::query("UPDATE outbox_operations SET mutation_id = ? WHERE operation_id = ?") .bind(canonical.mutation_id.as_str()) - .bind(trade_receipt.operation_id) + .bind(trade_operation.operation_id) .execute(outbox.pool()) .await .expect("restore mutation id");