A six-part engineering guide: from individual prompts to specification-driven probabilistic software.
Read: Prompt engineering is becoming programming →Governance: humans, approval and the destination
Human approval before irreversible actions, a fully declared prompt loop, and the destination: specification-driven probabilistic software engineering.
Human approval before irreversible actions
Human approval before irreversible actions is both your risk control and, in many markets, your compliance story. The two easy mistakes are equally damaging: approving everything destroys the efficiency the system was built for, and approving nothing exposes the business to actions it cannot take back. The workable middle is a short, explicit list of irreversible actions, each with a preview of the impact and a named person accountable for the decision.
A prompt loop can be declared like a program
Everything this guide covered, in one program definition. Natural language remains part of the system, but the surrounding behaviour is declared, validated and enforced.
When the whole loop is declared, including goal, inputs, permitted tools, limits, stop conditions and verification, the system becomes reviewable by people who do not read code. That matters in practice, because legal, compliance, security and the business owner all have legitimate questions about autonomous behaviour, and a specification is the only artefact that answers them without a walkthrough of the source. It also makes handover between teams a document transfer rather than a knowledge-transfer project.
Specification-driven probabilistic software engineering
The mature form of the discipline: every layer above and below the model is declared, and the model's freedom lives inside them.
typed specifications
+ deterministic orchestration
+ constrained model decisions
+ controlled side effects
+ external verification
+ observable execution
+ human governance
The prompt becomes comparable to a function body: an implementation detail. The durable system is the architecture around it.
Specifications, evaluation sets, contracts, capability boundaries and governance keep their value across model generations. Collections of tuned prompts do not, because they are calibrated to a model that will be replaced. This is why the useful measure of progress is not how many prompts or agents are in production, but how much of the system is declared and verified. Teams that internalise this stop rewriting their AI features every time the underlying model changes.
More articles
Design reliable UX for connected devices across hardware, apps, BLE, Wi-Fi, cloud, onboarding, errors, and recovery.
Read: UX for Connected Devices: Designing Experiences Across Hardware, Apps, Connectivity, and Cloud →Hardware companion apps: hard parts, partner skills, and questions that separate specialists from agencies.
Read: How to Choose the Right Companion App Partner for Your Hardware Product →