LLM-Based Agents for User Story Quality Enhancement in Agile Development

austrian_post_group · Government · 2024 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Agile requirements engineering

Austrian Post Group IT wanted to improve agile user-story quality, where stories must be understandable, complete, and valuable enough for cross-team software delivery.

Constraints:

Architecture

The Autonomous LLM-based Agent System (ALAS) models requirements enhancement as a collaboration between role-specific LLM agents. A task definition initializes context, a shared knowledge base carries task information and conversation history, Product Owner and Requirements Engineer agents analyze and rewrite the story from complementary perspectives, and responses are accumulated for subsequent agents. Prompt preparation uses persona, k-shot, AI planning, fact-check-list, and chain-of-thought patterns.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  User_story_task["User story task"] --> Prompt_preparation_phase["Prompt preparation phase"]
  Prompt_preparation_phase --> Product_Owner_agent["Product Owner agent"]
  Prompt_preparation_phase --> Requirements_Engineer_agent["Requirements Engineer agent"]
  User_story_task --> Shared_knowledge_base["Shared knowledge base"]
  Product_Owner_agent --> Shared_knowledge_base
  Requirements_Engineer_agent --> Shared_knowledge_base
  Shared_knowledge_base --> Response_set["Response set"]
  Response_set --> Practitioner_evaluation["Practitioner evaluation"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
User story task Defines the story, context, objective, expected outcome, and procedural steps for the agent workflow. Shared knowledge base, Product Owner agent, Requirements Engineer agent
Product Owner agent LLM role focused on product vision, backlog management, and business value alignment. User story task, Shared knowledge base, Requirements Engineer agent
Requirements Engineer agent LLM role focused on unambiguity, quality, and measurable acceptance criteria. User story task, Shared knowledge base, Product Owner agent
Shared knowledge base Stores task information, context, responses, and conversation history to keep the multi-agent interaction coherent. Product Owner agent, Requirements Engineer agent, Response set
Prompt preparation phase Creates agent personas, examples, task plans, fact-check instructions, and chain-of-thought guidance before execution. User story task, Product Owner agent, Requirements Engineer agent
Response set Improved user-story outputs and intermediate agent responses reviewed in the evaluation. Shared knowledge base, Practitioner evaluation
Practitioner evaluation Assessment by professionals across agile teams of the quality improvements produced by the agents. Response set

Data flow

A user-story improvement task is prepared with context, expected outcome, agent profiles, and planned steps. The Product Owner agent reviews business value and product alignment, the Requirements Engineer agent reviews clarity, ambiguity, and acceptance criteria, and each response is added to the shared knowledge base. The final improved stories are evaluated by practitioners across agile teams.

3 supporting quotes
“The task initiates the interaction and contains inputs defining the work scope and objectives.”summary, stated
“The shared knowledge base is a repository containing task information and conversation history.”summary, stated
“Responses are outputs generated by each agent based on task descriptions, which are then added to the shared knowledge base for subsequent agents to reference.”summary, stated

Why this architecture

The system maps requirements work to expert roles rather than a generic rewrite prompt. Product and requirements agents can inspect the same story from different responsibilities, while the shared knowledge base maintains context across their collaboration.

3 supporting quotes
“Each agent represents an instance of an LLM model with a unique profile and role.”summary, stated
“Agent PO (Product Owner) focused on product vision, backlog management, and business value alignment”summary, stated
“Agent RE (Requirements Engineer) specialized in quality aspects like unambiguity and measurable acceptance criteria.”summary, stated

Models used: GPT models · GPT-4 · LLM Product Owner agent · LLM Requirements Engineer agent · CrewAI

Scale

Alternatives considered (roads not taken)

Single generic LLM assistant for story rewriting

Rejected because: The reference model decomposes work into specialized agents with distinct responsibilities.

“two agents were defined: Agent PO (Product Owner) focused on product vision, backlog management, and business value alignment, while Agent RE (Requirements Engineer) specialized in quality aspects”summary, stated

Prompting without shared conversation state

Rejected because: The model includes a shared knowledge base so subsequent agents can use task context and earlier responses.

“It provides a dynamic resource that informs subsequent agents of context and next steps, enabling coherent dialogue across the multi-agent interaction.”summary, stated

Rely only on raw LLM output without verification prompts

Rejected because: The preparation phase included a fact-check-list pattern to check outputs for errors or inconsistencies.

“The fact check list pattern verifies and validates LLM outputs by instructing the model to create key facts that can be checked for errors or inconsistencies.”summary, stated

Patterns

multi-agent-orchestration (orchestration)

ALAS coordinates Product Owner and Requirements Engineer agents over a shared task and knowledge base to improve user stories.

“The researchers proposed a reference model for LLM-based agent systems that conceptualizes how multiple AI agents can collaborate to complete tasks.”summary, stated
“two agents were defined: Agent PO (Product Owner) focused on product vision, backlog management, and business value alignment, while Agent RE (Requirements Engineer)”summary, stated

agent-memory (context)

The shared knowledge base stores task information and conversation history so later agent turns can incorporate prior responses.

“The shared knowledge base is a repository containing task information and conversation history.”summary, stated

eval-driven-development (evaluation)

The system was evaluated by professionals across agile teams to determine whether the agent-improved stories actually improved quality.

“The quality of user stories in the study and the effectiveness of these agents for user story quality improvement was assessed by 11 participants across six agile teams.”article, stated

Tradeoffs

Use specialized agent roles for story enhancement.

Chose Product Owner and Requirements Engineer agents over A single general-purpose user-story rewriter.

Rationale: The source describes different quality dimensions tied to product value and requirements clarity, so role specialization makes those dimensions explicit.

“Agent PO (Product Owner) focused on product vision, backlog management, and business value alignment”summary, stated
“Agent RE (Requirements Engineer) specialized in quality aspects like unambiguity and measurable acceptance criteria.”summary, stated

Use GPT-4 despite longer outputs.

Chose More comprehensive GPT-4 improvements over Shorter but potentially less complete story rewrites.

Rationale: The study found stronger improvements but also practical concerns from longer stories, making human review important.

“While GPT-4 produced more comprehensive improvements, it also generated longer stories that raised practical concerns.”summary, stated

Gotchas (what bit them)

Role-specific output can become impractical even when more comprehensive.

Root cause: GPT-4 produced longer improved stories, which raised practical usability concerns.

Resolution: Keep human oversight and practitioner evaluation in the loop to judge contextual relevance and practicality.

“While GPT-4 produced more comprehensive improvements, it also generated longer stories that raised practical concerns.”summary, stated
“The study highlights both the potential of LLMs in requirements engineering and the continued need for human oversight”summary, stated

LLM agents need careful role and task preparation to avoid generic rewrites.

Root cause: The quality task depends on product context, business value, requirements quality, and expected outcomes.

Resolution: Use persona profiles, k-shot prompts, AI planning, fact-check-list prompts, and chain-of-thought guidance during task preparation.

“This phase establishes the groundwork for agent interaction through careful prompt engineering.”summary, stated
“The researchers employed several sophisticated prompting techniques”summary, stated

Evaluation

The researchers evaluated ALAS with 11 professionals from six agile teams using 25 synthetic user stories and assessed improvements in clarity, comprehensibility, and business-value articulation.

Metrics: 11 participants · six agile teams · 25 synthetic user stories · clarity · comprehensibility · business value articulation

3 supporting quotes
“assessed by 11 participants across six agile teams.”article, stated
“using 25 synthetic user stories from a mobile delivery application project”summary, stated
“demonstrated significant improvements in clarity, comprehensibility, and business value articulation.”summary, stated

Outcomes

This was an early report using 11 participants, six agile teams, and 25 synthetic user stories rather than a full production deployment.

3 supporting quotes
“Our findings demonstrate the potential of LLMs in improving user story quality”article, stated
“While GPT-4 produced more comprehensive improvements, it also generated longer stories that raised practical concerns.”summary, stated
“continued need for human oversight to ensure contextual relevance and accuracy.”summary, stated