TL;DR: Spec-driven development shifts security decisions into specifications before code exists, and Clover Security says that leaves review teams catching gaps too late when agents design and build from incomplete requirements. Security has to move upstream to challenge assumptions in the spec itself, or the same omission can be carried consistently into production.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Clover Security's blog post: Spec-driven development shifts security decisions into written specifications before code exists, so missing requirements can be propagated by agents into design, build and production.
Why it matters: IAM, NHI and broader security teams need earlier control points because once decisions are encoded in specs, downstream review can validate implementation without ever questioning the original assumption.
Context
Spec-driven development is a development model where requirements, design intent and implementation guidance are written down before code is generated. That changes the security problem because the control point moves from the pull request to the specification, and incomplete specifications can become approved assumptions rather than visible defects.
In this model, security teams are no longer only reviewing finished code. They need to assess whether the specification captures security requirements, whether handoffs preserve those requirements, and whether automated gates are strong enough to catch omissions before agents turn them into implementation choices. security requirements and abuse cases is the right starting point for that shift.
Key questions
Q: How do you secure spec-driven development workflows?
A: Secure spec-driven development by treating the specification as a security control point, not just a planning document. Require explicit security requirements, preserve them across design and build handoffs, and review the spec before implementation starts. The goal is to stop missing decisions from becoming accepted behaviour in generated code.
Q: Why do agent-generated plans miss security requirements?
A: Agent-generated plans miss security requirements when the agent optimises for task completion without an explicit policy, threat model, or acceptance criteria for access control, secrets handling, data classification, and logging. If those controls are not encoded in the plan, the output can omit review gates, approval steps, or validation checks that a human architect would normally require.
Q: How does a specification become a security control in software delivery?
A: A specification becomes a security control when it is translated into enforceable delivery rules, such as mandatory input validation, code review checks, test cases, deployment gates, and configuration baselines. In software delivery, the spec stops being advisory and starts constraining builds, merges, and releases through automated policy enforcement.
Q: What should teams do first when agents own design and build?
A: Teams should first define accountability, scope, and guardrails before letting agents own design and build. That means assigning a human owner, setting permitted data and tool access, limiting write permissions, and requiring approval or test gates for code, configuration, and deployments so the agent cannot act outside its authorised remit.
Technical breakdown
How specification gaps become implementation decisions
In spec-driven development, the specification becomes an upstream source of truth for design and build activity. If a requirement is absent, an agent may still produce a plausible plan or implementation by inferring the missing detail from surrounding context, and that inference can become the de facto security decision. The problem is not just automation, but consistency: multiple agent runs can reproduce the same omission, making the gap look intentional. That is why security review has to examine the specification as a control artifact, not just the final code output. See the Security Requirements and Abuse Cases Guide.
Practical implication: Review specifications for omitted security constraints before implementation starts, because repeated output alone does not prove a requirement was approved.
Why handoffs matter more when agents own design and build
The risk grows at each handoff between requirements, design, build and review. When engineers own the entire chain, they can patch missing detail informally. When agents own design or build, the handoff must carry explicit security intent, or the system will optimise for completion rather than policy. This is especially important when the same spec is used to generate plans, tasks and pull requests, because each stage can inherit the same blind spot. The architectural issue is not code generation alone. It is the loss of security context across transitions. See the Secure Software Development Lifecycle (SSDLC) Guide.
Practical implication: Treat each handoff as a security checkpoint and require explicit preservation of security requirements across planning and implementation.
Why pull request review misses the original decision
Pull request review is a downstream quality gate, but it cannot reliably surface a security choice that was never written into the specification. If the spec omitted expiry, limits, ownership or approval criteria, reviewers may only see code that is internally consistent with the missing requirement. That means the review is evaluating execution, not governance. In spec-driven development, the security question is often whether the spec contained enough decision detail for the build to be safe, not whether the code matches the generated plan.
Practical implication: Move security review earlier than pull request approval and require reviewers to challenge the spec, not only the generated implementation.
NHI Mgmt Group analysis
Security debt is moving upstream into the specification. Spec-driven development does not remove security review, but it relocates the failure point. If the specification is incomplete, the workflow can repeatedly generate the same unsafe decision and make it look deliberate. That means the governance problem is now a requirement-quality problem as much as a code-quality problem, and security teams need to inspect the spec for omitted controls before implementation begins.
Five-stage ownership is a governance model, not just an engineering one. The progression from assist to design, build and full software factory changes who is accountable for security decisions at each handoff. That is where security requirements and abuse cases becomes useful, because abuse-case thinking helps surface the missing conditions that an agent will otherwise fill in on its own. The practical conclusion is that ownership mapping now belongs in security architecture reviews.
Specification completeness becomes the new security control. In a spec-driven workflow, the most important question is whether the written requirement captures the decision that must be enforced later. When it does not, design and build can converge on the same insecure assumption with no disagreement to flag. Security leaders should treat specification review as a first-class governance activity, not a prelude to engineering.
Agentic development changes where identity and trust decisions live. Even when the immediate example is software behaviour, the deeper issue is delegated authority: agents are being trusted to preserve requirements that humans used to carry informally. That makes this a control problem about who is allowed to translate intent into implementation, and under what constraints. The best response is explicit policy in the spec and enforced gates where trust is delegated.
What this signals
Specification governance will become a delivery control, not a documentation exercise. As more teams let agents participate in design and build, the specification will have to carry the security intent that engineers previously held in memory. The programme-level implication is that architecture review, threat modelling and approval criteria need to sit closer to authoring time, before implementation can harden a wrong assumption into shipped behaviour.
Security teams should expect more review work to shift left into requirements and design. That shift matters because a generated implementation can be internally consistent while still being wrong from a security perspective. The practical consequence is that governance, not just testing, becomes the place where missing control decisions are caught.
For practitioners
- Map security ownership across each handoff Document who owns requirements, design, build, review and production for your highest-risk delivery paths, then identify where security decisions can disappear between stages.
- Add security criteria to specifications Require written security conditions for expiry, rate limits, approval rules and rollback criteria before an agent can generate design or code.
- Review the spec before the pull request Shift security review earlier so reviewers can challenge assumptions in the specification instead of only validating generated implementation.
- Gate agent output with explicit policy checks Use automated checks and release gates to stop code that violates requirements the specification should have carried through the workflow.
Key takeaways
- Spec-driven development changes the security failure mode from bad code to missing requirements that are propagated by agents.
- The important evidence is not only in the generated output, but in the repeated omission of decisions that were never written into the specification.
- Security teams need earlier review gates, clearer ownership and explicit policy in the spec if they want to prevent these omissions from reaching production.
Related NHI Mgmt Group resources: Security Requirements and Abuse Cases Guide · Secure Software Development Lifecycle (SSDLC) Guide · AI Agent Identity Security Buyer's Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP SAMM, NIST CSF 2.0, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP SAMM | Requirements — Security Requirements | Spec-driven development makes requirement quality the first security control point. |
| Recommendation — Define testable security requirements before agents can design or build the feature. | ||
| NIST CSF 2.0 | PR.PS-01 — Configuration Management | Specifications now shape implementation configuration before code exists. |
| Recommendation — Use controlled specifications to enforce secure settings before deployment. | ||
| OWASP ASVS | V15 — Secure Coding and Architecture | The article centers on security requirements being preserved through design and implementation. |
| Recommendation — Translate security intent into architecture and coding constraints that generated output must satisfy. | ||
| CIS Controls v8 | CIS-16 — Application Software Security | Security checks need to move into software development governance as agents take over more delivery steps. |
| Recommendation — Embed security review and verification into application delivery gates. | ||
Key terms
- Spec-driven Development: Spec-driven development is a workflow that starts with written requirements, acceptance criteria, and design boundaries before code is produced. It reduces ambiguity for human engineers and AI tools by turning vague intent into a controlled implementation path.
- Agent ownership: The assignment of accountable business and technical responsibility for an AI agent or automated workflow. Ownership should include approval authority, review cadence, and a clear connection to the identity that the agent uses, so that access and liability do not disappear when the workflow scales.
- Security Requirement: A security requirement is a specific control, safeguard, or rule that a system must meet to protect data, resources, and access. It translates security intent into actionable design and implementation expectations, often drawn from standards, regulations, and known vulnerabilities. Good requirements are testable, relevant, and tied to the application’s risk profile.
- Handoff governance: Handoff governance is the set of rules that determine who owns a case, who validates the evidence, and who can engage stakeholders. In incident work, weak handoffs create duplicated effort, contradictory narratives, and avoidable exposure of sensitive information.
Deepen your knowledge
NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore nhimg.org for resources that connect identity governance to the broader security disciplines your programme depends on.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org