Skip to content

Turning Requirements into AI-Ready Artifacts

Interactive Diagram

새 탭 ↗

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.

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.

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 confirmation
Attachments 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.

CategoryDefinitionIn this example
Explicit requirementActually present in the raw requirement sentenceRegistration form, attachments, unique team name
Justified assumptionNot in the sentence, but reasonably filled by domain conventionReal-time duplicate check for team names is a reasonable default
Open questionCannot be filled even with domain conventionFile 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?

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 aggregation

These 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.

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 interval

Notice 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.

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.

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

PlantUML Diagram