Discussion about this post

User's avatar
Albert / QuantaCortex's avatar

Tim, the null-price example is the clearest argument for making business policy executable. A dependency test can stop a payment module from importing the wrong module, but it cannot tell an agent that a negotiable-price listing must remain ineligible for payment. I would put that rule beside the use case as a named invariant, with one positive example, one rejected example, and an owner who can approve a policy change. Then a feature slice gives the agent a route through the code while the invariant supplies a stop condition. If it proposes to accept a null price, the test should fail with the domain reason, not merely a generic assertion error. I would also version the rule with the business decision record, so a legitimate change is reviewed as a policy change before it becomes a code edit. Which domain policy in your transactions area would you encode first to test whether this actually reduces architectural review time?

No posts

Ready for more?