- name
- epic-spec-quality
- description
- Review, score, write, or improve specification and planning artifacts for spec-driven development (SDD) with the EPIC framework (4 categories, 10 quality dimensions, 40 practices). Use whenever someone asks to assess, audit, critique, score, draft, or strengthen a spec.md, requirements.md, PRD, design.md, plan.md, tasks.md, constitution, OpenSpec proposal, or a Spec Kit or Kiro spec, or any document meant to guide an AI coding agent, even if EPIC is not mentioned.
EPIC: quality of SDD specification and planning artifacts
In spec-driven development, the specification is what the coding agent acts on. A colleague who meets an ambiguous requirement asks a question; an agent usually resolves it on its own, plausibly and silently, and returns code that looks like an answer. EPIC describes the observable properties that make a set of specification and planning artifacts precise, consistent, and verifiable enough to guide AI-assisted implementation.
EPIC was derived from ISO/IEC/IEEE 29148:2018 and SDD tool guidance (Spec Kit, Kiro), populated with practices found in 114 open-source repositories that use SDD, checked against grey literature, and reviewed with practitioners. It has three levels:
- 4 categories: the concern an agent faces (E Expressive, P Precise, I Interpretable, C Compartmentalized).
- 10 quality dimensions: properties of the artifact set, each scored 0 to 3.
- 40 practices: concrete ways of achieving a dimension (IDs such as E1.1).
| Category | Question it answers for the agent | Dimensions |
|---|---|---|
| E Expressive | What exactly is expected, and how will I know it is done? | E1 Unambiguous, E2 Singular, E3 Verifiable |
| P Precise | Under what conditions, and within what scope? | P1 Dependency Control, P2 Complete |
| I Interpretable | How do these files fit together? | I1 Conforming, I2 Consistent, I3 Comprehensible |
| C Compartmentalized | What must the product do, and what is the plan for building it? | C1 Scope Discipline, C2 Implementation-Planning Information |
Pick the mode
- Review: the person shares existing artifacts and wants an assessment, a score, or feedback. Go to "Reviewing artifacts".
- Author or revise: the person wants a new spec set, or wants existing artifacts improved. Go to "Writing and revising artifacts".
- Explain: the person asks what a dimension or practice means. Answer from the practice list below, and read
references/practices.mdfor full definitions and examples.
If the request is ambiguous (for example, "look at my spec"), review first and offer revisions at the end.
Step 1: Gather the artifact set
EPIC assesses the artifacts as a set, because several dimensions (I2, I3, C1, C2) concern how files relate. Before judging anything, find and read every file that belongs to the feature or change:
| Workflow | Typical artifacts |
|---|---|
| Spec Kit | spec.md, plan.md, tasks.md, research.md, data-model.md, quickstart.md, contracts/, and the constitution under .specify/memory/ |
| Kiro | requirements.md, design.md, tasks.md under .kiro/specs/<feature>/, plus steering files |
| OpenSpec | proposal.md, design.md, tasks.md, and spec deltas under openspec/changes/<change>/, plus openspec/specs/ |
| No framework | spec.md, requirements.md, PRD.md, design docs, task lists, and agent instruction files (AGENTS.md, CLAUDE.md) that constrain implementation |
List the files you read in your answer. When a repository holds several features, assess one feature directory at a time unless the person asks for a repository-level view. If you only received part of the set (for example, a spec without its plan), say so, because a missing plan affects C2 and P1.
Reviewing artifacts
How to score
Score each of the ten dimensions from 0 to 3 using the rubric below. The total ranges from 0 to 30.
- Read the whole set once before scoring, so that evidence found in
tasks.mdcan count for a dimension you first looked for inspec.md. - For each dimension, look for its practices (listed below). Collect verbatim quotes with their file names as evidence.
- Assign the level whose description fits the set as a whole. A level 3 means consistent evidence throughout the artifacts, so a single excellent section does not earn a 3 if the rest does not follow it.
- Name the practices that are present, and the ones that are missing or weak.
- Recommend the few changes that would raise the lowest scores, most important first.
Things that commonly distort a score:
- Unfilled template text is not evidence. Many repositories keep template placeholders such as
FR-001: System MUST [specific capability]or a bare[NEEDS CLARIFICATION]. A filled template shows structure (I1), but placeholders left in a spec presented as final count against E1 and P2.5. - Length is not quality. A short spec for a small feature can score 3. Judge whether each requirement is precise, singular, and checkable, not how much text exists.
- Not every practice applies. E2.5 (security and privacy properties) matters only when the feature handles sensitive data or exposes an attack surface. Do not lower a score for a practice that the feature has no reason to use, and say when you judged one not applicable.
- Missing files count as missing evidence. If there is no task breakdown anywhere, C2 cannot be high. Say whether the file is absent from the repository or only absent from what you were given.
Rubric
| Dim. | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| E1 Unambiguous | Pervasive vague terms ("user-friendly", "fast", "as appropriate") with no definitions. | Some requirements precise; many use unbounded or ambiguous terms. | Most requirements use measurable or bounded terms; key terms are defined (glossary, schema, or enumerations). | Every requirement has one interpretation; open questions are surfaced with markers or resolved in a clarifications record, not guessed. |
| E2 Singular | Many requirements bundle several capabilities ("support X and Y and Z"). | Some singular; many compound. | Most state a single capability, with occasional compounding. | Every requirement states exactly one capability, characteristic, constraint, or quality; compound "and/or" statements are absent or deliberately split. |
| E3 Verifiable | Largely unverifiable ("works well"); no acceptance criteria, scenarios, or measurable success criteria. | Some acceptance criteria or informal validation notes; many requirements remain hard to test. | Most functional requirements have measurable criteria linked to concrete checks (Given/When/Then, expected inputs and outputs, contract checks); edge and failure cases are uneven. | Every requirement is testable and mapped to verification evidence, including error handling and end-to-end user workflows; completion conditions are explicit. |
| P1 Dependency Control | No assumptions, dependencies, or constraints discussed. | Mentioned in passing, not systematically. | Assumptions, dependencies, and constraints documented at the artifact level (for example, dedicated sections). | Non-trivial requirements and tasks are paired with their dependencies and constraints; risks are traced to specific requirements; dependency checks and failure behavior are specified. |
| P2 Complete | Major content absent (no error handling, no non-functional requirements, no interfaces); many unresolved TBD items. | Happy path covered; invalid input, edge cases, and non-functional requirements largely missing. | Functional, performance, interface, and constraint content present where applicable; some TBD items remain. | All applicable content covered (stories, acceptance and success criteria, exceptional behavior, constraints, delivery); every open item is resolved or carries status and a resolution plan. |
| I1 Conforming | No template or style consistency; no requirement IDs. | Inconsistent style; some requirements have IDs. | Most requirements follow a consistent template; IDs present and stable, with gaps. | Every requirement follows an explicit, declared template and has a unique ID that is never changed or reused. |
| I2 Consistent | Visible contradictions in behavior, ordering, units, or terminology. | Same concept named differently across places; inconsistent units or notation. | Terminology and units largely consistent; no contradictions detected. | Standard terminology defined and used uniformly across all artifacts; units and notation homogeneous; no conflict between requirements or files. |
| I3 Comprehensible | Scattered, no entry point; documents duplicate or contradict each other without cross-references. | Most information findable with effort; no clear entry point; relationships between documents implicit. | Clear entry point; cross-references mostly present; relation to the parent context explained. | Entry point names the constituent documents; cross-references consistent in both directions; the set reads as a coherent whole, with aids (file purposes, legends, rationale, examples). |
| C1 Scope Discipline | Spec dominated by technology choices, code, architecture, schedules, or process. | User-facing requirements mixed with implementation prescriptions or project-management content. | Mostly behavioral and product-focused, with occasional leakage. | Strictly behavioral; design decisions, technical context, and tasks live in dedicated plan, design, or task artifacts that trace back to the requirements. |
| C2 Implementation-Planning Information | Nothing enabling implementation: no technical context, task breakdown, or contracts. | One of {technical context and rationale, task breakdown, data or API contracts} present but minimal. | Two of the three substantively present, with explicit links from requirements to plan items. | All three substantively present and linked to requirements in both directions; assumptions, dependencies, and phasing across versions addressed; governing principles (for example, a constitution) exist where architectural discipline matters. |
Review output
Use this structure unless the person asks for something else:
# EPIC review: <feature or change name>
**Artifacts reviewed:** <files>
**Total:** <n>/30 | E <n>/9 | P <n>/6 | I <n>/9 | C <n>/6
## Summary
<Two to four sentences: strongest dimensions, weakest dimensions, the most important risk for an agent implementing from this set.>
## Scores
| Dimension | Score | Practices present | Missing or weak |
|---|---|---|---|
| E1 Unambiguous | 2 | E1.2, E1.3 | E1.1 |
| ... | | | |
## Evidence and gaps
### E1 Unambiguous (2/3)
- Present, E1.2: "<verbatim quote>" (spec.md)
- Missing, E1.1: <what is absent and where it matters>
<Repeat for each dimension. Keep each to a few lines.>
## Recommended revisions
1. <Highest-impact change, the practice it applies (ID), and where to make it>
2. ...
When the person needs machine-readable output (for example, scoring many repositories), return JSON with this shape instead:
{
"artifacts": ["spec.md", "plan.md", "tasks.md"],
"scores": {
"E1": {"score": 2, "present": ["E1.2", "E1.3"], "missing": ["E1.1"], "not_applicable": [],
"evidence": [{"practice": "E1.2", "file": "spec.md", "quote": "..."}],
"rationale": "..."}
},
"total": 21
}
Include all ten dimensions (E1, E2, E3, P1, P2, I1, I2, I3, C1, C2) in scores.
Writing and revising artifacts
When drafting, work from the outside in: decide where content belongs (C), then write each requirement well (E), then record what it depends on and covers (P), then make the set hang together (I).
C (Compartmentalized): separate what from how.
- Put externally observable behavior, user goals, and product constraints in the specification (C1.1). Put technology choices, architecture, data models, and tasks in plan, design, or task files (C1.2).
- Give the plan technical context, a phased task breakdown with dependencies and parallel markers, and data or API contracts (C2.1, C2.2, C2.4).
- Label every task with the requirement or story it serves, and link the plan back to the spec (C1.3, C2.3).
E (Expressive): express one thing, one way.
- Write one obligation per requirement, with one normative verb (MUST, SHALL, MUST NOT) used consistently (E2.1, E1.4).
- Replace vague qualities with thresholds, bounds, defaults, or enumerated values (E1.2, E1.3).
- Give each requirement or story acceptance criteria and a way to check it independently, including failure and edge cases (E3.1 to E3.3), and state when verification counts as complete (E3.4).
- State exclusions explicitly, with a reason ("does NOT ...", "deferred to v2 because ...") (E1.5).
P (Precise): pinpoint dependencies and coverage.
- Record assumptions, dependencies, target platform, and constraints in dedicated sections (P1.1, P1.2), and attach them to the requirements or tasks they affect (P1.3).
- Specify what happens when a dependency is missing or fails, and how it is verified (P1.4).
- Cover error handling, edge cases, and non-functional requirements, not only the happy path (P2.2, P2.3).
- Track open items with a status and a plan for resolving them (P2.5).
I (Interpretable): make the set readable as a whole.
- Follow the template of the workflow in use, and declare it (I1.1, I1.3). Give requirements, criteria, and tasks stable IDs (I1.2).
- Define key terms once and reuse them exactly across every file; keep IDs, priorities, and units in one notation (I2.1, I2.2).
- Keep facts that appear in several files identical (I2.3), and give the set an entry point with cross-references between documents (I3.1, I3.2).
Two behaviors matter most when an agent writes specifications:
- Do not guess at decisions the person has not made. If a threshold, scope boundary, or behavior is unknown, ask, or insert a clarification marker (for example,
[NEEDS CLARIFICATION: maximum file size?]) and list the open questions at the end. An invented number reads as a requirement and will be implemented as one (E1.1, P2.5). - Respect the conventions already in use. When revising, keep existing IDs (renumbering breaks I1.2 and every trace link), keep the workflow's template, and make the smallest change that applies the practice. After revising, list the changes with the practice IDs they apply.
The 40 practices
Full definitions, signals, and examples from the analyzed repositories are in references/practices.md. Read the relevant section there when you need to decide whether a passage counts as evidence of a practice.
E1 Unambiguous
- E1.1 Explicit Clarification-Seeking: unresolved questions are surfaced (markers, clarifications record, guardrails for judgment calls), not silently resolved.
- E1.2 Quantified / Measurable Requirements: thresholds, time bounds, percentages, or exact outcomes.
- E1.3 Bounded Vocabulary & Enumerated Definitions: key terms, value domains, defaults, and states fixed by a glossary, enum, schema, or external standard.
- E1.4 Normative & Structural Consistency: one modal-verb convention, fixed reference templates, a named source of truth, explicit ordering.
- E1.5 Explicit Scope & Verification Boundaries: stated exclusions and deferrals with reasons, and how each requirement is checked independently.
E2 Singular
- E2.1 Atomic Functional & Behavioral Statements: one capability, story, task, or exclusion per statement.
- E2.2 Singular Architecture & Design Facts: one technical constraint, decision, property, or trade-off per entry.
- E2.3 Isolated Risk, Assumption, Edge-Case & Constraint Entries: each risk, mitigation, assumption, edge case, and constraint recorded separately.
- E2.4 Singular Definitional, Scenario & Relational Statements: one term per definition, one outcome per scenario, one relationship per dependency line, one measure per success criterion.
- E2.5 Singular Security & Privacy Properties: data captured, protection mechanism, and privacy implication stated separately.
E3 Verifiable
- E3.1 Verification Criteria & Measurable Outcomes: acceptance criteria, success metrics, and performance goals that decide whether a requirement is met.
- E3.2 Verification Scenarios & Validation Methods: Given/When/Then scenarios, executable checks, test references, validation procedures.
- E3.3 Comprehensive Verification Coverage: edge cases, invalid inputs, limits, failure conditions, and tests that must fail first.
- E3.4 Verification Completion & Readiness: gates and conditions for when verification is complete and work can be accepted.
P1 Dependency Control
- P1.1 Declared Assumptions & Dependencies: services, libraries, platforms, permissions, preconditions, and assumptions named in a dedicated place.
- P1.2 Explicit Constraint & Scope Boundaries: hard limits on resources, operation, domain, and integration, plus phase-level scope decisions.
- P1.3 Requirement/Task-Level Dependency & Risk Traceability: dependencies and risks attached to the specific requirement, task, or phase, with the reason for ordering.
- P1.4 Dependency Verification & Failure-Mode Handling: checks that prerequisites hold, and behavior when they do not.
P2 Complete
- P2.1 Functional and User Requirement Coverage: requirements, stories, workflows, acceptance and success criteria, and key entities.
- P2.2 Exceptional Behavior & Scope Definition: error handling, edge cases, risks with mitigations, and out-of-scope statements.
- P2.3 Technical, Operational & Quality Constraints: non-functional requirements, technical context, governance rules, decisions, and interfaces.
- P2.4 Dependency & Delivery Planning: sequencing, migrations, delivery scope, and capabilities deferred to later versions.
- P2.5 Specification Completeness Management: clarifications recorded, and open items tracked with status and a resolution path.
I1 Conforming
- I1.1 Standardized Document Structure: the same metadata block and named sections in the same order for every artifact of a type.
- I1.2 Stable, Unique Requirement Identifiers: IDs assigned once, never reused, with renames recorded.
- I1.3 Explicit Template Declaration & Enforcement: the template or schema named, the expected format shown, and a validation command or linter where possible.
I2 Consistent
- I2.1 Standardized Terminology & Concept Definitions: one vocabulary for concepts, states, and technologies, reused everywhere.
- I2.2 Uniform Identifiers & Notation: one convention for IDs, priorities, units, dates, and status.
- I2.3 Cross-Artifact Alignment & Traceability: the same facts, names, and fields stated identically in every file that uses them.
- I2.4 Consistent Organizational Structure: one structural pattern for stories, scenarios, and sections, with each concern in exactly one place.
I3 Comprehensible
- I3.1 Structured Document Organization: an entry point, a clear hierarchy, and dedicated sections.
- I3.2 Cross-Document Context & Navigation: sibling documents listed, cross-references, parent context, and next steps.
- I3.3 Comprehension Support: file-purpose notes, legends, examples, rationale, status markers, and orienting statements.
C1 Scope Discipline
- C1.1 Behavioral Product Specification: observable behavior, user goals, and product constraints, independent of technology.
- C1.2 Separation of Product & Project Concerns: design, technical context, plans, and tasks kept in dedicated artifacts.
- C1.3 Traceable Transition to Implementation: links from requirements to implementation work without moving implementation detail into the spec.
C2 Implementation-Planning Information
- C2.1 Technical Context & Implementation Foundations: technologies, environments, permissions, dependencies, and governing principles.
- C2.2 Implementation Planning & Task Organization: phases, task decomposition, ordering, and parallelization.
- C2.3 Requirements-to-Implementation Traceability: requirements linked to plans, tasks, validation, and decision records.
- C2.4 Implementation Data Models & Evolution Planning: data models, contracts, schemas, and allocation of functionality across releases.
Limits to keep in mind
- Scores describe the artifacts, not the people who wrote them. Phrase feedback accordingly.
- In the study behind EPIC, repositories with higher scores tended to have less complex code, lower vulnerability density, and fewer bug-fix commits. These are associations, not guarantees; do not promise that raising a score will improve the code.
- Your scores are your own judgment. They have not been calibrated against the study's human raters, so always show the evidence behind each score and let the person disagree with it.
- Quote only text that appears in the artifacts. If you cannot find evidence for a practice, say it is missing; do not paraphrase something into existence.
EPIC practices: definitions, signals, and examples
This file expands the 40 practices listed in SKILL.md. Each entry gives a definition, the signals that count as evidence, and short examples from specification artifacts analyzed in the EPIC study. Examples are excerpts, sometimes trimmed with "...", and file-level headings are separated with " / ". Use them to calibrate what a practice looks like in real artifacts, not as text to copy.
Contents
- E: Expressive: E1 Unambiguous, E2 Singular, E3 Verifiable
- P: Precise: P1 Dependency Control, P2 Complete
- I: Interpretable: I1 Conforming, I2 Consistent, I3 Comprehensible
- C: Compartmentalized: C1 Scope Discipline, C2 Implementation-Planning Information
E: Expressive
When delegating work to an agent, a specification needs to communicate what the agent is expected to do and how its work will be assessed. Each requirement should have one intended interpretation (E1), express a single obligation (E2), and come with criteria for checking whether it has been met (E3).
E1 Unambiguous
A requirement is stated so that it can be interpreted in only one way.
E1.1 Explicit Clarification-Seeking. Unresolved ambiguity is surfaced, not papered over. This takes three forms: inline markers at the exact point of uncertainty; a dedicated clarifications record where open questions are answered before the document is treated as final; and guardrails that pre-empt divergent readings of a borderline judgment call.
- Signals:
[NEEDS CLARIFICATION: ...]markers with a specific question; a## Clarificationssection with dated sessions or Q&A pairs; rules such as "when in doubt, do X and document what's left". - Counter-signal: generic template markers left unfilled in a spec presented as final.
- Examples:
## Clarifications ### Session 2026-01-13- "When in doubt, leave it as 'In Progress' and document what's left."
- "All NEEDS CLARIFICATION items resolved: ✅"
E1.2 Quantified / Measurable Requirements. Requirements and success criteria are stated as concrete, checkable facts (numeric thresholds, time bounds, percentages, or exact outcomes) instead of open-ended or subjective judgments.
- Signals: numbers with units and conditions; exact expected results for edge inputs.
- Examples:
- "Operators can query any SuzieQ-supported network table and receive results within 5 seconds for networks up to 500 devices"
- "SC-002: Roadmap page loads and renders all content within 3 seconds on a 3G connection"
- "FR-024: System MUST handle division by zero in publication rate calculation by returning 0"
E1.3 Bounded Vocabulary & Enumerated Definitions. Key nouns, categories, value domains, defaults, and states have a single fixed referent. The meaning can be fixed internally (glossary, enum, schema), by drawing a status from a closed set of labels, or externally by pointing to an already-defined meaning (a standard, an error code).
- Signals: glossaries; enumerated values; explicit defaults and maxima; references to external definitions.
- Examples:
- "FR-002: Container MUST default PUID to 1000 and PGID to 1000 when not specified"
- "T056 [P] [US4] Test limit parameter (default 200, max 1000)"
- "Storage: File-based (config.yaml input, README.md output, no database required)"
E1.4 Normative & Structural Consistency. The document uses one consistent way of expressing and locating requirements, so inconsistent presentation does not introduce ambiguity: uniform modal verbs, a fixed template for referencing files or task locations, a named single source of truth for each input, explicit sequencing of tasks or agents, and directives that placeholders must be removed before the spec counts as done.
- Examples:
- "It MUST NOT touch the persistent 'MultiSweepService'/scheduled sweep config"
- "Read the task file directly from .tasks/{subdirectory}/TASK-ID-name.md"
- "Input: Feature specification from /specs/[###-feature-name]/spec.md"
E1.5 Explicit Scope & Verification Boundaries. The spec states what is and is not covered, with a reason, and how each requirement or story can be checked independently, so a reader does not assume the scope or the verification method.
- Examples:
- "(persistent configuration) is deferred to a future enhancement."
- "Tests: Not explicitly requested in the feature specification. Test tasks are omitted."
- "Independent Test: Time a new developer from landing to first successful
wave run"
E2 Singular
Each requirement expresses one capability, characteristic, constraint, or quality, so it can be implemented, traced, and verified on its own.
E2.1 Atomic Functional & Behavioral Statements. Each user need, capability, task, or explicit exclusion is its own statement: one MUST, one user story, one checklist item, one "does NOT". At the document level, one concern per section or requirement block (for example, sub-lettered IDs such as FR-024a and FR-024b, or a rule such as "split if the description needs AND").
- Examples:
- "FR-088: Audit records MUST be immutable (cannot edit or delete)"
- "R7. Support max_depth parameter (default 8, max 15) to limit tree depth"
- "This feature does NOT capture visual layout or screenshots."
E2.2 Singular Architecture & Design Facts. Each technical fact (a constraint, decision, property, purpose, or trade-off) is isolated as its own bullet or field. A trade-off stays singular by comparing one pair of options on one axis.
- Examples:
- "All API calls via native
fetch(Node 18+)" - "Text format vs JSON: Text is 3–5× more token-efficient but harder to parse programmatically."
- "Single-file implementations until proven insufficient"
- "All API calls via native
E2.3 Isolated Risk, Assumption, Edge-Case & Constraint Entries. Each risk, each mitigation, each assumption, each edge case, and each constraint is recorded as a separate entry, so it can be referenced, verified, or revisited on its own.
- Examples:
- "Risk 2: UIDs not stable across snapshots." / "Mitigation: UIDs assigned in deterministic tree traversal order."
- "UTC timezone is standard for all timestamps in the database"
- "No real-time updates are required; eventual consistency is acceptable"
E2.4 Singular Definitional, Scenario & Relational Statements. Each Given/When/Then scenario resolves to one outcome, each glossary entry defines one term, each principle check evaluates one rule, each dependency line states one relationship, and each success criterion measures one thing.
- Examples:
- "Artifact: Output file produced by a pipeline step"
- "SC-001: Script completes execution in under 5 minutes for up to 10 sources"
- "Attribute: A named property on a Kind with a type, optional constraints, and a value on each Node."
E2.5 Singular Security & Privacy Properties. Security- and privacy-relevant facts (what data is captured, what mechanism protects it, what privacy implication follows) are each stated as their own line, not blended into one general security paragraph. Applies when the feature handles sensitive data or exposes an attack surface.
- Examples:
- "Data captured: Accessible names, ARIA attributes, element roles, CSS selectors."
- "Redaction: Password and sensitive autocomplete fields replaced with [REDACTED]."
- "Attack surface: Feature reads the DOM only."
E3 Verifiable
The artifacts connect each expected outcome to the evidence used to decide whether it has been achieved.
E3.1 Verification Criteria & Measurable Outcomes. Explicit, objective criteria determine whether a requirement has been implemented: acceptance criteria, success metrics, quantitative thresholds, and performance goals. Includes pairing a named defect with the test that verifies its fix, and technical contracts stated precisely enough to check.
- Examples:
- "Backend coverage ≥ 80% (from 54%)", together with a check command containing
fail-under=80 - "Performance Goals: Query results < 5s for < 1000 objects"
- "SC-003: All configured sources are successfully processed in 90% of runs"
- "Backend coverage ≥ 80% (from 54%)", together with a check command containing
E3.2 Verification Scenarios & Validation Methods. Concrete procedures for checking requirements: functional scenarios, independent validation procedures, executable checks, references to test artifacts or quickstart steps, and validation against controlled environments or external systems.
- Examples:
- "THEN validation fails with a cardinality error on
Library.parameter" - "Local full gate:
bun validate full --profile ci --target wasm-gc." - "T015 [US2] Test container startup without PUID/PGID and verify UID 1000:1000"
- "THEN validation fails with a cardinality error on
E3.3 Comprehensive Verification Coverage. Verification extends beyond normal behavior to edge cases, invalid inputs, limits, and failure conditions, including tests required to fail before the implementation exists.
- Examples:
- "Scenario: Missing structured output fails the run"
- "What happens when developers don't have Claude CLI installed?"
- "Tests MUST be written and FAIL before implementation (TDD per Constitution)"
E3.4 Verification Completion & Readiness. Clear conditions for when verification is complete and a requirement counts as satisfied: completion criteria, gates that block completion, and tracked verification status.
- Examples:
- "STOP and VALIDATE: Test User Story 1 independently"
- "T045 Run
uv run pytest tests/unit/ctl/to verify all unit tests pass" - "The lint
npm run check:conformance-citationsenforces both."
P: Precise
To plan and carry out implementation work, an agent needs the conditions on which requirements depend and the scope the work is expected to address. This category connects explicit prerequisites and constraints (P1) with coverage of the intended requirements (P2).
P1 Dependency Control
Assumptions, dependencies, and constraints that must hold for requirements to be realized are explicit and connected to the work they affect.
P1.1 Declared Assumptions & Dependencies. The spec names what its requirements rely on in a dedicated place (an Assumptions or Dependencies section, a Primary Dependencies or Target Platform field): external services and libraries, reference implementations, the runtime or platform, required permissions, preconditions, and assumptions about users or context.
- Examples:
- "Target Platform: Linux containers (CUDA 12.9, Ubuntu 24.04 base)"
- "Primary Dependencies: Commander.js 14, Zod 4, urql, gql.tada, chalk, ora"
- "Users have appropriate permissions to run Docker containers"
P1.2 Explicit Constraint & Scope Boundaries. The spec states hard boundaries that shape what is feasible: resource or performance ceilings, restrictions on how the system may operate, limits on the functional domain, and rules for how components communicate. At the version level, it states that the current set is one phase of a larger roadmap, with specific capabilities deferred and a reason given.
- Examples:
- "Constraints: Read-only operations only; no write/delete/configuration operations"
- "Data MUST NOT be persisted by default."
- "All code lives inside
office_os/to stay compatible withopenenv push."
P1.3 Requirement/Task-Level Dependency & Risk Traceability. Dependencies, constraints, and risks are attached to the specific requirement, task, or phase they affect, with the reason for the ordering, which places that information alongside the work.
- Examples:
- "Dependencies: Task 1 (sequential - needs root to link properly)"
- "Phase 3 (US2): Depends on Phase 1, can run parallel to US1"
- "Legend: [P] = parallel-safe (distinct files, no ordering dependency)"
P1.4 Dependency Verification & Failure-Mode Handling. The spec specifies what happens at the edges of a dependency: a step confirming a prerequisite is satisfied before work proceeds, the behavior required when a dependency is unavailable or only partly met, the concrete files or modules a change depends on, and gates that prevent marking work complete while a dependency is unverified.
- Examples:
- "Verify:
uv run --project office_os serverstarts and/healthreturns OK" - "| API key not configured | Add escape route with setup link |"
- "
npx mcp-swissworks on Node.js 18, 20, 22"
- "Verify:
P2 Complete
The artifact set accounts for the requirements within the feature's stated scope, and makes remaining gaps visible.
P2.1 Functional and User Requirement Coverage. Intended behavior is described comprehensively from the user's perspective: functional requirements, user stories and workflows, acceptance and success criteria, key domain entities, and background on the current state that motivates the change.
- Examples:
- "## Success Criteria (mandatory) ### Measurable Outcomes" followed by SC-001 through SC-010
- "### Key Entities" listing Runtime User, Runtime Group, Critical Directories
- "## 1. Overview / ### Context & Goals / ### Current Pain Points"
P2.2 Exceptional Behavior & Scope Definition. The limits of the system are documented: invalid conditions, error handling, edge cases, named risks paired with mitigations, and explicit out-of-scope statements.
- Examples:
- "Scenario: Path does not exist ... THEN it SHALL return
{:error, "Path not found: <path>"}" - An edge-case table pairing "Degenerate/near-zero triangles" with "Filter or robust epsilon"
- "private owned-field debugging or introspection is out of scope for this change"
- "Scenario: Path does not exist ... THEN it SHALL return
P2.3 Technical, Operational & Quality Constraints. The artifacts document the technical, operational, and quality information needed to characterize the system: non-functional requirements, technical context, assumptions and constraints, architectural principles and governance rules, recorded technical decisions, and interface or contract definitions.
- Examples:
- "The system SHALL NOT shell out to the system
zipcommand." - "## Constitution Check"
- "The local-mode HTTP surface (
POST /hub/api) remains for non-MCP clients."
- "The system SHALL NOT shell out to the system
P2.4 Dependency & Delivery Planning. The artifacts describe how the system will be delivered: sequencing, dependencies between parts, migrations, delivery scope and effort, capabilities deferred to later versions, and documentation deliverables.
- Examples:
- "### Phase 5: Diagnostics & Tooling (0.5 day) / ### Phase 6: Tests & Benchmarks (0.5–1.0 day)"
- "reserve the parameter but only support
url=initially." - "File the MTR-onto-JetStream follow-up change/issue."
P2.5 Specification Completeness Management. Incomplete or evolving information is managed actively: clarifications and their resolutions are recorded, and outstanding items carry a status and a reference or plan for resolving them, distinguishing what is settled from what is not.
- Examples:
- "> Status: proposed (not yet implemented). ... Do not archive until implemented."
- "Reference: league-mod#124"
- "## Clarifications ### Session 2025-11-24"
I: Interpretable
An agent working across specifications, plans, and task descriptions needs to understand how the information fits together. Recognizable conventions help it locate requirements (I1), compatible terminology preserves meaning across artifacts (I2), and contextual guidance explains how details relate to the intended product (I3).
I1 Conforming
Artifacts adhere to an applicable template, schema, or set of document and identifier conventions.
I1.1 Standardized Document Structure. Every artifact of a given type follows the same layout: the same metadata block (branch, date, status, links) and the same named sections in the same order, so a reader who has seen one artifact knows where to find requirements, criteria, or governance checks in the next.
- Examples:
- "Branch: 001-shell-reload-api | Date: 2026-03-08 | Spec: ./spec.md"
- "## User Scenarios & Testing (mandatory)" / "## Requirements (mandatory)"
- "## Why" / "## What Changes" / "## Impact"
I1.2 Stable, Unique Requirement Identifiers. Each requirement, task, or success criterion has an identifier that is assigned once and never reused or silently reassigned, even as wording or location changes. Renames and supersessions are recorded explicitly (a "renamed from/to" note, a redirect to the replacement).
- Examples:
- "FR-001 ... FR-002 ... FR-012" and "SC-001 ... SC-002 ... SC-007"
- "Spec ID: 000"
- An OpenSpec "## RENAMED Requirements" section with FROM and TO entries
I1.3 Explicit Template Declaration & Enforcement. The artifact names the template or schema it follows, shows the expected format (ideally with a counter-example), offers a mechanical check (a validation command or linter), and explains deliberate departures from the template.
- Examples:
- "schema: spec-driven"
- "## Format:
[ID] [P?] [Story] Description" - "
openspec validate [change-id] --strict"
I2 Consistent
Terms, identifiers, and statements agree within and across artifacts.
I2.1 Standardized Terminology & Concept Definitions. A common vocabulary is defined and reused: core concepts, lifecycle stages, architectural elements, domain terms, modal-verb strength, enumerated values, and the technology stack are named identically wherever they recur.
- Examples:
- "Rename
Oa→OpenApiacross all affected classes and attributes." - "LinkSchema, RoadmapItemSchema, RoadmapCategorySchema, RoadmapSchema"
- "Tech stack: Go, Terraform Plugin Framework"
- "Rename
I2.2 Uniform Identifiers & Notation. Identifiers, labels, units, priorities, timestamps, and status markers follow one format across all artifacts, including a single convention for completion state, placeholder values, and retired identifiers.
- Examples:
- "(Priority: P1)" / "(Priority: P2)" / "(Priority: P3)"
- Seven requirements using 35 SHALL and four SHALL NOT statements with no other modal variants, and each of 21 scenarios containing one GIVEN/WHEN/THEN triple
- "T015 Verify responsive layout (mobile 320px, tablet 768px, desktop 1920px)"
I2.3 Cross-Artifact Alignment & Traceability. Requirements, constraints, filenames, references, and guidance stay synchronized across artifacts. Information repeated in several files says the same thing, reciprocal fields in linked tasks match, and shared conventions are cited identically.
- Examples:
- The response fields
checks_completedandchecks_skippedused identically in the specification, its error cases, and the implementation plan - plan.md "Performance Goals: Complete execution in under 5 minutes for up to 10 sources" matching spec.md "SC-001: Script completes execution in under 5 minutes for up to 10 sources"
- A limit stated in the spec reappearing unchanged in tasks.md: "T056 [P] [US4] Test limit parameter (default 200, max 1000)"
- The response fields
I2.4 Consistent Organizational Structure. Information is organized with the same structural conventions throughout the project: stories, priorities, scenarios, schemas, and sections follow one pattern, and each concern occupies exactly one place.
- Examples:
- "User stories should be PRIORITIZED as user journeys ordered by importance."
- "Scenario: Valid SQLView validates" / "Scenario: Wrong type rejected"
- "## Complete / ## Rejected / ## Consolidated", separated by identical
---rules throughout
I3 Comprehensible
The artifact set provides the context and navigation needed to interpret individual requirements as parts of a coherent product.
I3.1 Structured Document Organization. A clear structure lets readers understand the hierarchy and locate information: an entry point, logical and hierarchical sections, dedicated sections for topics such as assumptions and scope, a metadata block establishing the document's identity, and guidance for choosing between alternative layouts.
- Examples:
- "# Spec: mcp-swiss Project Overview" with "Spec ID: 000" and "Status: Implemented ✅"
- "### High Priority / ### Medium Priority / ### Low Priority / ### Unprioritized"
- A product requirements document organized into fifteen numbered sections, from the problem statement to non-goals
I3.2 Cross-Document Context & Navigation. The artifacts explain how documents relate to each other and to the wider project: the sibling documents in the set are listed, cross-references and prerequisite links are present, parent context is linked (tickets, prior versions, the existing system), and navigation points to next steps.
- Examples:
- "Input: Design documents from
/specs/001-yaml-first-docs/" - "## Next Steps / →
/workflows:planfor implementation details" - "Ticket: NCN-113655"
- "Input: Design documents from
I3.3 Comprehension Support. Supporting information reduces the effort needed to interpret the artifacts: file-purpose annotations, notation legends, worked examples, rationale for decisions, explicit status markers, definitions, authoring guidance in templates, and orienting statements about what the product is and is not.
- Examples:
- "This is a prompt flow editor, not a chat app."
- "├── plan.md # This file (/speckit.plan command output)"
- "Last Updated: 2026-04-30 09:35 UTC / Status: READY TO START"
C: Compartmentalized
An agent needs to distinguish what the product must do from the decisions and tasks involved in building it. This category connects a specification focused on intended behavior (C1) with supporting artifacts that guide implementation (C2).
C1 Scope Discipline
Product specifications distinguish required behavior and product constraints from discretionary design choices and project-management content.
C1.1 Behavioral Product Specification. The product is described through externally observable behavior, user goals, and product constraints, independent of particular technologies or architectures. Technical information belongs here only when it is a necessary product constraint (a required compatibility, interface, or operating condition).
- Examples:
- "As a network engineer, I want to query what the network looked like at a specific point in time"
- "Every transform must be safe and produce a valid wasm module."
- "AND the uncompressed directory is removed after successful compression"
C1.2 Separation of Product & Project Concerns. Design decisions, technical context, implementation plans, and tasks are kept in dedicated artifacts, so the specification stays focused on the product.
- Examples:
- A plan that begins "Input: Feature specification from /specs/001-shell-reload-api/spec.md"
- "# SelectBuilder OpenAPI Schema Assertions / Implementation Plan"
- Design decisions, technology stacks, and task lists appearing only in plan and task artifacts
C1.3 Traceable Transition to Implementation. Behavioral requirements are explicitly linked to the implementation work that realizes them, without moving implementation details into the specification itself.
- Examples:
- "[Story] labels ensure traceability to requirements in spec.md"
- "FR-002 → Task 2 (Detect) + Task 3 (Open dispatch)."
- "Organization: Tasks grouped by user story for independent implementation."
C2 Implementation-Planning Information
Supporting plan and task artifacts record how the work will be implemented.
C2.1 Technical Context & Implementation Foundations. The technical context needed for implementation: technologies, execution environments, permissions, operational assumptions, dependencies and how they are verified, architectural constraints, governance principles, and implementation-relevant domain concepts.
- Examples:
- "Serialize
mooncommands because they contend on_build/.moon-lock." - "Verify Docker build:
docker build -t office_os-env:latest -f server/Dockerfile ." - "Per RFC 9110 Section 4.3.4 (PUT)"
- "Serialize
C2.2 Implementation Planning & Task Organization. A structured implementation strategy: plans, project structure, phases, task decomposition, dependencies, execution order, and opportunities for parallel work.
- Examples:
- "## Phase 2: Foundational (Blocking Prerequisites)"
- "[P]: Can run in parallel (different files, no dependencies)"
- "├── contracts/ # Phase 1 output (API specifications)"
C2.3 Requirements-to-Implementation Traceability. Requirements are connected to plans, tasks, validation activities, and the documents that govern implementation choices (decision records, external specifications), so each requirement can be followed to its realization.
- Examples:
- "FR-001 → Task 8 (skeleton), Task 9 (validation), Task 10 (run)."
- "Full Decision Details: See
docs/testing/PUT_SEMANTICS_DECISION.md" - "Input: Feature specification from /specs/001-suzieq-mcp-server/spec.md"
C2.4 Implementation Data Models & Evolution Planning. Structured information about data concepts, interfaces, and contracts (preliminary data models, entity relationships, schemas, API contracts, status or version fields) and about how functionality is distributed across releases.
- Examples:
- "interface ExtractedLink { url: string; text: string; // Anchor text context: string; ... }"
- "contracts/ └── shell-reload-api.yaml"
- "Additional optional features (carousel, advanced OG generation) deferred to future scope."