Turning Requirements into AI-Ready Artifacts
Why a raw requirement canât be handed over as-is
Section titled âWhy a raw requirement canât be handed over as-isâSuppose you hand an AI coding assistant a request like âbuild a registration site for participants.â What happens next?
The AI fills in everything the sentence leaves out: whether team names need to be unique, what the expected concurrency is, whether thereâs a file size limit for attachments. The problem is that this filling-in is invisible. Whatever default the AI picks quietly flows through the Story and the Test all the way into production.
This article covers the transformation from a raw requirement to an architecture decision. The goal isnât for the AI to âproduce something plausibleâ; itâs to produce something a human can verify against explicit grounds.
Example domain: Event Registration
Section titled âExample domain: Event RegistrationâThis article and the two that follow it are all grounded in one fictional service.
An Event Registration service where participants sign up for internal company events (conferences, hackathons, workshops), and an operations team manages the registrations.
This isnât any real organizationâs actual system. Itâs constructed to surface the problems that recur in this class of service (registration forms, file attachments, duplicate checks, operator lookup) regardless of which company builds it.
Step 1: Receive the raw requirement
Section titled âStep 1: Receive the raw requirementâA raw requirement usually arrives this short and this incomplete:
[Raw Requirement]The Event Registration site must include the following features.- Event introduction- Participation guide- Registration and submission- Registration confirmationAttachments must be uploadable and deletable.Team names in a registration must be unique.The sentence itself isnât bad. The problem is whatâs missing (who can view which page, what the file size limit is, whether edits are allowed after the deadline), which vastly outnumbers whatâs stated. Hand this straight to an AI for implementation, and it fills the gaps differently every time.
Step 2: Separate explicit requirements, assumptions, and open questions
Section titled âStep 2: Separate explicit requirements, assumptions, and open questionsâAsk an AI to flesh out the raw requirement and youâll get something that reads plausibly. But it shouldnât be accepted as-is. First, sort every statement into one of three buckets.
| Category | Definition | In this example |
|---|---|---|
| Explicit requirement | Actually present in the raw requirement sentence | Registration form, attachments, unique team name |
| Justified assumption | Not in the sentence, but reasonably filled by domain convention | Real-time duplicate check for team names is a reasonable default |
| Open question | Cannot be filled even with domain convention | File size limit, expected concurrency, whether edits are allowed post-deadline |
If the AIâs elaborated output pins down an open question with an arbitrary number (âfiles must be under 50MB, for instanceâ), no one can verify where that number came from. Any item like this must stay an open question and be confirmed with the PO or stakeholders.
## Open Questions (must be resolved before elaboration is final)- What is the maximum attachment size?- What is the target concurrency?- Are edits allowed to a registration after the submission deadline?- How long must participant personal data be retained?Step 3: Derive common capabilities
Section titled âStep 3: Derive common capabilitiesâOnce explicit requirements are settled, extract the common capabilities that recur across multiple screens. This must happen before implementing individual screen requirements one by one, otherwise the same capability (duplicate check, file validation, permission separation) gets implemented differently on each screen.
Common capabilities derived for the Event Registration example:
1. User / permission management - Separate permissions for anonymous registrants vs. operators - Identity verification when looking up a registration (registration number + team name, etc.)
2. Form input and validation - Required field / format validation (both frontend and backend) - Real-time team name duplicate check + re-check at submission time
3. File upload / management - Allowed format, size, and count limits - Upload/delete permissions and post-deadline lock policy - Confirmation step before deletion
4. State management - Feature activation/deactivation based on the submission window - Notification (e.g. email) on state changes
5. Operator lookup / export - Registration list search, detail view, file download - Data export for aggregationThese five common capabilities are referenced repeatedly when writing user stories later. Skip this step and start writing individual stories directly, and youâll end up with gaps like âteam name duplicate checkâ implemented on the registration screen but missing from the edit screen.
Step 4: Elaborate non-functional requirements
Section titled âStep 4: Elaborate non-functional requirementsâNon-functional requirements matter as much as functional ones. The same principle applies here: fill in a concrete number only when thereâs an actual basis for it.
[FE non-functional requirements â example structure]- Browser compatibility: target browser list (Open Question: how far back should support go)- Security: enforce HTTPS, double-side input validation, CSRF/XSS protection- Performance: target load time (Open Question: the actual target figure)
[BE non-functional requirements â example structure]- Expected concurrency (Open Question: actual target traffic)- Recovery targets (RTO/RPO) (Open Question: actual SLA)
[DB non-functional requirements â example structure]- Data retention period (Open Question: legal/policy requirement)- Backup intervalNotice the recurring pattern. An AI can propose plausible-sounding numbers like â1,000 concurrent usersâ or âRTO of one hour,â but it has no way of knowing whether those numbers reflect an actual business constraint. As emphasized in steps 3 and 4, any item requiring a concrete number must be marked as an open question and resolved only by an actual owner.
Step 5: Derive the architecture decision and development rules
Section titled âStep 5: Derive the architecture decision and development rulesâOnce explicit requirements, common capabilities, and confirmed non-functional requirements are in place, an architecture decision can finally be written.
## Architecture Decision: Event Registration
- Layering: Controller / Service / Repository separation- Auth: registrants verified by registration number + team name; operators use a separate account system- File storage: kept in a separate store; direct URL access blocked- Concurrency: team name duplicate check double-guarded by a frontend real-time check plus a DB unique constraint- Audit log: record registration/edit/delete events
## Development Rules (excerpt)- All form validation must run on both frontend and backend (frontend validation alone is never sufficient)- The file upload endpoint must only be reachable from an authenticated session- A DB unique constraint must always exist independently of the application-level check (to prevent race conditions)This architecture decision is one of the key inputs later handed to a coding agent in Designing Context Packages for Coding Agents.
Traceability: why this structure matters
Section titled âTraceability: why this structure mattersâWalking through these five steps lets you trace which explicit requirement or confirmed non-functional requirement any given architecture decision item originated from.
"double-guarded by a DB unique constraint" â common capability "real-time team name duplicate check" â explicit requirement "team names in a registration must be unique"Without this trace, no one can later answer âwhy was it designed this way?â, and thatâs even more true when the design was produced by an AI. An AI doesnât remember its own reasoning, and asking it the same question again can produce a different answer.
A common failure: elaboration disguised as domain knowledge
Section titled âA common failure: elaboration disguised as domain knowledgeâWhen asked to âelaborate on the requirements,â an AI often presents values with no actual grounding as if they were industry standards: sentences like â50MB is an appropriate attachment limitâ or âthe target for initial load is under two seconds.â
These statements arenât necessarily wrong. The problem is that thereâs no way to tell whether the number came from an actual business constraint or simply sounded plausible enough for the AI to generate. As stressed in steps 3 and 4 of this article, every item that requires a concrete number must be flagged as an open question and confirmed by an actual owner.
Next article
Section titled âNext articleâOnce the architecture decision is in place, the next step is breaking the requirement down into verifiable units. The next article covers how to build testable user stories in Given-When-Then form, grounded in a PRD and screen design information.
â Creating Testable User Stories from PRD and UI Artifacts