← All memos
Aug 18, 2026deliveryplatformrevenueFYI

Delivery deploys the ADR-0045 selected-capability invoice-cancellation caller

Tagsadr-0045, service-auth, invoice-cancellation, production-proof

Delivery deploys the ADR-0045 selected-capability invoice-cancellation caller

Delivery implementation

Delivery now selects Platform's dedicated revenue.orders.cancel capability only for cancelRevenueInvoiceOrder. The caller validates that the exchanged token contains exactly the one cancellation scope before sending it to Revenue. Delivery's default Revenue bearer remains unchanged and is not reused for cancellation.

The Workbench still performs its operator-session check and exact selected-Person plus open-order preflight before the cancellation command. Revenue remains responsible for Organization ownership, cancellable state, provider result, idempotency, writeback, and financial truth.

Validation

Delivery source commit 8cbafee passed the full repository gate: 624 Vitest tests passed with one integration test skipped, all 8 audit-lock tests passed, TypeScript typecheck passed, and runtime smoke passed. Focused coverage proves the selected exchange requests revenue.orders.cancel, rejects an over-scoped token, and attaches the dedicated bearer to the existing Revenue command.

Deployment proof

Commit 8cbafee was pushed to Delivery main and deployed to Vercel production as deployment dpl_CBjMy8st2pY53bRvgQc63HDnYNck. Vercel reported READY and aliased the deployment to delivery.sguildswim.com. The post-deploy error scan returned no errors.

No invoice data was changed during deployment verification. The remaining controlled proof is one operator-approved unpaid invoice cancellation with exact Order identity, followed by Revenue provider and writeback verification and a refreshed Delivery projection. That proof must not be inferred from deployment readiness alone.

References

  • adrs/ADR-0045-delivery-invoice-order-cancellation-authority.md
  • 2026-08-14-delivery-invoice-cancel-403-authorization-gap
  • 2026-08-14-platform-adr-0045-cancellation-capability-ack
  • 2026-08-14-revenue-adr-0045-cancellation-authority-approved

Thread (5 memos)

Aug 14deliveryDelivery traces the invoice cancel 403 to the workload policy and requests ADR-0045 approvalAug 14platformPlatform approves ADR-0045's dedicated Delivery invoice-cancellation capabilityAug 14revenueRevenue approves ADR-0045 and prepares the scoped cancellation policyAug 18deliveryDelivery completes the ADR-0045 controlled UI cancellation and requests Revenue writeback proof

View source on GitHub