@christianmaf80/agentic-workflow 1.41.0-beta.11 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.es.md +13 -94
- package/README.md +14 -94
- package/RELEASE_PROCESS.md +3 -6
- package/bin/cli.js +31 -72
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/acceptance.md +70 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-scores.md +22 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/1-dev-agent-scaffold.md +106 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/2-dev-agent-manifest-command.md +105 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/3-dev-agent-marketplace-evidence.md +103 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/4-qa-agent-verify-build.md +103 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/analysis.md +197 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/architect/review.md +131 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/changelog.md +26 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/metrics.md +40 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/plan.md +175 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/researcher/research.md +157 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/results-acceptance.md +168 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/task.md +119 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/verification.md +79 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/analysis.md +24 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/roadmap-audit.md +34 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/task.md +58 -0
- package/dist/agent/artifacts/12-npm-workspaces/acceptance.md +78 -0
- package/dist/agent/artifacts/12-npm-workspaces/analysis.md +179 -0
- package/dist/agent/artifacts/12-npm-workspaces/plan.md +237 -0
- package/dist/agent/artifacts/12-npm-workspaces/researcher/research.md +186 -0
- package/dist/agent/artifacts/12-npm-workspaces/task.md +126 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/acceptance.md +75 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/researcher/research.md +121 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/task.md +104 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/acceptance.md +75 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/architect/analysis.md +90 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/planner/implementation_plan.md +44 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/researcher/research.md +113 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/task.md +107 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verification/walkthrough.md +37 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verifier/walkthrough.md +0 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/acceptance.md +68 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/1-dev-agent-contribution-points-assets.md +107 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/2-dev-agent-webview-provider.md +106 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/3-dev-agent-webview-ui.md +104 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/4-dev-agent-chat-participant.md +104 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/5-dev-agent-migrate-to-root.md +103 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-1-dev-agent-chat-participant-types.md +108 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-2-dev-agent-view-container-id.md +106 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-3-dev-agent-container-id-lowercase.md +105 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-4-dev-agent-container-id-hyphen.md +105 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-5-dev-agent-view-type-webview.md +103 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/analysis.md +179 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/architect/review.md +118 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/plan.md +171 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/researcher/research.md +113 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/results-acceptance.md +171 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/task.md +119 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/verification.md +85 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/acceptance.md +69 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-scores.md +23 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/1-dev-agent-create-project.md +89 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/2-dev-agent-contributes-activitybar.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/3-dev-agent-webview-panel.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/4-dev-agent-chat-participant.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/5-dev-agent-launch-config.md +90 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/fix-1-dev-agent-view-container-ids.md +90 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/analysis.md +175 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/architect/review.md +118 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/changelog.md +26 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/metrics.md +43 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/plan.md +167 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/researcher/research.md +115 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/results-acceptance.md +122 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/task.md +119 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/verification.md +85 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/acceptance.md +67 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/architect/implementation.md +31 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/brief.md +103 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/closure.md +101 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/acceptance.md +72 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-scores.md +20 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/1-dev-agent-reestructurar-carpetas.md +101 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/2-dev-agent-scaffolding-yeoman.md +111 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/3-dev-agent-merge-extension.md +110 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/4-dev-agent-merge-config.md +107 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/5-dev-agent-update-scripts.md +111 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/6-qa-agent-validation-install.md +108 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/7-dev-agent-fix-cli-entrypoint.md +104 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/8-qa-agent-validation-install-retry.md +106 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/analysis.md +125 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/architect/review.md +84 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/changelog.md +34 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/metrics.md +44 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/plan.md +157 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/researcher/research.md +105 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/results-acceptance.md +105 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/task.md +107 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/verification.md +79 -0
- package/dist/agent/artifacts/6-release-beta-11/agent-tasks/1-dev-agent-release-bump.md +44 -0
- package/dist/agent/artifacts/6-release-beta-11/architect/implementation.md +37 -0
- package/dist/agent/artifacts/6-release-beta-11/brief.md +89 -0
- package/dist/agent/artifacts/6-release-beta-11/closure.md +83 -0
- package/dist/agent/artifacts/6-release-beta-11/task.md +65 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/acceptance.md +70 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-scores.md +24 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/1-vscode-specialist-scaffold-extension.md +99 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/2-vscode-specialist-update-manifest.md +101 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/3-vscode-specialist-webview-provider.md +96 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/4-vscode-specialist-activitybar-icon.md +95 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/5-qa-agent-manual-verify.md +97 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/analysis.md +195 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/architect/review.md +124 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/changelog.md +9 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/metrics.md +43 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/plan.md +181 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/researcher/research.md +118 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/results-acceptance.md +146 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/task.md +119 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/verification.md +81 -0
- package/dist/agent/artifacts/8-create-agentic-runtime-cli-first-as-the-single-execution-engine/task.md +126 -0
- package/dist/agent/artifacts/candidate/acceptance.md +23 -0
- package/dist/agent/artifacts/candidate/brief.md +39 -0
- package/dist/agent/artifacts/candidate/init.md +24 -0
- package/dist/agent/artifacts/candidate/task.md +5 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/acceptance.md +68 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/brief.md +100 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/closure.md +40 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/implementation.md +48 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/task.md +66 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/acceptance.md +65 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-scores.md +26 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1-neo-agent-deps-chatkit.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/15-vscode-specialist-views-router.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1b-vscode-specialist-review-deps.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/2-neo-agent-local-server.md +111 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/22-vscode-specialist-external-js.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/23-qa-agent-coverage-tests.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/24-vscode-specialist-class-refactor.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/25-vscode-specialist-external-html.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/26-vscode-specialist-template-js-html.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/27-vscode-specialist-fix-loading-setup.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/28-vscode-specialist-webview-debug-setup.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/29-vscode-specialist-webview-logging.md +109 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/3-neo-agent-webview-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/30-vscode-specialist-csp-source.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/31-vscode-specialist-logging-prefix.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/32-vscode-specialist-logging-visibility.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/33-vscode-specialist-lit-setup.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/34-vscode-specialist-core-lit-base.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/35-vscode-specialist-lit-decorators-ts.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/36-vscode-specialist-lit-module-start.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/37-vscode-specialist-lit-ready-state.md +86 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/4-qa-agent-verification.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/5-vscode-specialist-api-key-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/6-vscode-specialist-refactor-protocol.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/7-qa-agent-unit-tests.md +104 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-10-vscode-specialist-api-key-handshake.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-11-vscode-specialist-api-key-button-style.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-12-vscode-specialist-key-gate-view.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-13-vscode-specialist-status-timeout.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-14-vscode-specialist-init-flow.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-16-vscode-specialist-view-context.md +87 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-17-vscode-specialist-clear-key-command.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-18-vscode-specialist-context-sync.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-19-vscode-specialist-setup-visible.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-20-vscode-specialist-loading-state.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-21-vscode-specialist-loading-label.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-8-vscode-specialist-api-key-detect.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-9-vscode-specialist-api-key-state.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/analysis.md +156 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/architect/review.md +141 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/changelog.md +30 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/metrics.md +43 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/plan.md +151 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/research.md +115 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/results-acceptance.md +171 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/verification.md +87 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/acceptance.md +64 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/architect/implementation.md +30 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/brief.md +102 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/closure.md +95 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/acceptance.md +68 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/architect/implementation.md +33 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/brief.md +104 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/closure.md +100 -0
- package/dist/agent/artifacts/task-beta-release/acceptance.md +23 -0
- package/dist/agent/artifacts/task-beta-release/brief.md +39 -0
- package/dist/agent/artifacts/task-beta-release/closure.md +29 -0
- package/dist/agent/artifacts/task-beta-release/init.md +26 -0
- package/dist/agent/artifacts/task-beta-release/task.md +64 -0
- package/dist/agent/index.md +69 -30
- package/dist/agent/rules/constitution/agents-behavior.md +110 -158
- package/dist/agent/rules/constitution/backend.md +27 -0
- package/dist/agent/rules/constitution/background.md +30 -0
- package/dist/agent/rules/constitution/clean-code.md +5 -6
- package/dist/agent/rules/constitution/modular-architecture.md +66 -0
- package/dist/agent/rules/constitution/view.md +41 -0
- package/dist/agent/rules/constitution/vscode-extensions.md +32 -0
- package/dist/agent/rules/roles/architect.md +1 -2
- package/dist/agent/rules/roles/backend.md +21 -0
- package/dist/agent/rules/roles/background.md +20 -0
- package/dist/agent/rules/roles/devops.md +20 -0
- package/dist/agent/rules/roles/engine.md +26 -0
- package/dist/agent/rules/roles/neo.md +12 -13
- package/dist/agent/rules/roles/researcher.md +2 -2
- package/dist/agent/rules/roles/view.md +22 -0
- package/dist/agent/rules/roles/vscode-specialist.md +24 -0
- package/dist/agent/templates/acceptance.md +19 -25
- package/dist/agent/templates/agent-task.md +39 -39
- package/dist/agent/templates/analysis.md +92 -92
- package/dist/agent/templates/brief.md +96 -0
- package/dist/agent/templates/changelog.md +8 -8
- package/dist/agent/templates/closure.md +95 -0
- package/dist/agent/templates/coding/coding-integration-report.md +102 -0
- package/dist/agent/templates/coding/coding-layer-report.md +78 -0
- package/dist/agent/templates/init.md +2 -23
- package/dist/agent/templates/planning.md +73 -73
- package/dist/agent/templates/research.md +43 -43
- package/dist/agent/templates/results-acceptance.md +94 -94
- package/dist/agent/templates/review.md +59 -59
- package/dist/agent/templates/subtask-implementation.md +29 -29
- package/dist/agent/templates/supplemental-report.md +0 -6
- package/dist/agent/templates/task-metrics.md +14 -14
- package/dist/agent/templates/task.md +18 -33
- package/dist/agent/templates/todo-item.md +23 -23
- package/dist/agent/workflows/coding/coding-backend.md +147 -0
- package/dist/agent/workflows/coding/coding-background.md +149 -0
- package/dist/agent/workflows/coding/coding-integration.md +174 -0
- package/dist/agent/workflows/coding/coding-view.md +151 -0
- package/dist/agent/workflows/init.md +93 -133
- package/dist/agent/workflows/scaffold-module.md +38 -0
- package/dist/agent/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +124 -134
- package/dist/agent/workflows/tasklifecycle-long/phase-1-research.md +103 -97
- package/dist/agent/workflows/tasklifecycle-long/phase-2-analysis.md +107 -102
- package/dist/agent/workflows/tasklifecycle-long/phase-3-planning.md +125 -120
- package/dist/agent/workflows/tasklifecycle-long/phase-4-implementation.md +121 -125
- package/dist/agent/workflows/tasklifecycle-long/phase-5-verification.md +105 -101
- package/dist/agent/workflows/tasklifecycle-long/phase-6-results-acceptance.md +82 -78
- package/dist/agent/workflows/tasklifecycle-long/phase-7-evaluation.md +84 -75
- package/dist/agent/workflows/tasklifecycle-long/phase-8-commit-push.md +94 -89
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-brief.md +117 -0
- package/dist/agent/workflows/tasklifecycle-short/short-phase-2-implementation.md +114 -0
- package/dist/agent/workflows/tasklifecycle-short/short-phase-3-closure.md +111 -0
- package/dist/cli/commands/create.js +4 -29
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/fork.js +45 -0
- package/dist/cli/commands/fork.js.map +1 -0
- package/dist/cli/commands/init.js +4 -78
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/mcp.js +3 -17
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/scaffold.js +57 -0
- package/dist/cli/commands/scaffold.js.map +1 -0
- package/dist/cli/index.js +0 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/infrastructure/context/manager.js +0 -2
- package/dist/infrastructure/context/manager.js.map +1 -1
- package/dist/infrastructure/index.js +0 -5
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/runtime/engine/emitter.js +28 -0
- package/dist/runtime/engine/emitter.js.map +1 -0
- package/dist/runtime/engine/engine.js +128 -0
- package/dist/runtime/engine/engine.js.map +1 -0
- package/dist/runtime/engine/index.js +7 -0
- package/dist/runtime/engine/index.js.map +1 -0
- package/dist/runtime/engine/service.js +78 -0
- package/dist/runtime/engine/service.js.map +1 -0
- package/dist/runtime/engine/state-store.js +24 -0
- package/dist/runtime/engine/state-store.js.map +1 -0
- package/dist/runtime/{task-loader.js → engine/task-loader.js} +24 -5
- package/dist/runtime/engine/task-loader.js.map +1 -0
- package/dist/runtime/engine/workflow-loader.js +82 -0
- package/dist/runtime/engine/workflow-loader.js.map +1 -0
- package/dist/runtime/index.js +2 -4
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/mcp/index.js +2 -0
- package/dist/runtime/mcp/index.js.map +1 -0
- package/dist/runtime/mcp/server.js +249 -0
- package/dist/runtime/mcp/server.js.map +1 -0
- package/media/agent-chat.svg +20 -0
- package/media/codicons/codicon.css +698 -0
- package/media/codicons/codicon.ttf +0 -0
- package/media/providers/claude.png +0 -0
- package/media/providers/gemini.png +0 -0
- package/media/providers/openai.png +0 -0
- package/package.json +125 -57
- package/dist/agent/DIAGRAMS.md +0 -183
- package/dist/agent/PRESENTATION.html +0 -369
- package/dist/agent/agentic_domain_structure.png +0 -0
- package/dist/agent/agentic_structure_deep_dive.png +0 -0
- package/dist/agent/agentic_structure_rules.png +0 -0
- package/dist/agent/agentic_system_hq_diagram.png +0 -0
- package/dist/agent/agents_and_tools_structure.png +0 -0
- package/dist/agent/artifacts/candidate/index.md +0 -26
- package/dist/agent/artifacts/index.md +0 -25
- package/dist/agent/conceptual_architecture.png +0 -0
- package/dist/agent/rules/constitution/index.md +0 -26
- package/dist/agent/rules/constitution/runtime-integration.md +0 -102
- package/dist/agent/rules/index.md +0 -70
- package/dist/agent/rules/roles/index.md +0 -44
- package/dist/agent/skills/index.md +0 -23
- package/dist/agent/skills/runtime-governance/SKILL.md +0 -62
- package/dist/agent/templates/analisis.md +0 -86
- package/dist/agent/templates/index.md +0 -43
- package/dist/agent/templates/plan.md +0 -49
- package/dist/agent/templates/qa-results.md +0 -70
- package/dist/agent/workflows/index.md +0 -30
- package/dist/agent/workflows/tasklifecycle-long/index.md +0 -172
- package/dist/agent/workflows/tasklifecycle-short/index.md +0 -77
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-analisis.md +0 -116
- package/dist/agent/workflows/tasklifecycle-short/short-phase-2-plan.md +0 -81
- package/dist/agent/workflows/tasklifecycle-short/short-phase-3-implementation.md +0 -115
- package/dist/agent/workflows/tasklifecycle-short/short-phase-4-qa-results.md +0 -84
- package/dist/cli/commands/bootstrap.js +0 -111
- package/dist/cli/commands/bootstrap.js.map +0 -1
- package/dist/cli/commands/register-mcp.js +0 -135
- package/dist/cli/commands/register-mcp.js.map +0 -1
- package/dist/infrastructure/context/index.js +0 -2
- package/dist/infrastructure/context/index.js.map +0 -1
- package/dist/infrastructure/logger/index.js +0 -41
- package/dist/infrastructure/logger/index.js.map +0 -1
- package/dist/infrastructure/mapping/index.js +0 -2
- package/dist/infrastructure/mapping/index.js.map +0 -1
- package/dist/infrastructure/migration/index.js +0 -4
- package/dist/infrastructure/migration/index.js.map +0 -1
- package/dist/infrastructure/utils/index.js +0 -2
- package/dist/infrastructure/utils/index.js.map +0 -1
- package/dist/mcp/emitter.js +0 -24
- package/dist/mcp/emitter.js.map +0 -1
- package/dist/mcp/handlers.js +0 -74
- package/dist/mcp/handlers.js.map +0 -1
- package/dist/mcp/index.js +0 -3
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/resources.js +0 -69
- package/dist/mcp/resources.js.map +0 -1
- package/dist/mcp/server.js +0 -94
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/tools.js +0 -189
- package/dist/mcp/tools.js.map +0 -1
- package/dist/runtime/frontmatter-sync.js +0 -100
- package/dist/runtime/frontmatter-sync.js.map +0 -1
- package/dist/runtime/reconcile.js +0 -37
- package/dist/runtime/reconcile.js.map +0 -1
- package/dist/runtime/runtime.js +0 -427
- package/dist/runtime/runtime.js.map +0 -1
- package/dist/runtime/task-loader.js.map +0 -1
- package/dist/runtime/task-resolver.js +0 -401
- package/dist/runtime/task-resolver.js.map +0 -1
- package/dist/runtime/write-guard.js +0 -200
- package/dist/runtime/write-guard.js.map +0 -1
|
@@ -8,31 +8,31 @@ related_task: <taskId>-<taskTitle>
|
|
|
8
8
|
|
|
9
9
|
# Task Metrics — <taskId>-<taskTitle>
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
`<
|
|
11
|
+
## Agent Identification (MANDATORY)
|
|
12
|
+
First line of the document:
|
|
13
|
+
`<icon> **<agent-name>**: <message>`
|
|
14
14
|
|
|
15
|
-
## 1.
|
|
15
|
+
## 1. Evaluated Agents
|
|
16
16
|
- Agent A
|
|
17
17
|
- Agent B
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
## 2.
|
|
21
|
+
## 2. Score per Agent (0-10)
|
|
22
22
|
- **Agent A**: score
|
|
23
|
-
-
|
|
23
|
+
- Justification
|
|
24
24
|
- **Agent B**: score
|
|
25
|
-
-
|
|
25
|
+
- Justification
|
|
26
26
|
|
|
27
27
|
---
|
|
28
28
|
|
|
29
|
-
## 3.
|
|
30
|
-
-
|
|
31
|
-
-
|
|
29
|
+
## 3. Overall Task Score
|
|
30
|
+
- Weighted average: score
|
|
31
|
+
- Observations
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
## 4.
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
35
|
+
## 4. Developer Validation
|
|
36
|
+
- Approved: [SI/NO]
|
|
37
|
+
- Developer score (0-5):
|
|
38
|
+
- Comments:
|
|
@@ -7,27 +7,26 @@ strategy: {{task.strategy}}
|
|
|
7
7
|
|
|
8
8
|
# Task (Template)
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Identification
|
|
11
11
|
- id: {{task.id}}
|
|
12
12
|
- title: {{task.title}}
|
|
13
13
|
- scope: candidate | current
|
|
14
14
|
- owner: architect-agent
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Origin
|
|
17
17
|
- created_from:
|
|
18
18
|
- workflow: tasklifecycle
|
|
19
19
|
- source: init / tasklifecycle
|
|
20
20
|
- candidate_path: artifacts.candidate.task
|
|
21
21
|
|
|
22
|
-
##
|
|
22
|
+
## Task Description
|
|
23
23
|
{{task.description}}
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Objective
|
|
26
26
|
{{task.goal}}
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Lifecycle State (SINGLE SOURCE OF TRUTH)
|
|
29
29
|
|
|
30
|
-
<!-- RUNTIME:START task-state -->
|
|
31
30
|
```yaml
|
|
32
31
|
task:
|
|
33
32
|
id: "{{task.id}}"
|
|
@@ -39,9 +38,6 @@ task:
|
|
|
39
38
|
current: "phase-0-acceptance-criteria"
|
|
40
39
|
validated_by: "architect-agent"
|
|
41
40
|
updated_at: "{{timestamp}}"
|
|
42
|
-
delegation:
|
|
43
|
-
active_agent: "architect-agent"
|
|
44
|
-
history: []
|
|
45
41
|
lifecycle:
|
|
46
42
|
phases:
|
|
47
43
|
phase-0-acceptance-criteria:
|
|
@@ -97,45 +93,34 @@ task:
|
|
|
97
93
|
completed: false
|
|
98
94
|
validated_by: null
|
|
99
95
|
validated_at: null
|
|
100
|
-
short-phase-1-
|
|
96
|
+
short-phase-1-brief:
|
|
101
97
|
completed: false
|
|
102
98
|
validated_by: null
|
|
103
99
|
validated_at: null
|
|
104
|
-
short-phase-2-
|
|
100
|
+
short-phase-2-implementation:
|
|
105
101
|
completed: false
|
|
106
102
|
validated_by: null
|
|
107
103
|
validated_at: null
|
|
108
|
-
short-phase-3-
|
|
109
|
-
completed: false
|
|
110
|
-
validated_by: null
|
|
111
|
-
validated_at: null
|
|
112
|
-
short-phase-4-qa-results:
|
|
104
|
+
short-phase-3-closure:
|
|
113
105
|
completed: false
|
|
114
106
|
validated_by: null
|
|
115
107
|
validated_at: null
|
|
116
108
|
```
|
|
117
|
-
<!-- RUNTIME:END -->
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Registro de delegación
|
|
122
|
-
- Cualquier cambio de agente **DEBE** registrarse en `task.delegation.history`.
|
|
123
|
-
- La entrada mínima incluye: `from`, `to`, `approved_by`, `approved_at`, `reason`.
|
|
124
109
|
|
|
125
110
|
---
|
|
126
111
|
|
|
127
|
-
## 2.
|
|
112
|
+
## 2. Definition and Scope (Contract)
|
|
128
113
|
- **Acceptance Criteria**: [acceptance.md](file:///{{task.acceptance_path}})
|
|
129
114
|
- **Alias**: `task.acceptance`
|
|
130
115
|
|
|
131
116
|
---
|
|
132
117
|
|
|
133
|
-
##
|
|
134
|
-
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
1.
|
|
140
|
-
2.
|
|
141
|
-
3.
|
|
118
|
+
## Contractual Rules
|
|
119
|
+
- This file is the **single source of truth** of the task state.
|
|
120
|
+
- The `task.phase.current` field can **ONLY be modified by `architect-agent`**.
|
|
121
|
+
- The `task.lifecycle.phases.*` field can **ONLY be marked as completed by `architect-agent`**.
|
|
122
|
+
- A phase **CANNOT be marked as completed** if it is not the current phase.
|
|
123
|
+
- Phase advancement requires:
|
|
124
|
+
1. Marking the current phase as `completed: true`
|
|
125
|
+
2. Explicit architect validation
|
|
126
|
+
3. Updating `task.phase.current` to the next phase
|
|
@@ -2,44 +2,44 @@
|
|
|
2
2
|
artifact: todo_item
|
|
3
3
|
owner: architect-agent
|
|
4
4
|
status: open | in-progress | done | cancelled
|
|
5
|
-
priority:
|
|
5
|
+
priority: high | medium | low
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# TODO: <
|
|
8
|
+
# TODO: <short title>
|
|
9
9
|
|
|
10
|
-
##
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
10
|
+
## Origin
|
|
11
|
+
- **Detected in task**: <taskId>-<taskTitle>
|
|
12
|
+
- **Phase**: <phase where detected>
|
|
13
|
+
- **Date**: <ISO-8601>
|
|
14
|
+
- **Agent**: <agent that detected it>
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
<
|
|
16
|
+
## Description
|
|
17
|
+
<Clear description of the proposed improvement>
|
|
18
18
|
|
|
19
|
-
##
|
|
20
|
-
<
|
|
19
|
+
## Justification
|
|
20
|
+
<Why it is important to make this change>
|
|
21
21
|
|
|
22
|
-
##
|
|
23
|
-
- **
|
|
24
|
-
-
|
|
22
|
+
## Estimated Impact
|
|
23
|
+
- **Complexity**: low | medium | high
|
|
24
|
+
- **Affected areas**: <components/workflows/templates>
|
|
25
25
|
|
|
26
|
-
##
|
|
27
|
-
- [ ] <
|
|
28
|
-
- [ ] <
|
|
26
|
+
## Acceptance Criterion
|
|
27
|
+
- [ ] <Verifiable condition 1>
|
|
28
|
+
- [ ] <Verifiable condition 2>
|
|
29
29
|
|
|
30
|
-
##
|
|
31
|
-
<
|
|
30
|
+
## Notes
|
|
31
|
+
<Additional relevant information>
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## History
|
|
36
36
|
```yaml
|
|
37
37
|
history:
|
|
38
38
|
- action: created
|
|
39
39
|
date: <ISO-8601>
|
|
40
|
-
by: <
|
|
40
|
+
by: <agent>
|
|
41
41
|
# - action: started | completed | cancelled
|
|
42
42
|
# date: <ISO-8601>
|
|
43
|
-
# by: <
|
|
44
|
-
# task: <taskId
|
|
43
|
+
# by: <agent>
|
|
44
|
+
# task: <taskId where implemented>
|
|
45
45
|
```
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: workflow.coding.backend
|
|
3
|
+
description: On-demand coding workflow for the Backend layer. Invoked by architect-agent during Phase 4 implementation.
|
|
4
|
+
owner: backend
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
severity: PERMANENT
|
|
7
|
+
trigger:
|
|
8
|
+
commands: ["coding-backend"]
|
|
9
|
+
blocking: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# WORKFLOW: coding.backend
|
|
13
|
+
|
|
14
|
+
## Input (REQUIRED)
|
|
15
|
+
- Agent task file assigned by architect:
|
|
16
|
+
- `.agent/artifacts/<taskId>-<taskTitle>/agent-tasks/<N>-backend-<taskName>.md`
|
|
17
|
+
- Constitution loaded:
|
|
18
|
+
- `constitution.backend` (MANDATORY)
|
|
19
|
+
- `constitution.clean_code` (MANDATORY)
|
|
20
|
+
- Role activated:
|
|
21
|
+
- `roles.backend`
|
|
22
|
+
|
|
23
|
+
> [!IMPORTANT]
|
|
24
|
+
> **This is an on-demand workflow.** It is invoked by `architect-agent` during Phase 4 as part of the implementation plan. The architect defines the execution order of coding workflows.
|
|
25
|
+
|
|
26
|
+
## Output (REQUIRED)
|
|
27
|
+
- Implementation report using `templates.coding.layer_report`:
|
|
28
|
+
- Embedded in the agent task file under "Implementation Report"
|
|
29
|
+
- All code changes passing compilation
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Objective (ONLY)
|
|
34
|
+
- Implement the **backend layer** of the assigned task following `constitution.backend`.
|
|
35
|
+
- Generate a detailed implementation report.
|
|
36
|
+
- Present to developer for Gate approval.
|
|
37
|
+
|
|
38
|
+
> This workflow **ONLY** implements backend logic.
|
|
39
|
+
> This workflow **NEVER** imports `vscode` or DOM APIs.
|
|
40
|
+
> This workflow **NEVER** communicates directly with View.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Mandatory Steps
|
|
45
|
+
|
|
46
|
+
### 0. Activate role
|
|
47
|
+
- Activate `roles.backend` and use mandatory agent prefix in all messages.
|
|
48
|
+
|
|
49
|
+
### 1. Verify inputs
|
|
50
|
+
- Agent task file exists and has Input section completed by architect.
|
|
51
|
+
- Constitution `constitution.backend` loaded.
|
|
52
|
+
- Constitution `constitution.clean_code` loaded.
|
|
53
|
+
- If missing → **FAIL**.
|
|
54
|
+
|
|
55
|
+
### 2. Analyze the task
|
|
56
|
+
- Read the agent task Input (objective, scope, dependencies).
|
|
57
|
+
- Complete the "Reasoning" section of the agent task:
|
|
58
|
+
- Analyze objective
|
|
59
|
+
- Consider options
|
|
60
|
+
- Document decision and justification
|
|
61
|
+
|
|
62
|
+
### 3. Implement
|
|
63
|
+
- Write code following `constitution.backend`:
|
|
64
|
+
- **Extend AbstractServer** from `core/backend`.
|
|
65
|
+
- **No vscode imports** — logic must be IDE-decoupled.
|
|
66
|
+
- **Transport agnostic** — use abstract adapters.
|
|
67
|
+
- **Error handling** — return `{ error, code }`, no raw exceptions.
|
|
68
|
+
- **Response format** — strictly typed JSON.
|
|
69
|
+
- Write code following `constitution.clean_code`.
|
|
70
|
+
|
|
71
|
+
### 4. Self-validate
|
|
72
|
+
- Verify all constitution rules are satisfied:
|
|
73
|
+
- [ ] Extends `AbstractServer` (if applicable)
|
|
74
|
+
- [ ] No `vscode` or `dom` imports
|
|
75
|
+
- [ ] Error handling via structured responses
|
|
76
|
+
- [ ] No direct View communication
|
|
77
|
+
- [ ] Clean code principles applied
|
|
78
|
+
- Run compilation: `npm run compile`
|
|
79
|
+
- If compilation fails → fix before proceeding.
|
|
80
|
+
|
|
81
|
+
### 5. Generate implementation report
|
|
82
|
+
- Complete the "Implementation Report" section using `templates.coding.layer_report`:
|
|
83
|
+
- **Who**: Agent identity and role
|
|
84
|
+
- **How**: Technical details, specifications, diagrams if needed
|
|
85
|
+
- **Why**: Justification and reasoning
|
|
86
|
+
- **Results**: What was achieved, compilation status
|
|
87
|
+
- **E2E Test Indications**: Scenarios for e2e testing
|
|
88
|
+
|
|
89
|
+
### 6. Present to developer (Gate)
|
|
90
|
+
- Present completed task with report to developer.
|
|
91
|
+
- Request approval: **SI / NO**
|
|
92
|
+
|
|
93
|
+
### 7. Register Gate
|
|
94
|
+
```yaml
|
|
95
|
+
approval:
|
|
96
|
+
developer:
|
|
97
|
+
decision: SI | NO
|
|
98
|
+
date: <ISO-8601>
|
|
99
|
+
comments: <optional>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 8. Evaluate Gate
|
|
103
|
+
- If `decision == SI` → go to **Step 9 (PASS)**.
|
|
104
|
+
- If `decision == NO`:
|
|
105
|
+
- Mark task as `failed`.
|
|
106
|
+
- Define corrective actions.
|
|
107
|
+
- **Do NOT advance** until resolved.
|
|
108
|
+
- Go to **Step 10 (FAIL)**.
|
|
109
|
+
|
|
110
|
+
### 9. PASS (only if Gate approved)
|
|
111
|
+
- Mark agent task as `completed`.
|
|
112
|
+
- Update agent task file:
|
|
113
|
+
```yaml
|
|
114
|
+
execution:
|
|
115
|
+
status: completed
|
|
116
|
+
completed_at: <ISO-8601>
|
|
117
|
+
```
|
|
118
|
+
- Update the coding layer report with final status.
|
|
119
|
+
- Return control to `architect-agent` for next workflow in the sequence.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## FAIL (MANDATORY)
|
|
124
|
+
|
|
125
|
+
### 10. Declare workflow as NOT completed
|
|
126
|
+
Cases:
|
|
127
|
+
- Missing inputs or constitution.
|
|
128
|
+
- Compilation failure not resolved.
|
|
129
|
+
- Constitution violation detected.
|
|
130
|
+
- Gate = NO without resolution.
|
|
131
|
+
|
|
132
|
+
Actions:
|
|
133
|
+
- Identify the failure point.
|
|
134
|
+
- Define corrective actions.
|
|
135
|
+
- Iterate until Gate PASS.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Gate (REQUIRED)
|
|
140
|
+
|
|
141
|
+
Requirements (all mandatory):
|
|
142
|
+
1. Code compiles without errors.
|
|
143
|
+
2. All `constitution.backend` rules are satisfied.
|
|
144
|
+
3. All `constitution.clean_code` rules are satisfied.
|
|
145
|
+
4. Implementation report is complete (all 5 sections).
|
|
146
|
+
5. Developer Gate PASS (`decision == SI`).
|
|
147
|
+
6. Agent task file starts with backend agent prefix.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: workflow.coding.background
|
|
3
|
+
description: On-demand coding workflow for the Background/Orchestration layer. Invoked by architect-agent during Phase 4 implementation.
|
|
4
|
+
owner: background
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
severity: PERMANENT
|
|
7
|
+
trigger:
|
|
8
|
+
commands: ["coding-background"]
|
|
9
|
+
blocking: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# WORKFLOW: coding.background
|
|
13
|
+
|
|
14
|
+
## Input (REQUIRED)
|
|
15
|
+
- Agent task file assigned by architect:
|
|
16
|
+
- `.agent/artifacts/<taskId>-<taskTitle>/agent-tasks/<N>-background-<taskName>.md`
|
|
17
|
+
- Constitution loaded:
|
|
18
|
+
- `constitution.background` (MANDATORY)
|
|
19
|
+
- `constitution.clean_code` (MANDATORY)
|
|
20
|
+
- Role activated:
|
|
21
|
+
- `roles.background`
|
|
22
|
+
|
|
23
|
+
> [!IMPORTANT]
|
|
24
|
+
> **This is an on-demand workflow.** It is invoked by `architect-agent` during Phase 4 as part of the implementation plan. The architect defines the execution order of coding workflows.
|
|
25
|
+
|
|
26
|
+
## Output (REQUIRED)
|
|
27
|
+
- Implementation report using `templates.coding.layer_report`:
|
|
28
|
+
- Embedded in the agent task file under "Implementation Report"
|
|
29
|
+
- All code changes passing compilation
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Objective (ONLY)
|
|
34
|
+
- Implement the **background/orchestration layer** of the assigned task following `constitution.background`.
|
|
35
|
+
- Generate a detailed implementation report.
|
|
36
|
+
- Present to developer for Gate approval.
|
|
37
|
+
|
|
38
|
+
> This workflow **ONLY** implements orchestration logic.
|
|
39
|
+
> This workflow is the **ONLY** layer authorized to import `vscode`.
|
|
40
|
+
> This workflow manages the **Backend ↔ View bridge** via Messaging.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Mandatory Steps
|
|
45
|
+
|
|
46
|
+
### 0. Activate role
|
|
47
|
+
- Activate `roles.background` and use mandatory agent prefix in all messages.
|
|
48
|
+
|
|
49
|
+
### 1. Verify inputs
|
|
50
|
+
- Agent task file exists and has Input section completed by architect.
|
|
51
|
+
- Constitution `constitution.background` loaded.
|
|
52
|
+
- Constitution `constitution.clean_code` loaded.
|
|
53
|
+
- If missing → **FAIL**.
|
|
54
|
+
|
|
55
|
+
### 2. Analyze the task
|
|
56
|
+
- Read the agent task Input (objective, scope, dependencies).
|
|
57
|
+
- Complete the "Reasoning" section of the agent task:
|
|
58
|
+
- Analyze objective
|
|
59
|
+
- Consider options
|
|
60
|
+
- Document decision and justification
|
|
61
|
+
|
|
62
|
+
### 3. Implement
|
|
63
|
+
- Write code following `constitution.background`:
|
|
64
|
+
- **Orchestration**: Manage flow between VS Code, Backend, and View.
|
|
65
|
+
- **Registration**: All modules register via `App.register(id, provider)`.
|
|
66
|
+
- **Messaging**: Use `core/messaging` for View communication (MANDATORY).
|
|
67
|
+
- **Type safety**: Use shared `Message` interface from `core/types`.
|
|
68
|
+
- **Lifecycle**: Respect VS Code activation/deactivation.
|
|
69
|
+
- **Dependency injection**: Inject services into providers.
|
|
70
|
+
- Write code following `constitution.clean_code`.
|
|
71
|
+
|
|
72
|
+
### 4. Self-validate
|
|
73
|
+
- Verify all constitution rules are satisfied:
|
|
74
|
+
- [ ] Modules registered via `App.register()`
|
|
75
|
+
- [ ] View communication via `core/messaging` only
|
|
76
|
+
- [ ] Typed `Message` payloads
|
|
77
|
+
- [ ] VS Code lifecycle respected
|
|
78
|
+
- [ ] Gateway role: only layer with `vscode` side-effects
|
|
79
|
+
- [ ] Clean code principles applied
|
|
80
|
+
- Run compilation: `npm run compile`
|
|
81
|
+
- If compilation fails → fix before proceeding.
|
|
82
|
+
|
|
83
|
+
### 5. Generate implementation report
|
|
84
|
+
- Complete the "Implementation Report" section using `templates.coding.layer_report`:
|
|
85
|
+
- **Who**: Agent identity and role
|
|
86
|
+
- **How**: Technical details, specifications, diagrams if needed
|
|
87
|
+
- **Why**: Justification and reasoning
|
|
88
|
+
- **Results**: What was achieved, compilation status
|
|
89
|
+
- **E2E Test Indications**: Scenarios for e2e testing
|
|
90
|
+
|
|
91
|
+
### 6. Present to developer (Gate)
|
|
92
|
+
- Present completed task with report to developer.
|
|
93
|
+
- Request approval: **SI / NO**
|
|
94
|
+
|
|
95
|
+
### 7. Register Gate
|
|
96
|
+
```yaml
|
|
97
|
+
approval:
|
|
98
|
+
developer:
|
|
99
|
+
decision: SI | NO
|
|
100
|
+
date: <ISO-8601>
|
|
101
|
+
comments: <optional>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 8. Evaluate Gate
|
|
105
|
+
- If `decision == SI` → go to **Step 9 (PASS)**.
|
|
106
|
+
- If `decision == NO`:
|
|
107
|
+
- Mark task as `failed`.
|
|
108
|
+
- Define corrective actions.
|
|
109
|
+
- **Do NOT advance** until resolved.
|
|
110
|
+
- Go to **Step 10 (FAIL)**.
|
|
111
|
+
|
|
112
|
+
### 9. PASS (only if Gate approved)
|
|
113
|
+
- Mark agent task as `completed`.
|
|
114
|
+
- Update agent task file:
|
|
115
|
+
```yaml
|
|
116
|
+
execution:
|
|
117
|
+
status: completed
|
|
118
|
+
completed_at: <ISO-8601>
|
|
119
|
+
```
|
|
120
|
+
- Update the coding layer report with final status.
|
|
121
|
+
- Return control to `architect-agent` for next workflow in the sequence.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## FAIL (MANDATORY)
|
|
126
|
+
|
|
127
|
+
### 10. Declare workflow as NOT completed
|
|
128
|
+
Cases:
|
|
129
|
+
- Missing inputs or constitution.
|
|
130
|
+
- Compilation failure not resolved.
|
|
131
|
+
- Constitution violation detected.
|
|
132
|
+
- Gate = NO without resolution.
|
|
133
|
+
|
|
134
|
+
Actions:
|
|
135
|
+
- Identify the failure point.
|
|
136
|
+
- Define corrective actions.
|
|
137
|
+
- Iterate until Gate PASS.
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Gate (REQUIRED)
|
|
142
|
+
|
|
143
|
+
Requirements (all mandatory):
|
|
144
|
+
1. Code compiles without errors.
|
|
145
|
+
2. All `constitution.background` rules are satisfied.
|
|
146
|
+
3. All `constitution.clean_code` rules are satisfied.
|
|
147
|
+
4. Implementation report is complete (all 5 sections).
|
|
148
|
+
5. Developer Gate PASS (`decision == SI`).
|
|
149
|
+
6. Agent task file starts with background agent prefix.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: workflow.coding.integration
|
|
3
|
+
description: On-demand coding workflow for integrating the 3 layers of a module (Backend, Background, View). Invoked by architect-agent during Phase 4 after layer-specific workflows.
|
|
4
|
+
owner: architect-agent
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
severity: PERMANENT
|
|
7
|
+
trigger:
|
|
8
|
+
commands: ["coding-integration"]
|
|
9
|
+
blocking: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# WORKFLOW: coding.integration
|
|
13
|
+
|
|
14
|
+
## Input (REQUIRED)
|
|
15
|
+
- Agent task file assigned by architect:
|
|
16
|
+
- `.agent/artifacts/<taskId>-<taskTitle>/agent-tasks/<N>-architect-integration-<taskName>.md`
|
|
17
|
+
- All applicable layer coding workflows completed and approved:
|
|
18
|
+
- `coding-backend` report (if applicable)
|
|
19
|
+
- `coding-background` report (if applicable)
|
|
20
|
+
- `coding-view` report (if applicable)
|
|
21
|
+
- Constitutions loaded (ALL):
|
|
22
|
+
- `constitution.backend` (MANDATORY)
|
|
23
|
+
- `constitution.background` (MANDATORY)
|
|
24
|
+
- `constitution.view` (MANDATORY)
|
|
25
|
+
- `constitution.clean_code` (MANDATORY)
|
|
26
|
+
|
|
27
|
+
> [!IMPORTANT]
|
|
28
|
+
> **This workflow runs AFTER all layer-specific coding workflows.** It validates that the 3 layers communicate correctly and comply with all constitutions. The architect is the owner.
|
|
29
|
+
|
|
30
|
+
## Output (REQUIRED)
|
|
31
|
+
- Integration report using `templates.coding.integration_report`:
|
|
32
|
+
- Embedded in the agent task file under "Implementation Report"
|
|
33
|
+
- All layers passing compilation and integration validation
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Objective (ONLY)
|
|
38
|
+
- Validate and ensure **optimal communication** between the 3 layers of the module.
|
|
39
|
+
- Verify **constitution compliance** across all layers.
|
|
40
|
+
- Generate a detailed **integration report**.
|
|
41
|
+
- Present to developer for Gate approval.
|
|
42
|
+
|
|
43
|
+
> This workflow validates **inter-layer contracts**.
|
|
44
|
+
> This workflow ensures **no constitution violations** exist across boundaries.
|
|
45
|
+
> This workflow is the **final validation** before Phase 4 closure.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Mandatory Steps
|
|
50
|
+
|
|
51
|
+
### 0. Activate role
|
|
52
|
+
- Activate `architect-agent` and use mandatory prefix in all messages.
|
|
53
|
+
|
|
54
|
+
### 1. Verify inputs
|
|
55
|
+
- All applicable layer coding workflows have Gate PASS.
|
|
56
|
+
- All layer reports exist and are complete.
|
|
57
|
+
- All 4 constitutions loaded.
|
|
58
|
+
- If missing → **FAIL**.
|
|
59
|
+
|
|
60
|
+
### 2. Review layer reports
|
|
61
|
+
- Read each layer's implementation report.
|
|
62
|
+
- Identify:
|
|
63
|
+
- Communication touchpoints between layers.
|
|
64
|
+
- Shared contracts (Message types, API interfaces).
|
|
65
|
+
- Potential constitution violations at boundaries.
|
|
66
|
+
|
|
67
|
+
### 3. Validate communication paths
|
|
68
|
+
- **View → Background**: Via `core/messaging` Event Bus only.
|
|
69
|
+
- [ ] No direct `vscode.postMessage` from View.
|
|
70
|
+
- [ ] Typed `Message` payloads.
|
|
71
|
+
- **Background → Backend**: Via abstract transport or direct invocation.
|
|
72
|
+
- [ ] No `vscode` leaking into Backend.
|
|
73
|
+
- [ ] Structured error responses from Backend.
|
|
74
|
+
- **Background → View**: Via `core/messaging` response path.
|
|
75
|
+
- [ ] Reactive UI updates on state change.
|
|
76
|
+
- **View → Backend**: FORBIDDEN.
|
|
77
|
+
- [ ] No direct imports or calls between View and Backend.
|
|
78
|
+
|
|
79
|
+
### 4. Validate constitution compliance
|
|
80
|
+
For each constitution, verify cross-layer boundaries:
|
|
81
|
+
|
|
82
|
+
#### Backend (`constitution.backend`)
|
|
83
|
+
- [ ] Extends `AbstractServer` (if applicable)
|
|
84
|
+
- [ ] No `vscode` or `dom` imports
|
|
85
|
+
- [ ] Transport agnostic
|
|
86
|
+
- [ ] No direct View communication
|
|
87
|
+
|
|
88
|
+
#### Background (`constitution.background`)
|
|
89
|
+
- [ ] Modules registered via `App.register()`
|
|
90
|
+
- [ ] Uses `core/messaging` for View communication
|
|
91
|
+
- [ ] Manages lifecycle correctly
|
|
92
|
+
- [ ] Gateway role maintained (only layer with `vscode` side-effects)
|
|
93
|
+
|
|
94
|
+
#### View (`constitution.view`)
|
|
95
|
+
- [ ] Lit components with `@customElement`
|
|
96
|
+
- [ ] Triad structure (index/html/styles)
|
|
97
|
+
- [ ] No business logic
|
|
98
|
+
- [ ] Communication via Messaging wrapper only
|
|
99
|
+
|
|
100
|
+
### 5. Integration validation
|
|
101
|
+
- Run full compilation: `npm run compile`
|
|
102
|
+
- Verify no type errors at layer boundaries.
|
|
103
|
+
- If issues found → create corrective sub-task.
|
|
104
|
+
|
|
105
|
+
### 6. Generate integration report
|
|
106
|
+
- Complete the "Implementation Report" section using `templates.coding.integration_report`:
|
|
107
|
+
- **Communication validation matrix**: Results of Step 3
|
|
108
|
+
- **Constitution compliance**: Results of Step 4
|
|
109
|
+
- **Cross-layer sequence diagrams**: Key interaction flows (mermaid)
|
|
110
|
+
- **E2E Test Indications**: Integration test scenarios
|
|
111
|
+
- **Issues found and resolutions**: If any
|
|
112
|
+
|
|
113
|
+
### 7. Present to developer (Gate)
|
|
114
|
+
- Present integration report with all evidence to developer.
|
|
115
|
+
- Request approval: **SI / NO**
|
|
116
|
+
|
|
117
|
+
### 8. Register Gate
|
|
118
|
+
```yaml
|
|
119
|
+
approval:
|
|
120
|
+
developer:
|
|
121
|
+
decision: SI | NO
|
|
122
|
+
date: <ISO-8601>
|
|
123
|
+
comments: <optional>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### 9. Evaluate Gate
|
|
127
|
+
- If `decision == SI` → go to **Step 10 (PASS)**.
|
|
128
|
+
- If `decision == NO`:
|
|
129
|
+
- Identify failing layer(s).
|
|
130
|
+
- Create corrective sub-task for specific layer workflow.
|
|
131
|
+
- Re-run integration after correction.
|
|
132
|
+
- Go to **Step 11 (FAIL)**.
|
|
133
|
+
|
|
134
|
+
### 10. PASS (only if Gate approved)
|
|
135
|
+
- Mark integration task as `completed`.
|
|
136
|
+
- Update agent task file:
|
|
137
|
+
```yaml
|
|
138
|
+
execution:
|
|
139
|
+
status: completed
|
|
140
|
+
completed_at: <ISO-8601>
|
|
141
|
+
```
|
|
142
|
+
- Update the integration report with final assessment: `PASS`.
|
|
143
|
+
- Return control to `architect-agent` for **Phase 4 closure** (Gate final de Phase 4).
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## FAIL (MANDATORY)
|
|
148
|
+
|
|
149
|
+
### 10. Declare workflow as NOT completed
|
|
150
|
+
Cases:
|
|
151
|
+
- Layer workflows not completed or not approved.
|
|
152
|
+
- Constitution violation at layer boundaries.
|
|
153
|
+
- Compilation failure.
|
|
154
|
+
- Direct View→Backend communication detected.
|
|
155
|
+
- Gate = NO without resolution.
|
|
156
|
+
|
|
157
|
+
Actions:
|
|
158
|
+
- Identify the exact layer and violation.
|
|
159
|
+
- Delegate corrective action to the appropriate layer workflow.
|
|
160
|
+
- Re-run integration validation after fix.
|
|
161
|
+
- Iterate until Gate PASS.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Gate (REQUIRED)
|
|
166
|
+
|
|
167
|
+
Requirements (all mandatory):
|
|
168
|
+
1. All layer coding workflows have Gate PASS.
|
|
169
|
+
2. All communication paths validated (Step 3 checklist).
|
|
170
|
+
3. All constitutions satisfied at cross-layer boundaries (Step 4 checklist).
|
|
171
|
+
4. Full compilation passes without errors.
|
|
172
|
+
5. Integration report is complete (all sections).
|
|
173
|
+
6. Developer Gate PASS (`decision == SI`).
|
|
174
|
+
7. No direct View→Backend communication exists.
|