Query Epic

User Journey

The Query bounded context enables natural language queries about policies using Retrieval-Augmented Generation (RAG) with integrated governance enforcement. It orchestrates query processing by retrieving semantically relevant policies, validating access through governance checks, and synthesizing accurate answers with source citations.

Jobs to be Done & EARS Requirements

Job: Process Natural Language Query

User Story: As a policy consumer, I want to ask questions about policies in natural language, so that I can get accurate answers with governance enforcement and source citations.

EARS Requirement:


Job: Track Query History

User Story: As a system administrator, I want to track past queries for improvement and auditing, so that I can understand user needs and system performance.

EARS Requirement:


Job: Handle Follow-up Questions

User Story: As a policy consumer, I want to ask follow-up questions in conversation, so that I can explore policies iteratively with context maintained across turns.

EARS Requirement:


Domain Entities Summary

Root Aggregates

Value Objects

Policy Rules

Integration Points