How testintegrationorg/sd-ai-framework works
SD-AI is a spec-driven, AI-assisted development lifecycle framework. Its principal flow takes a feature from business or issue intake through approved specifications and architecture, governed agent planning and implementation, validation, and PR delivery. Workflows coordinate approvals, retries, and quality gates; policy constrains provider and execution choices. The graph also preserves documented integrations, architecture-drift analysis, and extension support. Several connections reflect README-documented capabilities rather than inspected call sites; unsampled internals are not treated as verified wiring.
Main entry points: orchestrator.py Workflow engine · lifecycle.py Semantic agents · runtime.py Agent runtime · policy.py Effective policy
Components 20
Lifecycle workflow
- Workflow engine
src/sdai/orchestrator.py - Workflow definitions
src/sdai/workflows.py - Feature context
src/sdai/models.py - Specifications
src/sdai/specification_stores.py - Architecture drift
src/sdai/architecture_engine.py
Policy and governance
- Human approvals
src/sdai/governance.py - Effective policy
src/sdai/policy.py
Agent execution
- Semantic agents
src/sdai/agents/lifecycle.py - Context and skills
src/sdai/agent_platform/context_plan.py - Agent runtime
src/sdai/agent_platform/runtime.py - Model routing
src/sdai/agent_platform/model_routing.py - Provider execution
src/sdai/providers/factory.py
Validation and evidence
- Quality gates
src/sdai/quality_gates.py - Spec verification
src/sdai/verify_engine.py - Trace graph
src/sdai/trace_graph.py - Workflow audit
src/sdai/workflow_audit.py
Integrations and extensions
- GitHub / Jira
src/sdai/integrations/github.py - Extension manifests
src/sdai/extensions/manifests.py
Other components
- Business / issue
- GitHub PR
Connections 21
- Business / issue → Workflow engine: initiates feature
README.md - GitHub / Jira → Workflow engine: provides intake
README.md - Workflow engine → Feature context: establishes feature
README.md - Workflow engine → Workflow definitions: selects workflow
src/sdai/orchestrator.py - Workflow engine → Specifications: coordinates specification
README.md - Workflow engine → Architecture drift: evaluates architecture
README.md - Workflow engine → Human approvals: pauses for approval
README.md - Workflow engine → Semantic agents: runs workflow steps
src/sdai/orchestrator.py - Semantic agents → Context and skills: uses planned context
- Semantic agents → Agent runtime: invokes agents
- Agent runtime → Model routing: routes model
src/sdai/agent_platform/__init__.py - Model routing → Effective policy: applies policy
src/sdai/agent_platform/model_routing.py - Agent runtime → Provider execution: executes provider
- Effective policy → Human approvals: constrains approvals
README.md - Workflow engine → Quality gates: runs quality gates
src/sdai/orchestrator.py - Workflow engine → Spec verification: validates artifacts
README.md - Spec verification → Trace graph: checks traceability
src/sdai/verify_engine.py - Workflow engine → Workflow audit: records execution
src/sdai/audited_orchestrator.py - Quality gates → GitHub PR: gates delivery
README.md - Workflow engine → GitHub / Jira: uses integrations
README.md - Workflow engine → Extension manifests: supports extensions
README.md