sinapse-ai 5.0.8 → 6.0.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/.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 +2126 -2570
- 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 +9 -9
- 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} +16 -16
- 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,897 +0,0 @@
|
|
|
1
|
-
<!-- Traducción: ES | Original: /docs/en/architecture/hcs-check-specifications.md | Sincronización: 2026-01-26 -->
|
|
2
|
-
|
|
3
|
-
# Especificaciones de Verificaciones HCS
|
|
4
|
-
|
|
5
|
-
> 🌐 [EN](../../architecture/hcs-check-specifications.md) | [PT](../../pt/architecture/hcs-check-specifications.md) | **ES**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
**Versión:** 1.0
|
|
10
|
-
**Estado:** Propuesto
|
|
11
|
-
**Creado:** 2025-12-30
|
|
12
|
-
**Historia:** Investigación HCS-1
|
|
13
|
-
**Autor:** @architect (Aria) vía @dev (Dex)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Tabla de Contenidos
|
|
18
|
-
|
|
19
|
-
- [Descripción General](#descripción-general)
|
|
20
|
-
- [Arquitectura de Verificaciones](#arquitectura-de-verificaciones)
|
|
21
|
-
- [Dominio 1: Coherencia del Proyecto](#dominio-1-coherencia-del-proyecto)
|
|
22
|
-
- [Dominio 2: Entorno Local](#dominio-2-entorno-local)
|
|
23
|
-
- [Dominio 3: Salud del Repositorio](#dominio-3-salud-del-repositorio)
|
|
24
|
-
- [Dominio 4: Entorno de Despliegue](#dominio-4-entorno-de-despliegue)
|
|
25
|
-
- [Dominio 5: Integración de Servicios](#dominio-5-integración-de-servicios)
|
|
26
|
-
- [Matriz de Verificación IDE/CLI](#matriz-de-verificación-idecli)
|
|
27
|
-
- [Extensión de Verificaciones Personalizadas](#extensión-de-verificaciones-personalizadas)
|
|
28
|
-
- [Consideraciones de Rendimiento](#consideraciones-de-rendimiento)
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Descripción General
|
|
33
|
-
|
|
34
|
-
El Sistema de Verificación de Salud (HCS) realiza verificaciones diagnósticas en 5 dominios, totalizando más de 33 verificaciones individuales. Cada verificación tiene:
|
|
35
|
-
|
|
36
|
-
- **ID Único:** Para seguimiento y reportes
|
|
37
|
-
- **Severidad:** CRITICAL, HIGH, MEDIUM, LOW, INFO
|
|
38
|
-
- **Nivel de Auto-reparación:** 1 (silencioso), 2 (con confirmación), 3 (guía manual), N/A
|
|
39
|
-
- **Modo:** quick (solo verificaciones rápidas), full (todas las verificaciones)
|
|
40
|
-
- **Duración Objetivo:** Tiempo de ejecución esperado
|
|
41
|
-
|
|
42
|
-
### Resumen de Conteo de Verificaciones
|
|
43
|
-
|
|
44
|
-
| Dominio | Total Verificaciones | Modo Rápido | Modo Completo |
|
|
45
|
-
| ------------------------ | -------------------- | ----------- | ------------- |
|
|
46
|
-
| Coherencia del Proyecto | 8 | 4 | 8 |
|
|
47
|
-
| Entorno Local | 8 | 5 | 8 |
|
|
48
|
-
| Salud del Repositorio | 8 | 3 | 8 |
|
|
49
|
-
| Entorno de Despliegue | 5 | 2 | 5 |
|
|
50
|
-
| Integración de Servicios | 4 | 4 | 4 |
|
|
51
|
-
| **Total** | **33** | **18** | **33** |
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## Arquitectura de Verificaciones
|
|
56
|
-
|
|
57
|
-
### Decisión de Arquitectura: Patrón Híbrido
|
|
58
|
-
|
|
59
|
-
Basado en investigación de la industria, HCS usa una **arquitectura híbrida** combinando:
|
|
60
|
-
|
|
61
|
-
1. **Verificaciones basadas en código** para funcionalidad core (rendimiento, lógica compleja)
|
|
62
|
-
2. **Verificaciones basadas en YAML** para extensibilidad (verificaciones personalizadas, específicas del proyecto)
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
66
|
-
│ Motor de Health Check │
|
|
67
|
-
├─────────────────────────────────────────────────────────────┤
|
|
68
|
-
│ ┌─────────────────────┐ ┌─────────────────────┐ │
|
|
69
|
-
│ │ Checks Core (JS) │ │ Checks Custom (YAML) │ │
|
|
70
|
-
│ │ │ │ │ │
|
|
71
|
-
│ │ • Coherencia Proy. │ │ • Específicos proy. │ │
|
|
72
|
-
│ │ • Entorno Local │ │ • Convenciones equipo│ │
|
|
73
|
-
│ │ • Salud Repositorio │ │ • Tests integración │ │
|
|
74
|
-
│ └──────────┬───────────┘ └───────────┬───────────┘ │
|
|
75
|
-
│ │ │ │
|
|
76
|
-
│ └────────────┬───────────────┘ │
|
|
77
|
-
│ ▼ │
|
|
78
|
-
│ ┌───────────────────────────────────────────────────────┐ │
|
|
79
|
-
│ │ Check Runner │ │
|
|
80
|
-
│ │ • Ejecución paralela • Caché │ │
|
|
81
|
-
│ │ • Manejo de timeout • Agregación de resultados │ │
|
|
82
|
-
│ └───────────────────────────────────────────────────────┘ │
|
|
83
|
-
│ │ │
|
|
84
|
-
│ ▼ │
|
|
85
|
-
│ ┌───────────────────────────────────────────────────────┐ │
|
|
86
|
-
│ │ Auto-reparación │ │
|
|
87
|
-
│ │ Nivel 1 → Auto Nivel 2 → Confirmar Nivel 3 → Guía│ │
|
|
88
|
-
│ └───────────────────────────────────────────────────────┘ │
|
|
89
|
-
└─────────────────────────────────────────────────────────────┘
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Interfaz de Verificación
|
|
93
|
-
|
|
94
|
-
```javascript
|
|
95
|
-
// Interfaz core de verificación (JavaScript)
|
|
96
|
-
class BaseCheck {
|
|
97
|
-
constructor(options) {
|
|
98
|
-
this.id = options.id; // ej., "PC-001"
|
|
99
|
-
this.name = options.name; // Nombre legible
|
|
100
|
-
this.domain = options.domain; // project | local | repo | deploy | services
|
|
101
|
-
this.severity = options.severity; // CRITICAL | HIGH | MEDIUM | LOW | INFO
|
|
102
|
-
this.tier = options.tier; // 1 | 2 | 3 | null
|
|
103
|
-
this.mode = options.mode; // quick | full
|
|
104
|
-
this.timeout = options.timeout || 5000; // ms
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Sobrescribir en subclase
|
|
108
|
-
async check(context) {
|
|
109
|
-
// Retorna { passed: boolean, message: string, details?: any }
|
|
110
|
-
throw new Error('No implementado');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Opcional: lógica de reparación
|
|
114
|
-
async heal(context) {
|
|
115
|
-
return { healed: false, message: 'Sin auto-corrección disponible' };
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
```yaml
|
|
121
|
-
# Definición de verificación personalizada (YAML)
|
|
122
|
-
id: CUSTOM-001
|
|
123
|
-
name: Verificación de convenciones de codificación del equipo
|
|
124
|
-
domain: project
|
|
125
|
-
severity: LOW
|
|
126
|
-
tier: 3
|
|
127
|
-
mode: full
|
|
128
|
-
timeout: 3000
|
|
129
|
-
|
|
130
|
-
check:
|
|
131
|
-
type: file-pattern
|
|
132
|
-
pattern: 'src/**/*.ts'
|
|
133
|
-
rule: no-console-log
|
|
134
|
-
message: 'Declaraciones console.log encontradas en código de producción'
|
|
135
|
-
|
|
136
|
-
heal:
|
|
137
|
-
type: manual-guide
|
|
138
|
-
steps:
|
|
139
|
-
- 'Eliminar declaraciones console.log o usar logging apropiado'
|
|
140
|
-
- 'Ejecutar: eslint --fix src/'
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## Dominio 1: Coherencia del Proyecto
|
|
146
|
-
|
|
147
|
-
**Propósito:** Verificar que los archivos del framework SINAPSE están correctamente configurados y son consistentes.
|
|
148
|
-
|
|
149
|
-
### Verificaciones
|
|
150
|
-
|
|
151
|
-
| ID | Nombre | Severidad | Nivel | Modo | Timeout | Descripción |
|
|
152
|
-
| ------ | --------------------------- | --------- | ----- | ----- | ------- | --------------------------------------------------- |
|
|
153
|
-
| PC-001 | Config existe | CRITICAL | 1 | quick | 100ms | `.sinapse/config.yaml` existe y es YAML válido |
|
|
154
|
-
| PC-002 | Referencias agentes válidas | HIGH | 3 | full | 2s | Tareas referencian agentes existentes |
|
|
155
|
-
| PC-003 | Estándares codificación | MEDIUM | 2 | full | 100ms | `docs/framework/coding-standards.md` existe |
|
|
156
|
-
| PC-004 | Tech stack existe | MEDIUM | 2 | full | 100ms | `docs/framework/tech-stack.md` existe |
|
|
157
|
-
| PC-005 | Source tree existe | MEDIUM | 2 | full | 100ms | `docs/framework/source-tree.md` existe |
|
|
158
|
-
| PC-006 | Sin archivos huérfanos | LOW | 3 | full | 5s | Todos archivos en `.sinapse-ai/` están referenciados |
|
|
159
|
-
| PC-007 | Manifiestos válidos | HIGH | 3 | quick | 1s | Todos los manifiestos YAML se parsean correctamente |
|
|
160
|
-
| PC-008 | Rutas plantillas válidas | MEDIUM | 3 | full | 2s | Plantillas referencian archivos existentes |
|
|
161
|
-
|
|
162
|
-
### Detalles de Implementación
|
|
163
|
-
|
|
164
|
-
```javascript
|
|
165
|
-
// PC-001: Config existe
|
|
166
|
-
class ConfigExistsCheck extends BaseCheck {
|
|
167
|
-
constructor() {
|
|
168
|
-
super({
|
|
169
|
-
id: 'PC-001',
|
|
170
|
-
name: 'Config existe',
|
|
171
|
-
domain: 'project',
|
|
172
|
-
severity: 'CRITICAL',
|
|
173
|
-
tier: 1,
|
|
174
|
-
mode: 'quick',
|
|
175
|
-
timeout: 100,
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
async check(context) {
|
|
180
|
-
const configPath = path.join(context.projectRoot, '.sinapse', 'config.yaml');
|
|
181
|
-
|
|
182
|
-
if (!(await fs.pathExists(configPath))) {
|
|
183
|
-
return {
|
|
184
|
-
passed: false,
|
|
185
|
-
message: '.sinapse/config.yaml no encontrado',
|
|
186
|
-
autoFixAvailable: true,
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
try {
|
|
191
|
-
const content = await fs.readFile(configPath, 'utf8');
|
|
192
|
-
yaml.parse(content);
|
|
193
|
-
return { passed: true, message: 'Archivo de config válido' };
|
|
194
|
-
} catch (error) {
|
|
195
|
-
return {
|
|
196
|
-
passed: false,
|
|
197
|
-
message: `YAML inválido: ${error.message}`,
|
|
198
|
-
autoFixAvailable: true,
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
async heal(context) {
|
|
204
|
-
const templatePath = '.sinapse-ai/infrastructure/templates/core-config/config-template.yaml';
|
|
205
|
-
const configPath = path.join(context.projectRoot, '.sinapse', 'config.yaml');
|
|
206
|
-
|
|
207
|
-
await fs.ensureDir(path.dirname(configPath));
|
|
208
|
-
await fs.copy(templatePath, configPath);
|
|
209
|
-
|
|
210
|
-
return { healed: true, message: 'Config recreado desde plantilla' };
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## Dominio 2: Entorno Local
|
|
218
|
-
|
|
219
|
-
**Propósito:** Verificar que el entorno de desarrollo está correctamente configurado.
|
|
220
|
-
|
|
221
|
-
### Verificaciones
|
|
222
|
-
|
|
223
|
-
| ID | Nombre | Severidad | Nivel | Modo | Timeout | Descripción |
|
|
224
|
-
| ------ | ----------------------- | --------- | ----- | ----- | ------- | ----------------------------------------- |
|
|
225
|
-
| LE-001 | Versión Node.js | CRITICAL | 3 | quick | 500ms | Node.js 18+ instalado |
|
|
226
|
-
| LE-002 | Gestor de paquetes | CRITICAL | 3 | quick | 500ms | npm/yarn/pnpm disponible |
|
|
227
|
-
| LE-003 | Git configurado | CRITICAL | 3 | quick | 500ms | Git instalado con config de usuario |
|
|
228
|
-
| LE-004 | GitHub CLI auth | HIGH | 3 | full | 2s | `gh auth status` pasa |
|
|
229
|
-
| LE-005 | MCPs respondiendo | HIGH | 1 | quick | 5s | Servidores MCP saludables |
|
|
230
|
-
| LE-006 | CLAUDE.md válido | MEDIUM | 2 | quick | 500ms | Secciones requeridas presentes |
|
|
231
|
-
| LE-007 | Reglas IDE configuradas | LOW | 2 | full | 1s | Reglas VS Code/Cursor existen |
|
|
232
|
-
| LE-008 | Variables entorno set | HIGH | 3 | full | 500ms | Variables de entorno requeridas definidas |
|
|
233
|
-
|
|
234
|
-
### Detalles de Implementación
|
|
235
|
-
|
|
236
|
-
```javascript
|
|
237
|
-
// LE-001: Verificación versión Node.js
|
|
238
|
-
class NodeVersionCheck extends BaseCheck {
|
|
239
|
-
constructor() {
|
|
240
|
-
super({
|
|
241
|
-
id: 'LE-001',
|
|
242
|
-
name: 'Versión Node.js',
|
|
243
|
-
domain: 'local',
|
|
244
|
-
severity: 'CRITICAL',
|
|
245
|
-
tier: 3,
|
|
246
|
-
mode: 'quick',
|
|
247
|
-
timeout: 500,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
async check(context) {
|
|
252
|
-
try {
|
|
253
|
-
const { stdout } = await execa('node', ['--version']);
|
|
254
|
-
const version = stdout.trim().replace('v', '');
|
|
255
|
-
const major = parseInt(version.split('.')[0], 10);
|
|
256
|
-
|
|
257
|
-
if (major >= 18) {
|
|
258
|
-
return {
|
|
259
|
-
passed: true,
|
|
260
|
-
message: `Node.js ${version} instalado`,
|
|
261
|
-
details: { version, major },
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
return {
|
|
266
|
-
passed: false,
|
|
267
|
-
message: `Node.js ${version} está por debajo del mínimo (18.0.0)`,
|
|
268
|
-
guide: {
|
|
269
|
-
title: 'Actualizar Node.js',
|
|
270
|
-
steps: [
|
|
271
|
-
'Visitar https://nodejs.org/en/download/',
|
|
272
|
-
'Descargar Node.js 18 LTS o posterior',
|
|
273
|
-
'Ejecutar el instalador',
|
|
274
|
-
'Reiniciar tu terminal',
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
};
|
|
278
|
-
} catch (error) {
|
|
279
|
-
return {
|
|
280
|
-
passed: false,
|
|
281
|
-
message: 'Node.js no encontrado',
|
|
282
|
-
guide: {
|
|
283
|
-
title: 'Instalar Node.js',
|
|
284
|
-
steps: [
|
|
285
|
-
'Visitar https://nodejs.org/en/download/',
|
|
286
|
-
'Descargar Node.js 18 LTS',
|
|
287
|
-
'Ejecutar el instalador',
|
|
288
|
-
'Verificar con: node --version',
|
|
289
|
-
],
|
|
290
|
-
},
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// LE-005: Verificación de salud MCP
|
|
297
|
-
class McpHealthCheck extends BaseCheck {
|
|
298
|
-
constructor() {
|
|
299
|
-
super({
|
|
300
|
-
id: 'LE-005',
|
|
301
|
-
name: 'MCPs respondiendo',
|
|
302
|
-
domain: 'local',
|
|
303
|
-
severity: 'HIGH',
|
|
304
|
-
tier: 1,
|
|
305
|
-
mode: 'quick',
|
|
306
|
-
timeout: 5000,
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
async check(context) {
|
|
311
|
-
const mcpConfig = await this.loadMcpConfig();
|
|
312
|
-
const results = [];
|
|
313
|
-
|
|
314
|
-
for (const [name, config] of Object.entries(mcpConfig.mcpServers || {})) {
|
|
315
|
-
try {
|
|
316
|
-
const healthy = await this.pingMcp(name, config);
|
|
317
|
-
results.push({ name, healthy, error: null });
|
|
318
|
-
} catch (error) {
|
|
319
|
-
results.push({ name, healthy: false, error: error.message });
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
const unhealthy = results.filter((r) => !r.healthy);
|
|
324
|
-
|
|
325
|
-
if (unhealthy.length === 0) {
|
|
326
|
-
return {
|
|
327
|
-
passed: true,
|
|
328
|
-
message: `Todos los ${results.length} MCPs saludables`,
|
|
329
|
-
details: { mcps: results },
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
return {
|
|
334
|
-
passed: false,
|
|
335
|
-
message: `${unhealthy.length}/${results.length} MCPs no saludables`,
|
|
336
|
-
details: { mcps: results },
|
|
337
|
-
autoFixAvailable: true,
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
async heal(context) {
|
|
342
|
-
// Intentar reiniciar MCPs no saludables
|
|
343
|
-
const unhealthy = context.details.mcps.filter((m) => !m.healthy);
|
|
344
|
-
|
|
345
|
-
for (const mcp of unhealthy) {
|
|
346
|
-
try {
|
|
347
|
-
await this.restartMcp(mcp.name);
|
|
348
|
-
console.log(` Reiniciado: ${mcp.name}`);
|
|
349
|
-
} catch (error) {
|
|
350
|
-
console.error(` Falló reinicio de ${mcp.name}: ${error.message}`);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
return { healed: true, message: 'MCPs no saludables reiniciados' };
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
## Dominio 3: Salud del Repositorio
|
|
362
|
-
|
|
363
|
-
**Propósito:** Verificar la salud del repositorio Git e integración con GitHub.
|
|
364
|
-
|
|
365
|
-
### Verificaciones
|
|
366
|
-
|
|
367
|
-
| ID | Nombre | Severidad | Nivel | Modo | Timeout | Descripción |
|
|
368
|
-
| ------ | ---------------------- | --------- | ----- | ----- | ------- | ------------------------------------------ |
|
|
369
|
-
| RH-001 | Workflows válidos | HIGH | 3 | full | 2s | GitHub Actions YAML es válido |
|
|
370
|
-
| RH-002 | Sin workflows fallidos | MEDIUM | 3 | full | 5s | Últimos 10 workflows pasaron |
|
|
371
|
-
| RH-003 | Protección de rama | MEDIUM | 3 | full | 2s | Rama main está protegida |
|
|
372
|
-
| RH-004 | Secretos configurados | HIGH | 3 | full | 2s | Secretos requeridos existen |
|
|
373
|
-
| RH-005 | Sin PRs obsoletos | LOW | 3 | full | 3s | Sin PRs mayores a 30 días |
|
|
374
|
-
| RH-006 | Dependencias actuales | MEDIUM | 2 | full | 5s | Sin deps obsoletas con problemas seguridad |
|
|
375
|
-
| RH-007 | Sin vulnerabilidades | CRITICAL | 3 | quick | 10s | `npm audit` pasa |
|
|
376
|
-
| RH-008 | Gitignore completo | LOW | 1 | quick | 100ms | Patrones requeridos en .gitignore |
|
|
377
|
-
|
|
378
|
-
### Detalles de Implementación
|
|
379
|
-
|
|
380
|
-
```javascript
|
|
381
|
-
// RH-007: Verificación de vulnerabilidades de seguridad
|
|
382
|
-
class VulnerabilityCheck extends BaseCheck {
|
|
383
|
-
constructor() {
|
|
384
|
-
super({
|
|
385
|
-
id: 'RH-007',
|
|
386
|
-
name: 'Sin vulnerabilidades',
|
|
387
|
-
domain: 'repository',
|
|
388
|
-
severity: 'CRITICAL',
|
|
389
|
-
tier: 3,
|
|
390
|
-
mode: 'quick',
|
|
391
|
-
timeout: 10000,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
async check(context) {
|
|
396
|
-
try {
|
|
397
|
-
const { stdout } = await execa('npm', ['audit', '--json'], {
|
|
398
|
-
cwd: context.projectRoot,
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
const audit = JSON.parse(stdout);
|
|
402
|
-
const vulnerabilities = audit.metadata?.vulnerabilities || {};
|
|
403
|
-
|
|
404
|
-
const critical = vulnerabilities.critical || 0;
|
|
405
|
-
const high = vulnerabilities.high || 0;
|
|
406
|
-
|
|
407
|
-
if (critical === 0 && high === 0) {
|
|
408
|
-
return {
|
|
409
|
-
passed: true,
|
|
410
|
-
message: 'Sin vulnerabilidades críticas o altas',
|
|
411
|
-
details: { vulnerabilities },
|
|
412
|
-
};
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
return {
|
|
416
|
-
passed: false,
|
|
417
|
-
message: `Encontradas ${critical} críticas, ${high} altas vulnerabilidades`,
|
|
418
|
-
details: { vulnerabilities, audit },
|
|
419
|
-
guide: {
|
|
420
|
-
title: 'Vulnerabilidades de Seguridad Detectadas',
|
|
421
|
-
steps: [
|
|
422
|
-
'Ejecutar: npm audit para detalles',
|
|
423
|
-
'Ejecutar: npm audit fix para correcciones automáticas',
|
|
424
|
-
'Para cambios incompatibles: npm audit fix --force (usar con precaución)',
|
|
425
|
-
'Revisar detalles CVE antes de actualizar',
|
|
426
|
-
],
|
|
427
|
-
urgency: critical > 0 ? 'INMEDIATA' : 'ALTA',
|
|
428
|
-
},
|
|
429
|
-
};
|
|
430
|
-
} catch (error) {
|
|
431
|
-
return {
|
|
432
|
-
passed: false,
|
|
433
|
-
message: `Audit falló: ${error.message}`,
|
|
434
|
-
details: { error: error.message },
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
---
|
|
442
|
-
|
|
443
|
-
## Dominio 4: Entorno de Despliegue
|
|
444
|
-
|
|
445
|
-
**Propósito:** Verificar la configuración de despliegue y salud del entorno externo.
|
|
446
|
-
|
|
447
|
-
### Verificaciones
|
|
448
|
-
|
|
449
|
-
| ID | Nombre | Severidad | Nivel | Modo | Timeout | Descripción |
|
|
450
|
-
| ------ | -------------------- | --------- | ----- | ----- | ------- | ------------------------------------- |
|
|
451
|
-
| DE-001 | Modo despliegue | INFO | N/A | quick | 100ms | Detectar local/staging/prod |
|
|
452
|
-
| DE-002 | Vars entorno por env | HIGH | 3 | full | 500ms | Variables específicas de entorno set |
|
|
453
|
-
| DE-003 | Conexión remota | HIGH | 3 | full | 5s | Puede alcanzar objetivo de despliegue |
|
|
454
|
-
| DE-004 | Certificados SSL | CRITICAL | 3 | full | 5s | Certificados válidos y no expirando |
|
|
455
|
-
| DE-005 | Endpoints servicio | HIGH | 3 | full | 10s | Endpoints API respondiendo |
|
|
456
|
-
|
|
457
|
-
### Detalles de Implementación
|
|
458
|
-
|
|
459
|
-
```javascript
|
|
460
|
-
// DE-004: Verificación de certificado SSL
|
|
461
|
-
class SslCertificateCheck extends BaseCheck {
|
|
462
|
-
constructor() {
|
|
463
|
-
super({
|
|
464
|
-
id: 'DE-004',
|
|
465
|
-
name: 'Certificados SSL',
|
|
466
|
-
domain: 'deployment',
|
|
467
|
-
severity: 'CRITICAL',
|
|
468
|
-
tier: 3,
|
|
469
|
-
mode: 'full',
|
|
470
|
-
timeout: 5000,
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
async check(context) {
|
|
475
|
-
const endpoints = context.deploymentConfig?.endpoints || [];
|
|
476
|
-
|
|
477
|
-
if (endpoints.length === 0) {
|
|
478
|
-
return {
|
|
479
|
-
passed: true,
|
|
480
|
-
message: 'Sin endpoints HTTPS configurados',
|
|
481
|
-
details: { skipped: true },
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
const results = [];
|
|
486
|
-
const warningDays = 30; // Advertir si expira en 30 días
|
|
487
|
-
|
|
488
|
-
for (const endpoint of endpoints) {
|
|
489
|
-
if (!endpoint.startsWith('https://')) continue;
|
|
490
|
-
|
|
491
|
-
try {
|
|
492
|
-
const certInfo = await this.checkCertificate(endpoint);
|
|
493
|
-
const daysUntilExpiry = Math.floor(
|
|
494
|
-
(new Date(certInfo.validTo) - new Date()) / (1000 * 60 * 60 * 24)
|
|
495
|
-
);
|
|
496
|
-
|
|
497
|
-
results.push({
|
|
498
|
-
endpoint,
|
|
499
|
-
valid: certInfo.valid,
|
|
500
|
-
validTo: certInfo.validTo,
|
|
501
|
-
daysUntilExpiry,
|
|
502
|
-
warning: daysUntilExpiry <= warningDays,
|
|
503
|
-
});
|
|
504
|
-
} catch (error) {
|
|
505
|
-
results.push({
|
|
506
|
-
endpoint,
|
|
507
|
-
valid: false,
|
|
508
|
-
error: error.message,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
const invalid = results.filter((r) => !r.valid);
|
|
514
|
-
const expiring = results.filter((r) => r.warning && r.valid);
|
|
515
|
-
|
|
516
|
-
if (invalid.length > 0) {
|
|
517
|
-
return {
|
|
518
|
-
passed: false,
|
|
519
|
-
message: `${invalid.length} certificado(s) SSL inválido(s)`,
|
|
520
|
-
details: { results },
|
|
521
|
-
guide: {
|
|
522
|
-
title: 'Certificados SSL Inválidos',
|
|
523
|
-
steps: [
|
|
524
|
-
'Verificar configuración del certificado',
|
|
525
|
-
'Verificar propiedad del dominio',
|
|
526
|
-
'Contactar equipo TI/DevOps',
|
|
527
|
-
],
|
|
528
|
-
urgency: 'INMEDIATA',
|
|
529
|
-
},
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
if (expiring.length > 0) {
|
|
534
|
-
return {
|
|
535
|
-
passed: false,
|
|
536
|
-
message: `${expiring.length} certificado(s) expirando pronto`,
|
|
537
|
-
details: { results },
|
|
538
|
-
guide: {
|
|
539
|
-
title: 'Advertencia de Expiración de Certificado SSL',
|
|
540
|
-
steps: results
|
|
541
|
-
.filter((r) => r.warning)
|
|
542
|
-
.map((r) => `${r.endpoint}: Expira en ${r.daysUntilExpiry} días`),
|
|
543
|
-
urgency: 'ALTA',
|
|
544
|
-
},
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
return {
|
|
549
|
-
passed: true,
|
|
550
|
-
message: 'Todos los certificados SSL válidos',
|
|
551
|
-
details: { results },
|
|
552
|
-
};
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
```
|
|
556
|
-
|
|
557
|
-
---
|
|
558
|
-
|
|
559
|
-
## Dominio 5: Integración de Servicios
|
|
560
|
-
|
|
561
|
-
**Propósito:** Verificar que las integraciones de servicios externos funcionan.
|
|
562
|
-
|
|
563
|
-
### Verificaciones
|
|
564
|
-
|
|
565
|
-
| ID | Nombre | Severidad | Nivel | Modo | Timeout | Descripción |
|
|
566
|
-
| ------ | ----------------- | --------- | ----- | ----- | ------- | ----------------------------------------- |
|
|
567
|
-
| SI-001 | Gestor de backlog | HIGH | 1 | quick | 3s | ClickUp/GitHub Issues accesible |
|
|
568
|
-
| SI-002 | GitHub API | HIGH | 1 | quick | 3s | GitHub API respondiendo |
|
|
569
|
-
| SI-003 | Servidores MCP | MEDIUM | 1 | quick | 5s | Servidores MCP operacionales |
|
|
570
|
-
| SI-004 | Capa de memoria | LOW | 1 | quick | 2s | Estado de capa de memoria (si habilitado) |
|
|
571
|
-
|
|
572
|
-
### Detalles de Implementación
|
|
573
|
-
|
|
574
|
-
```javascript
|
|
575
|
-
// SI-002: Verificación GitHub API
|
|
576
|
-
class GitHubApiCheck extends BaseCheck {
|
|
577
|
-
constructor() {
|
|
578
|
-
super({
|
|
579
|
-
id: 'SI-002',
|
|
580
|
-
name: 'GitHub API',
|
|
581
|
-
domain: 'services',
|
|
582
|
-
severity: 'HIGH',
|
|
583
|
-
tier: 1,
|
|
584
|
-
mode: 'quick',
|
|
585
|
-
timeout: 3000,
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
async check(context) {
|
|
590
|
-
try {
|
|
591
|
-
const { stdout } = await execa('gh', ['api', 'user', '--jq', '.login'], {
|
|
592
|
-
timeout: 3000,
|
|
593
|
-
});
|
|
594
|
-
|
|
595
|
-
return {
|
|
596
|
-
passed: true,
|
|
597
|
-
message: `GitHub autenticado como ${stdout.trim()}`,
|
|
598
|
-
details: { user: stdout.trim() },
|
|
599
|
-
};
|
|
600
|
-
} catch (error) {
|
|
601
|
-
if (error.message.includes('not logged in')) {
|
|
602
|
-
return {
|
|
603
|
-
passed: false,
|
|
604
|
-
message: 'GitHub CLI no autenticado',
|
|
605
|
-
guide: {
|
|
606
|
-
title: 'Autenticar GitHub CLI',
|
|
607
|
-
steps: [
|
|
608
|
-
'Ejecutar: gh auth login',
|
|
609
|
-
'Seguir los prompts para autenticarse',
|
|
610
|
-
'Verificar con: gh auth status',
|
|
611
|
-
],
|
|
612
|
-
},
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
return {
|
|
617
|
-
passed: false,
|
|
618
|
-
message: `Error GitHub API: ${error.message}`,
|
|
619
|
-
autoFixAvailable: true,
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
async heal(context) {
|
|
625
|
-
// Intentar refrescar auth
|
|
626
|
-
try {
|
|
627
|
-
await execa('gh', ['auth', 'refresh']);
|
|
628
|
-
return { healed: true, message: 'Autenticación GitHub refrescada' };
|
|
629
|
-
} catch (error) {
|
|
630
|
-
return { healed: false, message: 'Re-autenticación manual requerida' };
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
```
|
|
635
|
-
|
|
636
|
-
---
|
|
637
|
-
|
|
638
|
-
## Matriz de Verificación IDE/CLI
|
|
639
|
-
|
|
640
|
-
### Métodos de Detección
|
|
641
|
-
|
|
642
|
-
| IDE/CLI | Archivo Config | Método Detección | Validación |
|
|
643
|
-
| --------------- | ---------------------------- | ------------------- | --------------------- |
|
|
644
|
-
| **VS Code** | `.vscode/settings.json` | Archivo existe | JSON schema |
|
|
645
|
-
| **Cursor** | `.cursorrules` | Archivo existe | Patrones de contenido |
|
|
646
|
-
| **Claude Code** | `.claude/CLAUDE.md` | Archivo existe | Secciones requeridas |
|
|
647
|
-
| **MCPs** | `.claude.json` / `.mcp.json` | Archivo existe | Ping de salud MCP |
|
|
648
|
-
| **Git** | `.gitconfig` | `git config --list` | Settings requeridos |
|
|
649
|
-
| **GitHub CLI** | N/A | `gh auth status` | Verificación auth |
|
|
650
|
-
| **Node.js** | N/A | `node --version` | Versión >= 18 |
|
|
651
|
-
| **npm** | `package.json` | `npm --version` | Versión >= 9 |
|
|
652
|
-
|
|
653
|
-
### Validación CLAUDE.md
|
|
654
|
-
|
|
655
|
-
```javascript
|
|
656
|
-
// Secciones requeridas en CLAUDE.md
|
|
657
|
-
const requiredSections = [
|
|
658
|
-
'Project Overview', // o 'SINAPSE-FULLSTACK Development Rules'
|
|
659
|
-
'Agent System', // o 'Workflow Execution'
|
|
660
|
-
'Git Conventions', // o 'Best Practices'
|
|
661
|
-
];
|
|
662
|
-
|
|
663
|
-
async function validateClaudeMd(content) {
|
|
664
|
-
const missing = [];
|
|
665
|
-
|
|
666
|
-
for (const section of requiredSections) {
|
|
667
|
-
const pattern = new RegExp(`^#+\\s*${section}`, 'im');
|
|
668
|
-
if (!pattern.test(content)) {
|
|
669
|
-
// Verificar nombres alternativos
|
|
670
|
-
const altPattern = new RegExp(`^#+\\s*(${getAlternatives(section).join('|')})`, 'im');
|
|
671
|
-
if (!altPattern.test(content)) {
|
|
672
|
-
missing.push(section);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
return {
|
|
678
|
-
valid: missing.length === 0,
|
|
679
|
-
missing,
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
```
|
|
683
|
-
|
|
684
|
-
### Verificaciones de Configuración IDE
|
|
685
|
-
|
|
686
|
-
```yaml
|
|
687
|
-
# .sinapse-ai/health-check/checks/ide-checks.yaml
|
|
688
|
-
checks:
|
|
689
|
-
- id: IDE-VSCODE
|
|
690
|
-
name: 'Configuración VS Code'
|
|
691
|
-
detection:
|
|
692
|
-
- file: '.vscode/settings.json'
|
|
693
|
-
- file: '.vscode/extensions.json'
|
|
694
|
-
validation:
|
|
695
|
-
type: json-schema
|
|
696
|
-
schema: '.sinapse-ai/schemas/vscode-settings.json'
|
|
697
|
-
autoFix:
|
|
698
|
-
tier: 2
|
|
699
|
-
action: 'create-from-template'
|
|
700
|
-
template: '.sinapse-ai/infrastructure/templates/ide/vscode-settings.json'
|
|
701
|
-
|
|
702
|
-
- id: IDE-CURSOR
|
|
703
|
-
name: 'Configuración Cursor'
|
|
704
|
-
detection:
|
|
705
|
-
- file: '.cursorrules'
|
|
706
|
-
- directory: '.cursor/rules/'
|
|
707
|
-
validation:
|
|
708
|
-
type: content-pattern
|
|
709
|
-
patterns:
|
|
710
|
-
- 'You are'
|
|
711
|
-
- 'SINAPSE'
|
|
712
|
-
autoFix:
|
|
713
|
-
tier: 2
|
|
714
|
-
action: 'create-from-template'
|
|
715
|
-
|
|
716
|
-
- id: IDE-CLAUDE
|
|
717
|
-
name: 'Configuración Claude Code'
|
|
718
|
-
detection:
|
|
719
|
-
- file: '.claude/CLAUDE.md'
|
|
720
|
-
validation:
|
|
721
|
-
type: section-check
|
|
722
|
-
sections: ['Agent System', 'Git Conventions']
|
|
723
|
-
autoFix:
|
|
724
|
-
tier: 2
|
|
725
|
-
action: 'merge-template'
|
|
726
|
-
```
|
|
727
|
-
|
|
728
|
-
---
|
|
729
|
-
|
|
730
|
-
## Extensión de Verificaciones Personalizadas
|
|
731
|
-
|
|
732
|
-
### Verificaciones Personalizadas Basadas en YAML
|
|
733
|
-
|
|
734
|
-
Los usuarios pueden definir verificaciones específicas del proyecto en `.sinapse/custom-checks.yaml`:
|
|
735
|
-
|
|
736
|
-
```yaml
|
|
737
|
-
# .sinapse/custom-checks.yaml
|
|
738
|
-
version: 1.0
|
|
739
|
-
|
|
740
|
-
checks:
|
|
741
|
-
# Verificación de existencia de archivo
|
|
742
|
-
- id: CUSTOM-001
|
|
743
|
-
name: 'README existe'
|
|
744
|
-
type: file-exists
|
|
745
|
-
path: 'README.md'
|
|
746
|
-
severity: MEDIUM
|
|
747
|
-
tier: 2
|
|
748
|
-
mode: quick
|
|
749
|
-
autoFix:
|
|
750
|
-
action: create-from-template
|
|
751
|
-
template: '.sinapse-ai/infrastructure/templates/project-docs/readme-template.md'
|
|
752
|
-
|
|
753
|
-
# Verificación de patrón de contenido
|
|
754
|
-
- id: CUSTOM-002
|
|
755
|
-
name: 'Sin comentarios TODO en producción'
|
|
756
|
-
type: content-pattern
|
|
757
|
-
glob: 'src/**/*.{js,ts}'
|
|
758
|
-
pattern: 'TODO|FIXME|HACK'
|
|
759
|
-
negate: true # Falla si se encuentra patrón
|
|
760
|
-
severity: LOW
|
|
761
|
-
tier: 3
|
|
762
|
-
mode: full
|
|
763
|
-
message: 'Encontrados comentarios TODO/FIXME - considerar resolver antes del release'
|
|
764
|
-
|
|
765
|
-
# Verificación de comando
|
|
766
|
-
- id: CUSTOM-003
|
|
767
|
-
name: 'TypeScript compila'
|
|
768
|
-
type: command
|
|
769
|
-
command: 'npm run typecheck'
|
|
770
|
-
expectedExitCode: 0
|
|
771
|
-
severity: HIGH
|
|
772
|
-
tier: 3
|
|
773
|
-
mode: full
|
|
774
|
-
timeout: 30000
|
|
775
|
-
|
|
776
|
-
# Verificación de salud API
|
|
777
|
-
- id: CUSTOM-004
|
|
778
|
-
name: 'API interna alcanzable'
|
|
779
|
-
type: http-health
|
|
780
|
-
url: 'https://api.internal.example.com/health'
|
|
781
|
-
method: GET
|
|
782
|
-
expectedStatus: 200
|
|
783
|
-
timeout: 5000
|
|
784
|
-
severity: HIGH
|
|
785
|
-
tier: 3
|
|
786
|
-
mode: full
|
|
787
|
-
|
|
788
|
-
# Validación JSON schema
|
|
789
|
-
- id: CUSTOM-005
|
|
790
|
-
name: 'Package.json válido'
|
|
791
|
-
type: json-schema
|
|
792
|
-
path: 'package.json'
|
|
793
|
-
schema: '.sinapse-ai/schemas/package-json.json'
|
|
794
|
-
severity: CRITICAL
|
|
795
|
-
tier: 3
|
|
796
|
-
mode: quick
|
|
797
|
-
```
|
|
798
|
-
|
|
799
|
-
### Tipos de Verificación Personalizada
|
|
800
|
-
|
|
801
|
-
| Tipo | Descripción | Parámetros |
|
|
802
|
-
| ----------------- | -------------------------------------- | --------------------------------- |
|
|
803
|
-
| `file-exists` | Verificar si archivo existe | `path` |
|
|
804
|
-
| `dir-exists` | Verificar si directorio existe | `path` |
|
|
805
|
-
| `content-pattern` | Buscar patrón en archivos | `glob`, `pattern`, `negate` |
|
|
806
|
-
| `command` | Ejecutar comando y verificar exit code | `command`, `expectedExitCode` |
|
|
807
|
-
| `http-health` | Verificación de salud endpoint HTTP | `url`, `method`, `expectedStatus` |
|
|
808
|
-
| `json-schema` | Validar JSON contra schema | `path`, `schema` |
|
|
809
|
-
| `yaml-valid` | Verificar que YAML es parseable | `path` |
|
|
810
|
-
| `env-var` | Verificar variable de entorno | `name`, `pattern` |
|
|
811
|
-
|
|
812
|
-
---
|
|
813
|
-
|
|
814
|
-
## Consideraciones de Rendimiento
|
|
815
|
-
|
|
816
|
-
### Orden de Ejecución
|
|
817
|
-
|
|
818
|
-
```javascript
|
|
819
|
-
// Orden de prioridad para verificaciones (estrategia fail-fast)
|
|
820
|
-
const checkPriority = {
|
|
821
|
-
CRITICAL: 1, // Ejecutar primero, detener si falla
|
|
822
|
-
HIGH: 2,
|
|
823
|
-
MEDIUM: 3,
|
|
824
|
-
LOW: 4,
|
|
825
|
-
INFO: 5, // Ejecutar último, nunca falla
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
// Modo rápido ejecuta solo prioridad 1-2
|
|
829
|
-
// Modo completo ejecuta todas las prioridades
|
|
830
|
-
```
|
|
831
|
-
|
|
832
|
-
### Grupos de Ejecución Paralela
|
|
833
|
-
|
|
834
|
-
```javascript
|
|
835
|
-
// Verificaciones que pueden ejecutar en paralelo (sin dependencias)
|
|
836
|
-
const parallelGroups = [
|
|
837
|
-
// Grupo 1: Verificaciones de archivo rápidas
|
|
838
|
-
['PC-001', 'PC-003', 'PC-004', 'PC-005', 'RH-008'],
|
|
839
|
-
|
|
840
|
-
// Grupo 2: Verificaciones de versión
|
|
841
|
-
['LE-001', 'LE-002', 'LE-003'],
|
|
842
|
-
|
|
843
|
-
// Grupo 3: Verificaciones de red (pool compartido)
|
|
844
|
-
['LE-005', 'SI-001', 'SI-002', 'SI-003'],
|
|
845
|
-
|
|
846
|
-
// Grupo 4: Verificaciones costosas (ejecutar último)
|
|
847
|
-
['RH-007', 'PC-002', 'PC-006'],
|
|
848
|
-
];
|
|
849
|
-
```
|
|
850
|
-
|
|
851
|
-
### Estrategia de Caché
|
|
852
|
-
|
|
853
|
-
```javascript
|
|
854
|
-
const checkCache = new Map();
|
|
855
|
-
|
|
856
|
-
// Configuración de caché por tipo de verificación
|
|
857
|
-
const cacheConfig = {
|
|
858
|
-
'file-exists': { ttl: 60000, key: 'path' }, // 1 min
|
|
859
|
-
'content-pattern': { ttl: 300000, key: 'glob+pattern' }, // 5 min
|
|
860
|
-
command: { ttl: 0 }, // Sin caché
|
|
861
|
-
'http-health': { ttl: 30000, key: 'url' }, // 30 seg
|
|
862
|
-
'node-version': { ttl: 3600000 }, // 1 hora
|
|
863
|
-
};
|
|
864
|
-
```
|
|
865
|
-
|
|
866
|
-
### Manejo de Timeout
|
|
867
|
-
|
|
868
|
-
```javascript
|
|
869
|
-
async function runCheckWithTimeout(check, context) {
|
|
870
|
-
const timeoutPromise = new Promise((_, reject) => {
|
|
871
|
-
setTimeout(() => reject(new Error('Verificación expiró')), check.timeout);
|
|
872
|
-
});
|
|
873
|
-
|
|
874
|
-
try {
|
|
875
|
-
const result = await Promise.race([check.check(context), timeoutPromise]);
|
|
876
|
-
return result;
|
|
877
|
-
} catch (error) {
|
|
878
|
-
return {
|
|
879
|
-
passed: false,
|
|
880
|
-
message: `Verificación falló: ${error.message}`,
|
|
881
|
-
timedOut: error.message === 'Verificación expiró',
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
```
|
|
886
|
-
|
|
887
|
-
---
|
|
888
|
-
|
|
889
|
-
## Documentos Relacionados
|
|
890
|
-
|
|
891
|
-
- [ADR: Arquitectura HCS](./adr/adr-hcs-health-check-system.md)
|
|
892
|
-
- [Modos de Ejecución HCS](./hcs-execution-modes.md)
|
|
893
|
-
- [Especificación de Auto-reparación HCS](./hcs-self-healing-spec.md)
|
|
894
|
-
|
|
895
|
-
---
|
|
896
|
-
|
|
897
|
-
_Documento creado como parte de la Historia HCS-1 Investigación_
|