Spec-Driven Development
Turn a business rule into a spec an agent can act on
Write acceptance criteria and verify the result in a .NET application.
Pick a focused feature and document the context, domain language and entry points. In an advertising pipeline, a booking file with no order ID must be rejected before conversion and must not emit a booking.
Add a valid example and distinct failure cases. Specify what happens when the same file is replayed. If duplicate handling still requires a business decision, record it as an open question.
Ask the agent for a plan that fits the repository, then have it tie each change and test to a scenario. GitHub Spec Kit offers structured workflows if you want to formalize those steps.
In review, follow the file through to the downstream result. A parser test covers the missing ID. A pipeline test can also verify that no booking was published.
All articles