๐งญ Vision and Product Planning Agents Overview¶
๐ Introduction¶
The Vision and Product Planning Agent Cluster is the strategic entrypoint of the ConnectSoft AI Software Factory.
These agents operate in the pre-architecture phase, transforming raw human intent into a complete, validated product strategy. Their collaboration anchors all downstream domains โ from clean architectural modeling to microservice generation, CI/CD, and deployment.
This cluster defines what the software must achieve, who it serves, and how success will be measured, ensuring traceability and alignment throughout the AI-driven system creation lifecycle.
๐ Why It Matters¶
Without clearly articulated and structured product vision and planning:
- Software lacks strategic coherence
- Teams suffer from misaligned expectations
- Engineering and QA cycles waste time on rework
- Delivery outcomes drift from business value
By automating the conversion of idea โ vision โ plan โ stories, ConnectSoft achieves:
| Goal | Outcome |
|---|---|
| Traceability | Every feature traces to a problem, persona, and metric |
| AI-Autonomy | Agents act on validated plans, not vague prompts |
| Scalability | 1000s of agents can coordinate using common planning protocols |
| Governance | Structured vision and planning documents become system-of-record artifacts |
๐ฏ Objectives of This Document¶
This overview document provides:
- A clear understanding of the four primary planning agents
- Their roles, responsibilities, and outputs
- How they collaborate, sequence, and handoff
- Diagrams and event-driven flows illustrating traceable behavior
- Insights into observability, skills, and semantic routing
- The foundation for extending or auditing this critical domain
๐งฑ Agent Cluster Composition¶
| Agent | Core Function |
|---|---|
| Vision Architect Agent | Converts business ideas into structured software vision documents |
| Business Analyst Agent | Refines vision into functional requirements, rules, processes |
| Product Manager Agent | Builds product roadmap, MVP plan, personas, and release phases |
| Product Owner Agent | Translates plan into backlog-ready user stories and acceptance criteria |
Each agent builds upon the outputs of the previous, forming a composable, semantic planning pipeline.
๐งญ Position in the Execution Flow¶
The Vision and Product Planning Agent Cluster initiates the structured lifecycle of the ConnectSoft AI Software Factory immediately after a project is provisioned. These agents perform semantic decomposition of ideas into executable product and engineering plans.
While their collaboration typically follows a sequential pattern, the platform supports multiple valid activation flows โ depending on the blueprint type, domain, or configuration.
๐ Standard Event-Driven Activation Flow¶
In the most common pattern, agents activate in a linear cascade:
sequenceDiagram
participant Orchestrator
participant VisionArchitect
participant ProductManager
participant ProductOwner
participant BusinessAnalyst
Orchestrator->>VisionArchitect: `TemplateProvisioned`
VisionArchitect->>ProductManager: Emit `VisionDocumentCreated`
ProductManager->>ProductOwner: Emit `ProductPlanCreated`
ProductOwner->>BusinessAnalyst: Emit `BacklogReady`
Here, the Business Analyst validates and enriches backlog items post-decomposition with business rules, processes, and gap models.
๐ Alternative Flow: Early Business Analysis Track¶
In complex domains (e.g., regulated industries), it may be beneficial to run Business Analyst Agent in parallel or before product planning:
sequenceDiagram
participant Orchestrator
participant VisionArchitect
participant BusinessAnalyst
participant ProductManager
participant ProductOwner
Orchestrator->>VisionArchitect: `TemplateProvisioned`
VisionArchitect->>BusinessAnalyst: Emit `VisionDocumentCreated`
BusinessAnalyst->>ProductManager: Emit `BusinessRequirementsReady`
ProductManager->>ProductOwner: Emit `ProductPlanCreated`
In this model, Business Analyst Agent decomposes Vision Document into formal requirements that act as input to the product plan. This is preferred when:
- Functional complexity is high
- Detailed business rules are needed early
- Compliance or domain constraints must be modeled
๐ Concurrent Flow (Fork-Join Pattern)¶
Both the Product Manager and Business Analyst can consume the VisionDocument concurrently:
flowchart TD
VisionArchitect --> VisionDocument
VisionDocument --> ProductManager
VisionDocument --> BusinessAnalyst
ProductManager --> ProductPlan
BusinessAnalyst --> BusinessRequirements
ProductPlan & BusinessRequirements --> ProductOwner
This fork-join model improves speed, parallelism, and resilience when both roles can work independently and merge later under the Product Owner.
๐ง Role of the Orchestration Layer¶
The orchestration layer is aware of all supported activation modes and determines execution based on:
- Project metadata (industry, scope, compliance flags)
- Template blueprints (e.g., SaaS Healthcare Template triggers early BA)
- Event configuration graph (FSM / conditional routing)
It ensures traceability by emitting consistent sessionId, traceId, and componentTag metadata, regardless of flow type.
๐งฉ Example Configuration Switch (in blueprint.config.yaml)¶
โ Summary¶
-
The Business Analyst Agent supports multiple positioning models:
-
After Product Owner (validation/refinement)
- Before Product Manager (early decomposition)
- In parallel with Product Manager (fork-join)
- The orchestration layer selects the most appropriate execution path.
- All flows are fully observable, event-driven, and traceable.
๐งฑ Agent Cluster Summary Table¶
The Vision and Product Planning cluster is composed of four core agents, each responsible for transforming unstructured business ideas into structured, AI-ready execution artifacts. They work together in a semantic chain, producing documents, models, and events consumed by downstream architectural and engineering agents.
This table provides a concise overview of their roles, inputs, outputs, and system events:
๐ Overview Table¶
| Agent | Core Role | Consumes | Produces | Emits Event |
|---|---|---|---|---|
| ๐ง Vision Architect Agent | Translates freeform input into structured Vision Document. | Human idea, objective prompt, constraints, use case context. | vision.md, vision.json, metadata trace block. |
VisionDocumentCreated |
| ๐ Business Analyst Agent | Extracts structured business requirements, rules, processes. | Vision Document, personas, initial features, domain constraints. | requirements.md, rules.md, bpmn.mmd, gap-analysis.md. |
BusinessRequirementsReady |
| ๐ฏ Product Manager Agent | Plans product roadmap, MVP cutline, release phases. | Vision Document, requirements (if available), strategic goals, personas. | product-plan.md, features.json, epics.yaml. |
ProductPlanCreated |
| ๐ Product Owner Agent | Generates backlog, user stories, acceptance criteria. | Product plan, business rules, personas, constraints. | user-stories.md, acceptance-criteria.md, story-map.json. |
BacklogReady |
๐ง Key Properties Across the Cluster¶
| Characteristic | Description |
|---|---|
| Event-Driven | All agents activate via orchestrated event triggers (e.g., VisionDocumentCreated). |
| Traceable | Every artifact includes traceId, sessionId, and contextual metadata. |
| Composable | Outputs from one agent become structured inputs for the next. |
| Recoverable | Agents can retry, correct, or request clarification from orchestrator or human-in-the-loop. |
| Memory-Augmented | All agents have access to prior project vision, similar domains, or templates via semantic memory. |
๐งฉ Visual Snapshot¶
flowchart LR
HumanInput["๐ง Human Prompt"] --> VisionArchitect["๐ง Vision Architect Agent"]
VisionArchitect -->|VisionDocumentCreated| BusinessAnalyst["๐ Business Analyst Agent"]
VisionArchitect -->|VisionDocumentCreated| ProductManager["๐ฏ Product Manager Agent"]
BusinessAnalyst -->|BusinessRequirementsReady| ProductManager
ProductManager -->|ProductPlanCreated| ProductOwner["๐ Product Owner Agent"]
ProductOwner -->|BacklogReady| DownstreamAgents["โฌ๏ธ Engineering / QA / Architecture"]
๐ Agent Collaboration Flow¶
The Vision and Product Planning Agents collaborate through a combination of event-driven messaging, semantic input handoff, and orchestrator-managed sessions. Their interaction forms a traceable, modular pipeline, converting ideas into execution-ready blueprints.
This section visualizes their coordination under various flow models.
๐งญ Standard Sequential Collaboration (Linear Cascade)¶
In the most common pattern, agents work in strict sequence, each emitting artifacts and events for the next to consume:
flowchart TD
A1["๐ง Vision Architect Agent"] -->|`VisionDocumentCreated`| A2["๐ฏ Product Manager Agent"]
A2 -->|`ProductPlanCreated`| A3["๐ Product Owner Agent"]
A3 -->|`BacklogReady`| A4["๐ Business Analyst Agent"]
- ๐ก Best for: simple SaaS products with clear vision and MVP goals.
- ๐ง Product Manager works from Vision directly.
- ๐งพ Business Analyst applies rules post-decomposition.
๐ Alternative Flow: Business-First Track¶
Here, Business Analyst Agent activates before product planning:
flowchart TD
A1["๐ง Vision Architect Agent"] -->|`VisionDocumentCreated`| A2["๐ Business Analyst Agent"]
A2 -->|`BusinessRequirementsReady`| A3["๐ฏ Product Manager Agent"]
A3 -->|`ProductPlanCreated`| A4["๐ Product Owner Agent"]
- ๐ก Best for: regulated domains, ERP-like complexity, policy-heavy applications.
- โ๏ธ Requirements are formalized early to drive planning scope.
๐ Fork-Join Collaboration (Concurrent Model)¶
In high-parallelism environments, Product Manager and Business Analyst can work simultaneously from Vision output:
flowchart TD
Vision["๐ง Vision Architect Agent"]
Vision -->|`VisionDocumentCreated`| PM["๐ฏ Product Manager Agent"]
Vision -->|`VisionDocumentCreated`| BA["๐ Business Analyst Agent"]
PM -->|`ProductPlanCreated`| PO["๐ Product Owner Agent"]
BA -->|`BusinessRequirementsReady`| PO
- ๐ก Best for: large projects, short timelines, enterprise back-office systems.
- โ Product Owner joins both inputs into consistent user stories and criteria.
๐ Observability and Event Metadata¶
Each agent emits artifacts and events including:
traceId,sessionId,componentTagartifact_urito Markdown/JSON/YAML outputagent_version,timestamp,confidence_score
This ensures replayability, dashboard tracing, and full audit logs across the AI Software Factory lifecycle.
๐ง Vision Architect Agent โ Role & Responsibilities¶
The Vision Architect Agent is the origin point for every ConnectSoft project. It transforms unstructured human input โ ideas, problems, prompts, goals โ into a structured, versioned Vision Document that anchors all downstream work.
It operates autonomously, using internal skills and semantic memory to ensure that even vague prompts are translated into actionable, AI-ready software visions.
๐ฏ Core Responsibilities¶
| Responsibility | Description |
|---|---|
| Idea Structuring | Parses freeform input (natural language, documents, forms) to extract problem, goals, constraints. |
| Problem Definition | Formalizes the business or operational problem the software must solve. |
| Opportunity Framing | Identifies strategic angles: customer value, market fit, innovation potential. |
| Solution Conceptualization | Drafts a high-level solution approach (what kind of system, for whom, and why). |
| Software Type Classification | Tags the system: SaaS, mobile app, API, AI system, internal platform, etc. |
| Initial Feature Mapping | Suggests modular features (e.g., "Appointment Scheduling", "User Profile", "Billing"). |
| Persona Definition | Identifies stakeholders, users, admins, external systems. |
| Success Metrics Formulation | Lists outcome goals: "Reduce no-shows by 30%", "Launch in 90 days", etc. |
| Vision Document Generation | Creates a Markdown + JSON artifact with full structured content. |
| Metadata & Traceability Injection | Adds traceId, software_type, domain_tags, confidence_score, and timestamps. |
| Event Emission | Publishes VisionDocumentCreated event for downstream agents. |
๐งฉ Position in Lifecycle¶
flowchart TD
User["๐ง Human Input"] --> VA["๐ง Vision Architect Agent"]
VA -->|`vision.md`, `vision.json`| ArtifactStorage
VA -->|`VisionDocumentCreated`| EventBus
EventBus --> PM["๐ฏ Product Manager Agent"]
EventBus --> BA["๐ Business Analyst Agent"]
- Trigger:
TemplateProvisionedorProjectInitialized - Downstream Consumers: Product Manager, Business Analyst, Enterprise Architect, QA agents
โ Key Outputs¶
| Artifact | Format | Description |
|---|---|---|
vision.md |
Markdown | Human-readable summary of system vision |
vision.json |
JSON | Machine-consumable structured version |
| Metadata | JSON | Includes traceId, software_type, confidence_score, etc. |
| Event | VisionDocumentCreated |
Includes artifact URI, traceability, classification |
๐ก Example Use Case¶
Prompt: "I want a platform where pet clinic admins can manage appointments and billing for multiple locations."
The Vision Architect Agent might produce:
- Software Type:
["SaaS", "Mobile App Extension"] - Personas:
["Pet Owner", "Clinic Admin", "Billing Manager"] - Features:
["Appointment Scheduling", "Multi-Clinic Calendar", "Billing Reports"] - Metrics:
["Reduce admin time by 25%", "Support launch in Q2 2026"]
๐ Summary¶
- The Vision Architect Agent enables intent-to-blueprint automation.
- Its artifacts are the entrypoint into all subsequent planning, modeling, and engineering.
- It provides both human-readable and machine-consumable outputs, wrapped in traceable, observable events.
๐ง Vision Architect Agent โ Execution Flow Diagram¶
The Vision Architect Agent follows a modular, observable execution pipeline that transforms high-level prompts into formal Vision Documents. Its execution is autonomous, semantic, and resilient, powered by Semantic Kernel, internal skills, and traceable event protocols.
๐ ๏ธ Step-by-Step Execution Lifecycle¶
flowchart TD
E1["๐ Event: TemplateProvisioned"] --> A1["๐ Agent Activated"]
A1 --> A2["๐ฅ Input Parsing & Context Setup"]
A2 --> A3["๐ง Skill Orchestration"]
A3 --> A4["๐ Vision Drafting"]
A4 --> A5["๐ Metadata Injection"]
A5 --> A6["โ
Artifact Validation"]
A6 --> A7["๐พ Artifact Storage"]
A7 --> A8["๐ค Emit VisionDocumentCreated"]
A3 --> O["๐ Observability: Spans, Logs, Metrics"]
A4 --> O
A6 --> O
A8 --> O
๐ Execution Phases Explained¶
| Phase | Description |
|---|---|
| 1. Activation | Orchestrator emits StartAgentSession: VisionArchitectAgent after TemplateProvisioned. |
| 2. Input Parsing | Agent reads: project name, use case prompt, business objective, runtime constraints. |
| 3. Skill Orchestration | Composes a graph of skills like ProblemExtractor, PersonaGenerator, MetricFormulator. |
| 4. Vision Drafting | Generates both vision.md (human-readable) and vision.json (structured metadata). |
| 5. Metadata Injection | Adds traceId, sessionId, projectId, agentVersion, domainTags, softwareType, confidenceScore. |
| 6. Validation | Structural schema validation + semantic consistency checks using internal validation skill. |
| 7. Storage | Saves artifacts to blob, Git, and semantic memory (vector DB). |
| 8. Event Emission | Emits VisionDocumentCreated, including links to both artifacts and metadata envelope. |
| Observability | Spans (CreateVisionDocument, StoreArtifact), structured logs (Vision document created), metrics (vision_agent_success_total) emitted. |
๐ฅ Inputs Required¶
project-metadata.json- User prompt or objective
- Use case seed prompt
- Optional: template type, constraints, runtime metadata
๐ฆ Outputs Produced¶
| File | Description |
|---|---|
vision.md |
Primary vision artifact (problem, goals, solution idea, personas, etc.) |
vision.json |
Structured version for machine agents |
vision.metadata.json |
Trace + classification metadata |
event: VisionDocumentCreated |
Routed to Event Bus |
๐ง Key Execution Technologies¶
| Component | Role |
|---|---|
| Semantic Kernel Planner | Orchestrates LLM-backed skills in a reusable graph |
| OpenAI / Azure OpenAI | Used for reasoning, classification, summarization |
| Blob Storage / Git | Artifact persistence |
| OpenTelemetry + Prometheus | Execution trace, logs, and metrics emission |
| Skill Registry | Skills loaded dynamically for ProblemExtraction, PersonaGeneration, etc. |
โ Execution Properties¶
- ๐ Fully traceable:
traceId,sessionId,agentId - ๐ง Fully semantic: reasoning and skill planning built-in
- ๐งช Fully validated: all outputs must pass semantic + structural checks
- ๐ Fully observable: spans, logs, metrics, and event hooks included
๐ฅ Vision Architect Agent โ Inputs & Outputs¶
The Vision Architect Agent consumes natural language prompts and project metadata, then produces structured, validated vision artifacts. Its input parsing and output emission follow the AI Software Factory's semantic and observability-first standards.
๐ฅ Inputs Consumed¶
| Input | Source | Purpose |
|---|---|---|
| Project Metadata | Created at project initialization (project-metadata.json) |
Contains project name, industry, objective, scope, constraints. |
| Use Case Prompt | Human or external API input | Freeform business idea to ground the Vision Document. |
| Template Info | From template provisioner | Blueprint selected (e.g., Microservice Template, API Gateway). |
| Runtime Constraints | Optional | Time-to-market, budget, MVP scope, compliance flags. |
| Semantic Memory (optional) | Vector DB or MCP | Past successful vision documents and domain patterns. |
๐ Example Input Payload¶
{
"traceId": "clinic-2025-001",
"projectId": "proj-71a9",
"projectName": "VetPracticeApp",
"businessObjective": "Help clinics manage appointments more efficiently",
"industry": "Healthcare",
"useCasePrompt": "Let clinic admins and pet owners manage bookings online",
"templateType": "Microservice Template",
"constraints": ["HIPAA", "Launch in Q3"]
}
๐ค Outputs Produced¶
| Artifact | Format | Description |
|---|---|---|
vision.md |
Markdown | Full narrative vision document (problem, opportunity, personas, goals, initial features). |
vision.json |
JSON | Structured representation (software type, features, stakeholder matrix, goals). |
vision.metadata.json |
JSON | Metadata block: traceId, projectId, softwareType, confidenceScore, agentId. |
VisionDocumentCreated |
Event | Routed to Event Bus with artifact_uri, sessionId, timestamp, and traceability info. |
๐ Example Vision Document (Excerpt โ vision.md)¶
# ๐ง Vision: VetPracticeApp
## Problem
Clinics struggle to manage appointment demand and no-shows using outdated tools.
## Goal
Enable patients and staff to manage appointments through a modern, mobile-friendly interface.
## Personas
- ๐พ Pet Owner: wants to book/cancel/reschedule from phone.
- ๐ฉโโ๏ธ Clinic Admin: wants calendar view, bulk confirmation, notification triggers.
## High-Level Features
- Appointment Scheduling
- Calendar Management
- Notification System
- Billing Integration
## Outcome Metrics
- Reduce admin workload by 30%
- Launch MVP in 90 days
- HIPAA compliant
๐ง Metadata Block (Excerpt โ vision.metadata.json)¶
{
"traceId": "clinic-2025-001",
"projectId": "proj-71a9",
"softwareType": ["SaaS", "Calendar Platform"],
"domainTags": ["healthcare", "booking", "scheduling"],
"confidenceScore": 0.91,
"agentVersion": "v1.2.4",
"artifactUri": "https://blob.connectsoft.ai/vision/clinic-2025-001/vision.md"
}
๐ฃ Event: VisionDocumentCreated¶
{
"event": "VisionDocumentCreated",
"traceId": "clinic-2025-001",
"sessionId": "vision-session-0341",
"artifactUri": "https://blob.connectsoft.ai/vision/clinic-2025-001/vision.md",
"producedAt": "2025-05-12T09:00:00Z"
}
This event activates:
- โ Product Manager Agent
- โ Business Analyst Agent
- โ (Optional) Enterprise Architect Agent (if early modeling mode is enabled)
โ Summary¶
- Inputs are simple, high-signal prompts and project context.
- Outputs are modular, machine-consumable, traceable artifacts.
- All results are stored, versioned, validated, and event-emitted with full observability.
๐ฏ Product Manager Agent โ Role & Responsibilities¶
The Product Manager Agent is the strategic planner of the ConnectSoft AI Software Factory. It consumes the structured vision from the Vision Architect and transforms it into a goal-driven product roadmap with features, MVP cutlines, and release phases.
This agent ensures that software is not only feasible but also valuable, aligned to personas, and delivery-focused.
๐งญ Core Responsibilities¶
| Responsibility | Description |
|---|---|
| Goal Decomposition | Breaks down strategic goals from the Vision Document into measurable product outcomes. |
| Feature Definition | Identifies modular capabilities (features) aligned with personas and use cases. |
| MVP Extraction | Prioritizes a minimum viable product set to satisfy core goals under time/budget constraints. |
| Persona-to-Feature Mapping | Connects each feature to the personas it benefits and the problems it solves. |
| Release Planning | Groups features into phased delivery milestones: MVP, vNext, Stretch Goals. |
| Risk Awareness | Highlights blockers, uncertainties, and downstream dependencies. |
| Event Emission | Emits ProductPlanCreated and optionally MVPDefined for downstream agents. |
๐งฉ Position in the Factory Lifecycle¶
flowchart TD
VA["๐ง Vision Architect Agent"] -->|VisionDocumentCreated| PM["๐ฏ Product Manager Agent"]
PM -->|ProductPlanCreated| PO["๐ Product Owner Agent"]
PM -->|ProductPlanCreated| EA["๐๏ธ Enterprise Architect Agent"]
- Receives traceable Vision artifact as input.
- Output activates both planning and architecture tracks.
๐ Sample Product Plan Breakdown¶
| Persona | Goal | Feature | Priority |
|---|---|---|---|
| Pet Owner | Book appointment anytime | Mobile Booking Flow | MVP |
| Clinic Admin | Manage staff calendars | Staff Calendar View | vNext |
| Billing Manager | Reconcile invoices | Billing Export Tool | Stretch Goal |
๐ฆ Core Output Artifacts¶
| Artifact | Format | Description |
|---|---|---|
product-plan.md |
Markdown | Human-readable overview of goals, personas, features, priorities. |
features.json |
JSON | Structured list of epics, features, personas, outcomes, priority tags. |
epics.yaml |
YAML | Epic-to-feature-to-user story tree (used by Product Owner Agent). |
Event: ProductPlanCreated |
JSON | Sent to orchestrator and next agents with metadata + artifact link. |
๐ง Alignment with ConnectSoft Principles¶
| Principle | Contribution |
|---|---|
| Domain Traceability | Every feature maps to a persona, vision goal, and strategic constraint. |
| Modular Outputs | Features are atomic, portable, and re-usable across editions. |
| Event-Driven Workflow | Triggers Product Owner, QA planners, Enterprise Architect. |
| Cloud-Native Structure | All outputs are stored, versioned, and retrievable via URI. |
| Observability Embedded | Execution logs, spans, and metrics emitted for traceability. |
โ Summary¶
The Product Manager Agent is the contract of understanding between business needs and implementation.
It ensures that:
- ๐งฉ Product scope is clear
- ๐งโ๐คโ๐ง Persona needs are mapped
- ๐ฏ Goals are measurable
- ๐ Roadmap is execution-ready
๐ฅ Product Manager Agent โ Input Sources Diagram¶
The Product Manager Agent receives a rich, structured context that allows it to plan features, prioritize MVPs, and organize releases in alignment with stakeholder intent and system constraints.
This section documents all inputs consumed by the agent, as well as a diagram of its context initialization pipeline.
๐ Primary Inputs¶
| Input | Source | Description |
|---|---|---|
Vision Document (vision.json) |
Vision Architect Agent | Structured representation of problem, goals, personas, and initial features. |
| Strategic Goals | Embedded in vision or passed as explicit list | Used to evaluate outcomes and drive goalโfeature mapping. |
| Initial Feature List | From vision or business analyst | Basis for decomposition into MVP, vNext, etc. |
| Persona Definitions | From vision or analyst agent | Used to align features with real user needs. |
| Project Constraints | From project metadata | Includes time-to-market, compliance, budget, scope. |
| Business Requirements (Optional) | From Business Analyst Agent | Refines what must be implemented and when (e.g., "HIPAA-compliant booking"). |
| Semantic Memory (Optional) | Vector DB or MCP server | Suggests roadmap patterns from similar past products. |
๐ง Input Parsing Logic¶
The Product Manager Agent:
- Extracts features and personas
- Classifies goals by impact and feasibility
- Normalizes feature descriptions
- Computes confidence score for each planning phase
- Validates required fields and triggers human-in-the-loop only if needed
๐๏ธ Visual: Input Context Setup Flow¶
flowchart TD
VisionDoc["๐ vision.json"] --> ContextBuilder
Constraints["๐ project-metadata.json"] --> ContextBuilder
Personas["๐ฅ persona definitions"] --> ContextBuilder
Features["๐งฉ initial features"] --> ContextBuilder
Requirements["๐ business-requirements.md (optional)"] --> ContextBuilder
Memory["๐ง semantic memory (optional)"] --> ContextBuilder
ContextBuilder --> PlanComposer["๐ง Product Manager Agent Planning Logic"]
โ ContextBuilder phase aggregates inputs into a normalized, validated plan scope.
๐งช Input Example (vision.json excerpt)¶
{
"projectId": "proj-713",
"goals": [
"Reduce no-shows by 25%",
"Allow appointment scheduling without staff intervention"
],
"personas": ["Pet Owner", "Clinic Admin"],
"features": [
{ "title": "Mobile Booking Flow", "linkedPersona": "Pet Owner" },
{ "title": "Staff Calendar View", "linkedPersona": "Clinic Admin" }
],
"constraints": ["Launch MVP within 3 months"]
}
๐ Semantic Enrichment (if available)¶
| Scenario | Semantic Input |
|---|---|
| Similar veterinary SaaS found | Suggest reuse of "Reminder Service" and "Multi-Location Calendar" |
| Goals match prior project | Recommend known MVP slice pattern: [Booking] + [Reminder] |
| Compliance constraint (e.g., GDPR) present | Pull in standard feature validation checklist |
โ Summary¶
The Product Manager Agent is input-rich and inference-capable:
- It operates deterministically when input is sufficient.
- It leverages past product plans and personas for faster roadmap assembly.
- Its entire planning flow is traceable and observable โ ensuring explainable prioritization.
๐ค Product Manager Agent โ Output Flows¶
The Product Manager Agent transforms structured input into a suite of product planning artifacts, each supporting traceability, decomposition, and execution alignment. These outputs become the planning source of truth for Product Owners, Architects, and QA Agents.
๐ฆ Core Artifacts Produced¶
| Artifact | Format | Description |
|---|---|---|
product-plan.md |
Markdown | High-level narrative covering strategic goals, prioritized features, release phases, persona mapping. |
features.json |
JSON | Structured list of features with links to personas, goals, priority levels, and readiness status. |
epics.yaml |
YAML | Epics grouped by persona or feature domain, used by Product Owner Agent to slice into user stories. |
ProductPlanCreated |
Event | Triggers downstream agents (Product Owner, Architecture Agents) and includes trace metadata + URIs. |
๐ Example: product-plan.md¶
# Product Plan: VetPracticeApp
## ๐ฏ Strategic Goals
- Reduce clinic admin workload by 25%
- Enable 24/7 appointment self-booking
- Launch MVP within 90 days
## ๐ฅ Personas
- Pet Owner
- Clinic Admin
- Billing Manager
## ๐งฉ MVP Features
- โ
Mobile Booking Flow
- โ
Appointment Calendar View
- โ
Email Notifications
## ๐ vNext Features
- Staff Availability Manager
- Integration with CRM
๐ง Example: features.json¶
[
{
"featureId": "f001",
"title": "Mobile Booking Flow",
"linkedPersonas": ["Pet Owner"],
"priority": "MVP",
"outcomes": ["Reduce no-shows", "Self-service access"],
"linkedGoal": "Reduce clinic workload"
},
{
"featureId": "f002",
"title": "Calendar Management",
"linkedPersonas": ["Clinic Admin"],
"priority": "vNext"
}
]
๐ Feature Phasing Logic¶
Features are grouped into tiers:
| Tier | Description |
|---|---|
| โ MVP | Required to satisfy core goals and constraints |
| ๐ vNext | High-value features that follow MVP |
| ๐งช Stretch Goals | Innovation or enhancement scope, possibly deferred |
๐ค Event: ProductPlanCreated¶
{
"event": "ProductPlanCreated",
"traceId": "proj-713-v1",
"artifactUri": "https://blob.connectsoft.ai/product-plans/proj-713/product-plan.md",
"featuresUri": "https://blob.connectsoft.ai/product-plans/proj-713/features.json",
"sessionId": "product-manager-session-0021",
"emittedAt": "2025-05-12T14:02:00Z"
}
Triggers:
- ๐ Product Owner Agent โ to decompose into user stories
- ๐๏ธ Enterprise Architect Agent โ to model service boundaries and bounded contexts
๐งฉ Downstream Consumption¶
| Agent | Artifact Consumed | Action |
|---|---|---|
| Product Owner Agent | features.json, epics.yaml |
Slice into stories, define acceptance criteria |
| Enterprise Architect Agent | features.json |
Map to domain services and bounded contexts |
| QA Planner Agent (optional) | product-plan.md |
Extract test themes and coverage slices |
โ Summary¶
The Product Manager Agent produces actionable, structured product plans that:
- Are aligned with personas and goals
- Provide decomposition-ready feature trees
- Enable traceable, autonomous downstream execution
- Maintain full observability and governance lineage
๐ Product Owner Agent โ Role & Responsibilities¶
The Product Owner Agent bridges the gap between strategic planning and actionable engineering. It consumes the Product Plan and feature specifications to produce backlog-ready user stories, acceptance criteria, and epic-to-story mappings that drive implementation flows across engineering agents.
This agent is crucial for translating "what to build" into "how it will be delivered".
๐งญ Core Responsibilities¶
| Responsibility | Description |
|---|---|
| Story Decomposition | Breaks down features into detailed, testable user stories. |
| Epic-to-Story Mapping | Organizes stories under clearly defined epics and value streams. |
| Persona Alignment | Ensures each story is tied to a persona and user goal. |
| Acceptance Criteria Definition | Creates BDD-style GivenโWhenโThen or formal criteria for validation. |
| Edition Differentiation (optional) | Adds story metadata for multi-edition delivery (e.g., Starter vs. Enterprise). |
| Traceability Injection | Links each story back to features, vision goals, personas, and project metadata. |
| Event Emission | Emits BacklogReady or UserStoriesGenerated to activate engineering cluster. |
๐งฉ Example Breakdown¶
Feature: โMobile Booking Flowโ
| Epic | User Story | Persona | Acceptance Criteria (excerpt) |
|---|---|---|---|
| Appointment Booking | โAs a pet owner, I want to book an appointment from my phoneโฆโ | Pet Owner | โ Given I select a date, When I confirm, Then I receive a confirmation message |
| Appointment Booking | โAs a guest user, I want to book without logging inโฆโ | Pet Owner | โ Given I enter contact info, Then system accepts a booking |
๐ Output Summary¶
| Output | Format | Description |
|---|---|---|
user-stories.md |
Markdown | Complete backlog of decomposed stories. |
story-map.json |
JSON | Structured persona โ epic โ feature โ story mapping. |
acceptance-criteria.yaml |
YAML | Formal definitions for test alignment. |
Event: BacklogReady |
Event | Triggers Engineering and QA Agents. |
๐ User Story Format Example (Markdown)¶
## ๐งพ User Story: Book Appointment Without Login
**Persona**: Pet Owner
**Epic**: Appointment Booking
**Goal**: Enable frictionless scheduling
### ๐ Acceptance Criteria
- โ
Given Iโm not signed in, I can enter pet and contact info
- โ
When I choose a time, the system holds the slot for 5 minutes
- โ
Then I receive a confirmation and reminder email
๐ค Event: BacklogReady¶
{
"event": "BacklogReady",
"traceId": "proj-713-v1",
"storiesUri": "https://blob.connectsoft.ai/backlogs/proj-713/user-stories.md",
"sessionId": "product-owner-session-0103",
"emittedAt": "2025-05-12T15:42:00Z"
}
Triggers:
- ๐ฉโ๐ป Engineering Agents (Backend, Frontend)
- ๐งช QA Agents (BDD test generation)
- ๐๏ธ Microservice Assembly Coordinators (if use cases detected)
๐ Traceability Chain¶
Every story is linked to:
- Vision Document โ
goalId - Product Plan โ
featureId,epicId - Persona โ
personaId - Project metadata โ
projectId,traceId
This allows full backward traceability from a microservice to a user story to a vision goal.
โ Summary¶
The Product Owner Agent delivers:
- Decomposed, testable stories
- Clear personaโgoalโfeature mappings
- Acceptance criteria for QA and test planning
- Observability and traceability across the planningโexecution boundary
It serves as the final planning checkpoint before engineering begins.
๐ Product Owner Agent โ Inputs & Event Activation¶
The Product Owner Agent is activated only after the Product Plan is available โ containing structured features, epics, and persona mappings. It uses this input to generate backlog-ready user stories and acceptance criteria that support event-driven execution, testing, and scalable engineering orchestration.
This section details the full set of inputs, activation conditions, and how the agent initializes its context.
๐ฅ Inputs Consumed¶
| Input | Source | Description |
|---|---|---|
features.json |
Product Manager Agent | Core feature list with persona links and priority tags (MVP, vNext, Stretch). |
epics.yaml |
Product Manager Agent | Feature โ Epic โ Persona mappings, used to group stories. |
product-plan.md |
Product Manager Agent | Human-readable version of the product vision, used to extract goals and tone. |
business-requirements.md (optional) |
Business Analyst Agent | Adds rules, validations, or constraints that impact story slicing. |
project-metadata.json |
Platform | For injecting projectId, traceId, and edition constraints. |
semantic memory (optional) |
Vector DB | Suggests similar stories from prior domains to accelerate decomposition. |
โ๏ธ Event-Driven Activation¶
sequenceDiagram
participant Orchestrator
participant ProductManager
participant ProductOwner
participant EventBus
ProductManager->>EventBus: Emit `ProductPlanCreated`
EventBus->>Orchestrator: Notify
Orchestrator->>ProductOwner: StartAgentSession
ProductOwner->>ArtifactStore: Read features.json, epics.yaml
ProductOwner->>EventBus: Emit `BacklogReady`
๐ Example Input Snapshot¶
features.json¶
[
{
"featureId": "f003",
"title": "Admin Calendar View",
"linkedPersonas": ["Clinic Admin"],
"priority": "vNext"
}
]
epics.yaml¶
๐ง Execution Context Initialization¶
The agent initializes execution using:
traceId,sessionId, andagentId- Skill chain:
StorySlicerSkill,CriteriaGeneratorSkill,PersonaAlignerSkill -
Planning strategy:
-
Decompose top-down by epic
- Prioritize MVP features
- Tag stories with
delivery_phase,persona, andgoal_link
๐ก Semantic Augmentation (Optional)¶
If semantic memory is available, the agent can:
- Import successful story patterns (e.g., onboarding, booking, billing)
- Auto-align stories with domain language (e.g., โrescheduleโ, โreminder queueโ)
- Validate that no critical gaps exist in MVP coverage
๐งพ Metadata Tracing Injected¶
Each generated user story includes:
storyId,linkedFeatureId,personaId,traceId,version,deliveryPhase, andoriginatingAgentId
This ensures downstream agents can:
- Build DTOs, handlers, and APIs from exact story scope
- Validate and test based on acceptance criteria
- Track every change or iteration across planning cycles
โ Summary¶
- Input: Consumes product artifacts, optional business rules, and project metadata.
- Trigger: Activated on
ProductPlanCreatedevent via orchestrator. - Output: Structured, traceable backlog with full persona and goal mapping.
- Integration: Connects upstream planning to downstream engineering, QA, and release management.
๐ค Product Owner Agent โ Output Mapping¶
The Product Owner Agent produces structured backlog artifacts that enable engineering, testing, and release planning. It ensures that each story is not only traceable but also aligned to personas, features, and business goals โ with well-defined acceptance criteria for autonomous validation.
๐ฆ Core Artifacts Produced¶
| Artifact | Format | Description |
|---|---|---|
user-stories.md |
Markdown | Human-readable backlog organized by epic and persona. |
story-map.json |
JSON | Structured persona โ epic โ feature โ story hierarchy. |
acceptance-criteria.yaml |
YAML | BDD-style GivenโWhenโThen blocks per story. |
BacklogReady |
Event | Signals readiness for engineering and test generation. |
๐งฉ Output Relationships¶
flowchart TD
Feature["๐ Feature: Mobile Booking"] --> Story1["๐งพ Story: Book Appointment"]
Feature --> Story2["๐งพ Story: Cancel Appointment"]
Story1 --> Criteria1["โ
Acceptance: Confirm via mobile"]
Story2 --> Criteria2["โ
Acceptance: Cancel via email"]
Each story:
- References a
featureId,persona,goal,deliveryPhase - Includes embedded criteria and linked epic
- Is tagged with
storyId,traceId,projectId, andsessionId
๐ Sample: user-stories.md¶
## ๐งพ User Story: Book Appointment Without Login
**Persona**: Pet Owner
**Epic**: Appointment Booking
**Feature**: Mobile Booking Flow
**Goal**: Reduce no-shows by 25%
**Delivery Phase**: MVP
### โ
Acceptance Criteria
- Given I visit the booking page on mobile, I can select an available slot
- When I confirm the form, I receive a confirmation email
- Then the appointment appears in the clinic calendar
๐ง Sample: story-map.json¶
{
"persona": "Pet Owner",
"epic": "Appointment Booking",
"feature": "Mobile Booking Flow",
"stories": [
{
"storyId": "s001",
"title": "Book Appointment Without Login",
"deliveryPhase": "MVP"
},
{
"storyId": "s002",
"title": "Receive Reminder SMS",
"deliveryPhase": "vNext"
}
]
}
๐ Sample: acceptance-criteria.yaml¶
- storyId: s001
title: Book Appointment Without Login
criteria:
- Given I visit the booking page
- When I fill in contact info and submit
- Then I receive a confirmation
- And the slot is marked as booked
๐ค Event: BacklogReady¶
{
"event": "BacklogReady",
"traceId": "proj-713-v1",
"sessionId": "product-owner-session-0342",
"artifacts": {
"userStories": "https://blob.connectsoft.ai/proj-713/user-stories.md",
"storyMap": "https://blob.connectsoft.ai/proj-713/story-map.json",
"criteria": "https://blob.connectsoft.ai/proj-713/acceptance-criteria.yaml"
},
"emittedAt": "2025-05-12T16:04:00Z"
}
๐ Downstream Consumers¶
| Agent / Component | Use of Output |
|---|---|
| Engineering Agents | Generate APIs, DTOs, handlers per user story. |
| QA Agents | Use acceptance-criteria.yaml to build automated BDD test cases. |
| PR/CI Agents | Attach story metadata to PR titles, branch naming, and tracking. |
โ Summary¶
- Output maps each feature to multiple persona-aligned stories
- Every story is testable, traceable, and ready for autonomous implementation
BacklogReadyis the signal to begin build cycles
๐ Business Analyst Agent โ Role & Responsibilities¶
The Business Analyst Agent focuses on refining the product concept into formal business logic, processes, and rules. While it can operate before, after, or in parallel to the Product Manager and Product Owner, its main role is to capture the operational realities and constraints of the domain that impact implementation.
This agent ensures that software solutions reflect not just user goals but also business compliance, regulatory, and procedural expectations.
๐งญ Core Responsibilities¶
| Responsibility | Description |
|---|---|
| Requirement Extraction | Converts high-level goals into formal business rules, validations, and operational constraints. |
| Process Modeling | Builds BPMN-style diagrams of business flows (e.g., "Appointment Lifecycle"). |
| Constraint Formalization | Captures mandatory business constraints (e.g., โno double bookingsโ, โGDPR consent requiredโ). |
| Gap Analysis | Detects missing features or flows that deviate from business reality. |
| Glossary and Domain Vocabulary | Generates domain-specific definitions (e.g., โAppointmentโ, โSchedule Blockโ, โConfirmed Statusโ). |
| Decision Modeling (optional) | Creates DMN-style or tabular rule matrices (e.g., refund policy by status and timeframe). |
| Validation Hookpoints | Adds domain-specific rules used in test scaffolding or runtime validators. |
| Event Emission | Emits BusinessRequirementsReady, ProcessMapCreated, or GapAnalysisGenerated. |
๐งฉ Strategic Role in the Factory¶
flowchart LR
Vision["๐ง Vision Architect Agent"]
PM["๐ฏ Product Manager Agent"]
BA["๐ Business Analyst Agent"]
PO["๐ Product Owner Agent"]
Vision --> BA
Vision --> PM
BA --> PM
PM --> PO
BA --> PO
BA --> QA["๐งช QA Agent"]
BA --> EA["๐๏ธ Enterprise Architect Agent"]
- ๐ก Flexible Positioning: May run before Product Manager (regulatory-first), after Product Owner (validation layer), or concurrently.
- ๐ง Adds non-functional insight often missed in standard feature planning.
- โ๏ธ Enables traceability to legal, financial, and procedural policies.
๐ Example Scenarios¶
| Domain | Sample Business Rules |
|---|---|
| Healthcare | "Appointments must have a confirmed consent record before saving" |
| Education | "Grades must be entered within 48 hours of course end" |
| Insurance | "Claims over $5000 must be manually reviewed" |
| SaaS | "Trial users cannot access premium integrations" |
๐ Artifacts Produced¶
| Artifact | Format | Description |
|---|---|---|
business-requirements.md |
Markdown | Formalized requirements from domain analysis. |
rules.yaml |
YAML | Constraint definitions (e.g., validation, compliance). |
bpmn.mmd |
Mermaid | Process diagram: e.g., Booking โ Confirm โ Reminder โ Visit. |
gap-analysis.md |
Markdown | List of missing flows or constraint conflicts. |
Event: BusinessRequirementsReady |
Event | Activates QA, Engineering, Product Owner, or Architecture workflows. |
โ Summary¶
The Business Analyst Agent ensures that the software:
- Is compliant and aligned with operational rules
- Models actual business flows, not just user goals
- Exposes hidden complexity early (e.g., edge cases, constraints)
- Enables generation of validators, process engines, and QA scripts
๐ Business Analyst Agent โ Input/Output Contracts¶
The Business Analyst Agent operates on top of previously emitted planning artifacts and semantic prompts, generating structured, rule-oriented outputs used by multiple downstream actors: QA, Engineering, Enterprise Architecture, and Solution Design agents.
This section formalizes the input and output interface of the agent, aligning with ConnectSoftโs traceable, observable, versioned artifact model.
๐ฅ Inputs Consumed¶
| Input | Source | Purpose |
|---|---|---|
vision.json |
Vision Architect Agent | Provides initial goals, personas, and solution direction. |
features.json, product-plan.md |
Product Manager Agent | Supplies planned features and priorities. |
user-stories.md |
Product Owner Agent | Aligns rules and constraints with how the system will behave. |
semantic memory (optional) |
Vector DB or MCP | Pulls known domain rules and policies for enrichment. |
domain-templates.yaml (optional) |
Platform templates | Provides reusable constraint patterns (e.g., validation DSLs, common BPMN flows). |
๐ค Outputs Produced¶
| Artifact | Format | Description |
|---|---|---|
business-requirements.md |
Markdown | Natural language summary of policies, rules, and regulations. |
rules.yaml |
YAML | Constraint block with enforcement mode (validation, runtime, documentation-only). |
bpmn.mmd |
Mermaid | Process maps in business-friendly flowchart format (e.g., Appointment Lifecycle). |
decision-table.json |
JSON | Optional DMN-style rule matrix (e.g., refund eligibility, rescheduling options). |
gap-analysis.md |
Markdown | Table of uncovered, under-specified, or conflicting flows and definitions. |
Event: BusinessRequirementsReady |
Event | Triggers validators, test generators, or PO/Architect refinement. |
๐ Example: rules.yaml¶
- ruleId: R001
name: Appointment Requires Consent
appliesTo: BookingService
type: Validation
expression: "booking.consentReceived == true"
severity: error
linkedFeature: f001
๐ Example: bpmn.mmd¶
flowchart TD
Start["Start Booking"] --> Validate["Check Consent"]
Validate -->|yes| Confirm["Confirm Slot"]
Validate -->|no| Error["Show Error Message"]
Confirm --> Notify["Trigger Confirmation Email"]
Notify --> Done["Booking Complete"]
๐ง Traceability & Metadata Injection¶
Each artifact includes:
traceId,sessionId,ruleSetVersion- Linked feature and persona IDs
generatedByAgentId,emittedAt,confidenceScore
๐ Event: BusinessRequirementsReady¶
{
"event": "BusinessRequirementsReady",
"traceId": "proj-713-v1",
"sessionId": "ba-session-1104",
"rulesUri": "https://blob.connectsoft.ai/proj-713/rules.yaml",
"bpmnUri": "https://blob.connectsoft.ai/proj-713/booking-process.mmd",
"emittedAt": "2025-05-12T17:14:00Z"
}
Activates:
- ๐งช QA Agents โ For generating test scenarios and validation checks
- ๐ Product Owner Agent โ To enhance or realign acceptance criteria
- ๐๏ธ Enterprise Architect Agent โ For refining bounded context rules and edge cases
โ Summary¶
- Inputs: Combine vision, features, stories, and memory-based patterns
- Outputs: Formal rules, process flows, domain terms, and gap analysis
- Emission:
BusinessRequirementsReadyevent completes the planning validation loop
๐ Event-Driven Handoff Chain¶
The Vision and Product Planning cluster operates as a fully event-driven, loosely coupled pipeline, where each agent emits structured outputs and triggers downstream agents via events. This ensures observability, traceability, and modular re-execution.
This section documents the canonical event emission chain, its flow diagram, and how the Orchestration Layer manages agent transitions.
๐งญ Canonical Event Chain¶
| Step | Agent | Emitted Event | Activates |
|---|---|---|---|
| 1๏ธโฃ | Vision Architect Agent | VisionDocumentCreated |
Product Manager Agent, Business Analyst Agent |
| 2๏ธโฃ | Business Analyst Agent | BusinessRequirementsReady |
Product Manager, Product Owner, QA Agent |
| 3๏ธโฃ | Product Manager Agent | ProductPlanCreated |
Product Owner Agent, Enterprise Architect Agent |
| 4๏ธโฃ | Product Owner Agent | BacklogReady |
Engineering Agents, QA Agent, PR/CI Coordinators |
๐ค Event Envelope Format¶
All events include standard metadata for observability:
{
"event": "ProductPlanCreated",
"traceId": "proj-713-v1",
"sessionId": "product-manager-session-0543",
"artifactUris": {
"productPlan": "https://blob.connectsoft.ai/proj-713/product-plan.md"
},
"producedBy": "ProductManagerAgent",
"emittedAt": "2025-05-12T16:44:00Z"
}
๐ Visual Sequence Flow¶
sequenceDiagram
participant Orchestrator
participant VisionArchitect
participant BusinessAnalyst
participant ProductManager
participant ProductOwner
participant EventBus
Orchestrator->>VisionArchitect: StartAgentSession
VisionArchitect->>EventBus: Emit `VisionDocumentCreated`
EventBus-->>BusinessAnalyst: Trigger (optional parallel)
EventBus-->>ProductManager: Trigger
ProductManager->>EventBus: Emit `ProductPlanCreated`
BusinessAnalyst->>EventBus: Emit `BusinessRequirementsReady`
EventBus-->>ProductOwner: Trigger
ProductOwner->>EventBus: Emit `BacklogReady`
๐ Observability Across Events¶
Each event is:
- Traced using OpenTelemetry spans
- Stored in a message store (e.g., Azure Service Bus, RabbitMQ)
-
Indexed by:
-
traceId projectIdagentIddeliveryPhaseartifactType
โ๏ธ Orchestrator Behavior¶
The Orchestration Layer:
- Subscribes to all domain events
- Triggers agent sessions dynamically based on event metadata
- Supports retries, human-in-the-loop, or alternative routing if confidence is low
- Stores event โ artifact โ task lineage for replay/debugging
๐ง Use Cases Enabled¶
| Scenario | Benefit |
|---|---|
Restart from ProductPlanCreated |
Re-runs Product Owner and downstream agents only |
Audit trail for Mobile Booking Flow |
View featureId โ epic โ persona โ story โ handler trace |
Failure in BacklogReady event |
Triggers retry or fallback to another PO Agent |
โ Summary¶
- Every planning step emits traceable, observable, versioned events
- Handoff is decoupled, enabling agent substitution, parallelism, and resilience
- Orchestrator and Event Bus ensure pipeline continuity and visibility
๐ Traceability & Observability Practices¶
The ConnectSoft AI Software Factory embeds end-to-end traceability and observability into every agent interaction, artifact, and event. This ensures all outputs from the Vision and Product Planning Agents are:
- โ Auditable
- ๐ Monitored in real time
- ๐ Replayable
- ๐งฉ Linkable to downstream implementation
This section explains how trace IDs, structured logs, OpenTelemetry spans, and metadata are injected at every step in the planning flow.
๐ง Traceability Elements Injected¶
| Field | Description |
|---|---|
traceId |
Unique identifier for the entire software creation flow (e.g., proj-713-v1). |
sessionId |
Unique per agent activation (e.g., product-owner-session-1045). |
componentTag |
Identifies the agent and sub-task (e.g., ProductOwnerAgent:StorySlicing). |
projectId |
Internal ConnectSoft project reference (e.g., proj-713). |
agentId |
Full agent identifier, useful for version tracking and fallback. |
artifactUris |
Secure links to outputs like features.json, bpmn.mmd, user-stories.md. |
emittedAt |
Timestamp of artifact and event creation. |
confidenceScore |
Indicates AI agent confidence for review (optional threshold for human-in-the-loop). |
๐ Example Metadata Block (Injected in All Artifacts)¶
traceId: proj-713-v1
sessionId: product-owner-session-1045
projectId: proj-713
agentId: ProductOwnerAgent
componentTag: StoryMapping
confidenceScore: 0.93
artifactType: user-stories
generatedAt: 2025-05-12T16:11:00Z
๐ OpenTelemetry Tracing¶
Every agent execution emits spans such as:
| Span Name | Example Description |
|---|---|
VisionDocumentParsed |
Agent loaded and parsed project context. |
FeatureDecompositionStarted |
Product Manager broke goals into features. |
StoryMappedToPersona |
Product Owner matched story to Pet Owner. |
RuleValidationInjected |
Business Analyst added GDPR rule to backlog. |
ArtifactStored |
Artifact pushed to blob or repo with metadata. |
EventEmitted: ProductPlanCreated |
Event sent to orchestrator/event bus. |
These are visualized in tools like Grafana Tempo, Jaeger, or Azure Monitor.
๐ Artifact Versioning & Storage Strategy¶
| Storage Type | Used For | Accessed By |
|---|---|---|
| Blob Storage | Markdown/YAML/JSON outputs | All downstream agents |
| Git Repositories | Story maps, planning documents (optional) | Developers, coordinators |
| Vector DB | Embedded semantic memory | AI agents and planners |
All storage URIs are included in emitted events and indexed by the Orchestrator.
๐ง Cross-Agent Trace Example¶
traceId: proj-713-v1
โโ session: vision-session-001 โ Vision Architect Agent
โโ session: product-manager-002 โ Product Manager Agent
โโ session: business-analyst-001 โ Business Analyst Agent
โโ session: product-owner-003 โ Product Owner Agent
Each session:
- Has a traceable execution record
- Is observable in dashboards
- Can be replayed or corrected if output fails validation
๐ฃ Structured Logging Sample (JSON Log Output)¶
{
"level": "INFO",
"message": "Backlog generation complete",
"traceId": "proj-713-v1",
"sessionId": "product-owner-session-003",
"agent": "ProductOwnerAgent",
"artifact": "user-stories.md",
"durationMs": 942,
"confidence": 0.94
}
โ Summary¶
- Every planning agent is observable by default
- Each output and event is linked by trace and session metadata
- Platform supports semantic dashboards, event replays, and root cause tracing
- Enables safe automation at scale, without losing human oversight
๐ง Semantic Kernel & Skill Patterns¶
All agents in the Vision and Product Planning cluster are powered by Semantic Kernel, enabling them to execute complex reasoning, planning, and document generation using modular, AI-driven skills.
This section outlines how these agents use skill composition, memory, and prompt templates to autonomously create structured outputs โ with full traceability, retry support, and deterministic flows.
โ๏ธ Common Semantic Kernel Capabilities Used¶
| Capability | Description |
|---|---|
| Skill Composition | Agents select and chain domain-specific skills dynamically (e.g., ProblemExtractor โ FeatureSuggestor โ PersonaMapper). |
| Prompt Engineering Templates | Each agent uses pre-curated system prompts and output schemas to guide reasoning. |
| Memory Injection | Agents retrieve prior visions, patterns, or rules from a semantic memory (vector DB) to enrich outputs. |
| Goal-Oriented Planning | Agents use goal definitions and semantic correlation to prioritize outcomes (e.g., MVP selection). |
| Validation Loops | If an output is below confidence threshold, the planner retries with enhanced reasoning. |
๐ง Agent-Specific Skill Graphs (Examples)¶
Vision Architect Agent¶
๐ฅ Inputs โ ProblemExtractorSkill โ OpportunityMappingSkill โ PersonaIdentificationSkill โ VisionAssemblySkill โ ๐ค Output: vision.md
Product Manager Agent¶
๐ฅ Features + Goals โ MVPPrioritizationSkill โ FeatureClusteringSkill โ RoadmapSlicerSkill โ ๐ค Output: product-plan.md, features.json
Product Owner Agent¶
๐ฅ Epics + Features โ StorySlicerSkill โ CriteriaGeneratorSkill โ TraceabilityTaggerSkill โ ๐ค Output: user-stories.md, criteria.yaml
Business Analyst Agent¶
๐ฅ Stories + Vision โ RuleFormalizationSkill โ BPMNModelingSkill โ GapDetectionSkill โ ๐ค Output: rules.yaml, bpmn.mmd
๐ Prompt Templates (per agent)¶
| Agent | Example Prompt Role |
|---|---|
| Vision Architect | โYou are a system analyst framing a SaaS platform vision...โ |
| Product Manager | โYou are a product strategist tasked with planning a 3-phase release roadmap...โ |
| Product Owner | โYou are a PO breaking epics into delivery-ready stories and Gherkin-style criteria...โ |
| Business Analyst | โYou are a business analyst extracting compliance rules and domain flows from product artifacts...โ |
Prompt structure includes:
- System message
- Input schema definitions
- Output formatting instructions
- Domain-specific constraint injections
๐ง Semantic Memory Use Cases¶
| Agent | Semantic Use |
|---|---|
| Vision Architect | Retrieve prior visions from same domain or goal set |
| Product Manager | Recommend known MVP feature bundles |
| Product Owner | Match story formats from similar apps |
| Business Analyst | Retrieve known compliance patterns (e.g., HIPAA, GDPR) |
๐ Retry & Self-Healing Patterns¶
All agents support:
- โ Retry if validation fails or confidence < threshold
- ๐ Correction skill invocation (e.g.,
GapFillerSkill,MissingPersonaIdentifier) - ๐ Event-based rerun via Orchestration (
StartAgentSessionwith override parameters)
โ Summary¶
- All planning agents are Semantic Kernel-native
- Each agent composes domain-specific skills dynamically
- Prompt templates + skill orchestration โ deterministic, enriched outputs
- Semantic memory enables pattern reuse and context-aware generation
โฌ๏ธ Downstream Activation Summary¶
The outputs of the Vision and Product Planning agents serve as formal entrypoints for downstream agents, orchestrators, and coordinators across the AI Software Factory. Each planning artifact triggers concrete execution phases โ from architecture to microservice generation, CI/CD, and QA automation.
This section summarizes which downstream agents are activated, what they consume, and how they map outputs to the delivery pipeline.
๐งญ Downstream Activation Table¶
| Event Emitted | Triggered Agents | Consumed Artifacts |
|---|---|---|
VisionDocumentCreated |
โ
Product Manager Agent โ Business Analyst Agent โ Enterprise Architect Agent |
vision.md, vision.json |
BusinessRequirementsReady |
โ
Product Owner Agent โ QA Agents โ Enterprise Architect Agent |
rules.yaml, bpmn.mmd, requirements.md |
ProductPlanCreated |
โ
Product Owner Agent โ Enterprise Architect Agent โ QA Planner Agent |
product-plan.md, features.json, epics.yaml |
BacklogReady |
โ
Backend Dev Agent โ Frontend Dev Agent โ Adapter Generator Agent โ QA Test Generator Agent |
user-stories.md, criteria.yaml, story-map.json |
๐ฅ Artifact-to-Agent Map¶
| Artifact | Consumed By | Usage |
|---|---|---|
vision.json |
Enterprise Architect Agent | Strategic anchors for DDD modeling. |
features.json |
Enterprise & Solution Architect Agents | Map features to services and modules. |
epics.yaml |
Product Owner, Architecture Agents | Epics โ contexts โ aggregates. |
user-stories.md |
Backend Dev Agent, PR Coordinator | Used to generate handlers and DTOs. |
acceptance-criteria.yaml |
QA Agent | Build BDD tests and validation scripts. |
rules.yaml |
Validator Generator Agent, QA Agent | Runtime validation logic and test preconditions. |
bpmn.mmd |
Process Modeling Agent | Event flow visualizations and orchestrator config. |
๐ง Orchestrator Coordination¶
- Listens to each emitted planning event
- Routes tasks to appropriate agents or coordinators
-
Supports conditional agent activation:
-
E.g., skip Business Analyst in โRapid MVP Modeโ
-
Tracks traceability between:
-
Story โ Handler โ Commit โ PR
- Goal โ Feature โ Story โ Test
๐ Execution Continuity¶
Planning agent outputs ensure:
- โ Microservice Assembly Coordinators receive use cases
- โ QA and Security Agents receive testable criteria
- โ Infrastructure Agents know feature-to-deployment mappings
- โ PR and CI/CD agents have traceable metadata for commits
๐ Example Flow: BookingService¶
vision.json
โโ features.json โ MVP: "Mobile Booking Flow"
โโ user-stories.md: "Book appointment without login"
โโ DTOGeneratorAgent โ DTO: BookAppointmentRequest.cs
โโ HandlerGeneratorAgent โ Handler: BookAppointmentHandler.cs
โโ TestGeneratorAgent โ BDD test: book-appointment.feature
โ Summary¶
The Vision and Product Planning agents donโt just generate static documents โ they emit structured control signals and execution blueprints that:
- Drive agent routing
- Determine architectural decomposition
- Enable safe, scalable autonomous implementation
Their outputs act as living interfaces to the rest of the ConnectSoft platform.
โ Conclusion and Future Expansion¶
The Vision and Product Planning cluster is the foundation of the ConnectSoft AI Software Factory โ enabling structured, traceable, AI-driven planning across every autonomous software creation flow.
Through well-orchestrated agent collaboration, this cluster:
- Translates ambiguous human prompts into executable software blueprints
- Ensures all downstream services operate from validated, goal-aligned artifacts
- Embeds observability, traceability, and semantic reasoning into every planning decision
- Enables multi-agent handoffs without tight coupling, unlocking composability and reuse
๐ฏ What This Cluster Achieves¶
| Capability | Outcome |
|---|---|
| Autonomous Visioning | Vision Architect creates structured goals, personas, and solutions from natural input |
| MVP Planning | Product Manager defines measurable outcomes and deliverable features |
| Backlog Readiness | Product Owner generates actionable, testable stories with acceptance criteria |
| Business Grounding | Business Analyst enforces compliance, process validity, and domain correctness |
| Traceable Execution | All outputs are logged, observable, and versioned for governance and recovery |
| Agent-Aware Handoff | Downstream agents seamlessly consume structured outputs through event activation |
๐ฎ Future Enhancements¶
The current Vision and Product Planning agents are extensible by design. Future planned additions include:
| Agent | Role |
|---|---|
| UX Research Agent | Gathers usability needs, personas, and heuristics from past product data |
| Growth Strategist Agent | Maps product features to market segments and opportunity scoring |
| Edition Planner Agent | Defines SaaS feature slicing per edition (e.g., Free, Pro, Enterprise) |
| Localization Analyst Agent | Plans multi-language requirements and region-specific constraints |
| Security Policy Planner Agent | Defines security profiles, roles, and attack surfaces from early requirements |
| Lifecycle Simulation Agent | Evaluates how features affect business operations over time (simulation-based planning) |
These will plug into the same orchestration framework and use the same observable, event-driven lifecycle.
๐งฉ Integration with the Full Factory¶
- Every service, API, test, and deployment artifact traces back to planning agents.
- Planning outputs are first-class citizens โ stored, embedded, reused, and reasoned upon by other agents.
- This cluster turns "what do we build?" into "hereโs exactly how it will be delivered."
๐ Final Thought¶
By defining software planning as a multi-agent, event-driven, observable pipeline, ConnectSoft unlocks a new level of:
- Autonomous delivery
- Strategic alignment
- Product quality
- Scale
Planning is no longer just a meeting room discussion โ it is a codified, semantic, traceable part of the AI Software Factory.