Definitive
Definitive
Specification
Specification
Data Model
Data Model
DefinitiveSpec provides a comprehensive set of artifacts to model every aspect of your system. This toolkit is the foundation of our AI-native methodology, transforming precise specifications into high-quality, verified software.
Part 1: The Core
Implementing
a Feature
At the heart of any system is the feature. Definitive Development Methodology provides a tight loop of artifacts to define, implement, and verify this core logic with absolute clarity.
requirement
: Defines the GoalTo capture the business need and acceptance criteria, providing a clear goal and a direct link from intent to implementation.
model
: Shapes the DataTo define the precise shape and rules of your data, from API payloads to database entities, ensuring type-safety and validation across the system.
code
: Details the LogicTo detail the step-by-step business logic in an abstract, readable way. This is the single source of truth for implementation.
test
: Provides the ProofTo guarantee correctness by explicitly linking test cases to the requirements, APIs, or code they verify, enabling automated test generation and gap analysis.
Part 2: The Structure
Architecting
the System
Features don't live in isolation. You need to define how they fit into the bigger picture. These artifacts build the architectural blueprint and model how components interact.
design
: The ComponentsDefines the high-level responsibilities of services
To define the high-level components of your system, their responsibilities, and how they relate to one another, creating a clear architectural overview.
api
: The ContractsSpecifies how components talk to each other
To define an unambiguous, technology-agnostic contract for how your system's services communicate.
interaction
: The ChoreographyModels the sequence of communication between components
To model how multiple components (design artifacts) collaborate in a sequence to fulfill a larger use case, like a sequence diagram in code. Perfect for simulating and debugging complex flows.
behavior
: The LifecycleThe internal state and transitions of complex components
To model a component's lifecycle using a formal state machine (fsm). Essential for objects with complex states, like an Order (e.g., PENDING -> PAID -> SHIPPED).
event
: The AnnouncementsDecouples components through asynchronous messages
To define significant occurrences in your system. It's the foundation of event-driven architectures, decoupling components and enabling reactive workflows.
Part 3: The Governance
Enforcing
the Rules
A robust system needs rules that apply everywhere. These artifacts allow you to define system-wide policies, terminology, and most importantly how the AI agent should behave. This is how you achieve consistency at scale.
policy
: Enforcing System-Wide RulesCentralizes rules for errors
To centralize cross-cutting concerns. Instead of every developer re-inventing error handling, you define it once in a policy for the agent to enforce everywhere.
nfr
: Defining QualityNon-Functional Requirements as a formal part
To make Non-Functional Requirements (like performance or security) a formal, verifiable part of your spec.
infra
: The EnvironmentSpecifies configuration and deployment details
To connect your application to its runtime world. Define environment variables, feature flags, and deployment settings, keeping configuration separate from logic.
glossary
: The DictionaryCreates a shared understanding of terms
To eliminate ambiguity by creating a single source of truth for business and technical terminology. When a kpi mentions "Monthly Recurring Revenue", its definition is here.
directive
: The AI's BrainYou program the agent by defining patterns to translate abstract logic into concrete code. This is your control panel.
This is the most powerful concept. It's where you **program the AI agent**, teaching it how to translate abstract keywords from your code specs (like PERSIST) into your specific tech stack's code. **You are in full control of the output.**
Part 4: The Metrics
Measuring
What Matters
Business value is the ultimate test of any system. KPIs connect your technical architecture to business outcomes, enabling powerful what-if analysis and data-driven decision making.
kpi
: Business IntelligenceThe Measure of Business Value
Instead of just saying "improve checkout," you define it with absolute clarity. The agent understands this spec as a core system objective.
Because the agent understands the link between requirements
, code
, and KPIs, it can run a virtual simulation to predict the future. This creates a feedback loop between business strategy and technical implementation.
Before you write a line of code for a new feature, you can ask:
- "What is the projected impact of requirement.AddNewPaymentMethod on kpi.CheckoutConversionRate?"
The agent analyzes the proposed changes, simulates user flows, and provides a data-driven forecast, turning strategic planning from guesswork into a science.
Definitive
Definitive
Specification
Specification
Data Model
Data Model
DefinitiveSpec provides a comprehensive set of artifacts to model every aspect of your system. This toolkit is the foundation of our AI-native methodology, transforming precise specifications into high-quality, verified software.
Part 1
Implementing a Feature
At the heart of any system is the feature. Definitive Development Methodology provides a tight loop of artifacts to define, implement, and verify this core logic with absolute clarity.
requirement
: Defines the GoalTo capture the business need and acceptance criteria, providing a clear goal and a direct link from intent to implementation.
model
: Shapes the DataTo define the precise shape and rules of your data, from API payloads to database entities, ensuring type-safety and validation across the system.
code
: Details the LogicTo detail the step-by-step business logic in an abstract, readable way. This is the single source of truth for implementation.
test
: Provides the ProofTo guarantee correctness by explicitly linking test cases to the requirements, APIs, or code they verify, enabling automated test generation and gap analysis.
Part 2
Architecting the System
Features don't live in isolation. You need to define how they fit into the bigger picture. These artifacts build the architectural blueprint and model how components interact.
design
: The ComponentsDefines the high-level responsibilities of services
To define the high-level components of your system, their responsibilities, and how they relate to one another, creating a clear architectural overview.
api
: The ContractsSpecifies how components talk to each other
To define an unambiguous, technology-agnostic contract for how your system's services communicate.
interaction
: The ChoreographyModels the sequence of communication between components
To model how multiple components (design artifacts) collaborate in a sequence to fulfill a larger use case, like a sequence diagram in code. Perfect for simulating and debugging complex flows.
behavior
: The LifecycleThe internal state and transitions of complex components
To model a component's lifecycle using a formal state machine (fsm). Essential for objects with complex states, like an Order (e.g., PENDING -> PAID -> SHIPPED).
event
: The AnnouncementsDecouples components through asynchronous messages
To define significant occurrences in your system. It's the foundation of event-driven architectures, decoupling components and enabling reactive workflows.
Part 3
Enforcing the Rules
A robust system needs rules that apply everywhere. These artifacts allow you to define system-wide policies, terminology, and most importantly how the AI agent should behave. This is how you achieve consistency at scale.
policy
: Enforcing System-Wide RulesCentralizes rules for errors
To centralize cross-cutting concerns. Instead of every developer re-inventing error handling, you define it once in a policy for the agent to enforce everywhere.
nfr
: Defining QualityNon-Functional Requirements as a formal part
To make Non-Functional Requirements (like performance or security) a formal, verifiable part of your spec.
infra
: The EnvironmentSpecifies configuration and deployment details
To connect your application to its runtime world. Define environment variables, feature flags, and deployment settings, keeping configuration separate from logic.
glossary
: The DictionaryCreates a shared understanding of terms
To eliminate ambiguity by creating a single source of truth for business and technical terminology. When a kpi mentions "Monthly Recurring Revenue", its definition is here.
directive
: The AI's BrainYou program the agent by defining patterns to translate abstract logic into concrete code. This is your control panel.
This is the most powerful concept. It's where you **program the AI agent**, teaching it how to translate abstract keywords from your code specs (like PERSIST) into your specific tech stack's code. **You are in full control of the output.**
Part 4
Measuring What Matters
Business value is the ultimate test of any system. KPIs connect your technical architecture to business outcomes, enabling powerful what-if analysis and data-driven decision making.
kpi
: Business IntelligenceThe Measure of Business Value
Instead of just saying "improve checkout," you define it with absolute clarity. The agent understands this spec as a core system objective.
Because the agent understands the link between requirements
, code
, and KPIs, it can run a virtual simulation to predict the future. This creates a feedback loop between business strategy and technical implementation.
Before you write a line of code for a new feature, you can ask:
- "What is the projected impact of requirement.AddNewPaymentMethod on kpi.CheckoutConversionRate?"
The agent analyzes the proposed changes, simulates user flows, and provides a data-driven forecast, turning strategic planning from guesswork into a science.
The Cycle of Certainty:
Operating System
for Development
DefinitiveSpec isn't just a set of files; it's a rigorous, iterative process.
This closed-loop system ensures that every piece of specification is traceable
to a validated requirement, eliminating drift and ambiguity.
You begin by capturing business intent as a requirement
and defining success with a kpi
. Then, you create the architectural blueprint: the models
,apis
, and abstract code
logic. This is the single source of truth.
This is our crucial pre-flight check. The agent validates every spec for correctness and integrity. Here, you can run "What-If" analyses on KPIs or simulate complexinteractions
to prove your design is sound before committing to implementation.
With a validated blueprint, the agent acts as an automated builder. It translates yourcode
specs into production-ready code, strictly adhering to the directive
patterns your team has defined.
The Spec is Truth. Always. If testing or a new insight reveals a flaw, you don't patch the code. You update the specification. This triggers the cycle again, ensuring your documentation and implementation are never out of sync.
Not a Chatbot
A Compiler
for Specifications
Our agent is not a creative co-pilot; it's a disciplined executor.
It's a new kind of tool — a computer within an LLM, that takes natural language requirements and raw ideas as input and produces precise specifications as output.
You ready to start writing high-quality code.
The agent follows strict, non-negotiable rules. TheDDM-RULE-XXX
protocol, likeDDM-RULE-001: SpecIsTruth
, is hard-coded into its operation. It cannot add logic that isn't in the spec. It cannot ignore a policy. This ensures its behavior is predictable and aligned with your standards.
You interact with the agent like any other developer tool. It responds to clear commands, not vague conversation. You issue tasks like DSpec: Implement Code Spec
orDSpec: Run Simulation
. It requires specific inputs (the .dspec
files) and produces structured outputs (code, analysis reports). It has an API, not a personality.
Thedirective
patterns that translate specs into code are your team's "cookbook." They are managed by your architects and governed by a formal process. We are so serious about this that we even have test
specs for the agent itself, ensuring it complies with its own rules.