#46 FTX-46: apply_action rewrite with row locking

closed critical Created 2026-07-23 15:08 · Updated 2026-07-23 15:49

Description

Edit
Single transaction: lock decision FOR UPDATE then task FOR UPDATE (global lock order); guard non-terminal+actionable; assignee/SoD checks; quorum re-evaluated from persisted tasks LEFT JOIN actions; terminalize() as sole terminal-state setter with dedup_key'd terminal webhook enqueue. Race tests: concurrent double-approve -> one 200 one 409; partial unique on completing actions. Phase 2.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...