Maker-checker sounds simple: one person prepares a change, a different person approves it. In code it tends to start as a
boolean approved column and an if (user.id !== createdBy) check. That holds until an auditor asks who rejected this last
March, and why, or until the approval limit changes and nobody can say which rule applied to an old request.
Here is a small model that has held up for us across purchase orders, vendor onboarding and credit approvals.
1. Requests are immutable proposals, not rows you edit
Treat each request as a proposal with a version. The maker can revise it, but a revision creates a new version; the checker
always approves a specific version.
{
"requestId": "PO-1042",
"version": 3,
"type": "purchase_order",
"amount": 480000,
"currency": "INR",
"preparedBy": "user:anita",
"payloadHash": "sha256:9f2c…"
}
Approving PO-1042 v3 means nothing can change underneath the approval. If the amount is edited, it becomes v4 and needs a
f
Discussion
Leave the first comment
Be the first to leave a mark on this discussion.