Cognitive Extension Epic

User Journey

The Cognitive Extension bounded context manages LLM/AI capabilities including prompt templates, completion orchestration, tool execution, and agent session management. It provides context-aware recommendations, generates interactive cognitive artifacts (mind maps, checklists, kanban boards), and enables configurable AI agents with custom prompt templates for diverse use cases from code generation to PET training.

Jobs to be Done & EARS Requirements

Job: Generate AI-Based Code Snippets

User Story: As a Developer, I want the system to generate code snippets based on a business rule defined in the DSL, so that I can rapidly implement features that adhere to enterprise semantics.

EARS Requirement:


Job: Provide Cognitive Amplification

User Story: As a Project Manager, when discussing project risks with my team, I want the AI to suggest a pre-filled risk matrix, so that I can quickly document and analyze potential issues.

EARS Requirement:


Job: Generate Context-Aware Recommendations

User Story: As an AI Agent, I want to understand the user’s current project, role, and recent activities, so that my recommendations are tailored to their specific needs.

EARS Requirement:


Job: Render Interactive Cognitive Artifacts

User Story: As the CADSL Runtime, I want to receive a CADSL definition, so that I can render a fully interactive cognitive artifact in the user interface.

EARS Requirement:


Job: Configure AI Agents

User Story: As an AI Operations Engineer, I want to update the prompt template for the customer support AI agent, so that it incorporates new product information.

EARS Requirement:


Job: Enable Context-Aware AI Behavior

User Story: As the AI Agent (Conversation), I want to receive context from the Knowledge Graph and Domain Services, so that I can answer user questions with accurate and up-to-date enterprise information.

EARS Requirement:


Job: Generate Contextual Cognitive Artifacts

User Story: As a knowledge worker, I want the system to generate cognitive artifacts (mind maps, checklists, kanban boards) from context, so that I can accelerate structured thinking.

EARS Requirement:


Job: Enable Interactive Artifact Editing

User Story: As a Knowledge Worker, I want to directly edit the content of a recommended mind map, so that I can customize it to my specific thought process.

EARS Requirement:


Job: Evaluate Prompt Quality

User Story: As a learner, I want my prompt to be evaluated for intent, structure, and agentic viability, so that I can receive actionable feedback to improve my prompt engineering skills.

EARS Requirement:


Job: Display Prompt Feedback in Dual-Pane UI

User Story: As a learner, I want to see my prompt response and judge feedback side-by-side, so that I can immediately understand what to improve.

EARS Requirement:


Job: Trigger Micro-Lessons Based on Prompt Flags

User Story: As a learner, I want the system to suggest targeted lessons when I make specific mistakes, so that I learn concepts in context.

EARS Requirement:


Job: Award XP and Gamification Progress

User Story: As a learner, I want to earn XP and badges for improving my prompts, so that I stay motivated and track my progress.

EARS Requirement:


Job: Support Enterprise Custom Rubrics

User Story: As an enterprise administrator, I want to define organization-specific prompt evaluation rules, so that PET enforces our best practices.

EARS Requirement:


Job: Export Learning Data via SCORM/xAPI

User Story: As an enterprise L&D administrator, I want to export PET learning data to our LMS, so that prompt engineering training integrates with our existing learning ecosystem.

EARS Requirement:


Job: Provide Multilingual Prompt Feedback

User Story: As a global learner, I want to receive prompt feedback in my native language, so that I can effectively learn prompt engineering regardless of language.

EARS Requirement:


Job: Support Desktop App Workflow (Tauri)

User Story: As a prompt engineering professional, I want a native desktop application for specialized workflow, so that I can focus without browser distractions.

EARS Requirement:


Job: Maintain Privacy and Encrypt Stored Prompts

User Story: As an enterprise user, I want my prompts to be encrypted at field level, so that my intellectual property is protected even in on-prem deployments.

EARS Requirement:


Domain Entities Summary

Root Aggregates

Value Objects

Policy Rules

Integration Points