Complexity: Medium (150)
Description
batch_create_packages allows bulk creation, but unwinding is single-package only via revoke
(line ~1055) and refund (line ~1090). Recovering from a bad bulk import therefore takes as many
transactions as the import created, which is slow precisely when speed matters.
Acceptance Criteria
- Batch revoke and batch refund accept bounded lists of package ids
- Authorization is checked per package
- Partial success semantics match the batch create convention
- Aggregates and locked/claimed totals stay consistent
- Tests cover partial failure and idempotent re-invocation
Complexity: Medium (150)
Description
batch_create_packagesallows bulk creation, but unwinding is single-package only viarevoke(line ~1055) and
refund(line ~1090). Recovering from a bad bulk import therefore takes as manytransactions as the import created, which is slow precisely when speed matters.
Acceptance Criteria