# Feature spec: <feature name>

> Agentic AI CoE delivery template · version 0.1 · draft for review.
> One spec per feature or change. The spec is the unit humans approve; the agent works from it.
> Keep it in the repo next to the code (for example `specs/<id>-<slug>/spec.md`), reviewed by pull request like code.

| Field | Value |
| --- | --- |
| Spec ID | SPEC-<nnn> |
| Status | Draft / In review / Approved (G1) / Implemented / Superseded |
| Owner (accountable) | <product owner> |
| Approvers | <architect>, <security reviewer if risk tier 2 or 3> |
| Risk tier | Tier 1 / 2 / 3 (plan section 13.2) |
| Related | Constitution version <x>, ADRs, tickets |
| Accelerator used | <e.g. Spec Kit, BMad, Kiro, OpenSpec, none> |

## 1. Intent

What problem this solves, for whom, and why now. Two to five sentences. Link the value hypothesis (plan section 20).

## 2. Scope

- In scope:
- Out of scope (explicitly):
- Assumptions:

## 3. Requirements (EARS)

Write each requirement in one EARS pattern so a person and an agent read it the same way.

| ID | Pattern | Requirement | Acceptance check |
| --- | --- | --- | --- |
| R1 | Event-driven | WHEN <trigger> THE SYSTEM SHALL <response> | <test name or eval id> |
| R2 | State-driven | WHILE <state> THE SYSTEM SHALL <response> | |
| R3 | Unwanted behaviour | IF <condition> THEN THE SYSTEM SHALL <response> | |
| R4 | Optional feature | WHERE <feature is included> THE SYSTEM SHALL <response> | |
| R5 | Ubiquitous | THE SYSTEM SHALL <response> | |

Non-functional requirements (latency, cost per outcome, availability, accessibility, data residency):

| ID | Requirement | Threshold | How measured |
| --- | --- | --- | --- |
| N1 | | | |

## 4. Constraints from the constitution and policies

List the constitution articles and CoE policies that bind this change (for example POL-16 Secure Agent Engineering, POL-07 Change Management). Note any exception and its approval (PRC-19).

## 5. Design

- Approach and alternatives considered (one paragraph each; link an ADR for anything hard to reverse)
- Interfaces and data contracts (schemas, APIs, tool contracts)
- Data touched and classification
- Security notes: new permissions, secrets, network egress, third-party packages
- Diagram (Mermaid allowed)

## 6. Test and evaluation plan

- Unit and integration tests that prove each requirement (map to R ids)
- Evals and thresholds where behaviour is probabilistic (plan section 7)
- Mutation or property tests for critical logic
- What a human must check by hand, and why

## 7. Tasks

Small, ordered, independently verifiable tasks. Each task names the requirement it serves and its done check.

| # | Task | Serves | Done when | Agent or human |
| --- | --- | --- | --- | --- |
| T1 | | R1 | | |

## 8. Review and approval record

| Date | Reviewer | Decision | Notes |
| --- | --- | --- | --- |
| | | Approved / Changes requested | |

## 9. Change log

| Date | Change | By |
| --- | --- | --- |
