Quick Take
Spec-driven AI development gives coding agents an explicit description of intended software behaviour. For mission-critical software, that specification is necessary but insufficient: agents need risk-based autonomy and protected requirements, generated implementations need independent verification, and release decisions need traceable evidence of operational readiness. Assurance-Driven Agentic Development is a proposed engineering approach that connects these controls to resilient architecture, independent operating limits and recovery. The objective is to control both the engineering environment and the operational system, rather than assume that passing tests makes critical software dependable.
Imagine an AI coding agent developing a new function for an energy management system. The requirement looks straightforward: optimise battery charging and discharging using electricity prices, available capacity and predicted consumption. The agent produces a specification, an implementation plan, source code and automated tests. Everything passes, and the functionality performs exactly as expected in the simulated scenarios.
Then the electricity price feed stops updating.
The optimisation software continues calculating its decisions using yesterday’s prices. The values themselves are still within the expected range, so a check on their numerical validity will not detect the problem. Nothing crashes and no exception is raised. The system is doing precisely what its specification describes; unfortunately, nobody specified what should happen when the information becomes stale.
This hypothetical example illustrates a genuine engineering problem. The failure may originate in an incomplete understanding of the environment in which the software must operate rather than in badly written code. If the same agent generated the specification, implementation and tests, the omission may be reflected consistently across all three. A successful test suite can then provide considerable confidence in the wrong thing.
Spec-Driven Development (SDD) offers a way to communicate requirements to coding agents and preserve engineering intent. Earlier articles discussed spec-driven engineering versus vibe coding and examined whether specifications actually improve AI-generated software. When software supports critical operations, however, we need to establish that both the development process and the resulting software can be trusted. This article concerns agents used to develop software, rather than AI agents making operational decisions at runtime. The latter would require its own risk assessment and assurance.
Mission-Critical vs Safety-Critical Software: Risk-Based Agent Autonomy
Mission-critical software supports activities whose interruption or incorrect operation can seriously affect an organisation’s essential functions. Payment processing, public transport, telecommunications, hospital information systems and energy infrastructure all contain examples. Safety-critical software has a more specific role: its failure can contribute to unacceptable risks to people, the environment or other protected interests. Depending on the application and regulatory framework, it may be subject to formal functional safety requirements. The categories can overlap, but they are not interchangeable.
Consider three components of an energy management platform. A forecasting dashboard may be operationally important without directly controlling equipment. A battery optimisation service may propose dispatch decisions, while independent protection mechanisms prevent dangerous physical conditions. The assurance required for each depends on what it can influence, how faults propagate and what safeguards remain effective if it fails. That determination belongs in a system-level risk assessment.
The same reasoning should determine how much autonomy an AI coding agent receives. The UK National Cyber Security Centre’s June 2026 guidance on the vibe coding spectrum recommends adjusting human involvement to the risks of the software being developed. An agent might have considerable freedom to prepare documentation or implement a low-risk reporting function, while changes to authentication, operational control or safety-related functions demand closer review, stricter permissions and stronger evidence. Some activities may be unsuitable for agentic execution under the applicable assurance regime.

Criticality applies to individual changes as well as to the system as a whole. Even a minor change to a shared library or build configuration may affect a critical function. The permitted scope of AI assistance should follow from the consequences of the change and the controls available to detect or contain its effects.
A Specification Must Describe What Must Never Happen
Software specifications tend to concentrate on the behaviour we want to achieve. In mission-critical environments, they must also describe behaviour when assumptions about the operational environment no longer hold. Returning to the battery example, the engineering team needs to determine how the system handles late measurements, conflicting commands, unavailable connections and discrepancies between the installation and its digital representation.
Some requirements can be expressed as invariants: properties that must remain true throughout relevant operating conditions. An optimisation service may be required never to issue a control request outside an independently defined operating envelope, or to stop issuing new commands if essential measurements exceed their permitted age. Actual limits and fallback behaviour depend on the equipment, operating conditions and system design. They should be established by qualified domain experts, not invented by a language model because a specification template happens to contain an empty field.
An agent can identify missing scenarios, compare requirements and turn agreed constraints into testable statements. It can propose a data freshness requirement, but determining the permitted age is a domain decision. The specification should also establish command authority, trusted inputs, the capacity that must remain available after failure and conditions for resuming automated operation or requiring human intervention. Unresolved assumptions affecting critical behaviour need to be addressed by the responsible people before accepting the affected work.
There is a further complication. An agent may discover an inconsistency and propose a correction, but it should not be able to change an approved operational constraint simply to make its implementation pass. Approved requirements, architectural boundaries, security policies and independent acceptance criteria need version control, named owners and protected change processes. The agent can propose amendments; the responsible authority decides whether to approve them. A reviewed specification should describe what a change is meant to accomplish and what it must leave intact, in line with the approach to specification review and layered controls described in AWS’s 2026 control framework for AI coding agents.
Architecture Still Matters More Than Generated Code
Spec-driven development provides a structure for organising engineering work, but implementation discipline alone cannot make a critical system dependable. Architecture determines which components can influence physical processes, how faults propagate and how operational control is maintained or recovered when dependencies fail. Choosing between standard and custom energy management systems is already an architectural decision; deciding what either system is allowed to control is a separate responsibility.
An energy management platform may combine cloud optimisation, local controllers, gateways, analytics and operational interfaces. These components have different failure characteristics. A cloud optimiser may produce efficient dispatch decisions, but it does not follow that it should have unrestricted control over the installation. Where risk requires it, independent mechanisms must enforce operating limits even when the optimiser sends an invalid command or becomes unavailable. The design must consider common dependencies and the actual independence of the mechanisms, rather than merely drawing two separate boxes on an architecture diagram.
Losing a cloud connection should not automatically mean losing all local operating capability. In some situations, a predefined local mode can preserve essential services, perhaps at reduced capacity. In others, a controlled shutdown may be the safest response. Fail-safe behaviour and operational continuity are distinct but related objectives; continuing operation is acceptable only within the conditions established by the risk assessment. Recovery requires explicit decisions about state reconciliation, restored data validity, command authority and human intervention. The joint international principles of operational technology cybersecurity emphasise the relationship between physical safety, process knowledge, security and continuity. The architectural case for simple, predictable local edge computing follows the same reasoning: not every decision needs to depend on a central service.
These architectural decisions establish the boundaries within which generated software operates. The agent should not redefine them merely to satisfy a functional requirement. The 2026 research preprint Spec-Driven Development as Prescribed and as Practiced examines the practical use of implementation details in specifications. For critical software, keeping stable system properties distinguishable from replaceable implementation choices helps prevent a library change or refactoring from inadvertently removing an operational constraint.
Who Verifies the Specification?
An agent can generate specifications, implementations and tests that agree with one another without establishing whether the intended behaviour is appropriate. In the battery example, a unit test may confirm the calculation produces the correct result for its input, an integration test may establish that the result reaches the next component and an acceptance test may confirm it satisfies a documented business rule. All three can pass because none necessarily addresses the age of the input.
Verification asks whether the implementation meets its requirements; validation asks whether the requirements and resulting system address the actual need. The established discipline of independent verification and validation, exemplified by NASA-STD-8739.8B within NASA’s own scope, provides a useful precedent. An independent test basis may come from risk assessments, domain expertise, approved requirements and engineering models. Asking another AI agent to review the output can help, but it does not establish independence if both rely on the same incomplete specification.

Agents can produce and maintain developer tests, but critical acceptance criteria and the rules governing their execution should be protected from unapproved changes. Depending on risk, verification may involve boundary testing, property-based testing, fault injection, simulation, hardware-in-the-loop testing or formal methods. The team should demonstrate what happens when an input becomes unreliable or a dependency fails, as well as how the system returns to an approved operating state. Even mathematical verification is only as relevant as the properties and assumptions against which it was performed. The required independence and competence must follow from the consequences of failure and applicable standards.
Who Controls the Coding Agent? Security and Tool Qualification
There is a second system to consider: the engineering environment that produces the operational software. A coding agent may have access to source code, configuration, package repositories, external tools and automated pipelines. It may alter tests or modify the build rules used to decide whether its implementation is acceptable. If it can change both the implementation and the conditions under which it is accepted, passing the tests becomes a rather questionable measure of success.
The OWASP Secure Coding with AI Cheat Sheet describes risks specific to agentic development, including instruction injection, excessive permissions, unsafe dependencies and test manipulation. Agents working on critical software should execute in isolated environments with task-specific permissions, approved tools and restricted network access. Repository issues, external documentation and tool responses should be treated as potentially untrusted data. Agents should have no direct production credentials or authority to approve their own changes. Trusted CI/CD controls and release identities need to be separated from the agent’s environment, and sensitive information must not be disclosed to unapproved services.
Repository instructions and reusable skills can communicate security and architecture expectations. ENISA’s September 2026 draft technical advisory on AI-assisted software development explores ways to integrate security expectations, verification and evidence into agentic activities. A skill, however, is not an access control. Asking an agent not to modify a safety requirement is useful; preventing it from doing so without authorised approval provides a rather different level of assurance. The distinction between instructions and enforceable controls is also central to engineering reliable AI agents for manufacturing.
Functional safety engineering also recognises that development tools can affect the dependability of the resulting software. IEC 61508-3:2010 addresses software and supporting tools within its scope. An AI coding agent raises a question about tool confidence: can it introduce errors or fail to detect them, and which independent controls compensate for that risk? The answer determines whether further assessment, validation or formal qualification is required under the applicable assurance regime. It does not mean every coding agent must be certified.
Tool governance should cover the approved model or service version where identifiable, agent harness, instructions and skills, connected tools, permissions and verification controls. A provider may change a hosted model’s behaviour even when the application specification is unchanged. Material changes to the toolchain should trigger impact assessment and, where appropriate, regression testing, revalidation or requalification before affected critical tasks resume. If the model version cannot be pinned or identified, that limitation must be considered when authorising its use.
From Spec-Driven to Assurance-Driven Agentic Development
Spec-driven development can remain the method for organising implementation. For critical software, it should be embedded within a wider approach in which the required evidence, limits of agent autonomy and authority to approve changes are established before work is delegated. I propose calling this Assurance-Driven Agentic Development. It is a synthesis of existing engineering principles and emerging AI-development guidance, not a new certification standard.
The distinction between the two systems matters throughout this approach. The engineering environment must prevent unauthorised or inadequately verified changes reaching production. The operational system must contain faults, enforce its constraints and recover as required even when software fails. Evidence from operations informs subsequent engineering decisions.

This starts with a risk assessment defining what the agent may change and what must remain protected. During implementation, agents generate code and supporting tests within those boundaries. Verification establishes evidence beyond the agent’s assertions. An authorised release decision considers the remaining risks, the exact artefact to be deployed and the organisation’s ability to operate and recover it. The amount of formality should remain proportionate to the consequences of failure.

| Development concern | Conventional spec-driven workflow | Additional assurance for critical systems |
|---|---|---|
| Requirements | Functional behaviour and acceptance criteria | Risk-derived requirements, protected invariants and agreed failure behaviour |
| Architecture | Components and implementation design | Authority boundaries, fault containment, independent protection and recovery |
| Agent execution | Generate code and tests | Risk-based autonomy, isolated execution, controlled tools and protected changes |
| Verification | Tests and specification consistency | Independent criteria, validation, system-level failure tests and security evidence |
| Release | Passing CI/CD checks | Artefact integrity, authorised acceptance, operational readiness and recovery |
| Maintenance | Updated code and specifications | Traceable changes, operational evidence and reassessment of software and toolchain |
Traceability connects these activities. An operational risk should be traceable to the approved requirement addressing it, the architectural decision establishing where it is enforced, the implementation and build artefact, and the evidence supporting release. For AI-assisted changes, the record should also identify the relevant tool configuration, scope of work and approvals. The UK Home Office’s engineering standard on AI use provides an example of an organisational policy requiring human review and auditable AI-assisted changes. The aim is not to retain every prompt indiscriminately, but to maintain sufficient evidence while protecting sensitive information.
For higher-risk releases, an assurance case can organise evidence around explicit claims, supporting arguments and known limitations. If a critical requirement is unverified, an assumption remains unresolved or applicable release criteria are not met, the release decision should stop rather than rely on a green CI/CD dashboard. An exception may be accepted only by an authority entitled to accept the risk and only where applicable obligations permit it. More documentation does not compensate for missing evidence.
Security, Safety and the Software Supply Chain
Cybersecurity and functional safety address different risks, although both influence operational dependability. Software may meet its functional requirements while remaining vulnerable to manipulation; a secure application may implement unsafe operating logic. The ISA/IEC 62443 series addresses industrial cybersecurity, IEC 61508 covers functional safety within its scope, and NIST’s Secure Software Development Framework provides general secure development guidance. Adopting SDD does not establish compliance with any of them.
AI agents can introduce new dependencies or change build processes at considerable speed. Packages need assessment for origin, vulnerabilities, licensing, maintenance and suitability. Risk-appropriate controls include approved registries, pinned versions, a software bill of materials (SBOM), vulnerability scanning and controlled builds. The release pipeline should verify the integrity and origin of the deployed artefact, for example through signed build provenance and verification as described by SLSA. Provenance establishes evidence about origin and integrity, not functional correctness or safety.
Security controls must also be evaluated against the physical process. An access-control mechanism that prevents an essential recovery action or introduces unacceptable delays may create an operational problem while addressing a security concern. The architecture should address these trade-offs, including authorised recovery procedures and segregation of development, IT and operational technology environments. The underlying distinction between preventing incidents and retaining the ability to recover is explored further in Cyber Security Is Good, Cyber Resilience Is Better.
For European organisations, NIS2 addresses proportionate cybersecurity measures for entities within scope, including secure development, supply chain security and continuity. The Cyber Resilience Act establishes lifecycle obligations for products with digital elements within its scope, subject to phased application. The EU AI Act may apply additional requirements when AI itself fulfils certain safety-related functions in critical infrastructure. Using a coding agent does not automatically turn the software it develops into a high-risk AI system. Applicability depends on the product, organisation, intended use and legal context.
Software Is Not Finished When the Tests Pass
Much of the discussion about AI coding ends when code is generated, tested and merged. For mission-critical applications, that is a remarkably narrow definition of success. Physical assets can remain in service much longer than their software frameworks and cloud services; devices, dependencies and data sources change, and operations reveal scenarios not anticipated during development. This mismatch is explored in the timeline paradox in data-driven asset management.
Specifications must remain aligned with implementation and operational reality. Monitoring should help establish whether stale data is detected, limits respected and fallback behaviour works as intended. Incidents and observations should feed back into risk assessments, requirements and verification. Changes to software or the physical process require impact assessment and appropriate regression tests. Recovery procedures should be exercised rather than merely documented; a software rollback may not reverse changes already made to the physical world.
There is a parallel lifecycle for the engineering system. Model updates, agent permissions, skills, external integrations and build tooling can all affect how work is produced or checked. The organisation needs to assess material changes, maintain approved configurations and restrict agent use when the required confidence cannot be demonstrated. This is a broader responsibility than maintaining an application specification in a repository.
AI Changes the Engineering Work, Not the Accountability
AI coding agents can accelerate implementation, explore alternatives and identify edge cases. Their value depends on an engineering process that distinguishes plausible output from justified decisions. Software engineers understand implementation, architects understand system boundaries, and domain specialists understand physical equipment and operations. Security and safety specialists contribute requirements that may not be apparent from the functional description. The agent can support these disciplines, but does not automatically possess their combined knowledge or authority.
Responsibilities need to be explicit. Domain specialists and engineering authorities approve operational assumptions and constraints, reviewers assess the evidence with the appropriate independence, and authorised release owners make deployment decisions. Engineers must be able to challenge generated results and recognise when they lack the information to proceed. Generating another thousand lines of code is unlikely to help when nobody knows how the system should behave.
The Real Question Is What We Can Demonstrate
Spec-driven development helps communicate requirements, preserve design intent and give engineers more control over generated work. Assurance-driven agentic development extends this by defining the authority of the agent, the boundaries of the operational system and the evidence required before release. A passing test suite is not automatically independent verification, and a successful deployment does not establish correct behaviour under every relevant failure condition.
The engineering challenge is to identify uncertainty, reduce it where possible and manage the consequences that remain. AI can help us do that, although it can also make it considerably easier to produce internally consistent work based on an incorrect assumption. The measure of successful AI-assisted engineering is whether we can justify the behaviour we expect, verify what has been built and retain control when the unexpected happens.
Sources and further reading
- Spec-Driven Development as Prescribed and as Practiced — Agarwal, Singhal, Macvean, Vasilescu and Breaux (2026), preprint, revised 16 November 2026.
- Understanding Spec-Driven-Development — Birgitta Böckeler
- NIST SP 800-218 — Secure Software Development Framework
- ISA/IEC 62443 — Industrial Automation and Control Systems Security
- IEC 61508 — Functional Safety
- GitHub Spec Kit
- Thoughtworks Technology Radar — OpenSpec
- UK NCSC — The vibe coding spectrum (June 2026)
- AWS Security Blog — Balancing speed and safety: A control framework for AI coding agents (2026)
- OWASP — Secure Coding with AI Cheat Sheet
- UK Home Office — Engineering standard: Use AI
- ENISA — Technical Advisory on AI-assisted software development (draft, September 2026)
- NASA-STD-8739.8B — Software Assurance and Software Safety Standard
- IEC 61508-3:2010 — Software requirements
- Joint international guidance — Principles of operational technology cyber security (2024)
- SLSA — Supply-chain Levels for Software Artifacts
- EU Directive 2022/2555 — NIS2
- EU Regulation 2024/2847 — Cyber Resilience Act
- EU Regulation 2024/1689 — Artificial Intelligence Act
