Repository navigation
Consolidate workflow patterns with bounded correction and recovery - #106
Conversation
There was a problem hiding this comment.
Pull request overview
Consolidates workflow templates from external repos into a new workflows package and integrates template selection + self-healing retries into OrchestrationEngine, along with supporting docs and tests.
Changes:
- Added a declarative workflow template catalog + registry helpers (
workflows/) and wired template materialization into orchestration. - Implemented step-level retry/self-heal behavior and failure recording hooks during workflow execution.
- Added documentation and tests validating template coverage and orchestrator template selection; updated test dependencies for async tests.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| workflows/templates.py | Introduces WorkflowTemplate and consolidated template definitions. |
| workflows/self_correcting.py | Adds helper to apply retry policy defaults to workflow steps. |
| workflows/registry.py | Provides template listing, intent-to-template matching, and materialization. |
| workflows/init.py | Exposes registry functions as package API. |
| orchestrator.py | Integrates template generation, applies self-correction, adds retry loop + failure recording. |
| tests/test_workflow_templates.py | Adds tests for template sources, materialization, and orchestrator selection. |
| tests/test_mcp_compliance.py | Adjusts MCP fixtures to be synchronous. |
| tests/conftest.py | Ensures repo root is on sys.path for test imports. |
| requirements-test.txt | Adds pytest-asyncio to test requirements. |
| mcp_server/real_mcp_server.py | Adds tool registry + lightweight RealMCPServer wrapper for tests. |
| docs/workflows/CONSOLIDATION.md | Documents consolidation and template-driven orchestration usage. |
| README.md | Mentions the new consolidated workflow catalog. |
| MCP_INTEGRATION_PLAN.md | Clarifies “no mocks” policy statement. |
| config/init.py | Adds config package marker. |
| .github/dependabot_test.py | Adds helper module used by tests for dependabot config assertions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
The original consolidation loaded a few templates but did not carry across the complete workflow patterns or reliably recover failed work. This change consolidates the source contracts, executable patterns and examples from WRKFLW, workflows and the native executor, with bounded correction that preserves successful work and original inputs.
docs/workflows/IMPORTED_PATTERNS.md.Validation on head
e0fd643d37ca3b86f49ccea048faa7153f55fe80:Host application bindings remain required for identity, explicit action confirmation, external services and business handlers. SQLite is a local store; completed-child checkpoints are per execution, not cross-process or distributed transactions. Generated artifacts remain
scaffold_only. This is workflow-pattern migration, not recreation of the archived SaaS/mobile interfaces or a repository-wide vulnerability certification.GitHub's pre-existing squash auto-merge setting merged the reviewed head as
05e47c4b40bf5f9838fd1b837571afd283690bcaafter its required checks. The merged tree09f06a50790229b7b88a79da1cbe4283ff08c739was independently confirmed identical to the reviewed candidate.Original prompt