User Stories
Úsér_Stóríés // Sýstém_Dóc
ᚠ ᛫ ᛟ ᛫ ᚱ ᛫ ᛒ ᛫ ᛟ ᛫ ᚲ
title: User Stories subtitle: What developers can build with the ForbocAI SDK slug: user-stories
This document defines the core user stories for the ForbocAI SDK. Each story follows the format: As a [role], I want [goal], so that [benefit]. Stories are translated into BDD specifications that drive API endpoint design.
Epic 1: Cortex — Local Inference
US-1.1: Initialize Local Model
As a developer
I want to initialize a local language model on the user’s device
So that I can run AI inference without server round-trips or API costs
BDD Specification
API Endpoints
US-1.2: Generate Completion
As a developer
I want to send a prompt to the local model and receive a completion
So that my application can generate AI-powered text responses
BDD Specification
API Endpoints
US-1.3: Handle Offline/Fallback
As a developer
I want to define fallback behaviors if the local model fails or hangs
So that my game remains playable even if the AI subsystem crashes
BDD Specification
API Endpoints
Epic 2: Agent — Autonomous Entities
US-2.1: Create an Agent
As a developer
I want to create an AI agent with a persona and initial state
So that I can add intelligent NPCs or assistants to my application
BDD Specification
API Endpoints
US-2.2: Process Agent Input
As a developer
I want to send input to an agent and receive dialogue + actions
So that my agent can respond intelligently and take validated actions
BDD Specification
API Endpoints
Epic 3: Memory — RAG Pipeline
US-3.1: Store Observation
As a developer
I want to store events as semantic memories for an agent
So that the agent can recall relevant past events during future interactions
BDD Specification
API Endpoints
US-3.2: Recall Relevant Memories
As a developer
I want to retrieve memories semantically related to a query
So that the agent can use past context when responding
BDD Specification
API Endpoints
Epic 4: Bridge — Neuro-Symbolic Validation
US-4.1: Validate Agent Action
As a developer
I want to validate AI-generated actions against my application’s rules
So that agents cannot perform impossible or invalid actions
BDD Specification
API Endpoints
US-4.2: Force Agent Action (GM Override)
As a developer
I want to forcefully inject an action or dialogue into an agent’s stream
So that I can control scripted sequences (cutscenes) without fighting the AI
BDD Specification
API Endpoints
Epic 5: Soul — Portable Agent State
US-5.1: Export Agent to Soul
As a developer
I want to export an agent’s complete state (persona, memories, stats) as a Soul
So that it can be persisted, traded, or used in other applications
BDD Specification
API Endpoints
US-5.2: Import Agent from Soul
As a developer
I want to recreate an agent from an exported Soul
So that characters can persist across sessions or transfer between applications
BDD Specification
API Endpoints
Epic 6: Ghost Agents — Automated QA
US-6.1: Run Ghost Agent Session
As a developer
I want to run headless AI agents through my application for automated testing
So that I can validate content, balance, and edge cases at scale
BDD Specification
API Endpoints
Epic 7: Analytics & Debugging — The “Black Box” Insight
US-7.1: Inspect Agent Thought Process
As a developer
I want to view the internal “Chain of Thought” logs of an agent
So that I can understand why an NPC made a specific decision (e.g., why it attacked a friendly player)
BDD Specification
API Endpoints
US-7.2: Monitor Token Usage & Cost
As a studio lead
I want to track token usage and API calls per agent/session
So that I can optimize performance and manage infrastructure costs
