sinapse-ai 5.0.8 → 6.0.1
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/.claude/CLAUDE.md +1 -1
- package/.claude/rules/agent-authority.md +10 -10
- package/.claude/rules/agent-memory-imports.md +4 -4
- package/.claude/rules/coderabbit-integration.md +4 -4
- package/.claude/rules/ids-principles.md +5 -5
- package/.claude/rules/story-lifecycle.md +15 -15
- package/.claude/rules/workflow-execution.md +11 -11
- package/.sinapse-ai/constitution.md +3 -3
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +7 -7
- package/.sinapse-ai/core/config/config-loader.js +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -1
- package/.sinapse-ai/core/ids/framework-governor.js +4 -4
- package/.sinapse-ai/core/ids/index.js +1 -1
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -1
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -1
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +2 -2
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +4 -4
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -1
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +3 -3
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -1
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +3 -3
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -1
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +1 -1
- package/.sinapse-ai/core/session/context-loader.js +1 -1
- package/.sinapse-ai/data/agent-config-requirements.yaml +3 -3
- package/.sinapse-ai/data/entity-registry.yaml +2154 -2337
- package/.sinapse-ai/data/registry-update-log.jsonl +316 -0
- package/.sinapse-ai/data/sinapse-kb.md +13 -13
- package/.sinapse-ai/data/tech-presets/csharp.md +2 -2
- package/.sinapse-ai/data/tech-presets/go.md +2 -2
- package/.sinapse-ai/data/tech-presets/java.md +2 -2
- package/.sinapse-ai/data/tech-presets/nextjs-react.md +1 -1
- package/.sinapse-ai/data/tech-presets/php.md +2 -2
- package/.sinapse-ai/data/tech-presets/rust.md +2 -2
- package/.sinapse-ai/data/technical-preferences.md +1 -1
- package/.sinapse-ai/data/workflow-chains.yaml +15 -15
- package/.sinapse-ai/development/README.md +1 -1
- package/.sinapse-ai/development/agent-teams/team-qa-focused.yaml +7 -7
- package/.sinapse-ai/development/agents/analyst.md +6 -6
- package/.sinapse-ai/development/agents/architect.md +4 -4
- package/.sinapse-ai/development/agents/data-engineer.md +2 -2
- package/.sinapse-ai/development/agents/{dev.md → developer.md} +7 -7
- package/.sinapse-ai/development/agents/devops.md +4 -4
- package/.sinapse-ai/development/agents/{po → product-lead}/MEMORY.md +3 -3
- package/.sinapse-ai/development/agents/{po.md → product-lead.md} +25 -25
- package/.sinapse-ai/development/agents/{pm → project-lead}/MEMORY.md +2 -2
- package/.sinapse-ai/development/agents/{pm.md → project-lead.md} +15 -15
- package/.sinapse-ai/development/agents/{qa.md → quality-gate.md} +8 -8
- package/.sinapse-ai/development/agents/{sinapse-master.md → sinapse-orqx.md} +12 -12
- package/.sinapse-ai/development/agents/{sm.md → sprint-lead.md} +18 -18
- package/.sinapse-ai/development/agents/squad-creator.md +4 -4
- package/.sinapse-ai/development/agents/ux-design-expert.md +2 -2
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +1 -1
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +1 -1
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -1
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -1
- package/.sinapse-ai/development/scripts/audit-agent-config.js +2 -2
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +2 -2
- package/.sinapse-ai/development/scripts/test-greeting-system.js +4 -4
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +2 -2
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +9 -9
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-project-structure.md +4 -4
- package/.sinapse-ai/development/tasks/apply-qa-fixes.md +1 -1
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/brownfield-create-epic.md +10 -10
- package/.sinapse-ai/development/tasks/brownfield-create-story.md +1 -1
- package/.sinapse-ai/development/tasks/build-autonomous.md +1 -1
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +6 -6
- package/.sinapse-ai/development/tasks/create-agent.md +1 -1
- package/.sinapse-ai/development/tasks/create-brownfield-story.md +4 -4
- package/.sinapse-ai/development/tasks/create-next-story.md +12 -12
- package/.sinapse-ai/development/tasks/create-service.md +2 -2
- package/.sinapse-ai/development/tasks/create-suite.md +1 -1
- package/.sinapse-ai/development/tasks/dev-backlog-debt.md +3 -3
- package/.sinapse-ai/development/tasks/dev-develop-story.md +5 -5
- package/.sinapse-ai/development/tasks/environment-bootstrap.md +2 -2
- package/.sinapse-ai/development/tasks/execute-checklist.md +1 -1
- package/.sinapse-ai/development/tasks/execute-epic-plan.md +11 -11
- package/.sinapse-ai/development/tasks/extract-patterns.md +2 -2
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +2 -2
- package/.sinapse-ai/development/tasks/github-devops-github-pr-automation.md +1 -1
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -1
- package/.sinapse-ai/development/tasks/ids-governor.md +3 -3
- package/.sinapse-ai/development/tasks/next.md +2 -2
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -1
- package/.sinapse-ai/development/tasks/patterns.md +2 -2
- package/.sinapse-ai/development/tasks/plan-create-context.md +2 -2
- package/.sinapse-ai/development/tasks/plan-execute-subtask.md +3 -3
- package/.sinapse-ai/development/tasks/po-close-story.md +3 -3
- package/.sinapse-ai/development/tasks/project-status.md +2 -2
- package/.sinapse-ai/development/tasks/qa-after-creation.md +2 -2
- package/.sinapse-ai/development/tasks/qa-backlog-add-followup.md +3 -3
- package/.sinapse-ai/development/tasks/qa-create-fix-request.md +8 -8
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -1
- package/.sinapse-ai/development/tasks/qa-fix-issues.md +10 -10
- package/.sinapse-ai/development/tasks/qa-gate.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-build.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-story.md +2 -2
- package/.sinapse-ai/development/tasks/qa-run-tests.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow-engine.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/security-scan.md +2 -2
- package/.sinapse-ai/development/tasks/setup-llm-routing.md +1 -1
- package/.sinapse-ai/development/tasks/spec-critique.md +4 -4
- package/.sinapse-ai/development/tasks/spec-gather-requirements.md +4 -4
- package/.sinapse-ai/development/tasks/spec-write-spec.md +2 -2
- package/.sinapse-ai/development/tasks/story-checkpoint.md +3 -3
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -1
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -1
- package/.sinapse-ai/development/tasks/validate-next-story.md +10 -10
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/verify-subtask.md +2 -2
- package/.sinapse-ai/development/templates/code-intel-integration-pattern.md +3 -3
- package/.sinapse-ai/development/templates/subagent-step-prompt.md +2 -2
- package/.sinapse-ai/development/workflows/README.md +2 -2
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +11 -11
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +6 -6
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/development-cycle.yaml +10 -10
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +6 -6
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +7 -7
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -1
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +2 -2
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -1
- package/.sinapse-ai/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +2 -2
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -1
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -1
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -6
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +2 -2
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +6 -6
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +3 -3
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +1 -1
- package/.sinapse-ai/install-manifest.yaml +344 -344
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +1 -1
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/story-draft-checklist.md +3 -3
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +3 -3
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +4 -4
- package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +1 -1
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +2 -2
- package/.sinapse-ai/product/templates/ide-rules/codex-rules.md +6 -6
- package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +1 -1
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -1
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +3 -3
- package/.sinapse-ai/product/templates/story-tmpl.yaml +8 -8
- package/.sinapse-ai/schemas/README.md +15 -15
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +2 -2
- package/.sinapse-ai/user-guide.md +4 -4
- package/.sinapse-ai/working-in-the-brownfield.md +3 -3
- package/LICENSE +4 -4
- package/README.en.md +6 -6
- package/README.md +8 -8
- package/bin/cli.js +13 -11
- package/bin/sinapse.js +17 -0
- package/docs/00-shared-activation-pipeline.md +16 -16
- package/docs/FEATURE_PROCESS.md +1 -1
- package/docs/ORQX-PLAN.md +264 -0
- package/docs/core-architecture.md +2 -2
- package/docs/en/sinapse-agent-flows/README.md +2 -2
- package/docs/en/sinapse-agent-flows/dev-system.md +2 -2
- package/docs/en/sinapse-agent-flows/pm-system.md +2 -2
- package/docs/en/sinapse-agent-flows/qa-system.md +2 -2
- package/docs/en/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +5 -5
- package/docs/en/sinapse-agent-flows/sm-system.md +2 -2
- package/docs/framework/entity-layer-classification.md +2 -2
- package/docs/framework/source-tree.md +17 -17
- package/docs/getting-started.md +13 -13
- package/docs/guides/IDS-CONCEITOS-EXPLICADOS.md +17 -17
- package/docs/guides/MEMORY-INTEGRATION.md +3 -3
- package/docs/guides/MEMORY-INTELLIGENCE-SYSTEM.md +4 -4
- package/docs/guides/ade-guide.md +25 -25
- package/docs/guides/agent-selection-guide.md +36 -36
- package/docs/guides/agents/ANALYST-SYSTEM.md +5 -5
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +9 -9
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +8 -8
- package/docs/guides/agents/DEV-SYSTEM.md +27 -27
- package/docs/guides/agents/DEVOPS-SYSTEM.md +5 -5
- package/docs/guides/agents/PM-SYSTEM.md +24 -24
- package/docs/guides/agents/QA-SYSTEM.md +24 -24
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +26 -26
- package/docs/guides/agents/SM-SYSTEM.md +31 -31
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +2 -2
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +10 -10
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +16 -16
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +16 -16
- package/docs/guides/agents/traces/README.md +20 -20
- package/docs/guides/agents/traces/analyst-execution-trace.md +6 -6
- package/docs/guides/agents/traces/architect-execution-trace.md +3 -3
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +4 -4
- package/docs/guides/agents/traces/dev-execution-trace.md +12 -12
- package/docs/guides/agents/traces/devops-execution-trace.md +6 -6
- package/docs/guides/agents/traces/pm-execution-trace.md +14 -14
- package/docs/guides/agents/traces/po-execution-trace.md +17 -17
- package/docs/guides/agents/traces/qa-execution-trace.md +15 -15
- package/docs/guides/agents/traces/{sinapse-master-execution-trace.md → sinapse-orqx-execution-trace.md} +22 -22
- package/docs/guides/agents/traces/sm-execution-trace.md +15 -15
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +9 -9
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +4 -4
- package/docs/guides/api-reference.md +27 -27
- package/docs/guides/coderabbit/README.md +9 -9
- package/docs/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/project-status-feature.md +2 -2
- package/docs/guides/quality-dashboard.md +2 -2
- package/docs/guides/quality-gates.md +6 -6
- package/docs/guides/template-engine-v2.md +2 -2
- package/docs/guides/user-guide.md +13 -13
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +6 -6
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +30 -30
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +38 -38
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +25 -25
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +37 -37
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +5 -5
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +19 -19
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +13 -13
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +19 -19
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +25 -25
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +28 -28
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +94 -94
- package/docs/guides/workflows/xref-phase2-templates.md +29 -29
- package/docs/guides/workflows/xref-phase3-scripts.md +33 -33
- package/docs/guides/workflows/xref-phase4-infra.md +2 -2
- package/docs/guides/workflows/xref-phase6-supporting.md +1 -1
- package/docs/guides/workflows-guide.md +2 -2
- package/docs/installation/faq.md +1 -1
- package/docs/installation/troubleshooting.md +2 -2
- package/docs/installation/v4-quick-start.md +2 -2
- package/docs/prd-cli-graph-dashboard.md +1 -1
- package/docs/pt/DOCUMENTATION-ROADMAP.md +1 -1
- package/docs/pt/FEATURE_PROCESS.md +1 -1
- package/docs/pt/README.md +2 -2
- package/docs/pt/agents/archetype-rationale.md +4 -4
- package/docs/pt/agents/persona-definitions.md +9 -9
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +15 -15
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +8 -8
- package/docs/pt/architecture/ade-architecture.md +4 -4
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +3 -3
- package/docs/pt/architecture/agent-config-audit.md +4 -4
- package/docs/pt/architecture/agent-responsibility-matrix.md +20 -20
- package/docs/pt/architecture/agent-tool-integration-guide.md +8 -8
- package/docs/pt/architecture/contribution-workflow-research.md +1 -1
- package/docs/pt/architecture/dashboard-architecture.md +1 -1
- package/docs/pt/architecture/hcs-check-specifications.md +1 -1
- package/docs/pt/architecture/hcs-execution-modes.md +1 -1
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -1
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/architecture/module-system.md +1 -1
- package/docs/pt/architecture/source-tree.md +1 -1
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +2 -2
- package/docs/pt/architecture/utility-integration-guide.md +2 -2
- package/docs/pt/contributing.md +1 -1
- package/docs/pt/core-architecture.md +2 -2
- package/docs/pt/framework/source-tree.md +1 -1
- package/docs/pt/guides/ade-guide.md +25 -25
- package/docs/pt/guides/agent-selection-guide.md +36 -36
- package/docs/pt/guides/api-reference.md +25 -25
- package/docs/pt/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/pt/guides/development-setup.md +1 -1
- package/docs/pt/guides/project-status-feature.md +2 -2
- package/docs/pt/guides/quality-dashboard.md +2 -2
- package/docs/pt/guides/quality-gates.md +6 -6
- package/docs/pt/guides/template-engine-v2.md +2 -2
- package/docs/pt/guides/user-guide.md +8 -8
- package/docs/pt/guides/workflows-guide.md +2 -2
- package/docs/pt/installation/faq.md +1 -1
- package/docs/pt/installation/troubleshooting.md +2 -2
- package/docs/pt/installation/v4-quick-start.md +2 -2
- package/docs/pt/platforms/antigravity.md +9 -9
- package/docs/pt/platforms/cursor.md +15 -15
- package/docs/pt/platforms/gemini-cli.md +3 -3
- package/docs/pt/roadmap.md +1 -1
- package/docs/pt/sinapse-nomenclature-specification.md +15 -15
- package/docs/pt/specifications/docs-agent-technical-specification.md +11 -11
- package/docs/roadmap.md +1 -1
- package/docs/sinapse-agent-flows/README.md +2 -2
- package/docs/sinapse-agent-flows/analyst-system.md +5 -5
- package/docs/sinapse-agent-flows/architect-system.md +9 -9
- package/docs/sinapse-agent-flows/data-engineer-system.md +8 -8
- package/docs/sinapse-agent-flows/dev-system.md +27 -27
- package/docs/sinapse-agent-flows/devops-system.md +5 -5
- package/docs/sinapse-agent-flows/pm-system.md +24 -24
- package/docs/sinapse-agent-flows/qa-system.md +24 -24
- package/docs/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +26 -26
- package/docs/sinapse-agent-flows/sm-system.md +31 -31
- package/docs/sinapse-agent-flows/squad-creator-system.md +2 -2
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +10 -10
- package/docs/sinapse-workflows/auto-worktree-workflow.md +3 -3
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +6 -6
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +30 -30
- package/docs/sinapse-workflows/brownfield-service-workflow.md +38 -38
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +25 -25
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +37 -37
- package/docs/sinapse-workflows/greenfield-service-workflow.md +5 -5
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +19 -19
- package/docs/sinapse-workflows/qa-loop-workflow.md +13 -13
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +25 -25
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +28 -28
- package/package.json +1 -1
- package/packages/gemini-sinapse-extension/README.md +1 -1
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +1 -1
- package/packages/gemini-sinapse-extension/commands/{sinapse-master.js → sinapse-orqx.js} +1 -1
- package/packages/gemini-sinapse-extension/extension.json +3 -3
- package/packages/gemini-sinapse-extension/gemini-extension.json +3 -3
- package/packages/installer/src/config/configure-environment.js +2 -2
- package/packages/installer/src/updater/index.js +105 -0
- package/packages/installer/src/wizard/feedback.js +38 -30
- package/packages/installer/src/wizard/i18n.js +25 -182
- package/packages/installer/src/wizard/ide-config-generator.js +1 -1
- package/packages/installer/src/wizard/index.js +253 -69
- package/packages/installer/src/wizard/questions.js +35 -7
- package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +1 -1
- package/packages/sinapse-install/README.md +1 -1
- package/packages/sinapse-install/src/installer.js +1 -1
- package/scripts/package-synapse.js +1 -1
- package/sinapse/agents/{sinapse-master.md → sinapse-orqx.md} +18 -18
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -1
- package/sinapse/knowledge-base/routing-catalog.md +1 -1
- package/sinapse/squad.yaml +1 -1
- package/sinapse/tasks/compose-multi-squad-plan.md +2 -2
- package/sinapse/tasks/coordinate-cross-squad.md +2 -2
- package/sinapse/tasks/diagnose-and-route.md +2 -2
- package/sinapse/tasks/onboard-user.md +2 -2
- package/sinapse/tasks/resolve-conflict.md +2 -2
- package/sinapse/tasks/squad-status-report.md +2 -2
- package/sinapse/tasks/strategic-brief.md +3 -3
- package/squads/squad-animations/agents/animations-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-creative-engineer.md +1 -1
- package/squads/squad-brand/agents/brand-motion-vfx.md +1 -1
- package/squads/squad-brand/agents/brand-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
- package/squads/squad-brand/agents/brand-system-architect.md +1 -1
- package/squads/squad-claude/agents/claude-orqx.md +2 -2
- package/squads/squad-cloning/agents/cloning-orqx.md +3 -3
- package/squads/squad-commercial/agents/commercial-orqx.md +1 -1
- package/squads/squad-commercial/agents/cs-business-auditor.md +1 -1
- package/squads/squad-commercial/agents/cs-client-success.md +1 -1
- package/squads/squad-commercial/agents/cs-crm-specialist.md +1 -1
- package/squads/squad-commercial/agents/cs-funnel-architect.md +1 -1
- package/squads/squad-commercial/agents/cs-lead-generation-strategist.md +1 -1
- package/squads/squad-commercial/agents/cs-offer-designer.md +1 -1
- package/squads/squad-commercial/agents/cs-revops-analyst.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-enablement.md +1 -1
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +1 -1
- package/squads/squad-content/agents/content-orqx.md +2 -2
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +1 -1
- package/squads/squad-copy/agents/copy-strategist.md +3 -3
- package/squads/squad-copy/knowledge-base/consequence-headline-patterns.md +1 -1
- package/squads/squad-council/agents/council-orqx.md +1 -1
- package/squads/squad-courses/agents/courses-orqx.md +1 -1
- package/squads/squad-cybersecurity/agents/cyber-orqx.md +2 -2
- package/squads/squad-design/agents/design-orqx.md +2 -2
- package/squads/squad-finance/agents/finance-orqx.md +2 -2
- package/squads/squad-growth/agents/growth-orqx.md +2 -2
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +2 -2
- package/squads/squad-product/agents/product-orqx.md +2 -2
- package/squads/squad-research/agents/research-orqx.md +2 -2
- package/squads/squad-research/tasks/create-executive-briefing.md +1 -1
- package/squads/squad-research/tasks/create-insight-deck.md +1 -1
- package/squads/squad-research/tasks/forecast-industry-trends.md +1 -1
- package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
- package/squads/squad-research/tasks/run-scenario-planning.md +2 -2
- package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
- package/squads/squad-research/tasks/track-emerging-technologies.md +1 -1
- package/squads/squad-storytelling/agents/storytelling-orqx.md +2 -2
- package/docs/es/CHANGELOG.md +0 -117
- package/docs/es/DOCUMENTATION-ROADMAP.md +0 -216
- package/docs/es/ENVIRONMENT.md +0 -140
- package/docs/es/FEATURE_PROCESS.md +0 -99
- package/docs/es/GUIDING-PRINCIPLES.md +0 -101
- package/docs/es/README.md +0 -134
- package/docs/es/agent-reference-guide.md +0 -570
- package/docs/es/agents/archetype-rationale.md +0 -566
- package/docs/es/agents/persona-definitions.md +0 -501
- package/docs/es/api/squads-api.md +0 -753
- package/docs/es/architecture/ADE-AGENT-CHANGES.md +0 -469
- package/docs/es/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/es/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/es/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/es/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/es/architecture/ARCHITECTURE-INDEX.md +0 -188
- package/docs/es/architecture/ade-architecture.md +0 -586
- package/docs/es/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/es/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/es/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/es/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/es/architecture/agent-config-audit.md +0 -222
- package/docs/es/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/es/architecture/agent-tool-integration-guide.md +0 -334
- package/docs/es/architecture/ci-cd.md +0 -151
- package/docs/es/architecture/coding-standards.md +0 -896
- package/docs/es/architecture/contribution-workflow-research.md +0 -376
- package/docs/es/architecture/dashboard-architecture.md +0 -926
- package/docs/es/architecture/dashboard-realtime.md +0 -1253
- package/docs/es/architecture/hcs-check-specifications.md +0 -897
- package/docs/es/architecture/hcs-execution-modes.md +0 -519
- package/docs/es/architecture/hcs-self-healing-spec.md +0 -695
- package/docs/es/architecture/high-level-architecture.md +0 -357
- package/docs/es/architecture/introduction.md +0 -21
- package/docs/es/architecture/mcp-api-keys-management.md +0 -246
- package/docs/es/architecture/mcp-system-diagrams.md +0 -113
- package/docs/es/architecture/module-system.md +0 -382
- package/docs/es/architecture/multi-repo-strategy.md +0 -390
- package/docs/es/architecture/source-tree.md +0 -708
- package/docs/es/architecture/squad-improvement-analysis.md +0 -204
- package/docs/es/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/es/architecture/tech-stack.md +0 -806
- package/docs/es/architecture/utility-integration-guide.md +0 -358
- package/docs/es/community/README-community-snippet-core.md +0 -57
- package/docs/es/community/README-community-snippet-mcp.md +0 -49
- package/docs/es/community/README-community-snippet-squads.md +0 -40
- package/docs/es/community.md +0 -227
- package/docs/es/core-architecture.md +0 -229
- package/docs/es/docker-mcp-setup.md +0 -426
- package/docs/es/framework/README.md +0 -99
- package/docs/es/framework/coding-standards.md +0 -892
- package/docs/es/framework/source-tree.md +0 -725
- package/docs/es/framework/tech-stack.md +0 -802
- package/docs/es/getting-started.md +0 -572
- package/docs/es/git-workflow-guide.md +0 -995
- package/docs/es/guides/README.md +0 -133
- package/docs/es/guides/ade-guide.md +0 -452
- package/docs/es/guides/agent-selection-guide.md +0 -295
- package/docs/es/guides/api-reference.md +0 -899
- package/docs/es/guides/build-recovery-guide.md +0 -270
- package/docs/es/guides/contextual-greeting-system-guide.md +0 -387
- package/docs/es/guides/contributing-squads.md +0 -256
- package/docs/es/guides/development-setup.md +0 -1111
- package/docs/es/guides/ide-sync-guide.md +0 -194
- package/docs/es/guides/installation-troubleshooting.md +0 -327
- package/docs/es/guides/llm-routing.md +0 -312
- package/docs/es/guides/mcp/desktop-commander.md +0 -368
- package/docs/es/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/es/guides/mcp-global-setup.md +0 -663
- package/docs/es/guides/permission-modes.md +0 -313
- package/docs/es/guides/project-status-feature.md +0 -473
- package/docs/es/guides/quality-dashboard.md +0 -367
- package/docs/es/guides/quality-gates.md +0 -614
- package/docs/es/guides/security-hardening.md +0 -1359
- package/docs/es/guides/service-discovery.md +0 -524
- package/docs/es/guides/squad-examples/README.md +0 -64
- package/docs/es/guides/squad-migration.md +0 -356
- package/docs/es/guides/squads-guide.md +0 -836
- package/docs/es/guides/squads-overview.md +0 -332
- package/docs/es/guides/template-engine-v2.md +0 -484
- package/docs/es/guides/testing-guide.md +0 -1215
- package/docs/es/guides/user-guide.md +0 -452
- package/docs/es/guides/workflows-guide.md +0 -400
- package/docs/es/how-to-contribute-with-pull-requests.md +0 -160
- package/docs/es/ide-integration.md +0 -425
- package/docs/es/installation/README.md +0 -108
- package/docs/es/installation/faq.md +0 -616
- package/docs/es/installation/linux.md +0 -311
- package/docs/es/installation/macos.md +0 -189
- package/docs/es/installation/troubleshooting.md +0 -735
- package/docs/es/installation/v4-quick-start.md +0 -269
- package/docs/es/installation/windows.md +0 -342
- package/docs/es/meta-agent-commands.md +0 -990
- package/docs/es/migration-guide.md +0 -310
- package/docs/es/npx-install.md +0 -193
- package/docs/es/performance-tuning-guide.md +0 -707
- package/docs/es/platforms/README.md +0 -283
- package/docs/es/platforms/antigravity.md +0 -510
- package/docs/es/platforms/claude-code.md +0 -650
- package/docs/es/platforms/cursor.md +0 -635
- package/docs/es/platforms/gemini-cli.md +0 -483
- package/docs/es/platforms/github-copilot.md +0 -480
- package/docs/es/roadmap.md +0 -119
- package/docs/es/security-best-practices.md +0 -613
- package/docs/es/security.md +0 -124
- package/docs/es/sinapse-agent-flows/README.md +0 -190
- package/docs/es/sinapse-agent-flows/analyst-system.md +0 -36
- package/docs/es/sinapse-agent-flows/architect-system.md +0 -36
- package/docs/es/sinapse-agent-flows/data-engineer-system.md +0 -36
- package/docs/es/sinapse-agent-flows/dev-system.md +0 -36
- package/docs/es/sinapse-agent-flows/devops-system.md +0 -36
- package/docs/es/sinapse-agent-flows/pm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/qa-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sinapse-master-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/squad-creator-system.md +0 -36
- package/docs/es/sinapse-agent-flows/ux-design-expert-system.md +0 -36
- package/docs/es/sinapse-nomenclature-specification.md +0 -673
- package/docs/es/sinapse-workflows/README.md +0 -247
- package/docs/es/sinapse-workflows/auto-worktree-workflow.md +0 -39
- package/docs/es/sinapse-workflows/brownfield-discovery-workflow.md +0 -41
- package/docs/es/sinapse-workflows/brownfield-fullstack-workflow.md +0 -42
- package/docs/es/sinapse-workflows/brownfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/brownfield-ui-workflow.md +0 -42
- package/docs/es/sinapse-workflows/design-system-build-quality-workflow.md +0 -40
- package/docs/es/sinapse-workflows/greenfield-fullstack-workflow.md +0 -44
- package/docs/es/sinapse-workflows/greenfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/greenfield-ui-workflow.md +0 -43
- package/docs/es/sinapse-workflows/qa-loop-workflow.md +0 -39
- package/docs/es/sinapse-workflows/spec-pipeline-workflow.md +0 -40
- package/docs/es/sinapse-workflows/story-development-cycle-workflow.md +0 -42
- package/docs/es/specifications/docs-agent-technical-specification.md +0 -2161
- package/docs/es/troubleshooting.md +0 -887
- package/docs/es/uninstallation.md +0 -556
- package/docs/es/versioning-and-releases.md +0 -146
- package/docs/zh/CHANGELOG.md +0 -191
- package/docs/zh/ENVIRONMENT.md +0 -136
- package/docs/zh/FEATURE_PROCESS.md +0 -92
- package/docs/zh/GLOSSARY.md +0 -179
- package/docs/zh/GUIDING-PRINCIPLES.md +0 -97
- package/docs/zh/README.md +0 -133
- package/docs/zh/TRANSLATION-PLAN.md +0 -508
- package/docs/zh/agent-reference-guide.md +0 -566
- package/docs/zh/agents/archetype-rationale.md +0 -631
- package/docs/zh/agents/persona-definitions.md +0 -560
- package/docs/zh/api/squads-api.md +0 -753
- package/docs/zh/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/zh/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/zh/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/zh/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/zh/architecture/ARCHITECTURE-INDEX.md +0 -190
- package/docs/zh/architecture/SINAPSE-VISUAL-OVERVIEW.md +0 -595
- package/docs/zh/architecture/ade-architecture.md +0 -474
- package/docs/zh/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/zh/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/zh/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/zh/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/zh/architecture/agent-config-audit.md +0 -220
- package/docs/zh/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/zh/architecture/agent-tool-integration-guide.md +0 -336
- package/docs/zh/architecture/ci-cd.md +0 -151
- package/docs/zh/architecture/coding-standards.md +0 -898
- package/docs/zh/architecture/command-authority-matrix.md +0 -18
- package/docs/zh/architecture/contribution-workflow-research.md +0 -376
- package/docs/zh/architecture/dashboard-architecture.md +0 -569
- package/docs/zh/architecture/dashboard-realtime.md +0 -415
- package/docs/zh/architecture/hcs-check-specifications.md +0 -102
- package/docs/zh/architecture/hcs-execution-modes.md +0 -114
- package/docs/zh/architecture/hcs-self-healing-spec.md +0 -148
- package/docs/zh/architecture/high-level-architecture.md +0 -355
- package/docs/zh/architecture/introduction.md +0 -21
- package/docs/zh/architecture/mcp-api-keys-management.md +0 -248
- package/docs/zh/architecture/mcp-system-diagrams.md +0 -113
- package/docs/zh/architecture/module-system.md +0 -382
- package/docs/zh/architecture/multi-repo-strategy.md +0 -237
- package/docs/zh/architecture/source-tree.md +0 -710
- package/docs/zh/architecture/squad-improvement-analysis.md +0 -204
- package/docs/zh/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/zh/architecture/tech-stack.md +0 -808
- package/docs/zh/architecture/utility-integration-guide.md +0 -358
- package/docs/zh/code-of-conduct.md +0 -113
- package/docs/zh/community/README-community-snippet-core.md +0 -57
- package/docs/zh/community/README-community-snippet-mcp.md +0 -49
- package/docs/zh/community/README-community-snippet-squads.md +0 -40
- package/docs/zh/community.md +0 -227
- package/docs/zh/contributing.md +0 -581
- package/docs/zh/core-architecture.md +0 -229
- package/docs/zh/docker-mcp-setup.md +0 -226
- package/docs/zh/framework/README.md +0 -97
- package/docs/zh/framework/coding-standards.md +0 -886
- package/docs/zh/framework/source-tree.md +0 -888
- package/docs/zh/framework/tech-stack.md +0 -796
- package/docs/zh/getting-started.md +0 -317
- package/docs/zh/git-workflow-guide.md +0 -988
- package/docs/zh/guides/MEMORY-INTEGRATION.md +0 -497
- package/docs/zh/guides/MEMORY-INTELLIGENCE-SYSTEM.md +0 -1083
- package/docs/zh/guides/MEMORY-SYSTEM.md +0 -1003
- package/docs/zh/guides/README.md +0 -127
- package/docs/zh/guides/ade-guide.md +0 -446
- package/docs/zh/guides/agent-selection-guide.md +0 -289
- package/docs/zh/guides/api-reference.md +0 -427
- package/docs/zh/guides/build-recovery-guide.md +0 -266
- package/docs/zh/guides/contextual-greeting-system-guide.md +0 -381
- package/docs/zh/guides/contributing-squads.md +0 -250
- package/docs/zh/guides/development-setup.md +0 -384
- package/docs/zh/guides/ide-sync-guide.md +0 -193
- package/docs/zh/guides/installation-troubleshooting.md +0 -321
- package/docs/zh/guides/llm-routing.md +0 -306
- package/docs/zh/guides/mcp/desktop-commander.md +0 -368
- package/docs/zh/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/zh/guides/mcp-global-setup.md +0 -696
- package/docs/zh/guides/permission-modes.md +0 -307
- package/docs/zh/guides/project-status-feature.md +0 -467
- package/docs/zh/guides/quality-dashboard.md +0 -361
- package/docs/zh/guides/quality-gates.md +0 -462
- package/docs/zh/guides/security-hardening.md +0 -1055
- package/docs/zh/guides/service-discovery.md +0 -518
- package/docs/zh/guides/squad-examples/README.md +0 -63
- package/docs/zh/guides/squad-migration.md +0 -336
- package/docs/zh/guides/template-engine-v2.md +0 -478
- package/docs/zh/guides/workflows-guide.md +0 -408
- package/docs/zh/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/zh/installation/README.md +0 -106
- package/docs/zh/installation/faq.md +0 -611
- package/docs/zh/installation/linux.md +0 -447
- package/docs/zh/installation/macos.md +0 -187
- package/docs/zh/installation/troubleshooting.md +0 -729
- package/docs/zh/installation/windows.md +0 -475
- package/docs/zh/meta-agent-commands.md +0 -990
- package/docs/zh/security-best-practices.md +0 -610
- package/docs/zh/security.md +0 -124
- package/docs/zh/sinapse-agent-flows/README.md +0 -196
- package/docs/zh/sinapse-agent-flows/analyst-system.md +0 -679
- package/docs/zh/sinapse-agent-flows/architect-system.md +0 -246
- package/docs/zh/sinapse-agent-flows/data-engineer-system.md +0 -418
- package/docs/zh/sinapse-agent-flows/dev-system.md +0 -209
- package/docs/zh/sinapse-agent-flows/devops-system.md +0 -643
- package/docs/zh/sinapse-agent-flows/pm-system.md +0 -733
- package/docs/zh/sinapse-agent-flows/qa-system.md +0 -268
- package/docs/zh/sinapse-agent-flows/sinapse-master-system.md +0 -81
- package/docs/zh/sinapse-agent-flows/sm-system.md +0 -501
- package/docs/zh/sinapse-agent-flows/squad-creator-system.md +0 -704
- package/docs/zh/sinapse-agent-flows/ux-design-expert-system.md +0 -160
- package/docs/zh/sinapse-workflows/README.md +0 -247
- package/docs/zh/sinapse-workflows/auto-worktree-workflow.md +0 -793
- package/docs/zh/sinapse-workflows/brownfield-discovery-workflow.md +0 -915
- package/docs/zh/sinapse-workflows/brownfield-fullstack-workflow.md +0 -764
- package/docs/zh/sinapse-workflows/brownfield-service-workflow.md +0 -812
- package/docs/zh/sinapse-workflows/brownfield-ui-workflow.md +0 -891
- package/docs/zh/sinapse-workflows/design-system-build-quality-workflow.md +0 -845
- package/docs/zh/sinapse-workflows/greenfield-fullstack-workflow.md +0 -796
- package/docs/zh/sinapse-workflows/greenfield-service-workflow.md +0 -786
- package/docs/zh/sinapse-workflows/greenfield-ui-workflow.md +0 -922
- package/docs/zh/sinapse-workflows/qa-loop-workflow.md +0 -1111
- package/docs/zh/sinapse-workflows/spec-pipeline-workflow.md +0 -1031
- package/docs/zh/sinapse-workflows/story-development-cycle-workflow.md +0 -843
- package/docs/zh/troubleshooting.md +0 -883
- package/docs/zh/uninstallation.md +0 -348
- package/docs/zh/versioning-and-releases.md +0 -140
- /package/.sinapse-ai/development/agents/{dev → developer}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{qa → quality-gate}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{sm → sprint-lead}/MEMORY.md +0 -0
|
@@ -1,1111 +0,0 @@
|
|
|
1
|
-
# QA循环工作流 - 完整文档
|
|
2
|
-
|
|
3
|
-
**版本:** 1.0
|
|
4
|
-
**最后更新:** 2026-02-04
|
|
5
|
-
**Epic:** 6 - QA 演进: 自主开发引擎 (ADE)
|
|
6
|
-
**故事:** 6.5
|
|
7
|
-
**作者:** @architect (Aria)
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## 索引
|
|
12
|
-
|
|
13
|
-
1. [概览](#概览)
|
|
14
|
-
2. [工作流图示](#工作流图示)
|
|
15
|
-
3. [详细步骤](#详细步骤)
|
|
16
|
-
4. [参与的代理](#参与的代理)
|
|
17
|
-
5. [执行的任务](#执行的任务)
|
|
18
|
-
6. [前置条件](#前置条件)
|
|
19
|
-
7. [输入和输出](#输入和输出)
|
|
20
|
-
8. [决策点](#决策点)
|
|
21
|
-
9. [配置](#配置)
|
|
22
|
-
10. [执行控制](#执行控制)
|
|
23
|
-
11. [升级](#升级)
|
|
24
|
-
12. [与仪表板集成](#与仪表板集成)
|
|
25
|
-
13. [错误处理](#错误处理)
|
|
26
|
-
14. [故障排查](#故障排查)
|
|
27
|
-
15. [参考](#参考)
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 概览
|
|
32
|
-
|
|
33
|
-
**QA循环编排器**是一个自动化工作流,编排完整的质量审查循环:
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
审查 -> 修复 -> 重新审查
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
此工作流执行最多可配置的迭代 (默认: 5),追踪每次迭代的结果。达到最大限制或请求手动停止时,工作流升级为人工干预。
|
|
40
|
-
|
|
41
|
-
### 目的
|
|
42
|
-
|
|
43
|
-
- 自动化质量审查循环
|
|
44
|
-
- 减少反馈和修正之间的时间
|
|
45
|
-
- 确保 QA 过程的完整可追溯性
|
|
46
|
-
- 必要时自动升级
|
|
47
|
-
|
|
48
|
-
### 支持的项目类型
|
|
49
|
-
|
|
50
|
-
- `sinapse-development`
|
|
51
|
-
- `autonomous-development`
|
|
52
|
-
- `qa-automation`
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## 工作流图示
|
|
57
|
-
|
|
58
|
-
### 主流程
|
|
59
|
-
|
|
60
|
-
```mermaid
|
|
61
|
-
flowchart TD
|
|
62
|
-
subgraph TRIGGER["启动触发器"]
|
|
63
|
-
T1["*qa-loop {storyId}"]
|
|
64
|
-
T2["*qa-loop-review"]
|
|
65
|
-
T3["*qa-loop-fix"]
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
subgraph INIT["初始化"]
|
|
69
|
-
I1["加载/创建 loop-status.json"]
|
|
70
|
-
I2["定义 iteration = 0"]
|
|
71
|
-
I3["maxIterations = 5 (配置)"]
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
subgraph REVIEW["阶段 1: QA 审查"]
|
|
75
|
-
R1["@qa 执行 qa-review-story.md"]
|
|
76
|
-
R2["生成 gate-file.yaml"]
|
|
77
|
-
R3["返回 verdict + issuesFound"]
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
subgraph CHECK["阶段 2: 检查判决"]
|
|
81
|
-
C1{"verdict?"}
|
|
82
|
-
C2["批准"]
|
|
83
|
-
C3["已阻止"]
|
|
84
|
-
C4["拒绝"]
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
subgraph FIX_REQ["阶段 3: 创建修复请求"]
|
|
88
|
-
F1["@qa 执行 qa-create-fix-request.md"]
|
|
89
|
-
F2["生成 fix-request.md"]
|
|
90
|
-
F3["优先化问题"]
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
subgraph FIX["阶段 4: 应用修复"]
|
|
94
|
-
X1["@dev 执行 dev-apply-qa-fixes.md"]
|
|
95
|
-
X2["应用修正"]
|
|
96
|
-
X3["用测试验证"]
|
|
97
|
-
X4["生成 fixes-applied.json"]
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
subgraph ITER["阶段 5: 检查迭代"]
|
|
101
|
-
IT1{"iteration >= max?"}
|
|
102
|
-
IT2["iteration++"]
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
subgraph END["完成"]
|
|
106
|
-
E1["完成 - 故事已批准"]
|
|
107
|
-
E2["升级 - 需要人工"]
|
|
108
|
-
E3["生成最终摘要"]
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
T1 --> I1
|
|
112
|
-
T2 --> R1
|
|
113
|
-
T3 --> X1
|
|
114
|
-
|
|
115
|
-
I1 --> I2
|
|
116
|
-
I2 --> I3
|
|
117
|
-
I3 --> R1
|
|
118
|
-
|
|
119
|
-
R1 --> R2
|
|
120
|
-
R2 --> R3
|
|
121
|
-
R3 --> C1
|
|
122
|
-
|
|
123
|
-
C1 --> |"批准"| C2
|
|
124
|
-
C1 --> |"已阻止"| C3
|
|
125
|
-
C1 --> |"拒绝"| C4
|
|
126
|
-
|
|
127
|
-
C2 --> E1
|
|
128
|
-
C3 --> E2
|
|
129
|
-
|
|
130
|
-
C4 --> F1
|
|
131
|
-
F1 --> F2
|
|
132
|
-
F2 --> F3
|
|
133
|
-
F3 --> X1
|
|
134
|
-
|
|
135
|
-
X1 --> X2
|
|
136
|
-
X2 --> X3
|
|
137
|
-
X3 --> X4
|
|
138
|
-
X4 --> IT1
|
|
139
|
-
|
|
140
|
-
IT1 --> |"是"| E2
|
|
141
|
-
IT1 --> |"否"| IT2
|
|
142
|
-
IT2 --> R1
|
|
143
|
-
|
|
144
|
-
E1 --> E3
|
|
145
|
-
E2 --> E3
|
|
146
|
-
|
|
147
|
-
style TRIGGER fill:#e1f5fe
|
|
148
|
-
style REVIEW fill:#fff3e0
|
|
149
|
-
style CHECK fill:#fce4ec
|
|
150
|
-
style FIX_REQ fill:#f3e5f5
|
|
151
|
-
style FIX fill:#e8f5e9
|
|
152
|
-
style ITER fill:#fff8e1
|
|
153
|
-
style END fill:#e0f2f1
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### 状态图
|
|
157
|
-
|
|
158
|
-
```mermaid
|
|
159
|
-
stateDiagram-v2
|
|
160
|
-
[*] --> pending: *qa-loop {storyId}
|
|
161
|
-
|
|
162
|
-
pending --> in_progress: 启动循环
|
|
163
|
-
|
|
164
|
-
in_progress --> in_progress: 拒绝 (iteration < max)
|
|
165
|
-
in_progress --> completed: 批准
|
|
166
|
-
in_progress --> escalated: 已阻止
|
|
167
|
-
in_progress --> escalated: 最大迭代
|
|
168
|
-
in_progress --> stopped: *stop-qa-loop
|
|
169
|
-
|
|
170
|
-
stopped --> in_progress: *resume-qa-loop
|
|
171
|
-
escalated --> in_progress: *resume-qa-loop
|
|
172
|
-
|
|
173
|
-
completed --> [*]
|
|
174
|
-
escalated --> [*]: 人工干预
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### 代理之间的通信序列
|
|
178
|
-
|
|
179
|
-
```mermaid
|
|
180
|
-
sequenceDiagram
|
|
181
|
-
participant U as 用户
|
|
182
|
-
participant S as 系统
|
|
183
|
-
participant QA as @qa (Quinn)
|
|
184
|
-
participant DEV as @dev (Dex)
|
|
185
|
-
|
|
186
|
-
U->>S: *qa-loop 故事-42
|
|
187
|
-
S->>S: 初始化 loop-status.json
|
|
188
|
-
|
|
189
|
-
loop 至最大迭代或批准
|
|
190
|
-
S->>QA: 执行 qa-review-story.md
|
|
191
|
-
QA->>QA: CodeRabbit 自我修复
|
|
192
|
-
QA->>QA: 完整分析
|
|
193
|
-
QA-->>S: verdict, issuesFound, gate-file
|
|
194
|
-
|
|
195
|
-
alt verdict == 批准
|
|
196
|
-
S-->>U: 故事已批准
|
|
197
|
-
else verdict == 已阻止
|
|
198
|
-
S-->>U: 升级 - 需要人工
|
|
199
|
-
else verdict == 拒绝
|
|
200
|
-
S->>QA: 执行 qa-create-fix-request.md
|
|
201
|
-
QA-->>S: fix-request.md, prioritizedIssues
|
|
202
|
-
|
|
203
|
-
S->>DEV: 执行 dev-apply-qa-fixes.md
|
|
204
|
-
DEV->>DEV: 应用修复
|
|
205
|
-
DEV->>DEV: 运行测试
|
|
206
|
-
DEV-->>S: fixes-applied.json, issuesFixed
|
|
207
|
-
|
|
208
|
-
S->>S: 增加迭代
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
S-->>U: 最终摘要
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## 详细步骤
|
|
218
|
-
|
|
219
|
-
### 步骤 1: 审查 (阶段 1)
|
|
220
|
-
|
|
221
|
-
| 属性 | 值 |
|
|
222
|
-
|------|-----|
|
|
223
|
-
| **名称** | `review` |
|
|
224
|
-
| **阶段** | 1 - QA 审查 |
|
|
225
|
-
| **代理** | `@qa` (Quinn) |
|
|
226
|
-
| **任务** | `qa-review-story.md` |
|
|
227
|
-
| **超时** | 30 分钟 (1,800,000 毫秒) |
|
|
228
|
-
|
|
229
|
-
**描述:**
|
|
230
|
-
执行故事实现的完整 QA 审查,产生判决: 批准、拒绝或已阻止。
|
|
231
|
-
|
|
232
|
-
**输入:**
|
|
233
|
-
|
|
234
|
-
```yaml
|
|
235
|
-
storyId: "{storyId}"
|
|
236
|
-
iteration: "{currentIteration}"
|
|
237
|
-
previousIssues: "{history[-1].issuesFound|0}"
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
**输出:**
|
|
241
|
-
|
|
242
|
-
- `gate-file.yaml` - 带决策的网关文件
|
|
243
|
-
- `verdict` - 批准 | 拒绝 | 已阻止
|
|
244
|
-
- `issuesFound` - 发现的问题数
|
|
245
|
-
|
|
246
|
-
**成功时:**
|
|
247
|
-
```
|
|
248
|
-
log: "审查完成: {verdict} ({issuesFound} 个问题)"
|
|
249
|
-
next: check_verdict
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
**失败时:**
|
|
253
|
-
```
|
|
254
|
-
action: retry (最多 2 次尝试)
|
|
255
|
-
on_exhausted: escalate
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
### 步骤 2: 检查判决 (阶段 2)
|
|
261
|
-
|
|
262
|
-
| 属性 | 值 |
|
|
263
|
-
|------|-----|
|
|
264
|
-
| **名称** | `check_verdict` |
|
|
265
|
-
| **阶段** | 2 - 判决检查 |
|
|
266
|
-
| **代理** | `system` |
|
|
267
|
-
|
|
268
|
-
**描述:**
|
|
269
|
-
评估审查的判决并确定下一步操作。
|
|
270
|
-
|
|
271
|
-
**决策逻辑:**
|
|
272
|
-
|
|
273
|
-
```mermaid
|
|
274
|
-
flowchart TD
|
|
275
|
-
V{"verdict?"}
|
|
276
|
-
|
|
277
|
-
V -->|"批准"| A["操作: 完成<br/>故事在 N 次迭代后批准"]
|
|
278
|
-
V -->|"已阻止"| B["操作: 升级<br/>需要人工干预"]
|
|
279
|
-
V -->|"拒绝"| C["操作: 继续<br/>继续创建修复请求"]
|
|
280
|
-
|
|
281
|
-
style A fill:#c8e6c9
|
|
282
|
-
style B fill:#ffcdd2
|
|
283
|
-
style C fill:#fff9c4
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
### 步骤 3: 创建修复请求 (阶段 3)
|
|
289
|
-
|
|
290
|
-
| 属性 | 值 |
|
|
291
|
-
|------|-----|
|
|
292
|
-
| **名称** | `create_fix_request` |
|
|
293
|
-
| **阶段** | 3 - 创建修复请求 |
|
|
294
|
-
| **代理** | `@qa` (Quinn) |
|
|
295
|
-
| **任务** | `qa-create-fix-request.md` |
|
|
296
|
-
|
|
297
|
-
**描述:**
|
|
298
|
-
从审查的发现结果生成结构化的修复请求文档。优先化问题并提供可操作的修复说明。
|
|
299
|
-
|
|
300
|
-
**输入:**
|
|
301
|
-
|
|
302
|
-
```yaml
|
|
303
|
-
storyId: "{storyId}"
|
|
304
|
-
gateFile: "{outputs.review.gate-file}"
|
|
305
|
-
iteration: "{currentIteration}"
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
**输出:**
|
|
309
|
-
|
|
310
|
-
- `QA_FIX_REQUEST.md` - 带优先化问题的文档
|
|
311
|
-
- `prioritizedIssues` - 按优先级排序的问题列表
|
|
312
|
-
|
|
313
|
-
**成功时:**
|
|
314
|
-
```
|
|
315
|
-
log: "修复请求已创建,共 {prioritizedIssues.length} 个优先化问题"
|
|
316
|
-
next: fix_issues
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
**失败时:**
|
|
320
|
-
```
|
|
321
|
-
action: continue
|
|
322
|
-
fallback: "使用原始网关文件进行修复"
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
---
|
|
326
|
-
|
|
327
|
-
### 步骤 4: 修复问题 (阶段 4)
|
|
328
|
-
|
|
329
|
-
| 属性 | 值 |
|
|
330
|
-
|------|-----|
|
|
331
|
-
| **名称** | `fix_issues` |
|
|
332
|
-
| **阶段** | 4 - 应用修复 |
|
|
333
|
-
| **代理** | `@dev` (Dex) |
|
|
334
|
-
| **任务** | `dev-apply-qa-fixes.md` |
|
|
335
|
-
| **超时** | 60 分钟 (3,600,000 毫秒) |
|
|
336
|
-
|
|
337
|
-
**描述:**
|
|
338
|
-
开发代理根据修复请求应用修正。执行测试并验证更改。
|
|
339
|
-
|
|
340
|
-
**输入:**
|
|
341
|
-
|
|
342
|
-
```yaml
|
|
343
|
-
storyId: "{storyId}"
|
|
344
|
-
fixRequest: "{outputs.create_fix_request.fix-request}"
|
|
345
|
-
iteration: "{currentIteration}"
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
**输出:**
|
|
349
|
-
|
|
350
|
-
- `fixes-applied.json` - 已应用修正的记录
|
|
351
|
-
- `issuesFixed` - 修复的问题数
|
|
352
|
-
|
|
353
|
-
**成功时:**
|
|
354
|
-
```
|
|
355
|
-
log: "已修复 {issuesFixed} 个问题,共 {issuesFound} 个"
|
|
356
|
-
next: increment_iteration
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
**失败时:**
|
|
360
|
-
```
|
|
361
|
-
action: retry (最多 2 次尝试)
|
|
362
|
-
on_exhausted: escalate,原因 "开发代理在重试后无法应用修复"
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
---
|
|
366
|
-
|
|
367
|
-
### 步骤 5: 增加迭代 (阶段 5)
|
|
368
|
-
|
|
369
|
-
| 属性 | 值 |
|
|
370
|
-
|------|-----|
|
|
371
|
-
| **名称** | `increment_iteration` |
|
|
372
|
-
| **阶段** | 5 - 检查迭代 |
|
|
373
|
-
| **代理** | `system` |
|
|
374
|
-
|
|
375
|
-
**描述:**
|
|
376
|
-
增加迭代计数器并针对最大值进行检查。如果达到最大值,则升级给人工。
|
|
377
|
-
|
|
378
|
-
**逻辑:**
|
|
379
|
-
|
|
380
|
-
```mermaid
|
|
381
|
-
flowchart TD
|
|
382
|
-
I{"iteration >= maxIterations?"}
|
|
383
|
-
|
|
384
|
-
I -->|"是"| E["升级<br/>未获批准就达到最大迭代"]
|
|
385
|
-
I -->|"否"| C["继续<br/>返回步骤 1 (审查)<br/>iteration++"]
|
|
386
|
-
|
|
387
|
-
style E fill:#ffcdd2
|
|
388
|
-
style C fill:#c8e6c9
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
---
|
|
392
|
-
|
|
393
|
-
## 参与的代理
|
|
394
|
-
|
|
395
|
-
### @qa - Quinn (测试架构师)
|
|
396
|
-
|
|
397
|
-
```yaml
|
|
398
|
-
名字: Quinn
|
|
399
|
-
ID: qa
|
|
400
|
-
标题: 测试架构师和质量顾问
|
|
401
|
-
图标: ✅
|
|
402
|
-
原型: 守护者
|
|
403
|
-
星座: 处女座
|
|
404
|
-
|
|
405
|
-
QA循环中的责任:
|
|
406
|
-
- 执行完整 QA 审查 (qa-review-story.md)
|
|
407
|
-
- 创建结构化修复请求 (qa-create-fix-request.md)
|
|
408
|
-
- 确定判决: 批准、拒绝、已阻止
|
|
409
|
-
- 生成带决策的网关文件
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
**使用的工具:**
|
|
413
|
-
|
|
414
|
-
| 工具 | 目的 |
|
|
415
|
-
|------|------|
|
|
416
|
-
| `github-cli` | 代码审查和 PR 管理 |
|
|
417
|
-
| `browser` | 端到端测试和 UI 验证 |
|
|
418
|
-
| `context7` | 研究测试框架 |
|
|
419
|
-
| `supabase` | 数据库测试和数据验证 |
|
|
420
|
-
| `coderabbit` | 自动化代码审查 |
|
|
421
|
-
|
|
422
|
-
**CodeRabbit 集成:**
|
|
423
|
-
|
|
424
|
-
```yaml
|
|
425
|
-
self_healing:
|
|
426
|
-
enabled: true
|
|
427
|
-
type: full
|
|
428
|
-
max_iterations: 3
|
|
429
|
-
timeout_minutes: 30
|
|
430
|
-
severity_filter: [CRITICAL, HIGH]
|
|
431
|
-
behavior:
|
|
432
|
-
CRITICAL: auto_fix
|
|
433
|
-
HIGH: auto_fix
|
|
434
|
-
MEDIUM: document_as_debt
|
|
435
|
-
LOW: ignore
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
### @dev - Dex (全栈开发人员)
|
|
441
|
-
|
|
442
|
-
```yaml
|
|
443
|
-
名字: Dex
|
|
444
|
-
ID: dev
|
|
445
|
-
标题: 全栈开发人员
|
|
446
|
-
图标: 💻
|
|
447
|
-
原型: 构造者
|
|
448
|
-
星座: 水瓶座
|
|
449
|
-
|
|
450
|
-
QA循环中的责任:
|
|
451
|
-
- 根据修复请求应用修正 (dev-apply-qa-fixes.md)
|
|
452
|
-
- 执行测试来验证修正
|
|
453
|
-
- 更新故事中的开发代理记录
|
|
454
|
-
- 确保修复不会破坏现有功能
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
**使用的工具:**
|
|
458
|
-
|
|
459
|
-
| 工具 | 目的 |
|
|
460
|
-
|------|------|
|
|
461
|
-
| `git` | 本地操作: add、commit、status、diff |
|
|
462
|
-
| `context7` | 查阅库文档 |
|
|
463
|
-
| `supabase` | 数据库操作 |
|
|
464
|
-
| `browser` | 测试 Web 应用 |
|
|
465
|
-
| `coderabbit` | 提前提交代码质量审查 |
|
|
466
|
-
|
|
467
|
-
---
|
|
468
|
-
|
|
469
|
-
### 系统代理
|
|
470
|
-
|
|
471
|
-
```yaml
|
|
472
|
-
类型: 自动
|
|
473
|
-
责任:
|
|
474
|
-
- 检查判决
|
|
475
|
-
- 增加迭代
|
|
476
|
-
- 控制工作流流程
|
|
477
|
-
- 管理循环状态
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
---
|
|
481
|
-
|
|
482
|
-
## 执行的任务
|
|
483
|
-
|
|
484
|
-
### 1. qa-review-story.md
|
|
485
|
-
|
|
486
|
-
**位置:** `.sinapse-ai/development/tasks/qa-review-story.md`
|
|
487
|
-
|
|
488
|
-
**目的:** 执行带质量网关决策的测试架构审查。
|
|
489
|
-
|
|
490
|
-
**审查过程:**
|
|
491
|
-
|
|
492
|
-
```text
|
|
493
|
-
flowchart TD
|
|
494
|
-
subgraph PRE["审查前"]
|
|
495
|
-
P1["CodeRabbit 自我修复循环"]
|
|
496
|
-
P2["最多 3 次迭代 CRITICAL/HIGH"]
|
|
497
|
-
end
|
|
498
|
-
|
|
499
|
-
subgraph RISK["风险评估"]
|
|
500
|
-
R1["认证/支付/安全?"]
|
|
501
|
-
R2["未添加测试?"]
|
|
502
|
-
R3["Diff > 500 行?"]
|
|
503
|
-
R4["前一个网关失败?"]
|
|
504
|
-
R5["> 5 个 AC?"]
|
|
505
|
-
end
|
|
506
|
-
|
|
507
|
-
subgraph ANALYSIS["完整分析"]
|
|
508
|
-
A1["需求可追溯性"]
|
|
509
|
-
A2["代码质量审查"]
|
|
510
|
-
A3["测试架构评估"]
|
|
511
|
-
A4["NFR 验证"]
|
|
512
|
-
A5["可测试性评估"]
|
|
513
|
-
A6["技术债识别"]
|
|
514
|
-
end
|
|
515
|
-
|
|
516
|
-
subgraph OUTPUT["输出"]
|
|
517
|
-
O1["QA 结果部分"]
|
|
518
|
-
O2["gate-file.yaml"]
|
|
519
|
-
end
|
|
520
|
-
|
|
521
|
-
PRE --> RISK
|
|
522
|
-
RISK --> ANALYSIS
|
|
523
|
-
ANALYSIS --> OUTPUT
|
|
524
|
-
```
|
|
525
|
-
|
|
526
|
-
**网关标准:**
|
|
527
|
-
|
|
528
|
-
| 网关 | 条件 |
|
|
529
|
-
|------|------|
|
|
530
|
-
| **通过** | 所有关键需求得到满足,无阻止问题 |
|
|
531
|
-
| **关切** | 发现非关键问题,团队应审查 |
|
|
532
|
-
| **失败** | 关键问题应处理 |
|
|
533
|
-
| **放弃** | 问题被明确接受 |
|
|
534
|
-
|
|
535
|
-
---
|
|
536
|
-
|
|
537
|
-
### 2. qa-create-fix-request.md
|
|
538
|
-
|
|
539
|
-
**位置:** `.sinapse-ai/development/tasks/qa-create-fix-request.md`
|
|
540
|
-
|
|
541
|
-
**目的:** 根据 QA 发现结果生成结构化的 `QA_FIX_REQUEST.md` 文档给 @dev。
|
|
542
|
-
|
|
543
|
-
**工作流:**
|
|
544
|
-
|
|
545
|
-
```mermaid
|
|
546
|
-
flowchart LR
|
|
547
|
-
subgraph LOAD["阶段 1: 加载"]
|
|
548
|
-
L1["定位 QA 报告"]
|
|
549
|
-
L2["解析元数据"]
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
subgraph EXTRACT["阶段 2: 提取"]
|
|
553
|
-
E1["按严重性过滤"]
|
|
554
|
-
E2["关键: 总是"]
|
|
555
|
-
E3["主要: 总是"]
|
|
556
|
-
E4["次要: 可选"]
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
subgraph GENERATE["阶段 3: 生成"]
|
|
560
|
-
G1["创建 QA_FIX_REQUEST.md"]
|
|
561
|
-
G2["结构化模板"]
|
|
562
|
-
end
|
|
563
|
-
|
|
564
|
-
subgraph NOTIFY["阶段 4: 通知"]
|
|
565
|
-
N1["输出成功"]
|
|
566
|
-
N2["@dev 的后续步骤"]
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
LOAD --> EXTRACT --> GENERATE --> NOTIFY
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
**修复请求结构:**
|
|
573
|
-
|
|
574
|
-
```markdown
|
|
575
|
-
# QA 修复请求: {storyId}
|
|
576
|
-
|
|
577
|
-
## @dev 的说明
|
|
578
|
-
- 仅修复下面列出的问题
|
|
579
|
-
- 不要添加功能或重构无关代码
|
|
580
|
-
|
|
581
|
-
## 摘要
|
|
582
|
-
| 严重性 | 数量 | 状态 |
|
|
583
|
-
|--------|------|------|
|
|
584
|
-
| 关键 | N | 必须在合并前修复 |
|
|
585
|
-
| 主要 | N | 应在合并前修复 |
|
|
586
|
-
| 次要 | N | 可选改进 |
|
|
587
|
-
|
|
588
|
-
## 要修复的问题
|
|
589
|
-
### 1. [关键] {标题}
|
|
590
|
-
- 位置: `{file:line}`
|
|
591
|
-
- 问题: {描述}
|
|
592
|
-
- 预期: {预期}
|
|
593
|
-
- 验证: [ ] {步骤}
|
|
594
|
-
|
|
595
|
-
## 约束
|
|
596
|
-
- [ ] 仅修复列出的问题
|
|
597
|
-
- [ ] 运行所有测试: `npm test`
|
|
598
|
-
- [ ] 运行检查: `npm run lint`
|
|
599
|
-
```
|
|
600
|
-
|
|
601
|
-
---
|
|
602
|
-
|
|
603
|
-
### 3. dev-apply-qa-fixes.md
|
|
604
|
-
|
|
605
|
-
**位置:** `.sinapse-ai/development/tasks/dev-apply-qa-fixes.md`
|
|
606
|
-
|
|
607
|
-
**目的:** 根据 QA 反馈和网关审查应用修复。
|
|
608
|
-
|
|
609
|
-
**开发工作流:**
|
|
610
|
-
|
|
611
|
-
```mermaid
|
|
612
|
-
flowchart TD
|
|
613
|
-
subgraph LOAD["1. 加载网关报告"]
|
|
614
|
-
L1["加载网关文件"]
|
|
615
|
-
L2["或查找故事中的参考"]
|
|
616
|
-
end
|
|
617
|
-
|
|
618
|
-
subgraph REVIEW["2. 审查发现"]
|
|
619
|
-
R1["分类问题"]
|
|
620
|
-
R2["阻止: 必须修复"]
|
|
621
|
-
R3["警告: 应修复"]
|
|
622
|
-
R4["建议: 很好有"]
|
|
623
|
-
end
|
|
624
|
-
|
|
625
|
-
subgraph PLAN["3. 创建计划"]
|
|
626
|
-
P1["识别受影响文件"]
|
|
627
|
-
P2["确定根本原因"]
|
|
628
|
-
P3["计划方法"]
|
|
629
|
-
end
|
|
630
|
-
|
|
631
|
-
subgraph FIX["4. 应用修复"]
|
|
632
|
-
F1["进行更改"]
|
|
633
|
-
F2["遵循编码标准"]
|
|
634
|
-
F3["更新测试"]
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
subgraph VALIDATE["5. 验证"]
|
|
638
|
-
V1["npm run lint"]
|
|
639
|
-
V2["npm test"]
|
|
640
|
-
V3["npm run typecheck"]
|
|
641
|
-
end
|
|
642
|
-
|
|
643
|
-
subgraph UPDATE["6. 更新故事"]
|
|
644
|
-
U1["开发代理记录"]
|
|
645
|
-
U2["文件列表"]
|
|
646
|
-
end
|
|
647
|
-
|
|
648
|
-
LOAD --> REVIEW --> PLAN --> FIX --> VALIDATE --> UPDATE
|
|
649
|
-
```
|
|
650
|
-
|
|
651
|
-
**退出标准:**
|
|
652
|
-
|
|
653
|
-
- 所有阻止问题已解决
|
|
654
|
-
- 所有测试通过 (lint、unit、integration)
|
|
655
|
-
- 故事文件已更新
|
|
656
|
-
- 代码准备重新审查
|
|
657
|
-
|
|
658
|
-
---
|
|
659
|
-
|
|
660
|
-
## 前置条件
|
|
661
|
-
|
|
662
|
-
### 启动 QA 循环的条件
|
|
663
|
-
|
|
664
|
-
| 条件 | 描述 |
|
|
665
|
-
|------|------|
|
|
666
|
-
| **故事状态** | 必须处于"审查"状态 |
|
|
667
|
-
| **实现完成** | 开发人员已完成所有任务 |
|
|
668
|
-
| **文件列表已更新** | 故事文件中的文件列表是最新的 |
|
|
669
|
-
| **自动化测试** | 所有自动化测试都通过 |
|
|
670
|
-
| **CodeRabbit 已配置** | CLI 在 WSL 中安装 (可选但推荐) |
|
|
671
|
-
|
|
672
|
-
### 环境配置
|
|
673
|
-
|
|
674
|
-
```yaml
|
|
675
|
-
# 检查 CodeRabbit
|
|
676
|
-
wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
677
|
-
|
|
678
|
-
# 检查 Node.js
|
|
679
|
-
node --version # >= 18
|
|
680
|
-
|
|
681
|
-
# 检查依赖
|
|
682
|
-
npm test # 应该通过
|
|
683
|
-
npm run lint # 应该通过
|
|
684
|
-
```
|
|
685
|
-
|
|
686
|
-
---
|
|
687
|
-
|
|
688
|
-
## 输入和输出
|
|
689
|
-
|
|
690
|
-
### 工作流输入
|
|
691
|
-
|
|
692
|
-
| 字段 | 类型 | 必需 | 描述 |
|
|
693
|
-
|------|------|------|------|
|
|
694
|
-
| `storyId` | 字符串 | 是 | 故事标识符 (例如: "故事-42") |
|
|
695
|
-
| `maxIterations` | 数字 | 否 | 最大值的覆盖 (默认: 5) |
|
|
696
|
-
| `mode` | 字符串 | 否 | `yolo`、`interactive`、`preflight` |
|
|
697
|
-
|
|
698
|
-
### 工作流输出
|
|
699
|
-
|
|
700
|
-
| 文件 | 位置 | 描述 |
|
|
701
|
-
|------|------|------|
|
|
702
|
-
| `loop-status.json` | `qa/loop-status.json` | 循环当前状态 |
|
|
703
|
-
| `gate-file.yaml` | `qa/gates/{storyId}.yaml` | 质量网关决策 |
|
|
704
|
-
| `QA_FIX_REQUEST.md` | `qa/QA_FIX_REQUEST.md` | 修正文档 |
|
|
705
|
-
| `fixes-applied.json` | `qa/fixes-applied.json` | 已应用修正记录 |
|
|
706
|
-
| `summary.md` | `qa/summary.md` | 循环最终摘要 |
|
|
707
|
-
|
|
708
|
-
### 状态文件的架构
|
|
709
|
-
|
|
710
|
-
```yaml
|
|
711
|
-
storyId: 字符串 # 故事 ID
|
|
712
|
-
currentIteration: 数字 # 当前迭代
|
|
713
|
-
maxIterations: 数字 # 配置的最大值
|
|
714
|
-
status: 枚举 # pending | in_progress | completed | stopped | escalated
|
|
715
|
-
startedAt: ISO-8601 # 开始时间戳
|
|
716
|
-
updatedAt: ISO-8601 # 最后更新
|
|
717
|
-
|
|
718
|
-
history:
|
|
719
|
-
- iteration: 数字
|
|
720
|
-
reviewedAt: ISO-8601
|
|
721
|
-
verdict: 批准 | 拒绝 | 已阻止
|
|
722
|
-
issuesFound: 数字
|
|
723
|
-
fixedAt: ISO-8601 | null
|
|
724
|
-
issuesFixed: 数字 | null
|
|
725
|
-
duration: 数字 # 毫秒
|
|
726
|
-
```
|
|
727
|
-
|
|
728
|
-
---
|
|
729
|
-
|
|
730
|
-
## 决策点
|
|
731
|
-
|
|
732
|
-
### 决策图
|
|
733
|
-
|
|
734
|
-
```mermaid
|
|
735
|
-
flowchart TD
|
|
736
|
-
subgraph D1["决策 1: 判决"]
|
|
737
|
-
V1{"判决是什么?"}
|
|
738
|
-
V1 -->|"批准"| V1A["完成循环"]
|
|
739
|
-
V1 -->|"已阻止"| V1B["立即升级"]
|
|
740
|
-
V1 -->|"拒绝"| V1C["继续修复"]
|
|
741
|
-
end
|
|
742
|
-
|
|
743
|
-
subgraph D2["决策 2: 最大迭代"]
|
|
744
|
-
I1{"iteration >= max?"}
|
|
745
|
-
I1 -->|"是"| I1A["升级: 已达最大"]
|
|
746
|
-
I1 -->|"否"| I1B["增加并继续"]
|
|
747
|
-
end
|
|
748
|
-
|
|
749
|
-
subgraph D3["决策 3: 修复失败"]
|
|
750
|
-
F1{"修复已应用?"}
|
|
751
|
-
F1 -->|"成功"| F1A["继续审查"]
|
|
752
|
-
F1 -->|"失败"| F1B{"有重试剩余?"}
|
|
753
|
-
F1B -->|"是"| F1C["重试"]
|
|
754
|
-
F1B -->|"否"| F1D["升级: 修复失败"]
|
|
755
|
-
end
|
|
756
|
-
|
|
757
|
-
subgraph D4["决策 4: 审查失败"]
|
|
758
|
-
R1{"审查已完成?"}
|
|
759
|
-
R1 -->|"成功"| R1A["处理判决"]
|
|
760
|
-
R1 -->|"失败"| R1B{"有重试剩余?"}
|
|
761
|
-
R1B -->|"是"| R1C["重试审查"]
|
|
762
|
-
R1B -->|"否"| R1D["升级: 审查失败"]
|
|
763
|
-
end
|
|
764
|
-
```
|
|
765
|
-
|
|
766
|
-
### 升级的标准
|
|
767
|
-
|
|
768
|
-
| 触发器 | 原因 | 操作 |
|
|
769
|
-
|--------|------|------|
|
|
770
|
-
| `max_iterations_reached` | 循环达到最大值但未获批准 | 带完整上下文升级 |
|
|
771
|
-
| `verdict_blocked` | QA 返回已阻止 | 立即升级 |
|
|
772
|
-
| `fix_failure` | @dev 在重试后无法应用修复 | 升级并带错误日志 |
|
|
773
|
-
| `manual_escalate` | 用户执行 `*escalate-qa-loop` | 按需升级 |
|
|
774
|
-
|
|
775
|
-
---
|
|
776
|
-
|
|
777
|
-
## 配置
|
|
778
|
-
|
|
779
|
-
### 可配置参数
|
|
780
|
-
|
|
781
|
-
```yaml
|
|
782
|
-
config:
|
|
783
|
-
# 最大迭代次数 (AC2)
|
|
784
|
-
maxIterations: 5
|
|
785
|
-
configPath: autoClaude.qaLoop.maxIterations
|
|
786
|
-
|
|
787
|
-
# 进度追踪
|
|
788
|
-
showProgress: true
|
|
789
|
-
verbose: true
|
|
790
|
-
|
|
791
|
-
# 状态文件位置 (AC4)
|
|
792
|
-
statusFile: qa/loop-status.json
|
|
793
|
-
|
|
794
|
-
# 与仪表板集成 (AC7)
|
|
795
|
-
dashboardStatusPath: .sinapse/dashboard/status.json
|
|
796
|
-
legacyStatusPath: .sinapse/status.json
|
|
797
|
-
|
|
798
|
-
# 每个阶段的超时 (毫秒)
|
|
799
|
-
reviewTimeout: 1800000 # 30 分钟
|
|
800
|
-
fixTimeout: 3600000 # 60 分钟
|
|
801
|
-
|
|
802
|
-
# 重试配置
|
|
803
|
-
maxRetries: 2
|
|
804
|
-
retryDelay: 5000 # 5 秒
|
|
805
|
-
```
|
|
806
|
-
|
|
807
|
-
### 按项目定制
|
|
808
|
-
|
|
809
|
-
在 `.sinapse-ai/core-config.yaml` 文件中:
|
|
810
|
-
|
|
811
|
-
```yaml
|
|
812
|
-
autoClaude:
|
|
813
|
-
qaLoop:
|
|
814
|
-
maxIterations: 3 # 针对较小项目减少
|
|
815
|
-
reviewTimeout: 900000 # 15 分钟快速审查
|
|
816
|
-
fixTimeout: 1800000 # 30 分钟简单修复
|
|
817
|
-
```
|
|
818
|
-
|
|
819
|
-
---
|
|
820
|
-
|
|
821
|
-
## 执行控制
|
|
822
|
-
|
|
823
|
-
### 可用命令
|
|
824
|
-
|
|
825
|
-
| 命令 | 操作 | 描述 |
|
|
826
|
-
|------|------|------|
|
|
827
|
-
| `*qa-loop {storyId}` | `start_loop` | 启动完整循环 |
|
|
828
|
-
| `*qa-loop-review` | `run_step: review` | 仅从审查步骤启动 |
|
|
829
|
-
| `*qa-loop-fix` | `run_step: fix` | 仅从修复步骤启动 |
|
|
830
|
-
| `*stop-qa-loop` | `stop_loop` | 停止循环并保存状态 |
|
|
831
|
-
| `*resume-qa-loop` | `resume_loop` | 恢复停止/升级的循环 |
|
|
832
|
-
| `*escalate-qa-loop` | `escalate` | 强制手动升级 |
|
|
833
|
-
| `*qa-loop --reset` | `reset` | 删除状态并重新启动 |
|
|
834
|
-
|
|
835
|
-
### 停止/恢复流程
|
|
836
|
-
|
|
837
|
-
```mermaid
|
|
838
|
-
sequenceDiagram
|
|
839
|
-
participant U as 用户
|
|
840
|
-
participant S as 系统
|
|
841
|
-
participant F as loop-status.json
|
|
842
|
-
|
|
843
|
-
Note over U,F: 停止
|
|
844
|
-
U->>S: *stop-qa-loop
|
|
845
|
-
S->>F: status = "stopped"
|
|
846
|
-
S->>F: 保存当前状态
|
|
847
|
-
S-->>U: 循环在迭代 N 处停止
|
|
848
|
-
|
|
849
|
-
Note over U,F: 恢复
|
|
850
|
-
U->>S: *resume-qa-loop
|
|
851
|
-
S->>F: 加载状态
|
|
852
|
-
S->>S: 检查状态是否为 stopped/escalated
|
|
853
|
-
S->>F: status = "in_progress"
|
|
854
|
-
S-->>U: 循环在迭代 N 处恢复
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
---
|
|
858
|
-
|
|
859
|
-
## 升级
|
|
860
|
-
|
|
861
|
-
### 升级触发器
|
|
862
|
-
|
|
863
|
-
```yaml
|
|
864
|
-
escalation:
|
|
865
|
-
enabled: true
|
|
866
|
-
triggers:
|
|
867
|
-
- max_iterations_reached
|
|
868
|
-
- verdict_blocked
|
|
869
|
-
- fix_failure
|
|
870
|
-
- manual_escalate
|
|
871
|
-
```
|
|
872
|
-
|
|
873
|
-
### 上下文包
|
|
874
|
-
|
|
875
|
-
升级发生时,系统准备:
|
|
876
|
-
|
|
877
|
-
| 项目 | 描述 |
|
|
878
|
-
|------|------|
|
|
879
|
-
| `loop-status.json` | 循环的完整状态 |
|
|
880
|
-
| 网关文件 | 历史记录中所有网关文件 |
|
|
881
|
-
| 修复请求 | 所有生成的修复请求 |
|
|
882
|
-
| 摘要 | 所有迭代的摘要 |
|
|
883
|
-
|
|
884
|
-
### 通知消息
|
|
885
|
-
|
|
886
|
-
```
|
|
887
|
-
{storyId} 的 QA 循环升级
|
|
888
|
-
|
|
889
|
-
原因: {escalation.reason}
|
|
890
|
-
已完成的迭代: {currentIteration}
|
|
891
|
-
最后判决: {history[-1].verdict}
|
|
892
|
-
未解决的问题: {history[-1].issuesFound - history[-1].issuesFixed}
|
|
893
|
-
|
|
894
|
-
审查上下文包并决定:
|
|
895
|
-
1. 恢复循环: *resume-qa-loop {storyId}
|
|
896
|
-
2. 手动修复并批准
|
|
897
|
-
3. 拒绝故事并创建后续
|
|
898
|
-
```
|
|
899
|
-
|
|
900
|
-
### 通知渠道
|
|
901
|
-
|
|
902
|
-
- `log` - 系统日志
|
|
903
|
-
- `console` - 终端输出
|
|
904
|
-
|
|
905
|
-
---
|
|
906
|
-
|
|
907
|
-
## 与仪表板集成
|
|
908
|
-
|
|
909
|
-
### 状态 JSON 架构
|
|
910
|
-
|
|
911
|
-
```yaml
|
|
912
|
-
integration:
|
|
913
|
-
status_json:
|
|
914
|
-
track_loop: true
|
|
915
|
-
field: qaLoop
|
|
916
|
-
update_on_each_iteration: true
|
|
917
|
-
|
|
918
|
-
schema:
|
|
919
|
-
storyId: 字符串
|
|
920
|
-
status: 字符串
|
|
921
|
-
currentIteration: 数字
|
|
922
|
-
maxIterations: 数字
|
|
923
|
-
lastVerdict: 字符串
|
|
924
|
-
lastIssuesFound: 数字
|
|
925
|
-
updatedAt: ISO-8601
|
|
926
|
-
```
|
|
927
|
-
|
|
928
|
-
### 项目状态更新
|
|
929
|
-
|
|
930
|
-
```yaml
|
|
931
|
-
project_status:
|
|
932
|
-
update_story_status: true
|
|
933
|
-
status_field: qaLoopStatus
|
|
934
|
-
```
|
|
935
|
-
|
|
936
|
-
### 通知
|
|
937
|
-
|
|
938
|
-
| 事件 | 消息 | 渠道 |
|
|
939
|
-
|------|------|------|
|
|
940
|
-
| `on_approve` | "QA 循环已批准: {storyId}" | log |
|
|
941
|
-
| `on_escalate` | "QA 循环已升级: {storyId} - 需要关注" | log |
|
|
942
|
-
| `on_stop` | "QA 循环已停止: {storyId}" | log |
|
|
943
|
-
|
|
944
|
-
---
|
|
945
|
-
|
|
946
|
-
## 错误处理
|
|
947
|
-
|
|
948
|
-
### 常见错误和解决方案
|
|
949
|
-
|
|
950
|
-
| 错误 | 原因 | 解决方案 | 操作 |
|
|
951
|
-
|------|------|---------|------|
|
|
952
|
-
| `missing_story_id` | 未提供故事 ID | "用法: *qa-loop 故事-42" | 提示 |
|
|
953
|
-
| `review_timeout` | 审查阶段超过超时 | 检查 QA 代理状态 | 升级 |
|
|
954
|
-
| `fix_timeout` | 修复阶段超过超时 | 检查开发代理状态 | 升级 |
|
|
955
|
-
| `invalid_status` | 状态文件损坏 | "重置循环: *qa-loop {storyId} --reset" | 暂停 |
|
|
956
|
-
|
|
957
|
-
### 重试策略
|
|
958
|
-
|
|
959
|
-
```yaml
|
|
960
|
-
on_failure:
|
|
961
|
-
action: retry
|
|
962
|
-
max_retries: 2 # 最大尝试次数
|
|
963
|
-
retryDelay: 5000 # 尝试间延迟
|
|
964
|
-
on_exhausted: escalate # 重试耗尽时的操作
|
|
965
|
-
```
|
|
966
|
-
|
|
967
|
-
---
|
|
968
|
-
|
|
969
|
-
## 故障排查
|
|
970
|
-
|
|
971
|
-
### 问题: 循环在审查时卡住
|
|
972
|
-
|
|
973
|
-
**症状:**
|
|
974
|
-
- 审查在 30 分钟后未完成
|
|
975
|
-
- 状态保持"in_progress"
|
|
976
|
-
|
|
977
|
-
**诊断:**
|
|
978
|
-
```bash
|
|
979
|
-
# 检查循环状态
|
|
980
|
-
cat qa/loop-status.json | jq '.status, .currentIteration'
|
|
981
|
-
|
|
982
|
-
# 检查最新网关文件
|
|
983
|
-
ls -la qa/gates/
|
|
984
|
-
```
|
|
985
|
-
|
|
986
|
-
**解决方案:**
|
|
987
|
-
1. 执行 `*stop-qa-loop`
|
|
988
|
-
2. 检查 CodeRabbit 是否在响应
|
|
989
|
-
3. 执行 `*resume-qa-loop` 恢复
|
|
990
|
-
|
|
991
|
-
---
|
|
992
|
-
|
|
993
|
-
### 问题: 修复未应用
|
|
994
|
-
|
|
995
|
-
**症状:**
|
|
996
|
-
- @dev 报告成功但问题仍然存在
|
|
997
|
-
- 重新审查发现相同的问题
|
|
998
|
-
|
|
999
|
-
**诊断:**
|
|
1000
|
-
```bash
|
|
1001
|
-
# 检查修复请求
|
|
1002
|
-
cat qa/QA_FIX_REQUEST.md
|
|
1003
|
-
|
|
1004
|
-
# 检查已应用的修复
|
|
1005
|
-
cat qa/fixes-applied.json
|
|
1006
|
-
```
|
|
1007
|
-
|
|
1008
|
-
**解决方案:**
|
|
1009
|
-
1. 手动审查 QA_FIX_REQUEST.md
|
|
1010
|
-
2. 验证 @dev 更新了正确的文件
|
|
1011
|
-
3. 在重新审查前本地运行测试
|
|
1012
|
-
|
|
1013
|
-
---
|
|
1014
|
-
|
|
1015
|
-
### 问题: 达到最大迭代
|
|
1016
|
-
|
|
1017
|
-
**症状:**
|
|
1018
|
-
- 循环在 5 次迭代后升级,不获批准
|
|
1019
|
-
|
|
1020
|
-
**诊断:**
|
|
1021
|
-
```bash
|
|
1022
|
-
# 查看完整历史
|
|
1023
|
-
cat qa/loop-status.json | jq '.history'
|
|
1024
|
-
```
|
|
1025
|
-
|
|
1026
|
-
**解决方案:**
|
|
1027
|
-
1. 分析重复问题的模式
|
|
1028
|
-
2. 检查需求是否清晰
|
|
1029
|
-
3. 考虑增加 maxIterations 或手动解决
|
|
1030
|
-
|
|
1031
|
-
---
|
|
1032
|
-
|
|
1033
|
-
### 问题: CodeRabbit 不工作
|
|
1034
|
-
|
|
1035
|
-
**症状:**
|
|
1036
|
-
- 错误 "coderabbit: command not found"
|
|
1037
|
-
- 自我修复阶段超时
|
|
1038
|
-
|
|
1039
|
-
**诊断:**
|
|
1040
|
-
```bash
|
|
1041
|
-
# 检查安装
|
|
1042
|
-
wsl bash -c 'which coderabbit'
|
|
1043
|
-
|
|
1044
|
-
# 检查认证
|
|
1045
|
-
wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
1046
|
-
```
|
|
1047
|
-
|
|
1048
|
-
**解决方案:**
|
|
1049
|
-
1. 在 WSL 中重新安装 CodeRabbit
|
|
1050
|
-
2. 执行 `coderabbit auth login`
|
|
1051
|
-
3. 检查代理配置中的路径
|
|
1052
|
-
|
|
1053
|
-
---
|
|
1054
|
-
|
|
1055
|
-
### 问题: 状态文件损坏
|
|
1056
|
-
|
|
1057
|
-
**症状:**
|
|
1058
|
-
- 错误 "invalid_status"
|
|
1059
|
-
- 循环无法启动或恢复
|
|
1060
|
-
|
|
1061
|
-
**解决方案:**
|
|
1062
|
-
```bash
|
|
1063
|
-
# 备份损坏的文件
|
|
1064
|
-
mv qa/loop-status.json qa/loop-status.json.bak
|
|
1065
|
-
|
|
1066
|
-
# 重新启动循环
|
|
1067
|
-
*qa-loop {storyId} --reset
|
|
1068
|
-
```
|
|
1069
|
-
|
|
1070
|
-
---
|
|
1071
|
-
|
|
1072
|
-
## 参考
|
|
1073
|
-
|
|
1074
|
-
### 工作流文件
|
|
1075
|
-
|
|
1076
|
-
| 文件 | 位置 |
|
|
1077
|
-
|------|------|
|
|
1078
|
-
| 工作流定义 | `.sinapse-ai/development/workflows/qa-loop.yaml` |
|
|
1079
|
-
| QA 审查任务 | `.sinapse-ai/development/tasks/qa-review-story.md` |
|
|
1080
|
-
| 创建修复请求任务 | `.sinapse-ai/development/tasks/qa-create-fix-request.md` |
|
|
1081
|
-
| 应用 QA 修复任务 | `.sinapse-ai/development/tasks/dev-apply-qa-fixes.md` |
|
|
1082
|
-
| QA 代理 | `.sinapse-ai/development/agents/qa.md` |
|
|
1083
|
-
| 开发代理 | `.sinapse-ai/development/agents/dev.md` |
|
|
1084
|
-
|
|
1085
|
-
### 相关文档
|
|
1086
|
-
|
|
1087
|
-
| 文档 | 描述 |
|
|
1088
|
-
|------|------|
|
|
1089
|
-
| Epic 6 - QA 演进 | 自主开发引擎的上下文 |
|
|
1090
|
-
| 故事 6.5 | QA 循环的实现故事 |
|
|
1091
|
-
| 故事 6.3.3 | CodeRabbit 自我修复集成 |
|
|
1092
|
-
| ADR-XXX | 架构决策记录 (如果存在) |
|
|
1093
|
-
|
|
1094
|
-
### 模板
|
|
1095
|
-
|
|
1096
|
-
| 模板 | 位置 | 用途 |
|
|
1097
|
-
|------|------|------|
|
|
1098
|
-
| `qa-gate-tmpl.yaml` | `.sinapse-ai/development/templates/` | 网关文件结构 |
|
|
1099
|
-
| `story-tmpl.yaml` | `.sinapse-ai/development/templates/` | 故事文件结构 |
|
|
1100
|
-
|
|
1101
|
-
---
|
|
1102
|
-
|
|
1103
|
-
## 变更历史
|
|
1104
|
-
|
|
1105
|
-
| 日期 | 版本 | 作者 | 更改 |
|
|
1106
|
-
|------|------|------|------|
|
|
1107
|
-
| 2026-02-04 | 1.0 | 技术文档专家 | 初始版本 |
|
|
1108
|
-
|
|
1109
|
-
---
|
|
1110
|
-
|
|
1111
|
-
*文档自动从工作流 `qa-loop.yaml` 生成*
|