Timing, Milestones, and Sprint Management in ConnectSoft AI Software Factory¶
π Factory Philosophy on Time: Logical Time vs Calendar Time¶
In the ConnectSoft AI Software Factory, time is not merely a calendar. It is a logical orchestration layer β driven by events, blueprints, FSM states, and agent readiness β not wall-clock scheduling.
β±οΈ Two Modes of Time¶
| Time Model | Description |
|---|---|
| Logical Time | Internal progression of state machines, agent flows, and milestone transitions. Based on event β state β agent β output. |
| Calendar Time | Human-centric time (real dates, weeks, deadlines). Used only for dashboards, governance views, or syncing with stakeholders. |
In the Factory, logical sprints can start, execute, and close within seconds β but still represent full units of traceable work.
βοΈ Logical Time: The Orchestration Primitive¶
Logical time is represented by:
- FSM state transitions in orchestrators
- Event emissions like
SprintPlanned,SprintClosed,MilestoneReached - Agent execution timestamps from observability telemetry
- Artifact readiness markers (e.g., blueprint emitted, PR created)
No fixed duration is assumed β instead, logical time progresses when:
- Preconditions are met
- Agents emit expected events
- Artifacts are validated and versioned
- Observability signals confirm flow completion
π Why Logical Time Wins¶
| Feature | Benefit |
|---|---|
| Parallelism | Multiple sprints can be planned and executed concurrently by different agents. |
| Speed | A milestone can contain work done in seconds β but still validated, versioned, and orchestrated. |
| Traceability | Logical time is captured in telemetry: traceId, executionId, agentId, status. |
| Repeatability | Sprints can be re-run deterministically from trace snapshots. |
π Time Mapping in Studio Dashboards¶
Although execution is logical, human users can view:
| Time Element | Source |
|---|---|
| Sprint Start Time | First SprintPlanned event timestamp |
| Milestone Duration | Time between MilestoneStarted and MilestoneCompleted |
| Agent Execution Time | execution-metadata.json β durationMs |
| CI/CD Runtime | Derived from build logs and ReleaseTriggered events |
Studio presents these using calendar time visualizations, but the underlying orchestration remains logical.
π Implications for Multi-Agent Planning¶
- Agents plan based on flow dependencies, not dates.
- Orchestrators resume paused sprints once input events are received.
- Milestones advance only when output conditions are validated.
This enables true elastic, autonomous execution β even across thousands of modules.
β Summary¶
- ConnectSoft AI Factory operates on logical time.
- Calendar time is secondary and used only for visualization and governance.
- Every step, sprint, and milestone is event-triggered, traceable, and observable β not date-driven.
π Milestones as Delivery Units¶
A milestone in ConnectSoft is a logically scoped unit of software progress. It defines what must be completed together, what agents are expected to contribute, and how outputs are validated and connected.
In the Factory, a milestone is not a date β it is a traceable state transition of system maturity.
π§± Milestone Characteristics¶
| Characteristic | Description |
|---|---|
| Atomic Scope | Contains a set of features, services, libraries, or artifacts that must be completed together. |
| Agent-Orchestrated | Tied to agent flows that produce and verify milestone outputs. |
| Observable | Emits MilestoneStarted, ArtifactProduced, MilestoneCompleted events. |
| Blueprint-Bound | Anchored to specific execution contexts, blueprints, or trace IDs. |
π§© YAML Format: milestones.yaml¶
Each Factory project includes a structured YAML file listing milestones:
milestones:
- id: mvp-ready
name: MVP Delivery
description: >
All components needed for internal testing and stakeholder demo.
requiredArtifacts:
- BookingService
- UserPortal
- AuthServer
- EventContracts
- DeploymentPlan
gateConditions:
- allPullRequestsMerged
- allTestsPass
- blueprintValidated
triggers:
- event: MilestoneCompleted
next: planNextSprint
traceability:
labels: [ "sprint:1", "mvp", "qa:test" ]
owner: "product-owner"
βοΈ Orchestration Effects of Milestones¶
Milestones act as coordination gates inside the Factory:
- Trigger agent execution: When a milestone is entered, orchestrators emit events to activate relevant agents.
- Track progress via events: Each agent emits
ArtifactReady,PullRequestCreated,ValidationPassedevents tagged with the milestone ID. - Control transition to next phases: FSMs advance only when all
gateConditionsare satisfied.
π Visualization in Studio¶
Milestones are rendered in the Studio timeline:
| UI Element | Source Field |
|---|---|
| Milestone Name | name from milestones.yaml |
| Status | Derived from gate conditions and trace logs |
| Linked Artifacts | From requiredArtifacts and emitted events |
| Completion Time | Timestamp of MilestoneCompleted event |
| Assigned Owner | From traceability.owner |
π§ Why Milestones Matter¶
| Purpose | Description |
|---|---|
| Delivery Alignment | Organize agent outputs into coherent, testable, verifiable phases. |
| Automation Boundaries | Define when to pause/resume orchestration. |
| Human Oversight Points | Enable checkpoints for Studio-based review or override. |
| Security and Audit Hooks | Anchor security scanning, compliance tests, and artifact versioning. |
β Summary¶
- Milestones are event-driven coordination points β not date-based.
- Defined in
milestones.yamlwith triggers, gate conditions, and artifact dependencies. - Drive agent orchestration, artifact tracking, and traceable delivery flows.
π― Sprints as Scoped Execution Windows: Controlling Agent Flows¶
In the Factory, a sprint is a logical, bounded execution window during which a defined scope of work is orchestrated and completed by agents.
A sprint is not a 2-week calendar box β itβs a scoped state of coordinated agent activity, triggered by events and governed by milestone goals.
βοΈ Sprint = Execution Envelope¶
| Element | Meaning in the Factory |
|---|---|
| Sprint Scope | The set of features, services, and agent executions assigned to the sprint. |
| Sprint Trigger | Initiated by SprintPlanned event or milestone transition. |
| Sprint Lifecycle | Controlled via events: SprintStarted, SprintCheckpoint, SprintClosed. |
| Sprint Boundaries | FSM-defined β not clock-defined. Ends when outputs are produced and validated. |
𧬠Sprint Metadata Structure¶
sprints:
- id: sprint-1
name: MVP Sprint
goal: Deliver first fully testable Booking flow
includes:
- Milestone: mvp-ready
- Features: [BookingService.Create, Notification.Send, User.Onboarding]
- Agents:
- ProductOwner
- BackendDeveloper
- TestGenerator
- DevOpsEngineer
trigger: MilestoneStarted
traceability:
labels: [ "mvp", "first-run", "sprint:1" ]
orchestrator: SprintCoordinator
π§ Sprint-Driven Execution Flow¶
flowchart TD
A[π’ SprintPlanned]
A --> B[π§ Activate Agents]
B --> C[π‘ Feature Handlers Generated]
C --> D[π§ Code Committed]
D --> E[β
Tests and Validation Passed]
E --> F[π¦ SprintClosed + Artifacts Tagged]
β Every step emits structured observability metadata (e.g., executionId, traceId, agentId, sprintId).
π§© Orchestration Role of a Sprint¶
- Binds scope: Agents know what to work on (from feature and milestone linkage).
- Controls flow: FSMs pause execution outside the sprint scope.
- Applies policies: Sprint definitions can include compliance, validation, and test criteria.
- Supports checkpointing: Mid-sprint evaluation and retry triggers.
π Sprint Monitoring in Studio¶
| Dashboard Element | Data Source |
|---|---|
| Sprint ID and Goal | From sprints.yaml |
| Active Agents | Tracked via AgentExecutionStarted |
| Traceable Artifacts | From execution-metadata.json |
| Completion Status | Based on SprintClosed + validations |
| Performance Metrics | Agent durations, error counts, retries |
β Summary¶
- Sprints are logical execution windows, scoped by feature/milestone/agent clusters.
- They drive orchestration boundaries, enable structured planning, and allow traceable execution monitoring.
- All activity within a sprint is observable, versioned, and agent-triggered β not timeboxed.
π― Planning Is a Collaborative, Multi-Agent Flow¶
In the ConnectSoft AI Software Factory, sprint and milestone planning is not hardcoded logic β it's a coordinated effort between specialized agents, each contributing its scoped expertise to prepare and manage execution.
Planning is an agentic negotiation β where each role contributes decisions, not just follows them.
π§ Core Planning Agents and Their Roles¶
| Agent | Role in Sprint & Milestone Planning |
|---|---|
| Product Owner Agent | Defines scope, constraints, and acceptance criteria for the sprint. Emits SprintPlanned and FeatureScopeDefined events. |
| Product Manager Agent | Breaks down the vision into features, epics, user stories. Generates priority metadata, tags, and delivery themes. |
| QA Agent | Validates test coverage requirements per milestone. Ensures traceability of feature β test β validation. |
| DevOps Engineer Agent | Verifies pipeline readiness, CI/CD stage availability, and resource constraints for deployability. |
𧬠Planning Flow (Event-Driven)¶
sequenceDiagram
participant PM as Product Manager Agent
participant PO as Product Owner Agent
participant QA as QA Agent
participant DevOps as DevOps Agent
participant Orchestrator
PM->>PO: Emit `FeatureScopeDefined`
PO->>Orchestrator: Emit `SprintPlanned`
Orchestrator->>QA: Validate `testTraceMatrix`
Orchestrator->>DevOps: Validate `ci/stage readiness`
QA-->>Orchestrator: Emit `SprintTestPlanReady`
DevOps-->>Orchestrator: Emit `SprintInfraReady`
Orchestrator->>All: Emit `SprintReadyToStart`
π¦ Outputs Produced During Planning¶
| Agent | Output Artifact |
|---|---|
| Product Owner | sprints.yaml, trace-scoped tags, scope acceptance criteria |
| Product Manager | features.yaml, epics.md, priority labels, story metadata |
| QA Agent | sprint-trace-matrix.json, feature-test-link.yaml, validation checklist |
| DevOps Agent | pipeline-status.yaml, environment health report, deployment-constraints.yaml |
π§© FSM State Transition Model¶
The Sprint Orchestrator FSM uses these states:
stateDiagram-v2
[*] --> Planning
Planning --> ValidatingScope
ValidatingScope --> ValidatingInfra
ValidatingInfra --> Ready
Ready --> Executing
Each transition is gated by agent-completed outputs or emitted readiness events.
π§ Human-In-The-Loop Overrides¶
Even in AI-first planning, humans can:
- Approve sprint scope or revise it in Studio UI
- Override DevOps gating rules for MVP
- Trigger
ResumePlanningevent manually
β This creates hybrid governance while preserving full traceability.
β Summary¶
- Planning involves multiple agents working in coordination via events.
- Each agent produces structured artifacts that enable scoped, testable, and deployable sprints.
- Orchestration is driven by agent outputs β not static planning boards or ticket systems.
π§ Events That Drive Execution¶
In the ConnectSoft AI Software Factory, all agent execution, orchestration transitions, and milestone tracking are event-driven. These events serve as control signals, not just logs β they drive when, how, and which agents act.
If it matters, it emits an event. If it emits an event, something in the Factory will respond.
π¬ Core Sprint Lifecycle Events¶
| Event | Description |
|---|---|
SprintPlanned |
Marks the formal start of a logical sprint. Contains sprintId, features, milestoneRef, and agentRoles. |
SprintStarted |
Emitted by the orchestrator when all gate conditions (test, infra, scope) are met. |
SprintCheckpoint |
Optional midpoint emitted after n features are completed. Used for review or pause/resume workflows. |
SprintClosed |
Emitted when all outputs are trace-verified. Triggers versioning, tagging, deployment snapshotting. |
PlanningResumed |
Restarts planning after a pause, new scope, or stakeholder input. Re-activates ProductOwnerAgent. |
π Execution Timeline Flow¶
sequenceDiagram
participant Studio
participant ProductOwner
participant Orchestrator
participant Agents
Studio->>ProductOwner: Request new sprint
ProductOwner->>Orchestrator: Emit SprintPlanned
Orchestrator->>Agents: Activate roles
Agents->>Orchestrator: Emit ArtifactReady / TestsPassed
Orchestrator->>Studio: Emit SprintCheckpoint
Agents->>Orchestrator: Emit CompletionEvents
Orchestrator->>Studio: Emit SprintClosed
π§© Event Payloads (Simplified)¶
SprintPlanned Event¶
{
"event": "SprintPlanned",
"sprintId": "sprint-2025-05-MVP1",
"milestone": "mvp-ready",
"features": ["BookingFlow", "Notifications"],
"agents": ["ProductOwner", "BackendDeveloper", "TestGenerator"],
"timestamp": "2025-05-12T10:00:00Z"
}
SprintClosed Event¶
{
"event": "SprintClosed",
"sprintId": "sprint-2025-05-MVP1",
"completedArtifacts": ["BookingService", "Tests", "PRs"],
"versionTag": "mvp-ready-v1",
"traceId": "trace-abc123"
}
π§ What Triggers These Events?¶
| Event | Triggering Condition |
|---|---|
SprintPlanned |
ProductOwnerAgent emits plan based on milestone + features |
SprintStarted |
Orchestrator verifies all readiness checks (QA, Infra) |
SprintClosed |
All scoped outputs exist, validated, trace-linked |
PlanningResumed |
Manual input, failed scope, or new VisionUpdate |
π Observability Links¶
Each of these events includes:
traceId,sprintId,agentId,moduleId- Timestamp
- Optional
executionId,reason,durationMs
β All are ingested into Studio dashboards and trace visualizations.
β Summary¶
- The Factory is driven by lifecycle events, not calendar time or hardcoded steps.
- Events like
SprintPlanned,SprintClosed, andPlanningResumedact as control switches for agent flows. - They enable asynchronous, traceable, parallel execution across agents and modules.
π Traceability and Observability Links¶
In the ConnectSoft AI Software Factory, everything produced during a sprint is traceable β from the initial idea to the final pull request, container image, or test result.
βIf it canβt be traced to a sprint, milestone, or agent β it didnβt happen.β
Traceability ensures that:
- Sprints are auditable
- Failures are debuggable
- Progress is measurable
- Output is governable
π§© What Is Traced?¶
| Artifact Type | Trace Anchors Included |
|---|---|
| Generated Code | traceId, sprintId, featureId, agentId, skillId |
| Pull Requests | Git commit message tags, branch naming: feature/booking/sprint-3 |
| Tests and Coverage | test-matrix.json links features to SpecFlow scenarios |
| Containers and Builds | imageId, buildId, sprintLabel, milestoneTag |
| Docs and Diagrams | Metadata block in execution-metadata.json, trace-linked |
| Observability Logs | Structured logs contain trace context, status, and span IDs |
π Example: execution-metadata.json¶
{
"traceId": "trace-d8c71234",
"sprintId": "sprint-2025-05-MVP1",
"featureId": "BookingFlow",
"agentId": "backend-developer",
"skillId": "GenerateHandler",
"status": "Success",
"durationMs": 1278,
"artifact": "BookAppointmentHandler.cs"
}
π Metrics That Link to Sprints¶
Agents and orchestrators emit Prometheus-style metrics per sprint/module:
agent_execution_duration_seconds{
agentId="test-generator",
sprintId="sprint-2025-05-MVP1",
featureId="Notifications",
status="Success"
} 2.17
These metrics are tagged and grouped by:
sprintIdtraceIdagentIdmoduleIdstatus
β Used in Grafana dashboards, Studio heatmaps, and alerting policies.
π Sprint Trace Matrix¶
Each sprint includes an internal artifact called sprint-trace-matrix.json:
{
"sprintId": "sprint-2025-05-MVP1",
"features": [
{
"id": "BookingFlow",
"handlers": ["BookAppointmentHandler.cs"],
"tests": ["book-appointment.feature"],
"commits": ["f23f123", "a91d3a8"],
"imageId": "booking-service:1.0.0-sprint3"
}
]
}
β Enables complete reverse tracing from runtime or test to originating plan.
π Git Strategy for Traceability¶
| Element | Format Example |
|---|---|
| Branch Name | feature/booking/sprint-3 |
| Commit Msg | Add BookAppointmentHandler [trace:trace-d8c7 sprint:sprint-3] |
| Tags | mvp-ready-v1, sprint-3-complete |
β These tags link DevOps pipelines and artifacts back to their planning phase.
π§ Studio Views¶
The Studio UI provides:
- Sprints Dashboard: View features, commits, PRs, test coverage, and agent metrics per sprint
- Trace Explorer: Navigate from sprint β feature β agent execution β logs β code
- Artifact Timeline: View milestone scope and traceable files generated during the sprint
- Coverage Heatmap: Which features had full/partial/no test or deployment linkage
β Summary¶
- Every output from a sprint β code, test, build, log, image β is trace-tagged
- Observability spans, Git commits, and metrics form an integrated trace graph
- This ensures governance, auditability, and validation across agentic execution
π¦ Artifacts: milestones.yaml, sprint-trace-matrix.json, tags, metadata¶
In the ConnectSoft AI Software Factory, milestones and sprints are not just logical concepts β they are backed by versioned, structured artifacts that drive orchestration, traceability, and auditability.
If it's not in an artifact, it doesn't exist in the Factory. If it can't be parsed, it can't be orchestrated.
π Artifact #1: milestones.yaml¶
This file defines all milestone boundaries, gate conditions, trace rules, and output expectations.
β Example¶
milestones:
- id: mvp-ready
name: MVP Delivery
description: Deliver core services for internal test and review.
requiredArtifacts:
- BookingService
- NotificationService
- UserPortal
gateConditions:
- allPullRequestsMerged
- testsPassed
- sprint-trace-matrix.complete
versionTag: mvp-v1
owner: product-owner
triggers:
- event: MilestoneCompleted
next: deploy-to-staging
π§© Parsed by orchestrators and used to decide:
- Agent activation boundaries
- Deployment version tags
- Conditions to emit
MilestoneCompleted
π Artifact #2: sprint-trace-matrix.json¶
Auto-generated and continuously updated during sprint execution. Links features β agents β files β commits β tests β images.
β Example¶
{
"sprintId": "sprint-2025-05-MVP1",
"features": [
{
"id": "BookingFlow",
"traceId": "trace-abc123",
"files": [
"BookAppointmentHandler.cs",
"booking-api.feature"
],
"commits": [
"git:a1b2c3",
"git:d4e5f6"
],
"imageId": "booking-service:1.0.3",
"coverage": "94%"
}
]
}
π§ Used for:
- Agent execution validation
- Observability dashboards
- End-of-sprint review automation
- Build artifact version tagging
π Artifact #3: Git Tags and Metadata¶
Every module, PR, test, and image is tagged and trace-linked via standard GitOps practices.
| Tag Type | Format Example | Description |
|---|---|---|
| Feature Tag | feature:booking |
Ties PR to a blueprint feature ID |
| Sprint Tag | sprint-3-complete |
Added at sprint closure for grouping |
| Milestone Tag | mvp-ready-v1 |
Used on releases and Docker images |
| Trace ID Tag | trace:trace-abc123 |
Optional for artifact β blueprint link |
β Tags are used in pipelines, dashboards, and orchestration FSM checkpoints.
π Artifact #4: execution-metadata.json¶
Generated per agent skill execution.
β Example¶
{
"agentId": "backend-developer",
"skillId": "GenerateHandler",
"traceId": "trace-abc123",
"sprintId": "sprint-2025-05-MVP1",
"featureId": "BookingFlow",
"status": "Success",
"durationMs": 1842,
"output": "BookAppointmentHandler.cs"
}
π§ Used for:
- Execution trace audit
- Observability correlation
- Failure diagnostics and retries
π Where These Artifacts Live¶
| Artifact | Storage Location |
|---|---|
milestones.yaml |
In Git under /planning/ |
sprint-trace-matrix.json |
In /execution/ folder per sprint |
| Git tags | Version control system (Azure DevOps) |
execution-metadata.json |
Per-module /metadata/ folder |
Studio pulls from all sources to render dashboards and health checks.
β Summary¶
- All sprints and milestones produce versioned artifacts β no implicit coordination.
- These include human-readable (
yaml), machine-consumable (json), and trace-encoded (Git tags) data. - Orchestration logic, observability dashboards, and deployment rules all depend on these artifacts.
π― How Backlog Is Managed Across Milestones¶
In the ConnectSoft AI Software Factory, the backlog is not a fixed ticket list β it's a dynamic, traceable pool of features, stories, and capabilities, scoped by blueprints and partitioned into milestones.
The backlog is fluid β bounded by milestones, refined by agents, and reshaped by factory events.
π Where the Backlog Comes From¶
The Product Manager Agent and Business Analyst Agent generate the backlog from:
- Vision blueprints
- Use case narratives
- Feature decompositions
- Customer personas
- Previous milestone feedback loops
Each backlog item is defined as:
- featureId: Notifications.Email.Send
title: Email confirmations for booking
priority: P1
requiredBy: milestone:mvp-ready
dependsOn: Booking.Created
estimatedEffort: 2
agentRoles: [backend-developer, test-generator]
status: planned
Stored in features.yaml, tagged by milestone and sprint.
π§© How Milestones Consume the Backlog¶
Each milestone defines a scope gate:
milestones:
- id: mvp-ready
requiredFeatures:
- BookingFlow
- Notifications.Email.Send
- Auth.Login
allowsDeferred: true
onDeferEmit: FeatureDeferred
The Sprint Orchestrator will:
- Load milestone scope.
- Query which features are ready to execute.
- Emit
FeatureDeferredif a feature is:- Missing prerequisites
- Blocked by another trace
- Out of agent capacity
- Manually paused in Studio
π Deferred Features and Roll-Forward¶
When a feature is deferred:
- It's tagged
status: deferred - A
FeatureDeferredevent is emitted - Itβs re-scoped into the next sprint or child milestone via FSM rule
β No scope loss β just intentional delay, with trace continuity.
π§ Managing Backlog Priority¶
Each feature includes:
| Property | Purpose |
|---|---|
priority |
Affects auto-selection into early sprints (P1 β sprint-1) |
requiredBy |
Enforces inclusion before a specific milestone |
effortEstimate |
Allows capacity-based sprint planning |
agentRoles |
Determines executor responsibilities |
status |
Planned β InProgress β Completed/Deferred |
These are used by the Product Owner Agent to orchestrate sprint feasibility.
π Backlog in Studio¶
- Backlog Heatmap: Shows all planned features by milestone and status
- Deferred Panel: Grouped by reason and trace
- Milestone Gate Warnings: Visualize feature blocking status
- Sprint Scope Planner: Drag-defer features across milestones
β Agents do the heavy lifting, Studio enables manual override.
β Summary¶
- The backlog is blueprint-derived, milestone-scoped, and agent-owned.
- Milestones declare what must be delivered, but allow deferred scope when blockers exist.
- The Factory supports fluid reallocation across sprints without losing trace or context.
π§ Resuming Planning: How the Factory Supports Iterative Scope Expansion¶
In the ConnectSoft AI Software Factory, planning is not a one-shot phase. Itβs a resumable, event-triggered process that supports:
- Expanding scope after feedback
- Re-scoping after failures
- Iterating after releases
- Responding to new blueprints or updates
Planning never really ends β it pauses, waits for new signals, then resumes exactly where it left off.
π§© Key Event: PlanningResumed¶
This event re-activates the planning agents:
{
"event": "PlanningResumed",
"reason": "New blueprint version + feature updates",
"sprintId": "sprint-2025-06-QAHardening",
"timestamp": "2025-05-13T08:12:34Z"
}
Emitted by:
- The orchestrator after
SprintClosed - Manual Studio action (βResume Planningβ)
- Version update in
vision.mdorfeatures.yaml
π Resumption Triggers¶
| Trigger Type | Example |
|---|---|
| β Vision Updated | New document version published (by Vision Architect Agent) |
| β Feature Backlog Grows | Features added or reprioritized |
| β Milestone Incomplete | Deferred features need re-evaluation |
| β Agent Failure or Retry | Sprint execution failed or aborted |
| β Manual Override | PM resumes planning after external review |
π§ Resumption Workflow¶
sequenceDiagram
participant Orchestrator
participant ProductOwner
participant ProductManager
participant QA
participant Studio
Studio->>Orchestrator: Resume Planning Clicked
Orchestrator->>ProductOwner: Activate with `PlanningResumed`
ProductOwner->>ProductManager: Request updated backlog plan
ProductManager->>QA: Validate if any tests are missing
QA-->>Orchestrator: `SprintReadinessChecked`
Orchestrator->>Studio: Sprint `sprint-4` scope reloaded
π Artifact Change Detection¶
The orchestrator watches for diff triggers in:
vision.mdfeatures.yamlmilestones.yamlsprint-trace-matrix.json
β Triggers PlanningResumed automatically if structure changes.
π Studio Support¶
| View | Behavior |
|---|---|
| Sprint Timeline | Shows last planning pause β resumed state |
| Planning Status Panel | Lists reason for pause and resume trigger |
| Scope Comparison Viewer | Diffs last and current plan in real time |
| Resume Button | Triggers PlanningResumed manually |
π¦ Outputs After Resumption¶
updated-sprint-plan.yamlresumption-report.mddeferred-to-resumed-mapping.json- New
traceIdchain connected to prior sprint
β Summary¶
- Planning is resumable, triggered by events, diffs, or Studio action.
- The Factory maintains stateful checkpoints so planning can continue seamlessly.
- Agents re-plan only what changed, preserving velocity and avoiding duplication.
π€ + π§ Human vs AI-Driven Milestone Planning: Hybrid Workflows and Governance¶
In the ConnectSoft AI Software Factory, AI agents lead milestone and sprint planning β but humans retain control over governance, prioritization, and exception handling.
Autonomy by default. Oversight by design.
This creates a hybrid workflow where agents generate plans, but human reviewers validate, adjust, or intervene when necessary.
π§ Division of Responsibilities¶
| Responsibility | AI Agent-Driven | Human-Governed |
|---|---|---|
| Decomposing blueprints into milestones | β Vision Architect Agent, Product Manager Agent | |
| Generating sprint and milestone scope | β Product Owner Agent | |
| Assigning agent roles and execution order | β Sprint Orchestrator FSM | |
| Prioritizing based on business urgency | β οΈ Human input via Studio | |
| Resolving ambiguity or misalignment | β Human-required | |
| Approving milestone entry/exit | β οΈ Optional human gate | |
| Handling external stakeholder input | β Requires human action |
π§© Agent Outputs for Review¶
Agents output structured plans:
milestones.yamlfeatures.yamlexecution-readiness-report.mdsprint-plan.yaml
β These are sent to Studio for validation by a human Product Owner or Architect.
π§βπ» Human Governance Entry Points¶
| Mechanism | Purpose |
|---|---|
| Studio Override Buttons | Pause planning, reject milestone, re-prioritize scope |
| Approval Workflow Hooks | Require signoff before SprintStarted |
| Comment Threads on Plans | Allow contextual discussion and rejection reasons |
| Feature Annotation | Inject manual-defer, manual-priority, human-blocked flags |
π Example: Hybrid Planning Flow¶
sequenceDiagram
participant ProductManager
participant ProductOwner
participant StudioUser
participant Orchestrator
ProductManager->>ProductOwner: Emit `MilestonePlanCreated`
ProductOwner->>StudioUser: Notify pending approval
StudioUser->>Orchestrator: Reject scope for revision
ProductOwner->>ProductManager: Regenerate plan with exclusions
ProductManager->>Orchestrator: Emit `SprintPlanned`
π‘οΈ Governance Modes¶
| Mode | Description |
|---|---|
| Autonomous | Agents plan milestones and sprints with no human gating. Used for internal test projects or rapid prototypes. |
| Assisted | Agent-generated plans must be approved by a human via Studio before execution. Default mode for most production services. |
| Manual-Only | All planning is done outside AI Factory scope (rare, discouraged). For high-risk regulatory components only. |
Defined in factory-governance.yaml:
π Studio Support¶
- Visual comparison of agent plan vs. human edits
- Toggle for
planningModeper project - Approve/Reject controls per milestone and sprint
- Audit log of all governance overrides
β Summary¶
- The Factory supports AI-led planning with optional human control gates.
- Agents do the work, humans retain authority.
- Governance is configurable, auditable, and traceable.
π― Studio Visualization: How Milestones and Sprint Scope Appear in Dashboards¶
The ConnectSoft Studio acts as the human interface to AI-led execution. It provides a visual and interactive layer where milestones, sprints, feature scope, and agent activity are:
- β Traceable
- β Verifiable
- β Governable
- β Debuggable
You canβt manage what you canβt see β Studio turns logical flows into visible progress.
π Core Visualization Concepts¶
| Element | Visualized As | Data Source |
|---|---|---|
| Milestones | Timeline markers, stacked lanes | milestones.yaml, trace events |
| Sprints | Execution blocks inside milestone swimlanes | sprint-plan.yaml, FSM state |
| Features | Kanban-style cards with trace tags | features.yaml, PRs |
| Agent Activity | Avatars, status icons, span charts | execution-metadata.json |
| Tests | Coverage overlay badges | sprint-trace-matrix.json |
πΌοΈ Example: Studio Timeline View¶
gantt
title Sprint Timeline β MVP Phase
dateFormat YYYY-MM-DD
section Milestone: MVP Ready
Sprint 1 :active, s1, 2025-05-01, 4d
Sprint 2 :done, s2, 2025-05-05, 4d
Sprint 3 (QA) :sprint3, 2025-05-09, 5d
Each bar links to:
- Feature execution breakdown
- Agent activity summary
- Sprint trace matrix
- CI/CD outputs and logs
π Studio File View with Trace Badges¶
π booking-service/
βββ BookAppointmentHandler.cs [sprint:3 β
]
βββ booking-api.feature [sprint:3 β
]
βββ BookingAggregate.cs [sprint:2 β
]
βββ notification-client.cs [deferred π]
Badges pulled from:
execution-metadata.json- Git tags (
sprint:3,deferred) - Trace logs (
ArtifactReady,Deferred)
π Agent Span Dashboard¶
Each agent has a live, traceable dashboard:
| Agent | Status | Avg Duration | Failures | Active Sprint |
|---|---|---|---|---|
| Backend Developer | β Running | 1.84s | 0 | sprint-3 |
| Test Generator | β οΈ Retrying | 2.41s | 2 | sprint-3 |
| Code Committer | β Complete | 0.77s | 0 | sprint-3 |
β Clicking reveals span log, prompt, output, and retry path.
π Sprint Overview Cards¶
| Sprint: sprint-3 | Status: β Completed |
|---|---|
| Features: 4 complete, 1 deferred | |
| Tests: 92% coverage | |
| Agents: 5 active | |
| Commits: 13 | |
| Artifacts: 22 | |
Image Tags: mvp-v1, booking:1.0.3 |
|
| π View sprint-trace-matrix.json β |
ποΈ Interactive Controls¶
| UI Element | Purpose |
|---|---|
| β Approve Sprint Scope | Accept or override agent-proposed features |
| π Resume Planning | Triggers PlanningResumed event |
| βΈοΈ Pause Sprint | Temporarily freeze FSM execution |
| π Diff Trace Scope | Compare this sprint to previous |
| π§ͺ Test Matrix Coverage | Highlight gaps by feature/module |
| π¦ View Artifact Timeline | File β Sprint β Commit β Agent trace |
β Summary¶
- Studio gives humans full visibility into sprint and milestone progress
- All execution data is trace-linked and visualized
- Governance, debugging, and flow control are interactive and observable
π― Best Practices for Incremental Execution: How to Split Delivery by Phase¶
The ConnectSoft AI Software Factory is designed to operate at massive scale β across thousands of features, microservices, and tenants. To ensure reliability, traceability, and delivery velocity, work is always executed in incremental, phase-based units.
Deliver small, observable chunks. Validate continuously. Evolve safely.
π§ Incremental Execution = Controlled Phase Progression¶
Instead of monolithic deliveries, the Factory uses phased sprint strategies, with milestones acting as gates.
| Phase Type | Purpose |
|---|---|
| Foundation | Domain modeling, blueprint creation, shared libraries |
| Core Feature | Initial business logic, use cases, MVP flows |
| Validation & QA | Test coverage, failure simulation, CI observability |
| Expansion | Edge cases, additional adapters, multi-tenant overlays |
| Polish & Docs | Documentation, Swagger, diagrams, metadata |
Each phase corresponds to a sprint or sub-milestone.
π§© Recommended Phased Breakdown¶
milestones:
- id: mvp-foundation
features: [Booking.Aggregate, Booking.DomainEvent, BaseContractLib]
- id: mvp-core
features: [BookingFlow, Notification.Email.Send]
- id: mvp-qa
features: [BookingFlowTests, NotificationEdgeCaseTests]
- id: mvp-ready
features: [SwaggerUI, Diagrams, ReleaseNotes]
β Enables traceable phase progression without bloating sprints.
π Sprint Composition Pattern¶
| Sprint ID | Purpose |
|---|---|
sprint-1 |
Domain setup, handler scaffolds |
sprint-2 |
Core use case logic + coverage |
sprint-3 |
QA hardening, deferred scope |
sprint-4 |
Multi-tenant validation + polish |
Each sprint includes artifacts like sprint-trace-matrix.json, tagged by execution phase.
π Factory FSM Best Practices¶
β Split FSM states by phase gates:
stateDiagram-v2
[*] --> DomainSetup
DomainSetup --> CoreLogic
CoreLogic --> TestValidation
TestValidation --> ReleasePrep
Each transition is guarded by:
ArtifactProducedTestsPassedGateConditionsSatisfied
π§ Agent Alignment per Phase¶
| Phase | Activated Agents |
|---|---|
| Foundation | DomainModelerAgent, APIContractAgent |
| Core | BackendDeveloperAgent, AdapterGeneratorAgent |
| QA | TestGeneratorAgent, QAAgent |
| Expansion | MobileDevAgent, IntegrationAgent |
| Polish | DocumentationAgent, DiagramAgent |
β Only relevant agents are orchestrated per phase β keeps scope clean and parallel execution safe.
π Studio Strategy Visuals¶
- Phase View: Shows grouped sprints under milestone umbrella
- Trace Diff: Tracks feature progression across phases
- Deferral Radar: Highlights phase-overrun or scope creep
β Summary¶
- Incremental execution enables safe, auditable, and fast delivery
- Each phase maps to agent workflows, traceable artifacts, and observable gates
- Orchestration is phase-aware, ensuring modular flow and minimal risk
π§ CI/CD Alignment with Milestones: Traceable Build Artifacts per Milestone¶
In the ConnectSoft AI Software Factory, CI/CD is not a standalone pipeline β it's a trace-driven, milestone-aware execution layer.
Every build, test, and deployment must answer: βWhich sprint, milestone, and trace produced this artifact?β
This alignment enables:
- β Auditable releases
- β Safe rollbacks
- β Incremental promotion
- β Observability across environments
π¦ CI/CD Artifact Requirements¶
Every build artifact (Docker image, NuGet package, deployment manifest, PR) must include:
| Field | Source |
|---|---|
milestoneId |
From milestones.yaml |
sprintId |
From sprint-plan.yaml |
traceId |
From execution-metadata.json |
agentId/skillId |
From execution source |
versionTag |
From orchestrator FSM (e.g., mvp-ready-v1) |
π Example: Docker Image Tags¶
β CI pipeline appends tags using inputs from planning artifacts and trace metadata.
π CI/CD Metadata Injection¶
Each pipeline task uses:
variables:
milestoneId: $(Milestone)
sprintId: $(Sprint)
traceId: $(Trace)
versionTag: $(Build.BuildNumber)-$(Milestone)
steps:
- task: Docker@2
inputs:
tags: |
$(versionTag)
sprint:$(sprintId)
trace:$(traceId)
β Every artifact is trace-tagged and discoverable in logs, releases, and metrics.
π§© Pipeline Triggers¶
Milestones and sprints trigger CI/CD flows via events:
| Event | Pipeline Trigger |
|---|---|
MilestoneCompleted |
ReleasePipeline-MVP |
SprintClosed |
BuildPipeline-sprint-3 |
ArtifactReady |
Feature-level test pipelines |
PlanningResumed |
Preview/deploy-to-dev pipelines |
π Studio Pipeline View¶
| Artifact | Sprint | Milestone | Image Tag | CI/CD Status |
|---|---|---|---|---|
booking-api |
sprint-2 | mvp-core | 1.0.0-s2-core | β Passed |
booking-tests |
sprint-3 | mvp-qa | 1.0.1-test-s3 | β οΈ Retrying |
release-notes.md |
sprint-4 | mvp-ready | doc-v1.0.3 | β Passed |
β All CI/CD executions are traceable back to planning metadata.
π§ͺ Best Practices¶
- π Generate version tags dynamically based on
sprintId + milestoneId - π§ Emit trace annotations in all CI/CD logs
- π§Ύ Capture
execution-metadata.jsonas CI artifact - π Sign and store release manifests per milestone folder
β Summary¶
- CI/CD is deeply coupled with the Factoryβs trace model β not ad hoc or parallel.
- Every build and deployment is milestone-aware, sprint-tagged, and trace-linked
- The result is a fully auditable and modular delivery process.
π§ AI Agent Coordination Strategy: FSMs That Drive Sprint-Aware Execution¶
In the ConnectSoft AI Software Factory, agents donβt just execute in sequence β they operate within Finite State Machines (FSMs) that manage:
- Sprint lifecycle
- Milestone progression
- Feature readiness
- Failure handling
- Event-based triggering
Every sprint is governed by a stateful flow, not a script β and every agent knows when and why itβs allowed to act.
π§© FSMs = Coordinated Execution Plans¶
Each orchestrator (e.g., SprintOrchestrator, MilestoneCoordinator) defines an FSM:
states:
- Planning
- WaitingForValidation
- Active
- Verifying
- Closed
transitions:
- from: Planning
on: SprintPlanned
to: WaitingForValidation
- from: WaitingForValidation
on: GateConditionsSatisfied
to: Active
- from: Active
on: SprintOutputsReady
to: Verifying
- from: Verifying
on: AllTraceChecksPassed
to: Closed
β Sprint-aware FSMs allow retries, pauses, deferrals, or resume flows.
π FSM Event Triggers (Common)¶
| FSM Event | Triggering Input |
|---|---|
SprintPlanned |
Emitted by ProductOwnerAgent |
GateConditionsSatisfied |
QAAgent + DevOpsAgent readiness signals |
SprintOutputsReady |
Feature artifacts trace-complete |
AllTraceChecksPassed |
sprint-trace-matrix.json validated |
PlanningResumed |
Manual or system trigger |
π§ Agent Execution Context Awareness¶
Every agent receives injected FSM context:
{
"sprintId": "sprint-3",
"milestoneId": "mvp-core",
"currentState": "Active",
"traceId": "trace-abc123",
"phase": "CoreFeature",
"allowedSkills": ["GenerateHandler", "EmitEvent", "CommitCode"]
}
β Keeps execution scoped, safe, and idempotent.
π¦ FSM State Persistence¶
Each orchestrator logs:
fsm-state.json- Last known agent execution events
- Time since last transition
- Unmet conditions
- Trace checkpoints
This allows:
- Resume-after-failure
- Studio rollback
- Diagnostics for blocked sprints
π§ FSM Benefits for Sprint Coordination¶
| Benefit | Description |
|---|---|
| β Agent Boundaries | No agent executes outside its allowed sprint/phase |
| β Traceable Progression | Every transition is observable via events |
| β Determinism | Execution flow is reproducible across runs |
| β Resumability | Execution can continue after pause/failure |
| β Scalable Composition | FSMs can fork by milestone, feature, or tenant |
π§ͺ FSM Visualization in Studio¶
stateDiagram-v2
[*] --> Planning
Planning --> ValidatingScope
ValidatingScope --> Active
Active --> Verifying
Verifying --> Closed
Closed --> [*]
β Each transition node includes trace ID, duration, blocking reasons, agent logs.
β Summary¶
- AI agents donβt execute in a vacuum β theyβre coordinated via FSMs per sprint and milestone
- FSMs ensure safe, scoped, resumable, and traceable execution flows
- Every phase of sprint execution is governed by event triggers and agent contract validation
π§ͺ Testing and QA by Sprint: TestGeneratorAgent Logic per Scope¶
In the ConnectSoft AI Software Factory, tests are not written manually post-delivery. They are generated and validated as an integral part of each sprint, using specialized agents like:
TestGeneratorAgentQAAgentResiliencyAgentValidationAgent
βIf it ships in a sprint, itβs tested in that sprint β by agents, automatically, observably.β
π§ TestGeneratorAgent Responsibilities¶
| Scope | Action |
|---|---|
| Sprint Features | Generate SpecFlow/BDD features and unit tests |
| Application Layer | Generate handler tests with mocks and assertions |
| API Layer | Create OpenAPI contract tests and status code checks |
| Domain Layer | Emit aggregate state-transition tests |
| Integration Points | Emit external adapter or messaging stubs/tests |
β All tests include traceId, sprintId, and featureId.
π Example: Generated BDD Feature (Sprint 3)¶
Feature: Book Appointment
As a customer
I want to book an appointment
So that I can confirm my visit
Scenario: Valid appointment request
Given a new booking with date "2025-05-16"
When the booking is submitted
Then an AppointmentBooked event is emitted
And a confirmation email is sent
π§© Tagged: BookingService, sprint-3, mvp-core
π§© sprint-trace-matrix.json β Test Links¶
Each feature maps to test cases:
{
"featureId": "BookingFlow",
"tests": [
"BookAppointment.feature",
"AppointmentAggregateTests.cs"
],
"status": "complete",
"coverage": "93%"
}
β Used by orchestrators and QA agents to verify coverage gates.
π QA Process Flow per Sprint¶
sequenceDiagram
participant Orchestrator
participant TestGenerator
participant QAAgent
participant Studio
Orchestrator->>TestGenerator: Generate tests for sprint-3 features
TestGenerator->>Orchestrator: Emit `TestCasesGenerated`
Orchestrator->>QAAgent: Validate test readiness
QAAgent->>Orchestrator: Emit `SprintQAReady`
Orchestrator->>Studio: Visualize coverage and test linkage
π¦ Output Artifacts¶
| File | Contents |
|---|---|
*.feature |
BDD test cases |
*.Tests.cs |
NUnit/MSTest unit tests |
qa-coverage-report.md |
Feature/test mapping |
qa-errors.json |
Test failures (if any) |
sprint-trace-matrix.json |
Feature β Test β Commit β Agent linkages |
π Studio QA Panel (Per Sprint)¶
| Feature | Coverage | Test Cases | Last Run | Status |
|---|---|---|---|---|
| BookingFlow | 93% | 12 | 2 minutes ago | β Pass |
| Notification | 84% | 9 | 3 minutes ago | β οΈ Warning |
| AuthFlow | 100% | 5 | 1 minute ago | β Pass |
β Clicking opens trace-linked execution logs and test diffs.
β Summary¶
- QA is fully agent-driven, sprint-scoped, and trace-linked
TestGeneratorAgentemits test code,QAAgentvalidates completeness- Sprints cannot close until test coverage meets gates defined in
milestones.yamlor FSM rules
π§― Failure Recovery and Sprint Re-execution¶
In the ConnectSoft AI Software Factory, failures are expected, observable, and recoverable. Every sprint is governed by orchestration logic that ensures:
- Agent failures donβt halt the Factory
- Invalid artifacts are retried or corrected
- Sprints can resume, rewind, or restart safely
βA failed test, a broken trace, or a flaky build is not the end β itβs just a fork in the FSM.β
π§© Types of Sprint Failures¶
| Failure Type | Example |
|---|---|
| Agent Skill Error | TestGeneratorAgent fails to emit valid SpecFlow file |
| Validation Gate Fail | Coverage below threshold in QAAgent |
| Artifact Mismatch | Generated handler lacks required trace tags |
| CI/CD Execution Error | Build image fails, manifests invalid |
| Partial Output | Some features complete, others are blocked/deferred |
π Recovery Mechanisms¶
| Mechanism | Trigger Condition |
|---|---|
| Agent Retry | Automatic retry after transient failure (skillRetryCount) |
| Sprint Resumption | Triggered after SprintPaused or PlanningResumed |
| Targeted Re-execution | Re-run of specific agent or feature via Studio |
| Sprint Rewind | Manual rollback to prior FSM state (fsm-state.json) |
| Snapshot Recovery | Rebuild execution from prior trace ID session checkpoint |
π Example: Failure Event¶
{
"event": "AgentSkillFailed",
"agentId": "test-generator",
"skillId": "GenerateSpecFlowTest",
"featureId": "BookingFlow",
"sprintId": "sprint-3",
"traceId": "trace-abc123",
"error": "Missing scenario outline"
}
β This triggers a retry, logs an error to qa-errors.json, and flags the sprint for Studio review.
π§ Orchestrator FSM Support¶
FSM transitions on failure:
stateDiagram-v2
Active --> Verifying
Verifying --> Closed: AllTestsPassed
Verifying --> RetryPhase: GateFailed
RetryPhase --> Active: PatchEmitted
RetryPhase --> Closed: ManualApproval
β Ensures trace-safe retries and prevents broken progression.
π Recovery Artifacts¶
| File | Contents |
|---|---|
fsm-state.json |
Last known orchestrator state |
execution-errors.json |
List of agent/skill/test failures |
recovery-plan.yaml |
Actions planned for retry or re-execution |
retry-history.json |
Skill attempts, durations, retry logic used |
π Studio Recovery Console¶
| Failure Point | Agent | Status | Retry Count | Last Action |
|---|---|---|---|---|
| BookingFlow Test | test-generator | β οΈ Failed | 2 | Auto retry queued |
| BookingAdapter.cs | backend-dev | β Success | 0 | Generated |
| Notification Feature | test-generator | β Blocked | 3 | Needs human fix |
β Manual options: Re-run, Override, Patch, Pause, Abort Sprint
β Summary¶
- The Factory is designed to recover from failure at any phase of sprint execution
- Recovery is trace-aware, artifact-linked, and observable
- Orchestrators and Studio work together to enable safe re-execution and rollback
βοΈ Factory Speed vs Logical Sprinting: Balancing Parallel Execution and Governance¶
The ConnectSoft AI Software Factory is capable of executing thousands of workflows in parallel. Yet, every sprint must remain:
- Traceable
- Governable
- Deterministic
- Testable
Just because the Factory can go fast doesnβt mean it should go ungoverned.
This cycle explores how ConnectSoft balances execution velocity with structured delivery logic using logical sprinting and agent orchestration boundaries.
π How the Factory Scales Fast¶
| Capability | Enablement Source |
|---|---|
| Concurrent Agent Flows | Stateless agents scoped by traceId and sprintId |
| Asynchronous FSMs | Milestone and sprint coordinators operate independently |
| Multi-tenant Isolation | Namespace and module-level boundaries |
| Event-driven Triggers | Agents awaken only on relevant input events |
| Auto-scaling Infrastructure | Containerization, KEDA, and burstable workflows |
π§ What Logical Sprinting Means¶
| Characteristic | Description |
|---|---|
| No fixed timebox | A sprint may last 30 seconds or 3 hours β itβs driven by artifact gates, not dates. |
| FSM-scoped | Each sprint is a state machine; no shared global timeline is required. |
| Trace-driven | Each sprint ID links all artifacts and events; multiple sprints can run in parallel. |
| Test-bound | No sprint can close without QA validations, regardless of speed. |
β Logical sprints allow burst scaling without compromising delivery discipline.
π§© Parallel Execution Strategy¶
| Execution Layer | Parallelization Model |
|---|---|
| Blueprints | Multiple services planned at once |
| Sprints | Per-service or per-feature sprint FSMs |
| Agents | Isolated actors per trace/sprint/skill |
| Testing/CI | Parallel test runs per image, per sprint |
| Deployment | Canary/staged rollout per milestone ID |
π Studio Sprint Parallel View¶
| Sprint ID | Module | Status | Artifacts | Tests | Duration |
|---|---|---|---|---|---|
sprint-3 |
BookingService | β Closed | 12 | 10 | 3m 12s |
sprint-4 |
Notification | π‘ Verifying | 9 | 6 | 1m 09s |
sprint-5 |
Invoicing | β³ Active | 4 | 0 | 0m 32s |
β Click any sprint to trace agent activity, FSM state, and error paths.
π‘οΈ Governance Mechanisms in High-Speed Execution¶
| Guardrail Type | Description |
|---|---|
| FSM Gate Conditions | Prevent sprint closure unless trace matrix and test metrics validate success |
| Parallel Trace Isolation | Each sprint has a unique traceId and agent execution context |
| Deployment Freeze Flags | Milestone transitions blocked until manual approval (if configured) |
| Agent Scope Rules | No agent can act outside its assigned sprint/milestone boundary |
| Observability Events | All agent execution emits span and metric signals with trace tagging |
π YAML Example: Controlled Sprint Execution¶
sprints:
- id: sprint-4
module: NotificationService
milestone: mvp-core
concurrencyPolicy: isolated
gates:
- traceValidated
- testsPassed
governance:
approvalRequired: true
β Ensures that even fast-executing sprints must pass trace and human checks.
β Summary¶
- The Factory is designed for speed, but sprinting remains logical and controlled
- Multiple sprints may execute concurrently, but no milestone completes without gates passing
- Governance, observability, and FSM orchestration ensure high throughput with safety
π¦ Examples and Templates: Milestone Definition Samples¶
Milestones in the ConnectSoft AI Software Factory are more than labels β they are orchestration contracts. Each milestone:
- Scopes features and sprints
- Declares gate conditions
- Links to traceable outputs
- Triggers downstream events
A milestone is the Factoryβs unit of governance, traceability, and delivery coordination β and must be templatized for consistency.
π§© Standard Milestone Template (YAML)¶
milestones:
- id: mvp-core
name: Core MVP Delivery
description: Deliver functional booking and notification flows.
requiredFeatures:
- BookingFlow
- Notification.Email.Send
- Auth.Login
requiredArtifacts:
- BookingService
- NotificationService
- booking-api.feature
- diagrams/booking-context.mmd
gateConditions:
- allPullRequestsMerged
- testCoverageAbove90
- traceMatrixComplete
versionTag: mvp-v1
phase: CoreFeature
triggers:
- event: MilestoneCompleted
next: deploy-to-staging
traceability:
labels: ["mvp", "core", "critical"]
tracePattern: "trace-*"
governedBy: product-owner
β Fully machine-parseable β Used by orchestrators, Studio, CI/CD, and governance agents
π Extended Milestone with Parallel Streams¶
milestones:
- id: onboarding-v2
name: Multi-Channel Onboarding Rollout
parallelStreams:
- UserSignupFlow
- MobilePushFlow
- AdminApproval
deferredAllowed: true
versionTag: onboarding-v2-beta
orchestrator: MilestoneCoordinator
triggers:
- event: SprintClosed
condition: allStreamsReady
next: MilestoneFinalization
β Supports multi-feature parallel sprint orchestration, with dynamic stream activation.
π§ͺ QA-Focused Milestone Template¶
milestones:
- id: qa-hardening
phase: Validation
name: QA and Chaos Testing Milestone
requiredArtifacts:
- booking-api.feature
- resiliency-checklist.md
- chaos-results.json
gateConditions:
- allTestsPassed
- resilienceScoreAbove: 85
versionTag: mvp-v2-rc
governedBy: qa-lead
triggers:
- event: MilestoneCompleted
next: freeze-deployment
β Tied to agents like QAAgent, ChaosAgent, TestGeneratorAgent.
π‘οΈ Security-Focused Milestone Sample¶
milestones:
- id: security-verification
name: Security and Compliance Review
requiredArtifacts:
- security-events.json
- owasp-report.md
- tenant-policy.yaml
gateConditions:
- noCriticalFindings
- jwtValidationInPlace
- traceSpanPolicyCheck: pass
versionTag: security-reviewed-v1
governedBy: security-officer
triggers:
- event: SecurityPolicyPublished
next: staging-release
β Enables SecurityEngineerAgent, PolicyValidatorAgent to participate in release flow.
π Studio View Based on Templates¶
| Milestone | Scope Type | Phase | Completion | Gate Status |
|---|---|---|---|---|
| mvp-core | Single Stream | CoreFeature | β | β Passed |
| qa-hardening | Single Stream | Validation | β³ | β οΈ Incomplete |
| onboarding-v2 | Multi-Stream | Expansion | π‘ Partial | π Some passed |
Each row includes links to:
- Linked features
- Agent activity logs
- Artifact summaries
- Gate trace failures (if any)
β Summary¶
- Milestone templates are declarative contracts that unify planning, execution, and governance
- YAML-based templates are reusable, inspectable, and traceable
- Templates vary by phase, focus, and agent cluster β but always produce observable state transitions
π Security and Audit Hooks Per Sprint: How Metrics and Traces Are Verified¶
In the ConnectSoft AI Software Factory, security and compliance arenβt deferred to pre-release. Instead, each sprint embeds security gates, trace validation, and audit-ready telemetry into the delivery process β automatically and observably.
βEvery sprint is a mini compliance unit β traceable, testable, and policy-aware.β
π§ Key Security Enforcement Agents¶
| Agent | Responsibility |
|---|---|
SecurityEngineerAgent |
Enforces authentication, validation, headers, CORS, rate limiting |
PolicyValidatorAgent |
Verifies sprint-level trace compliance, secret usage, trace spans |
PrivacyComplianceAgent |
Ensures PII handling, tenant boundary enforcement, redaction |
These agents operate during the sprint, not after.
π¦ Metrics and Traces Checked Per Sprint¶
| Signal | Purpose |
|---|---|
traceId in all artifacts |
Verifies trace linkage |
agentId + skillId in spans |
Confirms who produced what |
jwtValidationEnabled = true |
Security setting required on all APIs |
securitySpanTemplateInjected |
Confirms span templates like access_denied, token_expired |
trace.exported to observability |
Enforced per milestone FSM gate |
SecurityPolicyPublished event |
Marks sprint-compliant outputs |
π Example: Policy Validation Report (security-audit.json)¶
{
"sprintId": "sprint-4",
"traceId": "trace-91dc",
"issues": [],
"status": "Compliant",
"validatedBy": "policy-validator",
"checks": [
"CSPHeadersPresent",
"RateLimitingEnabled",
"TokenValidationMiddlewareConfigured",
"TraceSpansAttached"
]
}
β
Published as an output in the sprintβs /security/ folder
β
Linked to trace-matrix and milestone tag
π§© Audit Hooks in Milestone Definitions¶
gateConditions:
- testCoverageAbove90
- traceMatrixComplete
- noCriticalSecurityFindings
- jwtValidationInPlace
- spanTemplatesVerified
β These gates are enforced before MilestoneCompleted or SprintClosed can be emitted.
π§ͺ Observability Enforced for Auditability¶
Each service or agent execution must emit:
-
OpenTelemetry spans with:
-
agentId skillIdsprintIdmoduleIdsecurityScope- Logs with
traceIdandtenantId execution-metadata.jsontagged withvalidated=trueorsecurityScanStatus
π Studio Security Dashboard¶
| Sprint ID | JWT Validated | PII Audited | Trace Complete | Compliance |
|---|---|---|---|---|
| sprint-4 | β | β | β | β Pass |
| sprint-5 | β οΈ Partial | π‘ Pending | β | π Review |
β Click for:
- Span graphs
- Trace lineage audit
- Diff between security template versions
π If a Check Fails¶
SecurityPolicyViolationevent is emitted- Sprint FSM moves to
RetryPhaseorPause - Violations listed in
security-audit.json - Studio flags sprint for manual review or patch
β Summary¶
- Every sprint embeds real-time security checks and audit hooks
- Trace validation, span injection, and policy enforcement are automated and observable
- Factory artifacts are compliance-ready by design, not by post-processing
π§ Summary and Final Takeaways¶
In the ConnectSoft AI Software Factory, timing is not driven by calendars β it's driven by traceable logical events, orchestrated agent flows, and verifiable outcomes.
Milestones, sprints, and delivery phases are not about when β they are about what, why, and how completely.
π Full Lifecycle View¶
flowchart TD
Vision --> MilestonePlanning
MilestonePlanning --> SprintScope
SprintScope --> AgentExecution
AgentExecution --> QAValidation
QAValidation --> SecurityAudit
SecurityAudit --> MilestoneGateCheck
MilestoneGateCheck --> SprintClosure
SprintClosure --> ArtifactTagging
ArtifactTagging --> Release
Release --> PlanningResumed
β Every transition is governed by events, trace IDs, FSMs, and planning artifacts.
β Factory Time Model Summary¶
| Concept | How It Works in ConnectSoft |
|---|---|
| Sprint | Scoped execution window, defined by FSM, trace-linked |
| Milestone | Logical delivery boundary, with test and trace gates |
| Backlog | Blueprint-derived feature pool, partitioned dynamically |
| Planning | Agent-generated, resumable, Studio-approved |
| Execution | Event-driven, trace-aware, phase-bound |
| Recovery | FSM-governed, retry-safe, observable |
| CI/CD | Aligned to sprints and milestones via tags and metadata |
| Security | Enforced inline via audit traces and policy agents |
π¦ Key Artifacts¶
| Artifact | Purpose |
|---|---|
milestones.yaml |
Defines traceable delivery boundaries |
sprint-trace-matrix.json |
Links features to code, commits, tests |
execution-metadata.json |
Captures agent runs per skill |
qa-coverage-report.md |
Ensures tests are tied to features |
security-audit.json |
Verifies compliance and observability |
Git tags (sprint-*, mvp-*) |
Enable CI/CD alignment and versioning |
π§ Mindset Shift: Time in the AI Software Factory¶
| Traditional DevOps | ConnectSoft AI Software Factory |
|---|---|
| Timeboxed sprints | Event-driven FSMs |
| Manual backlog management | Blueprint-scoped feature orchestration |
| Retrospectives + triage | Trace-based recovery and milestone audit |
| Human-driven estimation | Agent-measured effort, retry count, duration |
| QA at the end | Test generation + validation inside the sprint |
π― Final Takeaways¶
- Sprints and milestones are execution containers, not deadlines.
- All execution is observable, auditable, and traceable by design.
- Planning is iterative, hybrid, and agent-augmented.
- Recovery and governance are first-class, FSM-driven capabilities.
- Every artifact is linked back to sprint, milestone, trace, and intent.
π Next Steps You Can Take¶
| Action | Outcome |
|---|---|
Create milestones.yaml |
Enable FSM-aware orchestration |
| Define your first sprint | Activate execution planning and trace |
| Tag agents and outputs | Link artifacts to blueprint intent |
| Configure test + trace gates | Enforce quality without slowing speed |
| Use Studio dashboards | Observe sprints, QA, and security visually |