Repository navigation
Conversation
…#13698) ConversionUsage keyed posted volume by authorisation_id alone, but the ID is scoped to its issuer (#2290): two LPs sharing one number shared a usage bucket, so one issuer exhausting its cap refused the other's untouched authorisation with CapExhausted. The book is now keyed by (IssuerId, authorisation_id); record_posted / used_volume take the issuer, and verify reads usage for the folded authorisation's issuer. Adds the posted_usage_is_scoped_to_issuer regression test: A exhausts id 7, B's authorisation 7 still verifies with its full cap, and A remains capped.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
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. |
|
AUDIT-7 Lane 1 (PR-SWEEP, tracking #13872): SUPERSEDED — duplicate of #13820. Both PRs implement the same #13698 fix (key ConversionUsage by (IssuerId, authorisation_id)) in the same file, pkgs/id/src/currency/conversion.rs, with the same regression test. #13820 was merged (merge commit a1c68af) — it is the later PR with the broader verification (cargo test -p id --lib currency: 179 passed, vs 16 conversion tests here). This PR is left open only because a lane does not close another lane's PR without its owner; the correct disposition is CLOSE as superseded by #13820 (its diff will now conflict with main on the same lines). No further work should be done on this branch. |
|
Closed as superseded. |
Closes #13698.
ConversionUsage keyed posted volume by authorisation_id alone, but the ID is scoped to its issuer (#2290): two LPs sharing one number shared a usage bucket, so one issuer exhausting its cap refused the other's untouched authorisation with CapExhausted.
The book is now keyed by (IssuerId, authorisation_id); record_posted / used_volume take the issuer, and verify reads usage for the folded authorisation's issuer. Adds the posted_usage_is_scoped_to_issuer regression test: A exhausts id 7, B's authorisation 7 still verifies with its full cap, and A remains capped.
Verification (remote dispatch, fleet-command run 45274713347 — fleet queue dispatch is blocked by TLS defect #13185): cargo test -p id --lib currency::conversion — 16 passed, 0 failed.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T22:12:04Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/github-work/code-13698", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/github-work/code-13698", "repo": "developing-today/code", "branch": "xaltha/13698-currency-issuer-usage", "sha": "9b10bd53ce05ff1d04b1213acd65129bd8cfaed9" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.