Skip to main content

Discovery Engine

Phases −1 and 0 — Lean Inception + Domain-Driven Design

Version: 1.0 · Applies to Phases −1 and 0 of the ASDD lifecycle

The Discovery Engine is the structured entry point to the ASDD lifecycle. It governs the work done before any specification, architecture, or code is written. No Phase 1 work begins without its outputs.


Why this phase exists

Traditional inception activities produce alignment documents that live in slide decks and wikis and are forgotten by sprint 2. The Discovery Engine produces machine-consumable artifacts — specifically intent.md, a seeded domain-model.md, and an MVP canvas — that feed directly into the agent pipeline.

AI agents cannot fix vague intent. They amplify it into inconsistent, unreliable outputs. The Discovery Engine forces clarity before a single agent executes.

Without Discovery EngineWith Discovery Engine
Agents receive vague "build me a payment system" promptsAgents receive structured intent with defined actors, constraints, and domain vocabulary
Hallucinations occur at spec generation phaseHallucinations are prevented by grounded domain terms
Re-work discovered during implementationMisalignment surfaced in the Discovery workshop

Two integrated methodologies

The engine integrates two complementary approaches:

Lean InceptionDomain-Driven DesignCombined outcome
Aligns people around the what and whyAligns people around the language and modelShared understanding that both humans and agents can act on
Produces MVP scopeProduces domain vocabularyAgents receive scoped requirements grounded in real domain concepts
Focuses on user journeysFocuses on business rulesSpecs that are both user-centered and technically precise

Entry modes

The Discovery Engine is mode-driven. The entry mode determines which activities are mandatory, which are optional, and the expected duration.

ModeWhen to useDurationFull inception?
NEW_PRODUCTNew product or major capability from scratch3–5 daysFull Lean Inception week
IMPROVEMENTSignificant new features to an existing product1–2 daysPartial — scoped tracks only
BUG_FIXDiagnosing and fixing a specific defect2–4 hoursLightweight — impact and domain scope only
REFACTORStructural improvements with no behavior changeHalf dayArchitecture track only

The mode is recorded in intent.md as the first field and determines the Phase 0 exit gate checklist.


Part 1: Lean Inception (aligning people)

What it is

Lean Inception (Paulo Caroli) is a focused workshop designed to align a team around a shared product vision and identify the Minimum Viable Product. ASDD runs it as a facilitated workshop with the Product Owner, Tech Lead, and at least one Engineer.

AI agents do not run the inception — they are informed by its outputs.

Activity map by mode

ActivityNEW_PRODUCTIMPROVEMENTBUG_FIXREFACTOR
Product vision statementMandatoryMandatory
Is / Is not / Does / Does notMandatoryMandatory
Persona definitionMandatoryIf new personas
Feature discoveryMandatoryMandatory
Technical & business reviewMandatoryMandatory
User journey mappingMandatoryIf affected journeys
Feature sequencingMandatoryMandatory
MVP canvasMandatoryScoped canvas
Impact / confidence assessmentMandatory
Bounded context reviewMandatoryMandatory
Architecture context mapMandatory

Key activities

Activity 1: Product Vision Statement

Align everyone on the single sentence describing what the product is, for whom, and why it matters.

For [target customer]
who [need or opportunity]
the [product name]
is a [product category]
that [key benefit].
Unlike [primary competitive alternative]
our product [primary differentiation].

Output: intent.md — Mission section

Activity 2: Is / Is Not / Does / Does Not

Define product scope boundaries explicitly to prevent scope creep entering the agent pipeline.

IsIs Not
A payment processing gatewayA full banking system
Real-time transaction validationFraud investigation tooling

Output: intent.md — Non-Goals section

Activity 3: Persona Definition

Identify 2–3 specific user personas. Agents use these as actor references in requirements — "authenticated merchant" instead of "user".

Activity 4: Feature Discovery

Brainstorm all potential features. Categorize, deduplicate, and prioritize. This directly seeds the requirements backlog.

Activity 5: Feature Sequencing & MVP Canvas

Assign features to MVP, V1, V2, and future releases. The MVP canvas becomes the scope boundary for the first pipeline run.

Output: mvp-canvas.md, features.md


Part 2: Domain-Driven Design (aligning language)

What it is

DDD workshop (Eric Evans) identifies the Ubiquitous Language, Bounded Contexts, and core Domain Events that all downstream agents will consume. This session translates business concepts into a structured vocabulary that both humans and agents use consistently.

Core DDD activities

Event Storming (2–3 hours)

Map domain events on a timeline. Identify aggregates, commands, and policies.

Output: A list of core Domain Events for domain-model.md

Bounded Context Mapping (1–2 hours)

Identify where the system boundaries are. Each bounded context becomes a potential squad scope.

Output: context-map.md

Ubiquitous Language Session (1 hour)

Agree on precise definitions for the 10–20 most important domain terms. Every agent downstream will use these definitions as vocabulary constraints.

Output: domain-model.mdubiquitous_language section

Invariant Identification (1 hour)

Identify business rules that must always hold — invariants that agents must never violate.

Output: domain-model.mdentities[].invariants sections


Outputs: Phase −1 artifacts

By the end of Phase −1, the following artifacts must exist:

ArtifactContentUsed by
mvp-canvas.mdFeature scope, personas, MVP definitionDiscovery Agent, Spec Agent
personas.mdActor definitions with specific namesSpec Agent (actor precision)
user-journeys.mdStep-by-step user flowsDiscovery Agent
features.mdPrioritized feature list with slice assignmentsSpec Agent
context-map.mdBounded context diagramDomain Agent, Design Agent
domain-model.md (seed)Core entities, ubiquitous language, invariantsAll downstream agents

Phase 0: Product Intent Approval

Phase 0 formalizes the discovery outputs into a single, PO-approved intent document.

Artifact: intent.md

Required sections:

entry_mode: NEW_PRODUCT | IMPROVEMENT | BUG_FIX | REFACTOR
mission: >
One-sentence elevator pitch from the Lean Inception workshop
capabilities:
- What the system can do (behavioral, not technical)
success_metrics:
- Measurable business outcomes
non_goals:
- Explicit scope exclusions from the Is/Is-Not exercise
bounded_context: Identity | Payments | Notifications | ...
domain_entities_involved:
- Entity names from domain-model.md

Exit gate: PO approves intent.md with confidence score ≥ 0.85. No Phase 1 work begins without an approved intent document.


Sample facilitation schedule: NEW_PRODUCT mode

DayMorning (3h)Afternoon (3h)Output
Day 1Product vision, Is/Is NotPersona definitionVision statement, personas
Day 2Feature discoveryTechnical + business reviewFeature list (raw)
Day 3User journey mappingFeature sequencingJourney maps, sequenced features
Day 4MVP canvasEvent Stormingmvp-canvas.md, event list
Day 5Bounded Context mappingUbiquitous Language + Invariantscontext-map.md, domain-model.md seed
Day 6intent.md authoring and PO reviewBuffer / open issuesApproved intent.md

Common mistakes and how to avoid them

MistakeConsequencePrevention
Skipping the Domain Language sessionAgents use inconsistent vocabulary; validation failsUbiquitous Language session is mandatory even in IMPROVEMENT mode
Vague persona definitionsAgents write requirements for "user" instead of specific actorsRequire persona definitions with names and specific behavioral goals
Defining too many featuresMVP scope bloats; first pipeline run becomes unmanageableFeature sequencing must assign >50% of features to V1+ (not MVP)
PO not present for Phase 0 sign-offintent.md reflects TL assumptions, not business intentPO presence is mandatory for Phase 0 exit gate
Skipping Discovery for bug fixesAgents fix the symptom, not the root causeBUG_FIX mode still requires 2-hour impact + domain scope session

Next

  • ASDD Lifecycle — what happens after Phase 0 is approved
  • Domain Agent — how the Domain Agent consumes and extends the domain-model.md