grimoire-framework 1.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 +318 -0
- package/.claude/hooks/README.md +170 -0
- package/.claude/hooks/enforce-architecture-first.py +198 -0
- package/.claude/hooks/install-hooks.sh +43 -0
- package/.claude/hooks/mind-clone-governance.py +192 -0
- package/.claude/hooks/pre-commit-version-check.sh +157 -0
- package/.claude/hooks/precompact-session-digest.js +47 -0
- package/.claude/hooks/read-protection.py +153 -0
- package/.claude/hooks/slug-validation.py +176 -0
- package/.claude/hooks/sql-governance.py +182 -0
- package/.claude/hooks/synapse-engine.js +77 -0
- package/.claude/hooks/write-path-validation.py +196 -0
- package/.claude/rules/mcp-usage.md +177 -0
- package/.grimoire/cli/commands/config/index.js +609 -0
- package/.grimoire/cli/commands/generate/index.js +222 -0
- package/.grimoire/cli/commands/manifest/index.js +47 -0
- package/.grimoire/cli/commands/manifest/regenerate.js +97 -0
- package/.grimoire/cli/commands/manifest/validate.js +66 -0
- package/.grimoire/cli/commands/mcp/add.js +235 -0
- package/.grimoire/cli/commands/mcp/index.js +77 -0
- package/.grimoire/cli/commands/mcp/link.js +218 -0
- package/.grimoire/cli/commands/mcp/setup.js +165 -0
- package/.grimoire/cli/commands/mcp/status.js +184 -0
- package/.grimoire/cli/commands/metrics/cleanup.js +91 -0
- package/.grimoire/cli/commands/metrics/index.js +66 -0
- package/.grimoire/cli/commands/metrics/record.js +154 -0
- package/.grimoire/cli/commands/metrics/seed.js +127 -0
- package/.grimoire/cli/commands/metrics/show.js +209 -0
- package/.grimoire/cli/commands/migrate/analyze.js +355 -0
- package/.grimoire/cli/commands/migrate/backup.js +354 -0
- package/.grimoire/cli/commands/migrate/execute.js +294 -0
- package/.grimoire/cli/commands/migrate/index.js +443 -0
- package/.grimoire/cli/commands/migrate/rollback.js +325 -0
- package/.grimoire/cli/commands/migrate/update-imports.js +398 -0
- package/.grimoire/cli/commands/migrate/validate.js +454 -0
- package/.grimoire/cli/commands/pro/index.js +705 -0
- package/.grimoire/cli/commands/qa/index.js +57 -0
- package/.grimoire/cli/commands/qa/run.js +163 -0
- package/.grimoire/cli/commands/qa/status.js +195 -0
- package/.grimoire/cli/commands/validate/index.js +431 -0
- package/.grimoire/cli/commands/workers/formatters/info-formatter.js +275 -0
- package/.grimoire/cli/commands/workers/formatters/list-table.js +265 -0
- package/.grimoire/cli/commands/workers/formatters/list-tree.js +160 -0
- package/.grimoire/cli/commands/workers/index.js +57 -0
- package/.grimoire/cli/commands/workers/info.js +195 -0
- package/.grimoire/cli/commands/workers/list.js +215 -0
- package/.grimoire/cli/commands/workers/search-filters.js +185 -0
- package/.grimoire/cli/commands/workers/search-keyword.js +310 -0
- package/.grimoire/cli/commands/workers/search-semantic.js +294 -0
- package/.grimoire/cli/commands/workers/search.js +155 -0
- package/.grimoire/cli/commands/workers/utils/pagination.js +102 -0
- package/.grimoire/cli/index.js +150 -0
- package/.grimoire/cli/utils/output-formatter-cli.js +233 -0
- package/.grimoire/cli/utils/score-calculator.js +221 -0
- package/.grimoire/constitution.md +172 -0
- package/.grimoire/core/README.md +231 -0
- package/.grimoire/core/code-intel/code-intel-client.js +280 -0
- package/.grimoire/core/code-intel/code-intel-enricher.js +160 -0
- package/.grimoire/core/code-intel/index.js +137 -0
- package/.grimoire/core/code-intel/providers/code-graph-provider.js +201 -0
- package/.grimoire/core/code-intel/providers/provider-interface.js +108 -0
- package/.grimoire/core/config/config-cache.js +233 -0
- package/.grimoire/core/config/config-loader.js +281 -0
- package/.grimoire/core/config/config-resolver.js +609 -0
- package/.grimoire/core/config/env-interpolator.js +122 -0
- package/.grimoire/core/config/merge-utils.js +101 -0
- package/.grimoire/core/config/migrate-config.js +293 -0
- package/.grimoire/core/config/schemas/framework-config.schema.json +19 -0
- package/.grimoire/core/config/schemas/local-config.schema.json +20 -0
- package/.grimoire/core/config/schemas/project-config.schema.json +32 -0
- package/.grimoire/core/config/schemas/user-config.schema.json +33 -0
- package/.grimoire/core/config/templates/user-config.yaml +24 -0
- package/.grimoire/core/docs/SHARD-TRANSLATION-GUIDE.md +337 -0
- package/.grimoire/core/docs/component-creation-guide.md +459 -0
- package/.grimoire/core/docs/session-update-pattern.md +316 -0
- package/.grimoire/core/docs/template-syntax.md +267 -0
- package/.grimoire/core/docs/troubleshooting-guide.md +626 -0
- package/.grimoire/core/elicitation/agent-elicitation.js +272 -0
- package/.grimoire/core/elicitation/elicitation-engine.js +486 -0
- package/.grimoire/core/elicitation/session-manager.js +322 -0
- package/.grimoire/core/elicitation/task-elicitation.js +281 -0
- package/.grimoire/core/elicitation/workflow-elicitation.js +349 -0
- package/.grimoire/core/events/dashboard-emitter.js +369 -0
- package/.grimoire/core/events/index.js +17 -0
- package/.grimoire/core/events/types.js +52 -0
- package/.grimoire/core/execution/autonomous-build-loop.js +1068 -0
- package/.grimoire/core/execution/build-orchestrator.js +1055 -0
- package/.grimoire/core/execution/build-state-manager.js +1530 -0
- package/.grimoire/core/execution/context-injector.js +537 -0
- package/.grimoire/core/execution/parallel-executor.js +292 -0
- package/.grimoire/core/execution/parallel-monitor.js +429 -0
- package/.grimoire/core/execution/rate-limit-manager.js +314 -0
- package/.grimoire/core/execution/result-aggregator.js +486 -0
- package/.grimoire/core/execution/semantic-merge-engine.js +1736 -0
- package/.grimoire/core/execution/subagent-dispatcher.js +848 -0
- package/.grimoire/core/execution/wave-executor.js +397 -0
- package/.grimoire/core/health-check/base-check.js +224 -0
- package/.grimoire/core/health-check/check-registry.js +253 -0
- package/.grimoire/core/health-check/checks/deployment/build-config.js +111 -0
- package/.grimoire/core/health-check/checks/deployment/ci-config.js +125 -0
- package/.grimoire/core/health-check/checks/deployment/deployment-readiness.js +152 -0
- package/.grimoire/core/health-check/checks/deployment/docker-config.js +122 -0
- package/.grimoire/core/health-check/checks/deployment/env-file.js +111 -0
- package/.grimoire/core/health-check/checks/deployment/index.js +29 -0
- package/.grimoire/core/health-check/checks/index.js +56 -0
- package/.grimoire/core/health-check/checks/local/disk-space.js +214 -0
- package/.grimoire/core/health-check/checks/local/environment-vars.js +136 -0
- package/.grimoire/core/health-check/checks/local/git-install.js +158 -0
- package/.grimoire/core/health-check/checks/local/ide-detection.js +148 -0
- package/.grimoire/core/health-check/checks/local/index.js +35 -0
- package/.grimoire/core/health-check/checks/local/memory.js +138 -0
- package/.grimoire/core/health-check/checks/local/network.js +170 -0
- package/.grimoire/core/health-check/checks/local/npm-install.js +149 -0
- package/.grimoire/core/health-check/checks/local/shell-environment.js +120 -0
- package/.grimoire/core/health-check/checks/project/agent-config.js +167 -0
- package/.grimoire/core/health-check/checks/project/dependencies.js +150 -0
- package/.grimoire/core/health-check/checks/project/framework-config.js +133 -0
- package/.grimoire/core/health-check/checks/project/grimoire-directory.js +143 -0
- package/.grimoire/core/health-check/checks/project/index.js +35 -0
- package/.grimoire/core/health-check/checks/project/node-version.js +163 -0
- package/.grimoire/core/health-check/checks/project/package-json.js +107 -0
- package/.grimoire/core/health-check/checks/project/task-definitions.js +192 -0
- package/.grimoire/core/health-check/checks/project/workflow-dependencies.js +214 -0
- package/.grimoire/core/health-check/checks/repository/branch-protection.js +107 -0
- package/.grimoire/core/health-check/checks/repository/commit-history.js +144 -0
- package/.grimoire/core/health-check/checks/repository/conflicts.js +152 -0
- package/.grimoire/core/health-check/checks/repository/git-repo.js +159 -0
- package/.grimoire/core/health-check/checks/repository/git-status.js +149 -0
- package/.grimoire/core/health-check/checks/repository/gitignore.js +194 -0
- package/.grimoire/core/health-check/checks/repository/index.js +35 -0
- package/.grimoire/core/health-check/checks/repository/large-files.js +183 -0
- package/.grimoire/core/health-check/checks/repository/lockfile-integrity.js +144 -0
- package/.grimoire/core/health-check/checks/services/api-endpoints.js +168 -0
- package/.grimoire/core/health-check/checks/services/claude-code.js +139 -0
- package/.grimoire/core/health-check/checks/services/gemini-cli.js +241 -0
- package/.grimoire/core/health-check/checks/services/github-cli.js +117 -0
- package/.grimoire/core/health-check/checks/services/index.js +29 -0
- package/.grimoire/core/health-check/checks/services/mcp-integration.js +125 -0
- package/.grimoire/core/health-check/engine.js +407 -0
- package/.grimoire/core/health-check/healers/backup-manager.js +340 -0
- package/.grimoire/core/health-check/healers/index.js +330 -0
- package/.grimoire/core/health-check/index.js +370 -0
- package/.grimoire/core/health-check/reporters/console.js +331 -0
- package/.grimoire/core/health-check/reporters/index.js +117 -0
- package/.grimoire/core/health-check/reporters/json.js +301 -0
- package/.grimoire/core/health-check/reporters/markdown.js +323 -0
- package/.grimoire/core/ideation/ideation-engine.js +834 -0
- package/.grimoire/core/ids/README.md +123 -0
- package/.grimoire/core/ids/circuit-breaker.js +156 -0
- package/.grimoire/core/ids/framework-governor.js +567 -0
- package/.grimoire/core/ids/gates/g1-epic-creation.js +101 -0
- package/.grimoire/core/ids/gates/g2-story-creation.js +133 -0
- package/.grimoire/core/ids/gates/g3-story-validation.js +166 -0
- package/.grimoire/core/ids/gates/g4-dev-context.js +155 -0
- package/.grimoire/core/ids/incremental-decision-engine.js +651 -0
- package/.grimoire/core/ids/index.js +157 -0
- package/.grimoire/core/ids/registry-healer.js +868 -0
- package/.grimoire/core/ids/registry-loader.js +281 -0
- package/.grimoire/core/ids/registry-updater.js +703 -0
- package/.grimoire/core/ids/verification-gate.js +306 -0
- package/.grimoire/core/index.esm.js +44 -0
- package/.grimoire/core/index.js +90 -0
- package/.grimoire/core/manifest/manifest-generator.js +388 -0
- package/.grimoire/core/manifest/manifest-validator.js +431 -0
- package/.grimoire/core/mcp/config-migrator.js +341 -0
- package/.grimoire/core/mcp/global-config-manager.js +370 -0
- package/.grimoire/core/mcp/index.js +34 -0
- package/.grimoire/core/mcp/os-detector.js +189 -0
- package/.grimoire/core/mcp/symlink-manager.js +415 -0
- package/.grimoire/core/memory/__tests__/active-modules.verify.js +254 -0
- package/.grimoire/core/memory/gotchas-memory.js +1154 -0
- package/.grimoire/core/migration/migration-config.yaml +85 -0
- package/.grimoire/core/migration/module-mapping.yaml +91 -0
- package/.grimoire/core/orchestration/agent-invoker.js +612 -0
- package/.grimoire/core/orchestration/bob-orchestrator.js +1032 -0
- package/.grimoire/core/orchestration/bob-status-writer.js +482 -0
- package/.grimoire/core/orchestration/bob-surface-criteria.yaml +272 -0
- package/.grimoire/core/orchestration/brownfield-handler.js +741 -0
- package/.grimoire/core/orchestration/checklist-runner.js +328 -0
- package/.grimoire/core/orchestration/cli-commands.js +581 -0
- package/.grimoire/core/orchestration/condition-evaluator.js +379 -0
- package/.grimoire/core/orchestration/context-manager.js +616 -0
- package/.grimoire/core/orchestration/dashboard-integration.js +520 -0
- package/.grimoire/core/orchestration/data-lifecycle-manager.js +357 -0
- package/.grimoire/core/orchestration/epic-context-accumulator.js +396 -0
- package/.grimoire/core/orchestration/execution-profile-resolver.js +107 -0
- package/.grimoire/core/orchestration/executor-assignment.js +413 -0
- package/.grimoire/core/orchestration/executors/epic-3-executor.js +223 -0
- package/.grimoire/core/orchestration/executors/epic-4-executor.js +269 -0
- package/.grimoire/core/orchestration/executors/epic-5-executor.js +329 -0
- package/.grimoire/core/orchestration/executors/epic-6-executor.js +265 -0
- package/.grimoire/core/orchestration/executors/epic-executor.js +237 -0
- package/.grimoire/core/orchestration/executors/index.js +86 -0
- package/.grimoire/core/orchestration/gate-evaluator.js +495 -0
- package/.grimoire/core/orchestration/gemini-model-selector.js +161 -0
- package/.grimoire/core/orchestration/greenfield-handler.js +890 -0
- package/.grimoire/core/orchestration/index.js +323 -0
- package/.grimoire/core/orchestration/lock-manager.js +327 -0
- package/.grimoire/core/orchestration/master-orchestrator.js +1544 -0
- package/.grimoire/core/orchestration/message-formatter.js +279 -0
- package/.grimoire/core/orchestration/parallel-executor.js +225 -0
- package/.grimoire/core/orchestration/recovery-handler.js +721 -0
- package/.grimoire/core/orchestration/session-state.js +876 -0
- package/.grimoire/core/orchestration/skill-dispatcher.js +364 -0
- package/.grimoire/core/orchestration/subagent-prompt-builder.js +370 -0
- package/.grimoire/core/orchestration/surface-checker.js +403 -0
- package/.grimoire/core/orchestration/task-complexity-classifier.js +123 -0
- package/.grimoire/core/orchestration/tech-stack-detector.js +599 -0
- package/.grimoire/core/orchestration/terminal-spawner.js +1044 -0
- package/.grimoire/core/orchestration/workflow-executor.js +1182 -0
- package/.grimoire/core/orchestration/workflow-orchestrator.js +907 -0
- package/.grimoire/core/permissions/__tests__/permission-mode.test.js +293 -0
- package/.grimoire/core/permissions/index.js +140 -0
- package/.grimoire/core/permissions/operation-guard.js +395 -0
- package/.grimoire/core/permissions/permission-mode.js +271 -0
- package/.grimoire/core/quality-gates/base-layer.js +134 -0
- package/.grimoire/core/quality-gates/checklist-generator.js +329 -0
- package/.grimoire/core/quality-gates/focus-area-recommender.js +361 -0
- package/.grimoire/core/quality-gates/human-review-orchestrator.js +530 -0
- package/.grimoire/core/quality-gates/layer1-precommit.js +336 -0
- package/.grimoire/core/quality-gates/layer2-pr-automation.js +331 -0
- package/.grimoire/core/quality-gates/layer3-human-review.js +350 -0
- package/.grimoire/core/quality-gates/notification-manager.js +551 -0
- package/.grimoire/core/quality-gates/quality-gate-config.yaml +87 -0
- package/.grimoire/core/quality-gates/quality-gate-manager.js +603 -0
- package/.grimoire/core/registry/README.md +181 -0
- package/.grimoire/core/registry/build-registry.js +454 -0
- package/.grimoire/core/registry/registry-loader.js +331 -0
- package/.grimoire/core/registry/registry-schema.json +168 -0
- package/.grimoire/core/registry/service-registry.json +6468 -0
- package/.grimoire/core/registry/validate-registry.js +341 -0
- package/.grimoire/core/session/context-detector.js +233 -0
- package/.grimoire/core/session/context-loader.js +443 -0
- package/.grimoire/core/synapse/context/context-builder.js +34 -0
- package/.grimoire/core/synapse/context/context-tracker.js +190 -0
- package/.grimoire/core/synapse/diagnostics/collectors/consistency-collector.js +168 -0
- package/.grimoire/core/synapse/diagnostics/collectors/hook-collector.js +129 -0
- package/.grimoire/core/synapse/diagnostics/collectors/manifest-collector.js +82 -0
- package/.grimoire/core/synapse/diagnostics/collectors/output-analyzer.js +134 -0
- package/.grimoire/core/synapse/diagnostics/collectors/pipeline-collector.js +75 -0
- package/.grimoire/core/synapse/diagnostics/collectors/quality-collector.js +252 -0
- package/.grimoire/core/synapse/diagnostics/collectors/relevance-matrix.js +174 -0
- package/.grimoire/core/synapse/diagnostics/collectors/safe-read-json.js +31 -0
- package/.grimoire/core/synapse/diagnostics/collectors/session-collector.js +102 -0
- package/.grimoire/core/synapse/diagnostics/collectors/timing-collector.js +126 -0
- package/.grimoire/core/synapse/diagnostics/collectors/uap-collector.js +83 -0
- package/.grimoire/core/synapse/diagnostics/report-formatter.js +485 -0
- package/.grimoire/core/synapse/diagnostics/synapse-diagnostics.js +95 -0
- package/.grimoire/core/synapse/domain/domain-loader.js +322 -0
- package/.grimoire/core/synapse/engine.js +380 -0
- package/.grimoire/core/synapse/layers/l0-constitution.js +80 -0
- package/.grimoire/core/synapse/layers/l1-global.js +102 -0
- package/.grimoire/core/synapse/layers/l2-agent.js +94 -0
- package/.grimoire/core/synapse/layers/l3-workflow.js +94 -0
- package/.grimoire/core/synapse/layers/l4-task.js +83 -0
- package/.grimoire/core/synapse/layers/l5-squad.js +244 -0
- package/.grimoire/core/synapse/layers/l6-keyword.js +154 -0
- package/.grimoire/core/synapse/layers/l7-star-command.js +169 -0
- package/.grimoire/core/synapse/layers/layer-processor.js +82 -0
- package/.grimoire/core/synapse/memory/memory-bridge.js +246 -0
- package/.grimoire/core/synapse/output/formatter.js +561 -0
- package/.grimoire/core/synapse/runtime/hook-runtime.js +61 -0
- package/.grimoire/core/synapse/scripts/generate-constitution.js +205 -0
- package/.grimoire/core/synapse/session/session-manager.js +403 -0
- package/.grimoire/core/synapse/utils/paths.js +57 -0
- package/.grimoire/core/synapse/utils/tokens.js +25 -0
- package/.grimoire/core/ui/index.js +43 -0
- package/.grimoire/core/ui/observability-panel.js +394 -0
- package/.grimoire/core/ui/panel-renderer.js +337 -0
- package/.grimoire/core/utils/output-formatter.js +299 -0
- package/.grimoire/core/utils/security-utils.js +336 -0
- package/.grimoire/core/utils/yaml-validator.js +416 -0
- package/.grimoire/core-config.yaml +357 -0
- package/.grimoire/data/agent-config-requirements.yaml +409 -0
- package/.grimoire/data/entity-registry.yaml +9219 -0
- package/.grimoire/data/grimoire-kb.md +918 -0
- package/.grimoire/data/learned-patterns.yaml +3 -0
- package/.grimoire/data/tech-presets/_template.md +259 -0
- package/.grimoire/data/tech-presets/nextjs-react.md +933 -0
- package/.grimoire/data/technical-preferences.md +85 -0
- package/.grimoire/data/workflow-patterns.yaml +836 -0
- package/.grimoire/data/workflow-state-schema.yaml +203 -0
- package/.grimoire/development/README.md +143 -0
- package/.grimoire/development/agent-teams/team-all.yaml +16 -0
- package/.grimoire/development/agent-teams/team-fullstack.yaml +19 -0
- package/.grimoire/development/agent-teams/team-ide-minimal.yaml +10 -0
- package/.grimoire/development/agent-teams/team-no-ui.yaml +14 -0
- package/.grimoire/development/agent-teams/team-qa-focused.yaml +155 -0
- package/.grimoire/development/agents/analyst.md +261 -0
- package/.grimoire/development/agents/architect.md +461 -0
- package/.grimoire/development/agents/caravaggio.md +31 -0
- package/.grimoire/development/agents/data-engineer.md +482 -0
- package/.grimoire/development/agents/dev.md +548 -0
- package/.grimoire/development/agents/devops.md +500 -0
- package/.grimoire/development/agents/frida.md +31 -0
- package/.grimoire/development/agents/grimoire-master.md +447 -0
- package/.grimoire/development/agents/picasso.md +31 -0
- package/.grimoire/development/agents/pm.md +365 -0
- package/.grimoire/development/agents/po.md +323 -0
- package/.grimoire/development/agents/qa.md +437 -0
- package/.grimoire/development/agents/salvador.md +31 -0
- package/.grimoire/development/agents/sm.md +275 -0
- package/.grimoire/development/agents/squad-creator.md +330 -0
- package/.grimoire/development/agents/tarsila.md +31 -0
- package/.grimoire/development/agents/ux-design-expert.md +482 -0
- package/.grimoire/development/agents/van-gogh.md +31 -0
- package/.grimoire/development/agents/warhol.md +31 -0
- package/.grimoire/development/checklists/agent-quality-gate.md +560 -0
- package/.grimoire/development/checklists/brownfield-compatibility-checklist.md +116 -0
- package/.grimoire/development/checklists/self-critique-checklist.md +274 -0
- package/.grimoire/development/data/decision-heuristics-framework.md +622 -0
- package/.grimoire/development/data/quality-dimensions-framework.md +427 -0
- package/.grimoire/development/data/tier-system-framework.md +476 -0
- package/.grimoire/development/scripts/activation-runtime.js +64 -0
- package/.grimoire/development/scripts/agent-assignment-resolver.js +231 -0
- package/.grimoire/development/scripts/agent-config-loader.js +628 -0
- package/.grimoire/development/scripts/agent-exit-hooks.js +97 -0
- package/.grimoire/development/scripts/apply-inline-greeting-all-agents.js +147 -0
- package/.grimoire/development/scripts/approval-workflow.js +643 -0
- package/.grimoire/development/scripts/audit-agent-config.js +382 -0
- package/.grimoire/development/scripts/backlog-manager.js +409 -0
- package/.grimoire/development/scripts/backup-manager.js +607 -0
- package/.grimoire/development/scripts/batch-update-agents-session-context.js +97 -0
- package/.grimoire/development/scripts/branch-manager.js +390 -0
- package/.grimoire/development/scripts/code-quality-improver.js +1312 -0
- package/.grimoire/development/scripts/commit-message-generator.js +850 -0
- package/.grimoire/development/scripts/conflict-resolver.js +675 -0
- package/.grimoire/development/scripts/decision-context.js +229 -0
- package/.grimoire/development/scripts/decision-log-generator.js +294 -0
- package/.grimoire/development/scripts/decision-log-indexer.js +285 -0
- package/.grimoire/development/scripts/decision-recorder.js +169 -0
- package/.grimoire/development/scripts/dependency-analyzer.js +639 -0
- package/.grimoire/development/scripts/dev-context-loader.js +298 -0
- package/.grimoire/development/scripts/diff-generator.js +352 -0
- package/.grimoire/development/scripts/elicitation-engine.js +385 -0
- package/.grimoire/development/scripts/elicitation-session-manager.js +300 -0
- package/.grimoire/development/scripts/generate-greeting.js +109 -0
- package/.grimoire/development/scripts/git-wrapper.js +462 -0
- package/.grimoire/development/scripts/greeting-builder.js +1406 -0
- package/.grimoire/development/scripts/greeting-config-cli.js +86 -0
- package/.grimoire/development/scripts/greeting-preference-manager.js +170 -0
- package/.grimoire/development/scripts/manifest-preview.js +245 -0
- package/.grimoire/development/scripts/metrics-tracker.js +776 -0
- package/.grimoire/development/scripts/migrate-task-to-v2.js +379 -0
- package/.grimoire/development/scripts/modification-validator.js +555 -0
- package/.grimoire/development/scripts/pattern-learner.js +1225 -0
- package/.grimoire/development/scripts/performance-analyzer.js +758 -0
- package/.grimoire/development/scripts/populate-entity-registry.js +281 -0
- package/.grimoire/development/scripts/refactoring-suggester.js +1139 -0
- package/.grimoire/development/scripts/rollback-handler.js +532 -0
- package/.grimoire/development/scripts/security-checker.js +359 -0
- package/.grimoire/development/scripts/skill-validator.js +343 -0
- package/.grimoire/development/scripts/squad/README.md +114 -0
- package/.grimoire/development/scripts/squad/index.js +124 -0
- package/.grimoire/development/scripts/squad/squad-analyzer.js +638 -0
- package/.grimoire/development/scripts/squad/squad-designer.js +1010 -0
- package/.grimoire/development/scripts/squad/squad-downloader.js +511 -0
- package/.grimoire/development/scripts/squad/squad-extender.js +872 -0
- package/.grimoire/development/scripts/squad/squad-generator.js +1406 -0
- package/.grimoire/development/scripts/squad/squad-loader.js +359 -0
- package/.grimoire/development/scripts/squad/squad-migrator.js +628 -0
- package/.grimoire/development/scripts/squad/squad-publisher.js +630 -0
- package/.grimoire/development/scripts/squad/squad-validator.js +857 -0
- package/.grimoire/development/scripts/story-index-generator.js +339 -0
- package/.grimoire/development/scripts/story-manager.js +375 -0
- package/.grimoire/development/scripts/story-update-hook.js +259 -0
- package/.grimoire/development/scripts/task-identifier-resolver.js +145 -0
- package/.grimoire/development/scripts/template-engine.js +240 -0
- package/.grimoire/development/scripts/template-validator.js +279 -0
- package/.grimoire/development/scripts/test-generator.js +844 -0
- package/.grimoire/development/scripts/test-greeting-system.js +143 -0
- package/.grimoire/development/scripts/transaction-manager.js +591 -0
- package/.grimoire/development/scripts/unified-activation-pipeline.js +796 -0
- package/.grimoire/development/scripts/usage-tracker.js +675 -0
- package/.grimoire/development/scripts/validate-filenames.js +228 -0
- package/.grimoire/development/scripts/validate-task-v2.js +320 -0
- package/.grimoire/development/scripts/verify-workflow-gaps.js +1034 -0
- package/.grimoire/development/scripts/version-tracker.js +527 -0
- package/.grimoire/development/scripts/workflow-navigator.js +328 -0
- package/.grimoire/development/scripts/workflow-state-manager.js +652 -0
- package/.grimoire/development/scripts/workflow-validator.js +697 -0
- package/.grimoire/development/scripts/yaml-validator.js +397 -0
- package/.grimoire/development/tasks/add-mcp.md +437 -0
- package/.grimoire/development/tasks/advanced-elicitation.md +320 -0
- package/.grimoire/development/tasks/analyst-facilitate-brainstorming.md +343 -0
- package/.grimoire/development/tasks/analyze-brownfield.md +458 -0
- package/.grimoire/development/tasks/analyze-cross-artifact.md +358 -0
- package/.grimoire/development/tasks/analyze-framework.md +698 -0
- package/.grimoire/development/tasks/analyze-performance.md +639 -0
- package/.grimoire/development/tasks/analyze-project-structure.md +623 -0
- package/.grimoire/development/tasks/apply-qa-fixes.md +342 -0
- package/.grimoire/development/tasks/architect-analyze-impact.md +828 -0
- package/.grimoire/development/tasks/audit-codebase.md +431 -0
- package/.grimoire/development/tasks/audit-tailwind-config.md +272 -0
- package/.grimoire/development/tasks/audit-utilities.md +360 -0
- package/.grimoire/development/tasks/blocks/README.md +180 -0
- package/.grimoire/development/tasks/blocks/agent-prompt-template.md +117 -0
- package/.grimoire/development/tasks/blocks/context-loading.md +110 -0
- package/.grimoire/development/tasks/blocks/execution-pattern.md +122 -0
- package/.grimoire/development/tasks/blocks/finalization.md +123 -0
- package/.grimoire/development/tasks/bootstrap-shadcn-library.md +288 -0
- package/.grimoire/development/tasks/brownfield-create-epic.md +533 -0
- package/.grimoire/development/tasks/brownfield-create-story.md +358 -0
- package/.grimoire/development/tasks/build-autonomous.md +186 -0
- package/.grimoire/development/tasks/build-component.md +480 -0
- package/.grimoire/development/tasks/build-resume.md +125 -0
- package/.grimoire/development/tasks/build-status.md +155 -0
- package/.grimoire/development/tasks/build.md +142 -0
- package/.grimoire/development/tasks/calculate-roi.md +457 -0
- package/.grimoire/development/tasks/check-docs-links.md +114 -0
- package/.grimoire/development/tasks/ci-cd-configuration.md +766 -0
- package/.grimoire/development/tasks/cleanup-utilities.md +672 -0
- package/.grimoire/development/tasks/cleanup-worktrees.md +39 -0
- package/.grimoire/development/tasks/collaborative-edit.md +1110 -0
- package/.grimoire/development/tasks/compose-molecule.md +286 -0
- package/.grimoire/development/tasks/consolidate-patterns.md +416 -0
- package/.grimoire/development/tasks/correct-course.md +281 -0
- package/.grimoire/development/tasks/create-agent.md +1199 -0
- package/.grimoire/development/tasks/create-brownfield-story.md +728 -0
- package/.grimoire/development/tasks/create-deep-research-prompt.md +500 -0
- package/.grimoire/development/tasks/create-doc.md +318 -0
- package/.grimoire/development/tasks/create-next-story.md +776 -0
- package/.grimoire/development/tasks/create-service.md +393 -0
- package/.grimoire/development/tasks/create-suite.md +285 -0
- package/.grimoire/development/tasks/create-task.md +391 -0
- package/.grimoire/development/tasks/create-workflow.md +429 -0
- package/.grimoire/development/tasks/create-worktree.md +439 -0
- package/.grimoire/development/tasks/db-analyze-hotpaths.md +574 -0
- package/.grimoire/development/tasks/db-apply-migration.md +383 -0
- package/.grimoire/development/tasks/db-bootstrap.md +644 -0
- package/.grimoire/development/tasks/db-domain-modeling.md +695 -0
- package/.grimoire/development/tasks/db-dry-run.md +295 -0
- package/.grimoire/development/tasks/db-env-check.md +262 -0
- package/.grimoire/development/tasks/db-explain.md +633 -0
- package/.grimoire/development/tasks/db-impersonate.md +497 -0
- package/.grimoire/development/tasks/db-load-csv.md +595 -0
- package/.grimoire/development/tasks/db-policy-apply.md +655 -0
- package/.grimoire/development/tasks/db-rls-audit.md +413 -0
- package/.grimoire/development/tasks/db-rollback.md +741 -0
- package/.grimoire/development/tasks/db-run-sql.md +615 -0
- package/.grimoire/development/tasks/db-schema-audit.md +1013 -0
- package/.grimoire/development/tasks/db-seed.md +392 -0
- package/.grimoire/development/tasks/db-smoke-test.md +353 -0
- package/.grimoire/development/tasks/db-snapshot.md +571 -0
- package/.grimoire/development/tasks/db-squad-integration.md +665 -0
- package/.grimoire/development/tasks/db-supabase-setup.md +714 -0
- package/.grimoire/development/tasks/db-verify-order.md +517 -0
- package/.grimoire/development/tasks/deprecate-component.md +958 -0
- package/.grimoire/development/tasks/dev-apply-qa-fixes.md +320 -0
- package/.grimoire/development/tasks/dev-backlog-debt.md +471 -0
- package/.grimoire/development/tasks/dev-develop-story.md +912 -0
- package/.grimoire/development/tasks/dev-improve-code-quality.md +874 -0
- package/.grimoire/development/tasks/dev-optimize-performance.md +1035 -0
- package/.grimoire/development/tasks/dev-suggest-refactoring.md +872 -0
- package/.grimoire/development/tasks/dev-validate-next-story.md +350 -0
- package/.grimoire/development/tasks/document-gotchas.md +479 -0
- package/.grimoire/development/tasks/document-project.md +554 -0
- package/.grimoire/development/tasks/environment-bootstrap.md +1391 -0
- package/.grimoire/development/tasks/execute-checklist.md +303 -0
- package/.grimoire/development/tasks/execute-epic-plan.md +887 -0
- package/.grimoire/development/tasks/export-design-tokens-dtcg.md +276 -0
- package/.grimoire/development/tasks/extend-pattern.md +271 -0
- package/.grimoire/development/tasks/extract-patterns.md +399 -0
- package/.grimoire/development/tasks/extract-tokens.md +469 -0
- package/.grimoire/development/tasks/facilitate-brainstorming-session.md +520 -0
- package/.grimoire/development/tasks/generate-ai-frontend-prompt.md +262 -0
- package/.grimoire/development/tasks/generate-documentation.md +286 -0
- package/.grimoire/development/tasks/generate-migration-strategy.md +524 -0
- package/.grimoire/development/tasks/generate-shock-report.md +503 -0
- package/.grimoire/development/tasks/github-devops-github-pr-automation.md +666 -0
- package/.grimoire/development/tasks/github-devops-pre-push-quality-gate.md +791 -0
- package/.grimoire/development/tasks/github-devops-repository-cleanup.md +376 -0
- package/.grimoire/development/tasks/github-devops-version-management.md +485 -0
- package/.grimoire/development/tasks/gotcha.md +138 -0
- package/.grimoire/development/tasks/gotchas.md +155 -0
- package/.grimoire/development/tasks/health-check.yaml +227 -0
- package/.grimoire/development/tasks/ids-governor.md +96 -0
- package/.grimoire/development/tasks/ids-health.md +91 -0
- package/.grimoire/development/tasks/ids-query.md +156 -0
- package/.grimoire/development/tasks/improve-self.md +824 -0
- package/.grimoire/development/tasks/index-docs.md +389 -0
- package/.grimoire/development/tasks/init-project-status.md +508 -0
- package/.grimoire/development/tasks/integrate-squad.md +316 -0
- package/.grimoire/development/tasks/kb-mode-interaction.md +285 -0
- package/.grimoire/development/tasks/learn-patterns.md +902 -0
- package/.grimoire/development/tasks/list-mcps.md +33 -0
- package/.grimoire/development/tasks/list-worktrees.md +344 -0
- package/.grimoire/development/tasks/mcp-workflow.md +438 -0
- package/.grimoire/development/tasks/merge-worktree.md +42 -0
- package/.grimoire/development/tasks/modify-agent.md +399 -0
- package/.grimoire/development/tasks/modify-task.md +442 -0
- package/.grimoire/development/tasks/modify-workflow.md +511 -0
- package/.grimoire/development/tasks/next.md +327 -0
- package/.grimoire/development/tasks/orchestrate-resume.md +60 -0
- package/.grimoire/development/tasks/orchestrate-status.md +64 -0
- package/.grimoire/development/tasks/orchestrate-stop.md +55 -0
- package/.grimoire/development/tasks/orchestrate.md +66 -0
- package/.grimoire/development/tasks/patterns.md +336 -0
- package/.grimoire/development/tasks/plan-create-context.md +812 -0
- package/.grimoire/development/tasks/plan-create-implementation.md +797 -0
- package/.grimoire/development/tasks/plan-execute-subtask.md +962 -0
- package/.grimoire/development/tasks/po-backlog-add.md +372 -0
- package/.grimoire/development/tasks/po-close-story.md +428 -0
- package/.grimoire/development/tasks/po-manage-story-backlog.md +525 -0
- package/.grimoire/development/tasks/po-pull-story-from-clickup.md +542 -0
- package/.grimoire/development/tasks/po-pull-story.md +318 -0
- package/.grimoire/development/tasks/po-stories-index.md +353 -0
- package/.grimoire/development/tasks/po-sync-story-to-clickup.md +459 -0
- package/.grimoire/development/tasks/po-sync-story.md +305 -0
- package/.grimoire/development/tasks/pr-automation.md +703 -0
- package/.grimoire/development/tasks/propose-modification.md +844 -0
- package/.grimoire/development/tasks/publish-npm.md +259 -0
- package/.grimoire/development/tasks/qa-after-creation.md +519 -0
- package/.grimoire/development/tasks/qa-backlog-add-followup.md +427 -0
- package/.grimoire/development/tasks/qa-browser-console-check.md +343 -0
- package/.grimoire/development/tasks/qa-create-fix-request.md +625 -0
- package/.grimoire/development/tasks/qa-evidence-requirements.md +314 -0
- package/.grimoire/development/tasks/qa-false-positive-detection.md +374 -0
- package/.grimoire/development/tasks/qa-fix-issues.md +686 -0
- package/.grimoire/development/tasks/qa-gate.md +375 -0
- package/.grimoire/development/tasks/qa-generate-tests.md +1176 -0
- package/.grimoire/development/tasks/qa-library-validation.md +497 -0
- package/.grimoire/development/tasks/qa-migration-validation.md +584 -0
- package/.grimoire/development/tasks/qa-nfr-assess.md +559 -0
- package/.grimoire/development/tasks/qa-review-build.md +1225 -0
- package/.grimoire/development/tasks/qa-review-proposal.md +1159 -0
- package/.grimoire/development/tasks/qa-review-story.md +684 -0
- package/.grimoire/development/tasks/qa-risk-profile.md +568 -0
- package/.grimoire/development/tasks/qa-run-tests.md +279 -0
- package/.grimoire/development/tasks/qa-security-checklist.md +552 -0
- package/.grimoire/development/tasks/qa-test-design.md +389 -0
- package/.grimoire/development/tasks/qa-trace-requirements.md +478 -0
- package/.grimoire/development/tasks/release-management.md +754 -0
- package/.grimoire/development/tasks/remove-mcp.md +35 -0
- package/.grimoire/development/tasks/remove-worktree.md +435 -0
- package/.grimoire/development/tasks/run-design-system-pipeline.md +642 -0
- package/.grimoire/development/tasks/run-workflow-engine.md +861 -0
- package/.grimoire/development/tasks/run-workflow.md +389 -0
- package/.grimoire/development/tasks/search-mcp.md +309 -0
- package/.grimoire/development/tasks/security-audit.md +556 -0
- package/.grimoire/development/tasks/security-scan.md +792 -0
- package/.grimoire/development/tasks/session-resume.md +193 -0
- package/.grimoire/development/tasks/setup-database.md +743 -0
- package/.grimoire/development/tasks/setup-design-system.md +464 -0
- package/.grimoire/development/tasks/setup-github.md +876 -0
- package/.grimoire/development/tasks/setup-llm-routing.md +231 -0
- package/.grimoire/development/tasks/setup-mcp-docker.md +628 -0
- package/.grimoire/development/tasks/setup-project-docs.md +442 -0
- package/.grimoire/development/tasks/shard-doc.md +539 -0
- package/.grimoire/development/tasks/sm-create-next-story.md +482 -0
- package/.grimoire/development/tasks/spec-assess-complexity.md +461 -0
- package/.grimoire/development/tasks/spec-critique.md +595 -0
- package/.grimoire/development/tasks/spec-gather-requirements.md +545 -0
- package/.grimoire/development/tasks/spec-research-dependencies.md +446 -0
- package/.grimoire/development/tasks/spec-write-spec.md +531 -0
- package/.grimoire/development/tasks/squad-creator-analyze.md +318 -0
- package/.grimoire/development/tasks/squad-creator-create.md +314 -0
- package/.grimoire/development/tasks/squad-creator-design.md +335 -0
- package/.grimoire/development/tasks/squad-creator-download.md +169 -0
- package/.grimoire/development/tasks/squad-creator-extend.md +413 -0
- package/.grimoire/development/tasks/squad-creator-list.md +226 -0
- package/.grimoire/development/tasks/squad-creator-migrate.md +245 -0
- package/.grimoire/development/tasks/squad-creator-publish.md +231 -0
- package/.grimoire/development/tasks/squad-creator-sync-grimoire.md +317 -0
- package/.grimoire/development/tasks/squad-creator-sync-ide-command.md +403 -0
- package/.grimoire/development/tasks/squad-creator-validate.md +160 -0
- package/.grimoire/development/tasks/story-checkpoint.md +361 -0
- package/.grimoire/development/tasks/sync-documentation.md +866 -0
- package/.grimoire/development/tasks/tailwind-upgrade.md +296 -0
- package/.grimoire/development/tasks/test-as-user.md +623 -0
- package/.grimoire/development/tasks/test-validation-task.md +172 -0
- package/.grimoire/development/tasks/undo-last.md +348 -0
- package/.grimoire/development/tasks/update-grimoire.md +153 -0
- package/.grimoire/development/tasks/update-manifest.md +411 -0
- package/.grimoire/development/tasks/update-source-tree.md +138 -0
- package/.grimoire/development/tasks/ux-create-wireframe.md +619 -0
- package/.grimoire/development/tasks/ux-ds-scan-artifact.md +674 -0
- package/.grimoire/development/tasks/ux-user-research.md +561 -0
- package/.grimoire/development/tasks/validate-agents.md +117 -0
- package/.grimoire/development/tasks/validate-next-story.md +456 -0
- package/.grimoire/development/tasks/validate-tech-preset.md +187 -0
- package/.grimoire/development/tasks/validate-workflow.md +323 -0
- package/.grimoire/development/tasks/verify-subtask.md +237 -0
- package/.grimoire/development/tasks/waves.md +206 -0
- package/.grimoire/development/tasks/yolo-toggle.md +115 -0
- package/.grimoire/development/templates/grimoire-doc-template.md +496 -0
- package/.grimoire/development/templates/research-prompt-tmpl.md +486 -0
- package/.grimoire/development/templates/service-template/README.md.hbs +159 -0
- package/.grimoire/development/templates/service-template/__tests__/index.test.ts.hbs +238 -0
- package/.grimoire/development/templates/service-template/client.ts.hbs +404 -0
- package/.grimoire/development/templates/service-template/errors.ts.hbs +183 -0
- package/.grimoire/development/templates/service-template/index.ts.hbs +121 -0
- package/.grimoire/development/templates/service-template/jest.config.js +89 -0
- package/.grimoire/development/templates/service-template/package.json.hbs +88 -0
- package/.grimoire/development/templates/service-template/tsconfig.json +45 -0
- package/.grimoire/development/templates/service-template/types.ts.hbs +146 -0
- package/.grimoire/development/templates/squad/agent-template.md +69 -0
- package/.grimoire/development/templates/squad/checklist-template.md +82 -0
- package/.grimoire/development/templates/squad/data-template.yaml +105 -0
- package/.grimoire/development/templates/squad/script-template.js +179 -0
- package/.grimoire/development/templates/squad/task-template.md +125 -0
- package/.grimoire/development/templates/squad/template-template.md +98 -0
- package/.grimoire/development/templates/squad/tool-template.js +103 -0
- package/.grimoire/development/templates/squad/workflow-template.yaml +108 -0
- package/.grimoire/development/templates/squad-template/LICENSE +21 -0
- package/.grimoire/development/templates/squad-template/README.md +37 -0
- package/.grimoire/development/templates/squad-template/agents/example-agent.yaml +36 -0
- package/.grimoire/development/templates/squad-template/package.json +20 -0
- package/.grimoire/development/templates/squad-template/squad.yaml +26 -0
- package/.grimoire/development/templates/squad-template/tasks/example-task.yaml +46 -0
- package/.grimoire/development/templates/squad-template/templates/example-template.md +24 -0
- package/.grimoire/development/templates/squad-template/tests/example-agent.test.js +54 -0
- package/.grimoire/development/templates/squad-template/workflows/example-workflow.yaml +54 -0
- package/.grimoire/development/templates/subagent-step-prompt.md +122 -0
- package/.grimoire/development/workflows/README.md +82 -0
- package/.grimoire/development/workflows/auto-worktree.yaml +423 -0
- package/.grimoire/development/workflows/brownfield-discovery.yaml +933 -0
- package/.grimoire/development/workflows/brownfield-fullstack.yaml +369 -0
- package/.grimoire/development/workflows/brownfield-service.yaml +246 -0
- package/.grimoire/development/workflows/brownfield-ui.yaml +260 -0
- package/.grimoire/development/workflows/design-system-build-quality.yaml +228 -0
- package/.grimoire/development/workflows/development-cycle.yaml +427 -0
- package/.grimoire/development/workflows/epic-orchestration.yaml +328 -0
- package/.grimoire/development/workflows/greenfield-fullstack.yaml +386 -0
- package/.grimoire/development/workflows/greenfield-service.yaml +278 -0
- package/.grimoire/development/workflows/greenfield-ui.yaml +284 -0
- package/.grimoire/development/workflows/qa-loop.yaml +444 -0
- package/.grimoire/development/workflows/spec-pipeline.yaml +577 -0
- package/.grimoire/development/workflows/story-development-cycle.yaml +285 -0
- package/.grimoire/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +574 -0
- package/.grimoire/docs/standards/EXECUTOR-DECISION-TREE.md +698 -0
- package/.grimoire/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +513 -0
- package/.grimoire/docs/standards/QUALITY-GATES-SPECIFICATION.md +558 -0
- package/.grimoire/docs/standards/STANDARDS-INDEX.md +212 -0
- package/.grimoire/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +551 -0
- package/.grimoire/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1415 -0
- package/.grimoire/docs/standards/grimoire-COLOR-PALETTE-QUICK-REFERENCE.md +186 -0
- package/.grimoire/docs/standards/grimoire-COLOR-PALETTE-V2.1.md +354 -0
- package/.grimoire/docs/standards/grimoire-LIVRO-DE-OURO-V2.1-COMPLETE.md +839 -0
- package/.grimoire/docs/standards/grimoire-LIVRO-DE-OURO-V2.2-SUMMARY.md +1341 -0
- package/.grimoire/elicitation/agent-elicitation.js +272 -0
- package/.grimoire/elicitation/task-elicitation.js +281 -0
- package/.grimoire/elicitation/workflow-elicitation.js +315 -0
- package/.grimoire/framework-config.yaml +152 -0
- package/.grimoire/hooks/gemini/after-tool.js +78 -0
- package/.grimoire/hooks/gemini/before-agent.js +80 -0
- package/.grimoire/hooks/gemini/before-tool.js +115 -0
- package/.grimoire/hooks/gemini/rewind-handler.js +69 -0
- package/.grimoire/hooks/gemini/session-end.js +91 -0
- package/.grimoire/hooks/gemini/session-start.js +91 -0
- package/.grimoire/hooks/ids-post-commit.js +118 -0
- package/.grimoire/hooks/ids-pre-push.js +125 -0
- package/.grimoire/hooks/unified/README.md +309 -0
- package/.grimoire/hooks/unified/hook-interface.js +161 -0
- package/.grimoire/hooks/unified/hook-registry.js +143 -0
- package/.grimoire/hooks/unified/index.js +36 -0
- package/.grimoire/hooks/unified/runners/precompact-runner.js +98 -0
- package/.grimoire/index.esm.js +17 -0
- package/.grimoire/index.js +17 -0
- package/.grimoire/infrastructure/README.md +128 -0
- package/.grimoire/infrastructure/contracts/compatibility/grimoire-4.0.4.yaml +46 -0
- package/.grimoire/infrastructure/index.js +200 -0
- package/.grimoire/infrastructure/integrations/ai-providers/README.md +103 -0
- package/.grimoire/infrastructure/integrations/ai-providers/ai-provider-factory.js +286 -0
- package/.grimoire/infrastructure/integrations/ai-providers/ai-provider.js +145 -0
- package/.grimoire/infrastructure/integrations/ai-providers/claude-provider.js +170 -0
- package/.grimoire/infrastructure/integrations/ai-providers/gemini-provider.js +365 -0
- package/.grimoire/infrastructure/integrations/ai-providers/index.js +45 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/cloudrun-adapter.js +129 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/index.js +41 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/policy-sync.js +74 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/security-adapter.js +159 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/supabase-adapter.js +88 -0
- package/.grimoire/infrastructure/integrations/gemini-extensions/workspace-adapter.js +100 -0
- package/.grimoire/infrastructure/integrations/pm-adapters/README.md +60 -0
- package/.grimoire/infrastructure/integrations/pm-adapters/clickup-adapter.js +345 -0
- package/.grimoire/infrastructure/integrations/pm-adapters/github-adapter.js +393 -0
- package/.grimoire/infrastructure/integrations/pm-adapters/jira-adapter.js +449 -0
- package/.grimoire/infrastructure/integrations/pm-adapters/local-adapter.js +176 -0
- package/.grimoire/infrastructure/schemas/agent-v3-schema.json +160 -0
- package/.grimoire/infrastructure/schemas/build-state.schema.json +158 -0
- package/.grimoire/infrastructure/schemas/task-v3-schema.json +152 -0
- package/.grimoire/infrastructure/scripts/approach-manager.js +1005 -0
- package/.grimoire/infrastructure/scripts/approval-workflow.js +644 -0
- package/.grimoire/infrastructure/scripts/asset-inventory.js +622 -0
- package/.grimoire/infrastructure/scripts/atomic-layer-classifier.js +309 -0
- package/.grimoire/infrastructure/scripts/backup-manager.js +607 -0
- package/.grimoire/infrastructure/scripts/batch-creator.js +609 -0
- package/.grimoire/infrastructure/scripts/branch-manager.js +391 -0
- package/.grimoire/infrastructure/scripts/capability-analyzer.js +535 -0
- package/.grimoire/infrastructure/scripts/changelog-generator.js +554 -0
- package/.grimoire/infrastructure/scripts/cicd-discovery.js +1269 -0
- package/.grimoire/infrastructure/scripts/clickup-helpers.js +227 -0
- package/.grimoire/infrastructure/scripts/code-quality-improver.js +1312 -0
- package/.grimoire/infrastructure/scripts/codebase-mapper.js +1288 -0
- package/.grimoire/infrastructure/scripts/codex-skills-sync/index.js +184 -0
- package/.grimoire/infrastructure/scripts/codex-skills-sync/validate.js +174 -0
- package/.grimoire/infrastructure/scripts/commit-message-generator.js +850 -0
- package/.grimoire/infrastructure/scripts/component-generator.js +738 -0
- package/.grimoire/infrastructure/scripts/component-metadata.js +628 -0
- package/.grimoire/infrastructure/scripts/component-search.js +278 -0
- package/.grimoire/infrastructure/scripts/config-cache.js +322 -0
- package/.grimoire/infrastructure/scripts/config-loader.js +351 -0
- package/.grimoire/infrastructure/scripts/conflict-resolver.js +675 -0
- package/.grimoire/infrastructure/scripts/coverage-analyzer.js +882 -0
- package/.grimoire/infrastructure/scripts/dashboard-status-writer.js +310 -0
- package/.grimoire/infrastructure/scripts/dependency-analyzer.js +639 -0
- package/.grimoire/infrastructure/scripts/dependency-impact-analyzer.js +704 -0
- package/.grimoire/infrastructure/scripts/diff-generator.js +129 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +502 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/config-generator.js +369 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +309 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/gitignore-generator.js +314 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/index.js +75 -0
- package/.grimoire/infrastructure/scripts/documentation-integrity/mode-detector.js +391 -0
- package/.grimoire/infrastructure/scripts/documentation-synchronizer.js +1432 -0
- package/.grimoire/infrastructure/scripts/framework-analyzer.js +763 -0
- package/.grimoire/infrastructure/scripts/git-config-detector.js +293 -0
- package/.grimoire/infrastructure/scripts/git-hooks/post-commit.js +75 -0
- package/.grimoire/infrastructure/scripts/git-wrapper.js +444 -0
- package/.grimoire/infrastructure/scripts/gotchas-documenter.js +1296 -0
- package/.grimoire/infrastructure/scripts/grimoire-validator.js +295 -0
- package/.grimoire/infrastructure/scripts/ide-sync/README.md +220 -0
- package/.grimoire/infrastructure/scripts/ide-sync/agent-parser.js +295 -0
- package/.grimoire/infrastructure/scripts/ide-sync/gemini-commands.js +207 -0
- package/.grimoire/infrastructure/scripts/ide-sync/index.js +540 -0
- package/.grimoire/infrastructure/scripts/ide-sync/redirect-generator.js +179 -0
- package/.grimoire/infrastructure/scripts/ide-sync/transformers/antigravity.js +107 -0
- package/.grimoire/infrastructure/scripts/ide-sync/transformers/claude-code.js +86 -0
- package/.grimoire/infrastructure/scripts/ide-sync/transformers/cursor.js +96 -0
- package/.grimoire/infrastructure/scripts/ide-sync/validator.js +273 -0
- package/.grimoire/infrastructure/scripts/improvement-engine.js +758 -0
- package/.grimoire/infrastructure/scripts/improvement-validator.js +710 -0
- package/.grimoire/infrastructure/scripts/llm-routing/install-llm-routing.js +282 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-free-tracked.cmd +129 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +108 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-free.cmd +80 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-free.sh +62 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-max.cmd +26 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/claude-max.sh +18 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/deepseek-proxy.cmd +73 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +65 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/deepseek-usage.cmd +53 -0
- package/.grimoire/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +16 -0
- package/.grimoire/infrastructure/scripts/llm-routing/usage-tracker/index.js +551 -0
- package/.grimoire/infrastructure/scripts/migrate-agent.js +528 -0
- package/.grimoire/infrastructure/scripts/modification-risk-assessment.js +970 -0
- package/.grimoire/infrastructure/scripts/modification-validator.js +555 -0
- package/.grimoire/infrastructure/scripts/output-formatter.js +298 -0
- package/.grimoire/infrastructure/scripts/path-analyzer.js +476 -0
- package/.grimoire/infrastructure/scripts/pattern-extractor.js +1563 -0
- package/.grimoire/infrastructure/scripts/performance-analyzer.js +758 -0
- package/.grimoire/infrastructure/scripts/performance-and-error-resolver.js +258 -0
- package/.grimoire/infrastructure/scripts/performance-optimizer.js +1902 -0
- package/.grimoire/infrastructure/scripts/performance-tracker.js +454 -0
- package/.grimoire/infrastructure/scripts/plan-tracker.js +922 -0
- package/.grimoire/infrastructure/scripts/pm-adapter-factory.js +182 -0
- package/.grimoire/infrastructure/scripts/pm-adapter.js +134 -0
- package/.grimoire/infrastructure/scripts/pr-review-ai.js +1062 -0
- package/.grimoire/infrastructure/scripts/project-status-loader.js +850 -0
- package/.grimoire/infrastructure/scripts/qa-loop-orchestrator.js +1264 -0
- package/.grimoire/infrastructure/scripts/qa-report-generator.js +1154 -0
- package/.grimoire/infrastructure/scripts/recovery-tracker.js +965 -0
- package/.grimoire/infrastructure/scripts/refactoring-suggester.js +1139 -0
- package/.grimoire/infrastructure/scripts/repository-detector.js +66 -0
- package/.grimoire/infrastructure/scripts/rollback-manager.js +734 -0
- package/.grimoire/infrastructure/scripts/sandbox-tester.js +618 -0
- package/.grimoire/infrastructure/scripts/security-checker.js +359 -0
- package/.grimoire/infrastructure/scripts/spot-check-validator.js +149 -0
- package/.grimoire/infrastructure/scripts/status-mapper.js +116 -0
- package/.grimoire/infrastructure/scripts/story-worktree-hooks.js +426 -0
- package/.grimoire/infrastructure/scripts/stuck-detector.js +1251 -0
- package/.grimoire/infrastructure/scripts/subtask-verifier.js +793 -0
- package/.grimoire/infrastructure/scripts/template-engine.js +240 -0
- package/.grimoire/infrastructure/scripts/template-validator.js +279 -0
- package/.grimoire/infrastructure/scripts/test-discovery.js +1259 -0
- package/.grimoire/infrastructure/scripts/test-generator.js +845 -0
- package/.grimoire/infrastructure/scripts/test-quality-assessment.js +1082 -0
- package/.grimoire/infrastructure/scripts/test-utilities-fast.js +126 -0
- package/.grimoire/infrastructure/scripts/test-utilities.js +201 -0
- package/.grimoire/infrastructure/scripts/tool-resolver.js +362 -0
- package/.grimoire/infrastructure/scripts/transaction-manager.js +590 -0
- package/.grimoire/infrastructure/scripts/usage-analytics.js +636 -0
- package/.grimoire/infrastructure/scripts/validate-agents.js +527 -0
- package/.grimoire/infrastructure/scripts/validate-claude-integration.js +103 -0
- package/.grimoire/infrastructure/scripts/validate-codex-integration.js +143 -0
- package/.grimoire/infrastructure/scripts/validate-gemini-integration.js +153 -0
- package/.grimoire/infrastructure/scripts/validate-output-pattern.js +213 -0
- package/.grimoire/infrastructure/scripts/validate-parity.js +357 -0
- package/.grimoire/infrastructure/scripts/validate-paths.js +144 -0
- package/.grimoire/infrastructure/scripts/validate-user-profile.js +251 -0
- package/.grimoire/infrastructure/scripts/visual-impact-generator.js +1056 -0
- package/.grimoire/infrastructure/scripts/worktree-manager.js +704 -0
- package/.grimoire/infrastructure/scripts/yaml-validator.js +397 -0
- package/.grimoire/infrastructure/templates/coderabbit.yaml.template +280 -0
- package/.grimoire/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +177 -0
- package/.grimoire/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +169 -0
- package/.grimoire/infrastructure/templates/github-workflows/README.md +110 -0
- package/.grimoire/infrastructure/templates/github-workflows/ci.yml.template +170 -0
- package/.grimoire/infrastructure/templates/github-workflows/pr-automation.yml.template +331 -0
- package/.grimoire/infrastructure/templates/github-workflows/release.yml.template +197 -0
- package/.grimoire/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +20 -0
- package/.grimoire/infrastructure/templates/gitignore/gitignore-grimoire-base.tmpl +65 -0
- package/.grimoire/infrastructure/templates/gitignore/gitignore-node.tmpl +86 -0
- package/.grimoire/infrastructure/templates/gitignore/gitignore-python.tmpl +146 -0
- package/.grimoire/infrastructure/templates/grimoire-sync.yaml.template +183 -0
- package/.grimoire/infrastructure/templates/project-docs/coding-standards-tmpl.md +347 -0
- package/.grimoire/infrastructure/templates/project-docs/source-tree-tmpl.md +179 -0
- package/.grimoire/infrastructure/templates/project-docs/tech-stack-tmpl.md +269 -0
- package/.grimoire/infrastructure/tests/project-status-loader.test.js +569 -0
- package/.grimoire/infrastructure/tests/regression-suite-v2.md +622 -0
- package/.grimoire/infrastructure/tests/validate-module.js +98 -0
- package/.grimoire/infrastructure/tests/worktree-manager.test.js +620 -0
- package/.grimoire/infrastructure/tools/README.md +224 -0
- package/.grimoire/infrastructure/tools/cli/github-cli.yaml +200 -0
- package/.grimoire/infrastructure/tools/cli/llm-routing.yaml +128 -0
- package/.grimoire/infrastructure/tools/cli/railway-cli.yaml +260 -0
- package/.grimoire/infrastructure/tools/cli/supabase-cli.yaml +224 -0
- package/.grimoire/infrastructure/tools/local/ffmpeg.yaml +261 -0
- package/.grimoire/infrastructure/tools/mcp/21st-dev-magic.yaml +127 -0
- package/.grimoire/infrastructure/tools/mcp/browser.yaml +103 -0
- package/.grimoire/infrastructure/tools/mcp/clickup.yaml +535 -0
- package/.grimoire/infrastructure/tools/mcp/context7.yaml +78 -0
- package/.grimoire/infrastructure/tools/mcp/desktop-commander.yaml +180 -0
- package/.grimoire/infrastructure/tools/mcp/exa.yaml +103 -0
- package/.grimoire/infrastructure/tools/mcp/google-workspace.yaml +930 -0
- package/.grimoire/infrastructure/tools/mcp/n8n.yaml +551 -0
- package/.grimoire/infrastructure/tools/mcp/supabase.yaml +808 -0
- package/.grimoire/install-manifest.yaml +4058 -0
- package/.grimoire/local-config.yaml.template +73 -0
- package/.grimoire/manifests/schema/manifest-schema.json +191 -0
- package/.grimoire/monitor/hooks/lib/__init__.py +2 -0
- package/.grimoire/monitor/hooks/lib/enrich.py +59 -0
- package/.grimoire/monitor/hooks/lib/send_event.py +48 -0
- package/.grimoire/monitor/hooks/notification.py +30 -0
- package/.grimoire/monitor/hooks/post_tool_use.py +46 -0
- package/.grimoire/monitor/hooks/pre_compact.py +30 -0
- package/.grimoire/monitor/hooks/pre_tool_use.py +41 -0
- package/.grimoire/monitor/hooks/stop.py +30 -0
- package/.grimoire/monitor/hooks/subagent_stop.py +30 -0
- package/.grimoire/monitor/hooks/user_prompt_submit.py +39 -0
- package/.grimoire/package.json +104 -0
- package/.grimoire/presets/README.md +359 -0
- package/.grimoire/product/README.md +57 -0
- package/.grimoire/product/checklists/accessibility-wcag-checklist.md +80 -0
- package/.grimoire/product/checklists/architect-checklist.md +444 -0
- package/.grimoire/product/checklists/change-checklist.md +183 -0
- package/.grimoire/product/checklists/component-quality-checklist.md +74 -0
- package/.grimoire/product/checklists/database-design-checklist.md +119 -0
- package/.grimoire/product/checklists/dba-predeploy-checklist.md +97 -0
- package/.grimoire/product/checklists/dba-rollback-checklist.md +99 -0
- package/.grimoire/product/checklists/migration-readiness-checklist.md +75 -0
- package/.grimoire/product/checklists/pattern-audit-checklist.md +88 -0
- package/.grimoire/product/checklists/pm-checklist.md +376 -0
- package/.grimoire/product/checklists/po-master-checklist.md +442 -0
- package/.grimoire/product/checklists/pre-push-checklist.md +108 -0
- package/.grimoire/product/checklists/release-checklist.md +122 -0
- package/.grimoire/product/checklists/self-critique-checklist.md +387 -0
- package/.grimoire/product/checklists/story-dod-checklist.md +102 -0
- package/.grimoire/product/checklists/story-draft-checklist.md +216 -0
- package/.grimoire/product/data/atomic-design-principles.md +108 -0
- package/.grimoire/product/data/brainstorming-techniques.md +37 -0
- package/.grimoire/product/data/consolidation-algorithms.md +142 -0
- package/.grimoire/product/data/database-best-practices.md +182 -0
- package/.grimoire/product/data/design-token-best-practices.md +107 -0
- package/.grimoire/product/data/elicitation-methods.md +135 -0
- package/.grimoire/product/data/integration-patterns.md +207 -0
- package/.grimoire/product/data/migration-safety-guide.md +329 -0
- package/.grimoire/product/data/mode-selection-best-practices.md +471 -0
- package/.grimoire/product/data/postgres-tuning-guide.md +300 -0
- package/.grimoire/product/data/rls-security-patterns.md +333 -0
- package/.grimoire/product/data/roi-calculation-guide.md +142 -0
- package/.grimoire/product/data/supabase-patterns.md +330 -0
- package/.grimoire/product/data/test-levels-framework.md +149 -0
- package/.grimoire/product/data/test-priorities-matrix.md +175 -0
- package/.grimoire/product/data/wcag-compliance-guide.md +267 -0
- package/.grimoire/product/templates/activation-instructions-inline-greeting.yaml +64 -0
- package/.grimoire/product/templates/activation-instructions-template.md +260 -0
- package/.grimoire/product/templates/adr.hbs +126 -0
- package/.grimoire/product/templates/agent-template.yaml +122 -0
- package/.grimoire/product/templates/architecture-tmpl.yaml +651 -0
- package/.grimoire/product/templates/brainstorming-output-tmpl.yaml +156 -0
- package/.grimoire/product/templates/brownfield-architecture-tmpl.yaml +476 -0
- package/.grimoire/product/templates/brownfield-prd-tmpl.yaml +280 -0
- package/.grimoire/product/templates/brownfield-risk-report-tmpl.yaml +278 -0
- package/.grimoire/product/templates/changelog-template.md +134 -0
- package/.grimoire/product/templates/command-rationalization-matrix.md +154 -0
- package/.grimoire/product/templates/competitor-analysis-tmpl.yaml +293 -0
- package/.grimoire/product/templates/component-react-tmpl.tsx +98 -0
- package/.grimoire/product/templates/current-approach-tmpl.md +56 -0
- package/.grimoire/product/templates/dbdr.hbs +242 -0
- package/.grimoire/product/templates/design-story-tmpl.yaml +588 -0
- package/.grimoire/product/templates/ds-artifact-analysis.md +70 -0
- package/.grimoire/product/templates/engine/elicitation.js +298 -0
- package/.grimoire/product/templates/engine/index.js +310 -0
- package/.grimoire/product/templates/engine/loader.js +232 -0
- package/.grimoire/product/templates/engine/renderer.js +343 -0
- package/.grimoire/product/templates/engine/schemas/adr.schema.json +102 -0
- package/.grimoire/product/templates/engine/schemas/dbdr.schema.json +205 -0
- package/.grimoire/product/templates/engine/schemas/epic.schema.json +175 -0
- package/.grimoire/product/templates/engine/schemas/pmdr.schema.json +175 -0
- package/.grimoire/product/templates/engine/schemas/prd-v2.schema.json +300 -0
- package/.grimoire/product/templates/engine/schemas/prd.schema.json +152 -0
- package/.grimoire/product/templates/engine/schemas/story.schema.json +222 -0
- package/.grimoire/product/templates/engine/schemas/task.schema.json +154 -0
- package/.grimoire/product/templates/engine/validator.js +295 -0
- package/.grimoire/product/templates/epic.hbs +213 -0
- package/.grimoire/product/templates/eslintrc-security.json +32 -0
- package/.grimoire/product/templates/front-end-architecture-tmpl.yaml +206 -0
- package/.grimoire/product/templates/front-end-spec-tmpl.yaml +349 -0
- package/.grimoire/product/templates/fullstack-architecture-tmpl.yaml +805 -0
- package/.grimoire/product/templates/gemini/settings.json +81 -0
- package/.grimoire/product/templates/github-actions-cd.yml +213 -0
- package/.grimoire/product/templates/github-actions-ci.yml +173 -0
- package/.grimoire/product/templates/github-pr-template.md +68 -0
- package/.grimoire/product/templates/gordon-mcp.yaml +141 -0
- package/.grimoire/product/templates/grimoire-ai-config.yaml +107 -0
- package/.grimoire/product/templates/ide-rules/antigravity-rules.md +117 -0
- package/.grimoire/product/templates/ide-rules/claude-rules.md +233 -0
- package/.grimoire/product/templates/ide-rules/codex-rules.md +67 -0
- package/.grimoire/product/templates/ide-rules/copilot-rules.md +94 -0
- package/.grimoire/product/templates/ide-rules/cursor-rules.md +116 -0
- package/.grimoire/product/templates/ide-rules/gemini-rules.md +89 -0
- package/.grimoire/product/templates/index-strategy-tmpl.yaml +53 -0
- package/.grimoire/product/templates/market-research-tmpl.yaml +252 -0
- package/.grimoire/product/templates/mcp-workflow.js +273 -0
- package/.grimoire/product/templates/migration-plan-tmpl.yaml +1022 -0
- package/.grimoire/product/templates/migration-strategy-tmpl.md +524 -0
- package/.grimoire/product/templates/personalized-agent-template.md +260 -0
- package/.grimoire/product/templates/personalized-checklist-template.md +341 -0
- package/.grimoire/product/templates/personalized-task-template-v2.md +907 -0
- package/.grimoire/product/templates/personalized-task-template.md +345 -0
- package/.grimoire/product/templates/personalized-template-file.yaml +323 -0
- package/.grimoire/product/templates/personalized-workflow-template.yaml +461 -0
- package/.grimoire/product/templates/pmdr.hbs +187 -0
- package/.grimoire/product/templates/prd-tmpl.yaml +202 -0
- package/.grimoire/product/templates/prd-v2.0.hbs +217 -0
- package/.grimoire/product/templates/prd.hbs +202 -0
- package/.grimoire/product/templates/project-brief-tmpl.yaml +221 -0
- package/.grimoire/product/templates/qa-gate-tmpl.yaml +240 -0
- package/.grimoire/product/templates/qa-report-tmpl.md +235 -0
- package/.grimoire/product/templates/rls-policies-tmpl.yaml +1203 -0
- package/.grimoire/product/templates/schema-design-tmpl.yaml +428 -0
- package/.grimoire/product/templates/shock-report-tmpl.html +502 -0
- package/.grimoire/product/templates/spec-tmpl.md +235 -0
- package/.grimoire/product/templates/state-persistence-tmpl.yaml +219 -0
- package/.grimoire/product/templates/statusline/statusline-script.js +190 -0
- package/.grimoire/product/templates/statusline/track-agent.sh +70 -0
- package/.grimoire/product/templates/story-tmpl.yaml +369 -0
- package/.grimoire/product/templates/story.hbs +264 -0
- package/.grimoire/product/templates/task-execution-report.md +496 -0
- package/.grimoire/product/templates/task-template.md +123 -0
- package/.grimoire/product/templates/task.hbs +171 -0
- package/.grimoire/product/templates/tmpl-comment-on-examples.sql +158 -0
- package/.grimoire/product/templates/tmpl-migration-script.sql +91 -0
- package/.grimoire/product/templates/tmpl-rls-granular-policies.sql +104 -0
- package/.grimoire/product/templates/tmpl-rls-kiss-policy.sql +10 -0
- package/.grimoire/product/templates/tmpl-rls-roles.sql +135 -0
- package/.grimoire/product/templates/tmpl-rls-simple.sql +77 -0
- package/.grimoire/product/templates/tmpl-rls-tenant.sql +152 -0
- package/.grimoire/product/templates/tmpl-rollback-script.sql +77 -0
- package/.grimoire/product/templates/tmpl-seed-data.sql +140 -0
- package/.grimoire/product/templates/tmpl-smoke-test.sql +16 -0
- package/.grimoire/product/templates/tmpl-staging-copy-merge.sql +139 -0
- package/.grimoire/product/templates/tmpl-stored-proc.sql +140 -0
- package/.grimoire/product/templates/tmpl-trigger.sql +152 -0
- package/.grimoire/product/templates/tmpl-view-materialized.sql +133 -0
- package/.grimoire/product/templates/tmpl-view.sql +177 -0
- package/.grimoire/product/templates/token-exports-css-tmpl.css +240 -0
- package/.grimoire/product/templates/token-exports-tailwind-tmpl.js +395 -0
- package/.grimoire/product/templates/tokens-schema-tmpl.yaml +305 -0
- package/.grimoire/product/templates/workflow-template.yaml +152 -0
- package/.grimoire/project-config.yaml +166 -0
- package/.grimoire/quality/metrics-collector.js +601 -0
- package/.grimoire/quality/metrics-hook.js +261 -0
- package/.grimoire/quality/schemas/quality-metrics.schema.json +234 -0
- package/.grimoire/quality/seed-metrics.js +336 -0
- package/.grimoire/schemas/README.md +405 -0
- package/.grimoire/schemas/agent-v3-schema.json +395 -0
- package/.grimoire/schemas/squad-design-schema.json +300 -0
- package/.grimoire/schemas/squad-schema.json +187 -0
- package/.grimoire/schemas/task-v3-schema.json +354 -0
- package/.grimoire/schemas/validate-v3-schema.js +431 -0
- package/.grimoire/scripts/README.md +124 -0
- package/.grimoire/scripts/batch-migrate-phase1.ps1 +37 -0
- package/.grimoire/scripts/batch-migrate-phase2.ps1 +89 -0
- package/.grimoire/scripts/batch-migrate-phase3.ps1 +46 -0
- package/.grimoire/scripts/command-execution-hook.js +202 -0
- package/.grimoire/scripts/diagnostics/diagnose-installation.js +276 -0
- package/.grimoire/scripts/diagnostics/diagnose-npx-issue.ps1 +98 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/README.md +123 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/index.html +14 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/package-lock.json +5262 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/package.json +25 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/public/favicon.svg +10 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/App.jsx +22 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.css +122 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.jsx +72 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/DomainCard.css +121 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/DomainCard.jsx +116 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/HealthScore.css +80 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/HealthScore.jsx +81 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/IssuesList.css +184 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/IssuesList.jsx +145 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/TechDebtList.css +114 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/TechDebtList.jsx +72 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/index.js +9 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Card.css +44 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Card.jsx +25 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Chart.css +14 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Chart.jsx +138 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Header.css +54 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/Header.jsx +22 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.css +77 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.jsx +45 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/components/shared/index.js +4 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/hooks/index.js +2 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/hooks/useAutoRefresh.js +89 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/hooks/useHealthData.js +308 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/main.jsx +13 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/pages/Dashboard.css +238 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/pages/Dashboard.jsx +154 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.css +259 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.jsx +164 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/pages/index.js +2 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/styles/App.css +19 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/src/styles/index.css +67 -0
- package/.grimoire/scripts/diagnostics/health-dashboard/vite.config.js +23 -0
- package/.grimoire/scripts/diagnostics/quick-diagnose.cmd +86 -0
- package/.grimoire/scripts/diagnostics/quick-diagnose.ps1 +118 -0
- package/.grimoire/scripts/grimoire-doc-template.md +326 -0
- package/.grimoire/scripts/migrate-framework-docs.sh +302 -0
- package/.grimoire/scripts/pm.sh +455 -0
- package/.grimoire/scripts/session-context-loader.js +46 -0
- package/.grimoire/scripts/test-template-system.js +942 -0
- package/.grimoire/scripts/update-grimoire.sh +176 -0
- package/.grimoire/scripts/validate-phase1.ps1 +36 -0
- package/.grimoire/scripts/workflow-management.md +70 -0
- package/.grimoire/user-guide.md +1411 -0
- package/.grimoire/utils/format-duration.js +95 -0
- package/.grimoire/utils/grimoire-validator.js +27 -0
- package/.grimoire/workflow-intelligence/__tests__/confidence-scorer.test.js +334 -0
- package/.grimoire/workflow-intelligence/__tests__/integration.test.js +339 -0
- package/.grimoire/workflow-intelligence/__tests__/suggestion-engine.test.js +437 -0
- package/.grimoire/workflow-intelligence/__tests__/wave-analyzer.test.js +447 -0
- package/.grimoire/workflow-intelligence/__tests__/workflow-registry.test.js +302 -0
- package/.grimoire/workflow-intelligence/engine/confidence-scorer.js +306 -0
- package/.grimoire/workflow-intelligence/engine/output-formatter.js +299 -0
- package/.grimoire/workflow-intelligence/engine/suggestion-engine.js +798 -0
- package/.grimoire/workflow-intelligence/engine/wave-analyzer.js +683 -0
- package/.grimoire/workflow-intelligence/index.js +330 -0
- package/.grimoire/workflow-intelligence/learning/capture-hook.js +148 -0
- package/.grimoire/workflow-intelligence/learning/gotcha-registry.js +654 -0
- package/.grimoire/workflow-intelligence/learning/index.js +306 -0
- package/.grimoire/workflow-intelligence/learning/pattern-capture.js +330 -0
- package/.grimoire/workflow-intelligence/learning/pattern-store.js +497 -0
- package/.grimoire/workflow-intelligence/learning/pattern-validator.js +310 -0
- package/.grimoire/workflow-intelligence/learning/qa-feedback.js +586 -0
- package/.grimoire/workflow-intelligence/learning/semantic-search.js +521 -0
- package/.grimoire/workflow-intelligence/registry/workflow-registry.js +357 -0
- package/.grimoire/working-in-the-brownfield.md +362 -0
- package/LICENSE +25 -0
- package/README.md +59 -0
- package/bin/grimoire-ids.js +560 -0
- package/bin/grimoire-init.js +1232 -0
- package/bin/grimoire-minimal.js +40 -0
- package/bin/grimoire.js +1118 -0
- package/bin/modules/env-config.js +436 -0
- package/bin/modules/mcp-installer.js +384 -0
- package/bin/utils/install-errors.js +340 -0
- package/bin/utils/install-transaction.js +447 -0
- package/bin/utils/pro-detector.js +110 -0
- package/package.json +158 -0
- package/packages/gemini-grimoire-extension/README.md +55 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-agent.js +7 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-agents.js +51 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-analyst.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-architect.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-data-engineer.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-dev.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-devops.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-master.js +7 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-menu.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-pm.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-po.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-qa.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-sm.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-squad-creator.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-status.js +68 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-ux-design-expert.js +6 -0
- package/packages/gemini-grimoire-extension/commands/grimoire-validate.js +35 -0
- package/packages/gemini-grimoire-extension/commands/lib/agent-launcher.js +147 -0
- package/packages/gemini-grimoire-extension/extension.json +149 -0
- package/packages/gemini-grimoire-extension/gemini-extension.json +149 -0
- package/packages/gemini-grimoire-extension/hooks/hooks.json +72 -0
- package/packages/grimoire-install/.releaserc.json +39 -0
- package/packages/grimoire-install/CHANGELOG.md +33 -0
- package/packages/grimoire-install/README.md +119 -0
- package/packages/grimoire-install/bin/edmcp.js +80 -0
- package/packages/grimoire-install/bin/grimoire-install.js +51 -0
- package/packages/grimoire-install/jest.config.js +27 -0
- package/packages/grimoire-install/package.json +68 -0
- package/packages/grimoire-install/src/dep-checker.js +306 -0
- package/packages/grimoire-install/src/edmcp/index.js +382 -0
- package/packages/grimoire-install/src/installer.js +487 -0
- package/packages/grimoire-install/src/os-detector.js +280 -0
- package/packages/grimoire-pro-cli/bin/grimoire-pro.js +233 -0
- package/packages/grimoire-pro-cli/package.json +38 -0
- package/packages/grimoire-pro-cli/src/recover.js +101 -0
- package/packages/installer/package.json +40 -0
- package/packages/installer/src/__tests__/performance-benchmark.js +384 -0
- package/packages/installer/src/config/configure-environment.js +373 -0
- package/packages/installer/src/config/ide-configs.js +161 -0
- package/packages/installer/src/config/templates/core-config-template.js +199 -0
- package/packages/installer/src/config/templates/env-template.js +272 -0
- package/packages/installer/src/config/validation/config-validator.js +244 -0
- package/packages/installer/src/detection/detect-project-type.js +83 -0
- package/packages/installer/src/installer/brownfield-upgrader.js +440 -0
- package/packages/installer/src/installer/dependency-installer.js +335 -0
- package/packages/installer/src/installer/file-hasher.js +234 -0
- package/packages/installer/src/installer/grimoire-core-installer.js +428 -0
- package/packages/installer/src/installer/manifest-signature.js +380 -0
- package/packages/installer/src/installer/post-install-validator.js +1524 -0
- package/packages/installer/src/merger/index.js +72 -0
- package/packages/installer/src/merger/parsers/env-parser.js +153 -0
- package/packages/installer/src/merger/parsers/markdown-section-parser.js +199 -0
- package/packages/installer/src/merger/strategies/base-merger.js +61 -0
- package/packages/installer/src/merger/strategies/env-merger.js +138 -0
- package/packages/installer/src/merger/strategies/index.js +105 -0
- package/packages/installer/src/merger/strategies/markdown-merger.js +208 -0
- package/packages/installer/src/merger/strategies/replace-merger.js +68 -0
- package/packages/installer/src/merger/types.js +72 -0
- package/packages/installer/src/pro/pro-scaffolder.js +387 -0
- package/packages/installer/src/updater/index.js +814 -0
- package/packages/installer/src/utils/grimoire-colors.js +235 -0
- package/packages/installer/src/wizard/feedback.js +232 -0
- package/packages/installer/src/wizard/i18n.js +230 -0
- package/packages/installer/src/wizard/ide-config-generator.js +993 -0
- package/packages/installer/src/wizard/ide-selector.js +86 -0
- package/packages/installer/src/wizard/index.js +831 -0
- package/packages/installer/src/wizard/pro-setup.js +1223 -0
- package/packages/installer/src/wizard/questions.js +336 -0
- package/packages/installer/src/wizard/validation/index.js +121 -0
- package/packages/installer/src/wizard/validation/report-generator.js +254 -0
- package/packages/installer/src/wizard/validation/troubleshooting-system.js +348 -0
- package/packages/installer/src/wizard/validation/validators/config-validator.js +364 -0
- package/packages/installer/src/wizard/validation/validators/dependency-validator.js +333 -0
- package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +175 -0
- package/packages/installer/src/wizard/validation/validators/mcp-health-checker.js +310 -0
- package/packages/installer/src/wizard/validators.js +274 -0
- package/packages/installer/src/wizard/wizard.js +246 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +331 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +353 -0
- package/packages/installer/tests/unit/config-validator.test.js +316 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +403 -0
- package/packages/installer/tests/unit/env-template.test.js +189 -0
- package/packages/installer/tests/unit/merger/env-merger.test.js +192 -0
- package/packages/installer/tests/unit/merger/markdown-merger.test.js +262 -0
- package/packages/installer/tests/unit/merger/strategies.test.js +153 -0
- package/scripts/check-markdown-links.py +353 -0
- package/scripts/code-intel-health-check.js +344 -0
- package/scripts/dashboard-parallel-dev.sh +184 -0
- package/scripts/dashboard-parallel-phase3.sh +130 -0
- package/scripts/dashboard-parallel-phase4.sh +131 -0
- package/scripts/ensure-manifest.js +59 -0
- package/scripts/generate-install-manifest.js +368 -0
- package/scripts/install-monitor-hooks.sh +83 -0
- package/scripts/package-synapse.js +325 -0
- package/scripts/semantic-lint.js +191 -0
- package/scripts/sign-manifest.ps1 +132 -0
- package/scripts/sign-manifest.sh +122 -0
- package/scripts/validate-manifest.js +267 -0
- package/scripts/validate-package-completeness.js +319 -0
|
@@ -0,0 +1,1225 @@
|
|
|
1
|
+
# QA Review Build: 10-Phase Quality Assurance Review
|
|
2
|
+
|
|
3
|
+
> **Phase:** QA Review
|
|
4
|
+
> **Owner Agent:** @qa
|
|
5
|
+
> **Epic:** Epic 6 - QA Evolution
|
|
6
|
+
> **Command:** `*review-build {story-id}`
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
Execute a structured 10-phase quality assurance review of a completed build. This comprehensive review validates implementation against spec, runs automated tests, performs browser/database verification, conducts code review, checks for regressions, and produces a detailed QA report with clear APPROVE/REJECT signal.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## autoClaude
|
|
17
|
+
|
|
18
|
+
```yaml
|
|
19
|
+
autoClaude:
|
|
20
|
+
version: '3.0'
|
|
21
|
+
pipelinePhase: qa-review-build
|
|
22
|
+
|
|
23
|
+
elicit: false
|
|
24
|
+
deterministic: true
|
|
25
|
+
composable: true
|
|
26
|
+
|
|
27
|
+
inputs:
|
|
28
|
+
- name: storyId
|
|
29
|
+
type: string
|
|
30
|
+
required: true
|
|
31
|
+
description: Story ID in format {epic}.{story} (e.g., "6.1")
|
|
32
|
+
|
|
33
|
+
- name: spec
|
|
34
|
+
type: file
|
|
35
|
+
path: docs/stories/{storyId}/spec/spec.md
|
|
36
|
+
required: true
|
|
37
|
+
|
|
38
|
+
- name: implementation
|
|
39
|
+
type: file
|
|
40
|
+
path: docs/stories/{storyId}/implementation/implementation.yaml
|
|
41
|
+
required: false
|
|
42
|
+
|
|
43
|
+
- name: storyFile
|
|
44
|
+
type: file
|
|
45
|
+
path: docs/stories/{storyId}*.md
|
|
46
|
+
required: true
|
|
47
|
+
|
|
48
|
+
outputs:
|
|
49
|
+
- name: qa_report.md
|
|
50
|
+
type: file
|
|
51
|
+
path: docs/stories/{storyId}/qa/qa_report.md
|
|
52
|
+
schema: qa-report-schema
|
|
53
|
+
|
|
54
|
+
- name: status.json
|
|
55
|
+
type: file
|
|
56
|
+
path: .grimoire/status.json
|
|
57
|
+
update: true
|
|
58
|
+
|
|
59
|
+
verification:
|
|
60
|
+
type: gate
|
|
61
|
+
blocking: true
|
|
62
|
+
verdict_field: signal
|
|
63
|
+
|
|
64
|
+
contextRequirements:
|
|
65
|
+
projectContext: true
|
|
66
|
+
filesContext: true
|
|
67
|
+
implementationPlan: true
|
|
68
|
+
spec: true
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 10 Review Phases
|
|
74
|
+
|
|
75
|
+
### Phase 0: Load Context
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
phase: 0
|
|
79
|
+
name: 'Load Context'
|
|
80
|
+
description: 'Load all relevant artifacts to understand what was built'
|
|
81
|
+
blocking: true
|
|
82
|
+
|
|
83
|
+
actions:
|
|
84
|
+
- id: load-spec
|
|
85
|
+
action: read_file
|
|
86
|
+
path: docs/stories/{storyId}/spec/spec.md
|
|
87
|
+
required: true
|
|
88
|
+
|
|
89
|
+
- id: load-implementation
|
|
90
|
+
action: read_file
|
|
91
|
+
path: docs/stories/{storyId}/implementation/implementation.yaml
|
|
92
|
+
required: false
|
|
93
|
+
|
|
94
|
+
- id: load-story
|
|
95
|
+
action: read_file
|
|
96
|
+
path: docs/stories/{storyId}*.md
|
|
97
|
+
required: true
|
|
98
|
+
|
|
99
|
+
- id: load-requirements
|
|
100
|
+
action: read_file
|
|
101
|
+
path: docs/stories/{storyId}/spec/requirements.json
|
|
102
|
+
required: false
|
|
103
|
+
|
|
104
|
+
- id: load-previous-qa
|
|
105
|
+
action: read_file
|
|
106
|
+
path: docs/stories/{storyId}/qa/qa_report.md
|
|
107
|
+
required: false
|
|
108
|
+
description: 'Check for previous QA reports'
|
|
109
|
+
|
|
110
|
+
output:
|
|
111
|
+
context:
|
|
112
|
+
spec: '{spec content}'
|
|
113
|
+
implementation: '{implementation yaml}'
|
|
114
|
+
story: '{story content}'
|
|
115
|
+
requirements: '{requirements json}'
|
|
116
|
+
previousReview: '{previous qa report if exists}'
|
|
117
|
+
|
|
118
|
+
validation:
|
|
119
|
+
- spec.md exists and is readable
|
|
120
|
+
- Story file exists and contains acceptance criteria
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Phase 1: Verify Subtasks Completed
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
phase: 1
|
|
127
|
+
name: 'Verify Subtasks Completed'
|
|
128
|
+
description: 'Ensure all implementation subtasks are marked complete'
|
|
129
|
+
blocking: true
|
|
130
|
+
|
|
131
|
+
subphases:
|
|
132
|
+
# Phase 1.2: Evidence Requirements (Absorbed from Auto-Claude)
|
|
133
|
+
- id: 1.2
|
|
134
|
+
name: 'Evidence Requirements Check'
|
|
135
|
+
description: 'Verify required evidence is present for PR type'
|
|
136
|
+
task: qa-evidence-requirements.md
|
|
137
|
+
blocking: false
|
|
138
|
+
actions:
|
|
139
|
+
- id: detect-pr-type
|
|
140
|
+
action: detect_pr_type
|
|
141
|
+
sources: [story_title, commit_messages, acceptance_criteria]
|
|
142
|
+
types: [bug_fix, feature, refactor, performance, security, documentation]
|
|
143
|
+
|
|
144
|
+
- id: evaluate-evidence
|
|
145
|
+
action: evaluate_evidence_checklist
|
|
146
|
+
sources: [story_file, qa_report, test_results, screenshots, commits]
|
|
147
|
+
|
|
148
|
+
checks:
|
|
149
|
+
- id: minimum-score
|
|
150
|
+
condition: 'evidence_score >= minimum_for_type'
|
|
151
|
+
severity: HIGH
|
|
152
|
+
message: 'Insufficient evidence for ${pr_type}'
|
|
153
|
+
|
|
154
|
+
- id: no-blocking-missing
|
|
155
|
+
condition: 'no CRITICAL evidence items missing'
|
|
156
|
+
severity: CRITICAL
|
|
157
|
+
message: 'Missing critical evidence: ${missing_items}'
|
|
158
|
+
|
|
159
|
+
output:
|
|
160
|
+
evidenceCheck:
|
|
161
|
+
prType: '{detected_type}'
|
|
162
|
+
score: '{X/Y}'
|
|
163
|
+
passed: true|false
|
|
164
|
+
missing: '[list of missing items]'
|
|
165
|
+
|
|
166
|
+
actions:
|
|
167
|
+
- id: parse-subtasks
|
|
168
|
+
action: extract_checklist
|
|
169
|
+
source: implementation.yaml
|
|
170
|
+
pattern: 'subtasks[].status'
|
|
171
|
+
|
|
172
|
+
- id: verify-commits
|
|
173
|
+
action: git_log
|
|
174
|
+
filter: 'storyId:{storyId}'
|
|
175
|
+
description: 'Check commits exist for this story'
|
|
176
|
+
|
|
177
|
+
- id: check-file-list
|
|
178
|
+
action: extract_section
|
|
179
|
+
source: story.md
|
|
180
|
+
section: 'File List'
|
|
181
|
+
description: 'Verify File List section is populated'
|
|
182
|
+
|
|
183
|
+
checks:
|
|
184
|
+
- id: subtasks-complete
|
|
185
|
+
condition: 'all subtasks have status: completed'
|
|
186
|
+
severity: HIGH
|
|
187
|
+
message: 'All subtasks must be completed before QA review'
|
|
188
|
+
|
|
189
|
+
- id: commits-exist
|
|
190
|
+
condition: 'git log contains commits referencing storyId'
|
|
191
|
+
severity: HIGH
|
|
192
|
+
message: 'No commits found for this story'
|
|
193
|
+
|
|
194
|
+
- id: files-documented
|
|
195
|
+
condition: 'File List section is not empty'
|
|
196
|
+
severity: MEDIUM
|
|
197
|
+
message: 'File List section should document all changed files'
|
|
198
|
+
|
|
199
|
+
output:
|
|
200
|
+
subtasks:
|
|
201
|
+
total: '{count}'
|
|
202
|
+
completed: '{count}'
|
|
203
|
+
pending: '[list of pending subtasks]'
|
|
204
|
+
commits:
|
|
205
|
+
count: '{count}'
|
|
206
|
+
latest: '{latest commit hash and message}'
|
|
207
|
+
filesDocumented: true|false
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Phase 2: Initialize Environment
|
|
211
|
+
|
|
212
|
+
```yaml
|
|
213
|
+
phase: 2
|
|
214
|
+
name: 'Initialize Environment'
|
|
215
|
+
description: 'Prepare environment for testing - install deps, build project'
|
|
216
|
+
blocking: true
|
|
217
|
+
|
|
218
|
+
actions:
|
|
219
|
+
- id: install-deps
|
|
220
|
+
action: execute_command
|
|
221
|
+
command: 'npm install'
|
|
222
|
+
timeout: 120000
|
|
223
|
+
description: 'Install project dependencies'
|
|
224
|
+
|
|
225
|
+
- id: build-project
|
|
226
|
+
action: execute_command
|
|
227
|
+
command: 'npm run build'
|
|
228
|
+
timeout: 300000
|
|
229
|
+
description: 'Build the project'
|
|
230
|
+
|
|
231
|
+
- id: check-env
|
|
232
|
+
action: verify_environment
|
|
233
|
+
checks:
|
|
234
|
+
- node_version: '>=18.0.0'
|
|
235
|
+
- npm_version: '>=9.0.0'
|
|
236
|
+
- env_file_exists: '.env or .env.local'
|
|
237
|
+
|
|
238
|
+
checks:
|
|
239
|
+
- id: deps-installed
|
|
240
|
+
condition: 'npm install exits with code 0'
|
|
241
|
+
severity: HIGH
|
|
242
|
+
message: 'Failed to install dependencies'
|
|
243
|
+
|
|
244
|
+
- id: build-success
|
|
245
|
+
condition: 'npm run build exits with code 0'
|
|
246
|
+
severity: HIGH
|
|
247
|
+
message: 'Build failed - cannot proceed with QA'
|
|
248
|
+
|
|
249
|
+
- id: no-typescript-errors
|
|
250
|
+
condition: 'build output contains no type errors'
|
|
251
|
+
severity: HIGH
|
|
252
|
+
message: 'TypeScript compilation errors detected'
|
|
253
|
+
|
|
254
|
+
output:
|
|
255
|
+
environment:
|
|
256
|
+
nodeVersion: '{version}'
|
|
257
|
+
npmVersion: '{version}'
|
|
258
|
+
buildStatus: 'success|failure'
|
|
259
|
+
buildTime: '{duration in ms}'
|
|
260
|
+
errors: '[list of errors if any]'
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Phase 3: Automated Testing
|
|
264
|
+
|
|
265
|
+
```yaml
|
|
266
|
+
phase: 3
|
|
267
|
+
name: 'Automated Testing'
|
|
268
|
+
description: 'Run all automated test suites'
|
|
269
|
+
blocking: true
|
|
270
|
+
|
|
271
|
+
actions:
|
|
272
|
+
- id: run-unit-tests
|
|
273
|
+
action: execute_command
|
|
274
|
+
command: 'npm run test'
|
|
275
|
+
timeout: 300000
|
|
276
|
+
description: 'Run unit tests'
|
|
277
|
+
|
|
278
|
+
- id: run-integration-tests
|
|
279
|
+
action: execute_command
|
|
280
|
+
command: 'npm run test:integration'
|
|
281
|
+
timeout: 600000
|
|
282
|
+
optional: true
|
|
283
|
+
description: 'Run integration tests if available'
|
|
284
|
+
|
|
285
|
+
- id: run-e2e-tests
|
|
286
|
+
action: execute_command
|
|
287
|
+
command: 'npm run test:e2e'
|
|
288
|
+
timeout: 900000
|
|
289
|
+
optional: true
|
|
290
|
+
description: 'Run end-to-end tests if available'
|
|
291
|
+
|
|
292
|
+
- id: collect-coverage
|
|
293
|
+
action: parse_output
|
|
294
|
+
source: 'test output'
|
|
295
|
+
pattern: 'coverage summary'
|
|
296
|
+
|
|
297
|
+
checks:
|
|
298
|
+
- id: unit-tests-pass
|
|
299
|
+
condition: 'npm run test exits with code 0'
|
|
300
|
+
severity: HIGH
|
|
301
|
+
message: 'Unit tests failed'
|
|
302
|
+
|
|
303
|
+
- id: integration-tests-pass
|
|
304
|
+
condition: 'npm run test:integration exits with code 0 OR command not found'
|
|
305
|
+
severity: MEDIUM
|
|
306
|
+
message: 'Integration tests failed'
|
|
307
|
+
|
|
308
|
+
- id: e2e-tests-pass
|
|
309
|
+
condition: 'npm run test:e2e exits with code 0 OR command not found'
|
|
310
|
+
severity: MEDIUM
|
|
311
|
+
message: 'E2E tests failed'
|
|
312
|
+
|
|
313
|
+
- id: coverage-threshold
|
|
314
|
+
condition: 'coverage >= 80% OR project has no coverage threshold'
|
|
315
|
+
severity: LOW
|
|
316
|
+
message: 'Test coverage below threshold'
|
|
317
|
+
|
|
318
|
+
output:
|
|
319
|
+
testing:
|
|
320
|
+
unit:
|
|
321
|
+
status: 'pass|fail|skip'
|
|
322
|
+
passed: '{count}'
|
|
323
|
+
failed: '{count}'
|
|
324
|
+
skipped: '{count}'
|
|
325
|
+
duration: '{ms}'
|
|
326
|
+
integration:
|
|
327
|
+
status: 'pass|fail|skip|not_available'
|
|
328
|
+
passed: '{count}'
|
|
329
|
+
failed: '{count}'
|
|
330
|
+
e2e:
|
|
331
|
+
status: 'pass|fail|skip|not_available'
|
|
332
|
+
passed: '{count}'
|
|
333
|
+
failed: '{count}'
|
|
334
|
+
coverage:
|
|
335
|
+
lines: '{percentage}'
|
|
336
|
+
branches: '{percentage}'
|
|
337
|
+
functions: '{percentage}'
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Phase 4: Browser Verification
|
|
341
|
+
|
|
342
|
+
```yaml
|
|
343
|
+
phase: 4
|
|
344
|
+
name: 'Browser Verification'
|
|
345
|
+
description: 'Manual or automated browser-based verification'
|
|
346
|
+
blocking: false
|
|
347
|
+
conditional: 'project has UI components'
|
|
348
|
+
|
|
349
|
+
subphases:
|
|
350
|
+
# Phase 4.2: Browser Console Check (Absorbed from Auto-Claude)
|
|
351
|
+
- id: 4.2
|
|
352
|
+
name: 'Browser Console Check'
|
|
353
|
+
description: 'Detect runtime errors in browser console'
|
|
354
|
+
task: qa-browser-console-check.md
|
|
355
|
+
blocking: true
|
|
356
|
+
actions:
|
|
357
|
+
- id: start-dev-server
|
|
358
|
+
action: detect_dev_server
|
|
359
|
+
fallback: 'npm run dev'
|
|
360
|
+
wait_for: 'ready|compiled|listening'
|
|
361
|
+
timeout: 60000
|
|
362
|
+
|
|
363
|
+
- id: capture-console
|
|
364
|
+
action: playwright_console_listener
|
|
365
|
+
capture: [error, warn, uncaught_exception, unhandled_rejection]
|
|
366
|
+
pages: auto_detect_from_changes
|
|
367
|
+
|
|
368
|
+
- id: check-network
|
|
369
|
+
action: playwright_network_listener
|
|
370
|
+
capture: ['status >= 400', 'timeout', 'failed']
|
|
371
|
+
|
|
372
|
+
checks:
|
|
373
|
+
- id: no-critical-errors
|
|
374
|
+
condition: 'no Uncaught Error, TypeError, ReferenceError'
|
|
375
|
+
severity: CRITICAL
|
|
376
|
+
message: 'Critical console errors detected - BLOCKING'
|
|
377
|
+
|
|
378
|
+
- id: no-network-failures
|
|
379
|
+
condition: 'no 5xx errors, no failed requests'
|
|
380
|
+
severity: HIGH
|
|
381
|
+
message: 'Network failures detected'
|
|
382
|
+
|
|
383
|
+
output:
|
|
384
|
+
browserConsole:
|
|
385
|
+
critical: '{count}'
|
|
386
|
+
high: '{count}'
|
|
387
|
+
medium: '{count}'
|
|
388
|
+
blocking: true|false
|
|
389
|
+
|
|
390
|
+
actions:
|
|
391
|
+
- id: detect-ui-changes
|
|
392
|
+
action: analyze_diff
|
|
393
|
+
filter: '**/*.tsx,**/*.jsx,**/*.vue,**/*.html,**/*.css'
|
|
394
|
+
description: 'Detect if UI files were changed'
|
|
395
|
+
|
|
396
|
+
- id: run-playwright
|
|
397
|
+
action: execute_command
|
|
398
|
+
command: 'npx playwright test'
|
|
399
|
+
timeout: 600000
|
|
400
|
+
optional: true
|
|
401
|
+
condition: 'playwright.config exists'
|
|
402
|
+
|
|
403
|
+
- id: visual-regression
|
|
404
|
+
action: compare_screenshots
|
|
405
|
+
baseline: 'docs/qa/screenshots/baseline'
|
|
406
|
+
current: 'docs/qa/screenshots/current'
|
|
407
|
+
optional: true
|
|
408
|
+
|
|
409
|
+
- id: accessibility-check
|
|
410
|
+
action: execute_command
|
|
411
|
+
command: 'npx axe-core'
|
|
412
|
+
optional: true
|
|
413
|
+
|
|
414
|
+
checks:
|
|
415
|
+
- id: ui-renders
|
|
416
|
+
condition: 'no console errors during render'
|
|
417
|
+
severity: MEDIUM
|
|
418
|
+
message: 'UI rendering errors detected'
|
|
419
|
+
|
|
420
|
+
- id: responsive-design
|
|
421
|
+
condition: 'UI works on mobile/tablet/desktop viewports'
|
|
422
|
+
severity: LOW
|
|
423
|
+
message: 'Responsive design issues detected'
|
|
424
|
+
|
|
425
|
+
- id: accessibility
|
|
426
|
+
condition: 'no critical accessibility violations'
|
|
427
|
+
severity: MEDIUM
|
|
428
|
+
message: 'Accessibility violations found'
|
|
429
|
+
|
|
430
|
+
output:
|
|
431
|
+
browser:
|
|
432
|
+
applicable: true|false
|
|
433
|
+
playwrightStatus: 'pass|fail|skip|not_configured'
|
|
434
|
+
visualRegression:
|
|
435
|
+
status: 'pass|fail|skip'
|
|
436
|
+
diffs: '[list of differing screenshots]'
|
|
437
|
+
accessibility:
|
|
438
|
+
violations: '{count}'
|
|
439
|
+
criticalCount: '{count}'
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Phase 5: Database Validation
|
|
443
|
+
|
|
444
|
+
```yaml
|
|
445
|
+
phase: 5
|
|
446
|
+
name: 'Database Validation'
|
|
447
|
+
description: 'Verify database schema and data integrity'
|
|
448
|
+
blocking: false
|
|
449
|
+
conditional: 'project has database components'
|
|
450
|
+
|
|
451
|
+
subphases:
|
|
452
|
+
# Phase 5.3: False Positive Detection (Absorbed from Auto-Claude)
|
|
453
|
+
- id: 5.3
|
|
454
|
+
name: 'False Positive Detection'
|
|
455
|
+
description: 'Critical thinking to prevent confirmation bias'
|
|
456
|
+
task: qa-false-positive-detection.md
|
|
457
|
+
blocking: false
|
|
458
|
+
conditional: 'pr_type in [bug_fix, security]'
|
|
459
|
+
actions:
|
|
460
|
+
- id: 4-step-protocol
|
|
461
|
+
action: run_verification_protocol
|
|
462
|
+
steps:
|
|
463
|
+
- revert_test: 'Can we remove change and see problem return?'
|
|
464
|
+
- baseline_failure: 'Did we test OLD code actually fails?'
|
|
465
|
+
- success_verification: 'Did we test NEW code actually succeeds?'
|
|
466
|
+
- independent_variables: 'Problem doesnt fix itself independently?'
|
|
467
|
+
|
|
468
|
+
- id: bias-check
|
|
469
|
+
action: check_confirmation_bias
|
|
470
|
+
criteria:
|
|
471
|
+
- negative_cases_tested
|
|
472
|
+
- independent_verification_possible
|
|
473
|
+
- mechanism_explained
|
|
474
|
+
- alternatives_ruled_out
|
|
475
|
+
|
|
476
|
+
checks:
|
|
477
|
+
- id: minimum-confidence
|
|
478
|
+
condition: 'confidence in [HIGH, MEDIUM]'
|
|
479
|
+
severity: HIGH
|
|
480
|
+
message: 'Low confidence in fix effectiveness'
|
|
481
|
+
|
|
482
|
+
- id: no-critical-failures
|
|
483
|
+
condition: 'no step has FAIL with severity CRITICAL'
|
|
484
|
+
severity: CRITICAL
|
|
485
|
+
message: 'Critical verification step failed'
|
|
486
|
+
|
|
487
|
+
output:
|
|
488
|
+
falsePositiveCheck:
|
|
489
|
+
confidence: 'HIGH|MEDIUM|LOW'
|
|
490
|
+
falsePositiveRisk: 'LOW|MEDIUM|HIGH'
|
|
491
|
+
recommendations: '[list]'
|
|
492
|
+
|
|
493
|
+
actions:
|
|
494
|
+
- id: detect-db-changes
|
|
495
|
+
action: analyze_diff
|
|
496
|
+
filter: '**/migrations/**,**/schema/**,**/*.sql,**/prisma/**'
|
|
497
|
+
description: 'Detect if database files were changed'
|
|
498
|
+
|
|
499
|
+
- id: check-migrations
|
|
500
|
+
action: execute_command
|
|
501
|
+
command: 'npm run db:migrate:status'
|
|
502
|
+
optional: true
|
|
503
|
+
description: 'Check migration status'
|
|
504
|
+
|
|
505
|
+
- id: validate-schema
|
|
506
|
+
action: execute_command
|
|
507
|
+
command: 'npm run db:validate'
|
|
508
|
+
optional: true
|
|
509
|
+
description: 'Validate schema consistency'
|
|
510
|
+
|
|
511
|
+
- id: check-seeds
|
|
512
|
+
action: verify_file_exists
|
|
513
|
+
path: '**/seeds/**'
|
|
514
|
+
optional: true
|
|
515
|
+
description: 'Check if seed data exists'
|
|
516
|
+
|
|
517
|
+
checks:
|
|
518
|
+
- id: migrations-applied
|
|
519
|
+
condition: 'all pending migrations are applied'
|
|
520
|
+
severity: HIGH
|
|
521
|
+
message: 'Pending database migrations exist'
|
|
522
|
+
|
|
523
|
+
- id: schema-valid
|
|
524
|
+
condition: 'schema validation passes'
|
|
525
|
+
severity: HIGH
|
|
526
|
+
message: 'Database schema validation failed'
|
|
527
|
+
|
|
528
|
+
- id: no-data-loss
|
|
529
|
+
condition: "migrations don't cause data loss"
|
|
530
|
+
severity: HIGH
|
|
531
|
+
message: 'Migration may cause data loss'
|
|
532
|
+
|
|
533
|
+
output:
|
|
534
|
+
database:
|
|
535
|
+
applicable: true|false
|
|
536
|
+
migrationsStatus: 'up-to-date|pending|not_applicable'
|
|
537
|
+
pendingMigrations: '[list]'
|
|
538
|
+
schemaValid: true|false
|
|
539
|
+
dataIntegrity: 'verified|unverified|not_applicable'
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
### Phase 6: Code Review (Enhanced with Auto-Claude Absorption)
|
|
543
|
+
|
|
544
|
+
```yaml
|
|
545
|
+
phase: 6
|
|
546
|
+
name: 'Code Review'
|
|
547
|
+
description: 'Security review, pattern adherence, code quality, library validation'
|
|
548
|
+
blocking: true
|
|
549
|
+
|
|
550
|
+
# Phase 6.0: Library Validation (Absorbed from Auto-Claude)
|
|
551
|
+
subphases:
|
|
552
|
+
- id: 6.0
|
|
553
|
+
name: 'Library Validation'
|
|
554
|
+
description: 'Validate third-party library usage via Context7'
|
|
555
|
+
task: qa-library-validation.md
|
|
556
|
+
blocking: false
|
|
557
|
+
actions:
|
|
558
|
+
- id: extract-imports
|
|
559
|
+
action: grep_imports
|
|
560
|
+
patterns:
|
|
561
|
+
- 'import.*from [''"]([^''"./][^''"]*)[''"]'
|
|
562
|
+
- "require\\(['\"]([^'\"./][^'\"]*)['\"]\\)"
|
|
563
|
+
description: 'Extract all third-party imports'
|
|
564
|
+
|
|
565
|
+
- id: validate-context7
|
|
566
|
+
action: context7_validation
|
|
567
|
+
for_each: 'extracted_imports'
|
|
568
|
+
steps:
|
|
569
|
+
- resolve_library_id
|
|
570
|
+
- query_docs
|
|
571
|
+
- validate_signatures
|
|
572
|
+
- check_deprecated
|
|
573
|
+
description: 'Validate each library against Context7 docs'
|
|
574
|
+
|
|
575
|
+
checks:
|
|
576
|
+
- id: api-usage-correct
|
|
577
|
+
condition: 'all library APIs used correctly'
|
|
578
|
+
severity: CRITICAL
|
|
579
|
+
message: 'Incorrect library API usage detected'
|
|
580
|
+
|
|
581
|
+
- id: no-deprecated
|
|
582
|
+
condition: 'no deprecated APIs used'
|
|
583
|
+
severity: MAJOR
|
|
584
|
+
message: 'Deprecated API usage detected'
|
|
585
|
+
|
|
586
|
+
output:
|
|
587
|
+
libraryValidation:
|
|
588
|
+
checked: '{count}'
|
|
589
|
+
issues: '[list]'
|
|
590
|
+
unresolved: '[list]'
|
|
591
|
+
|
|
592
|
+
# Phase 6.1: Security Checklist (Absorbed from Auto-Claude)
|
|
593
|
+
- id: 6.1
|
|
594
|
+
name: 'Security Checklist'
|
|
595
|
+
description: '8-point security vulnerability scan'
|
|
596
|
+
task: qa-security-checklist.md
|
|
597
|
+
blocking: true
|
|
598
|
+
actions:
|
|
599
|
+
- id: check-eval
|
|
600
|
+
action: grep_pattern
|
|
601
|
+
pattern: 'eval\\(|new Function\\('
|
|
602
|
+
severity: CRITICAL
|
|
603
|
+
description: 'Check for eval() and dynamic code execution'
|
|
604
|
+
|
|
605
|
+
- id: check-innerHTML
|
|
606
|
+
action: grep_pattern
|
|
607
|
+
pattern: '\\.innerHTML\\s*=|\\.outerHTML\\s*='
|
|
608
|
+
severity: CRITICAL
|
|
609
|
+
description: 'Check for innerHTML XSS vectors'
|
|
610
|
+
|
|
611
|
+
- id: check-dangerouslySetInnerHTML
|
|
612
|
+
action: grep_pattern
|
|
613
|
+
pattern: 'dangerouslySetInnerHTML'
|
|
614
|
+
severity: CRITICAL
|
|
615
|
+
description: 'Check for React XSS vectors'
|
|
616
|
+
|
|
617
|
+
- id: check-shell-true
|
|
618
|
+
action: grep_pattern
|
|
619
|
+
pattern: 'shell\\s*=\\s*True|os\\.system\\(|os\\.popen\\('
|
|
620
|
+
severity: CRITICAL
|
|
621
|
+
description: 'Check for Python command injection'
|
|
622
|
+
|
|
623
|
+
- id: check-hardcoded-secrets
|
|
624
|
+
action: grep_pattern
|
|
625
|
+
pattern: 'api[_-]?key\\s*[=:]\\s*[''"][^''"]{10,}|password\\s*[=:]\\s*[''"][^''"]+'
|
|
626
|
+
severity: CRITICAL
|
|
627
|
+
description: 'Check for hardcoded secrets'
|
|
628
|
+
|
|
629
|
+
- id: check-sql-injection
|
|
630
|
+
action: grep_pattern
|
|
631
|
+
pattern: 'query\\s*\\(\\s*[''"`].*\\$\\{|execute\\s*\\(.*\\.format\\('
|
|
632
|
+
severity: CRITICAL
|
|
633
|
+
description: 'Check for SQL injection patterns'
|
|
634
|
+
|
|
635
|
+
- id: check-input-validation
|
|
636
|
+
action: grep_pattern
|
|
637
|
+
pattern: 'req\\.body\\.[a-zA-Z]+[^?]|req\\.query\\.[a-zA-Z]+[^?]'
|
|
638
|
+
severity: HIGH
|
|
639
|
+
description: 'Check for missing input validation'
|
|
640
|
+
|
|
641
|
+
- id: check-cors
|
|
642
|
+
action: grep_pattern
|
|
643
|
+
pattern: 'origin:\\s*[''"]\\*[''"]|Access-Control-Allow-Origin.*\\*'
|
|
644
|
+
severity: HIGH
|
|
645
|
+
description: 'Check for insecure CORS'
|
|
646
|
+
|
|
647
|
+
checks:
|
|
648
|
+
- id: no-critical-security
|
|
649
|
+
condition: 'no CRITICAL security issues'
|
|
650
|
+
severity: CRITICAL
|
|
651
|
+
message: 'Critical security vulnerability detected - BLOCKING'
|
|
652
|
+
|
|
653
|
+
- id: no-high-security
|
|
654
|
+
condition: 'no HIGH security issues'
|
|
655
|
+
severity: HIGH
|
|
656
|
+
message: 'High severity security issue detected'
|
|
657
|
+
|
|
658
|
+
output:
|
|
659
|
+
securityChecklist:
|
|
660
|
+
critical: '{count}'
|
|
661
|
+
high: '{count}'
|
|
662
|
+
issues: '[detailed list]'
|
|
663
|
+
blocking: true|false
|
|
664
|
+
|
|
665
|
+
# Phase 6.2: Migration Validation (Absorbed from Auto-Claude)
|
|
666
|
+
- id: 6.2
|
|
667
|
+
name: 'Migration Validation'
|
|
668
|
+
description: 'Validate database migrations for schema changes'
|
|
669
|
+
task: qa-migration-validation.md
|
|
670
|
+
blocking: false
|
|
671
|
+
conditional: 'schema_changes_detected'
|
|
672
|
+
actions:
|
|
673
|
+
- id: detect-framework
|
|
674
|
+
action: detect_db_framework
|
|
675
|
+
frameworks:
|
|
676
|
+
- supabase
|
|
677
|
+
- prisma
|
|
678
|
+
- drizzle
|
|
679
|
+
- django
|
|
680
|
+
- rails
|
|
681
|
+
- sequelize
|
|
682
|
+
|
|
683
|
+
- id: validate-migrations
|
|
684
|
+
action: validate_migrations
|
|
685
|
+
checks:
|
|
686
|
+
- migration_exists
|
|
687
|
+
- migration_matches_schema
|
|
688
|
+
- migration_reversible
|
|
689
|
+
- rls_policies_exist
|
|
690
|
+
|
|
691
|
+
checks:
|
|
692
|
+
- id: migrations-exist
|
|
693
|
+
condition: 'migration file exists for each schema change'
|
|
694
|
+
severity: CRITICAL
|
|
695
|
+
message: 'Missing migration for schema change'
|
|
696
|
+
|
|
697
|
+
- id: rls-policies
|
|
698
|
+
condition: 'RLS policies exist for new tables (Supabase)'
|
|
699
|
+
severity: HIGH
|
|
700
|
+
message: 'Missing RLS policies for new table'
|
|
701
|
+
|
|
702
|
+
output:
|
|
703
|
+
migrationValidation:
|
|
704
|
+
framework: '{detected}'
|
|
705
|
+
schemaChanges: '{count}'
|
|
706
|
+
migrationsFound: '{count}'
|
|
707
|
+
missing: '[list]'
|
|
708
|
+
issues: '[list]'
|
|
709
|
+
|
|
710
|
+
# Original Phase 6 actions (now Phase 6.3)
|
|
711
|
+
- id: 6.3
|
|
712
|
+
name: 'Code Quality & Patterns'
|
|
713
|
+
description: 'CodeRabbit, linting, dependency audit'
|
|
714
|
+
blocking: true
|
|
715
|
+
|
|
716
|
+
actions:
|
|
717
|
+
- id: security-scan
|
|
718
|
+
action: execute_coderabbit
|
|
719
|
+
type: 'security'
|
|
720
|
+
description: 'Run security vulnerability scan'
|
|
721
|
+
|
|
722
|
+
- id: pattern-check
|
|
723
|
+
action: analyze_patterns
|
|
724
|
+
rules:
|
|
725
|
+
- no_hardcoded_secrets
|
|
726
|
+
- no_console_logs_in_production
|
|
727
|
+
- proper_error_handling
|
|
728
|
+
- consistent_naming
|
|
729
|
+
|
|
730
|
+
- id: dependency-audit
|
|
731
|
+
action: execute_command
|
|
732
|
+
command: 'npm audit'
|
|
733
|
+
description: 'Check for vulnerable dependencies'
|
|
734
|
+
|
|
735
|
+
- id: lint-check
|
|
736
|
+
action: execute_command
|
|
737
|
+
command: 'npm run lint'
|
|
738
|
+
description: 'Run linter'
|
|
739
|
+
|
|
740
|
+
checks:
|
|
741
|
+
- id: no-secrets
|
|
742
|
+
condition: 'no hardcoded API keys, passwords, or tokens'
|
|
743
|
+
severity: HIGH
|
|
744
|
+
message: 'Hardcoded secrets detected'
|
|
745
|
+
|
|
746
|
+
- id: no-vulnerabilities
|
|
747
|
+
condition: 'no high/critical npm audit vulnerabilities'
|
|
748
|
+
severity: HIGH
|
|
749
|
+
message: 'Security vulnerabilities in dependencies'
|
|
750
|
+
|
|
751
|
+
- id: patterns-followed
|
|
752
|
+
condition: 'code follows project patterns'
|
|
753
|
+
severity: MEDIUM
|
|
754
|
+
message: 'Code pattern violations detected'
|
|
755
|
+
|
|
756
|
+
- id: lint-clean
|
|
757
|
+
condition: 'npm run lint exits with code 0'
|
|
758
|
+
severity: MEDIUM
|
|
759
|
+
message: 'Linting errors present'
|
|
760
|
+
|
|
761
|
+
output:
|
|
762
|
+
codeReview:
|
|
763
|
+
# Phase 6.0 - Library Validation
|
|
764
|
+
libraryValidation:
|
|
765
|
+
checked: '{count}'
|
|
766
|
+
issues: '[list]'
|
|
767
|
+
unresolved: '[list]'
|
|
768
|
+
# Phase 6.1 - Security Checklist
|
|
769
|
+
securityChecklist:
|
|
770
|
+
critical: '{count}'
|
|
771
|
+
high: '{count}'
|
|
772
|
+
issues: '[detailed list]'
|
|
773
|
+
# Phase 6.2 - Migration Validation
|
|
774
|
+
migrationValidation:
|
|
775
|
+
framework: '{detected}'
|
|
776
|
+
issues: '[list]'
|
|
777
|
+
# Phase 6.3 - Code Quality
|
|
778
|
+
security:
|
|
779
|
+
secrets: '[list of potential secrets]'
|
|
780
|
+
vulnerabilities:
|
|
781
|
+
critical: '{count}'
|
|
782
|
+
high: '{count}'
|
|
783
|
+
medium: '{count}'
|
|
784
|
+
low: '{count}'
|
|
785
|
+
patterns:
|
|
786
|
+
violations: '[list of violations]'
|
|
787
|
+
suggestions: '[list of improvements]'
|
|
788
|
+
lint:
|
|
789
|
+
errors: '{count}'
|
|
790
|
+
warnings: '{count}'
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+
### Phase 7: Regression Testing
|
|
794
|
+
|
|
795
|
+
```yaml
|
|
796
|
+
phase: 7
|
|
797
|
+
name: 'Regression Testing'
|
|
798
|
+
description: 'Verify existing features still work'
|
|
799
|
+
blocking: true
|
|
800
|
+
|
|
801
|
+
actions:
|
|
802
|
+
- id: identify-affected-areas
|
|
803
|
+
action: analyze_dependencies
|
|
804
|
+
source: 'changed files'
|
|
805
|
+
description: 'Identify areas potentially affected by changes'
|
|
806
|
+
|
|
807
|
+
- id: run-smoke-tests
|
|
808
|
+
action: execute_command
|
|
809
|
+
command: 'npm run test:smoke'
|
|
810
|
+
optional: true
|
|
811
|
+
description: 'Run smoke tests for critical paths'
|
|
812
|
+
|
|
813
|
+
- id: check-breaking-changes
|
|
814
|
+
action: analyze_api_diff
|
|
815
|
+
description: 'Check for breaking API changes'
|
|
816
|
+
|
|
817
|
+
- id: verify-backwards-compat
|
|
818
|
+
action: verify_compatibility
|
|
819
|
+
description: 'Verify backwards compatibility'
|
|
820
|
+
|
|
821
|
+
checks:
|
|
822
|
+
- id: no-regressions
|
|
823
|
+
condition: 'smoke tests pass'
|
|
824
|
+
severity: HIGH
|
|
825
|
+
message: 'Regression detected in existing functionality'
|
|
826
|
+
|
|
827
|
+
- id: api-stable
|
|
828
|
+
condition: 'no breaking API changes without version bump'
|
|
829
|
+
severity: HIGH
|
|
830
|
+
message: 'Breaking API changes detected'
|
|
831
|
+
|
|
832
|
+
- id: deps-compatible
|
|
833
|
+
condition: "dependency updates don't break existing features"
|
|
834
|
+
severity: MEDIUM
|
|
835
|
+
message: 'Dependency compatibility issues'
|
|
836
|
+
|
|
837
|
+
output:
|
|
838
|
+
regression:
|
|
839
|
+
affectedAreas: '[list of affected modules/components]'
|
|
840
|
+
smokeTestStatus: 'pass|fail|skip'
|
|
841
|
+
breakingChanges: '[list of breaking changes]'
|
|
842
|
+
regressionRisk: 'low|medium|high'
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
### Phase 8: Generate Report
|
|
846
|
+
|
|
847
|
+
```yaml
|
|
848
|
+
phase: 8
|
|
849
|
+
name: 'Generate Report'
|
|
850
|
+
description: 'Compile findings into comprehensive QA report'
|
|
851
|
+
blocking: true
|
|
852
|
+
|
|
853
|
+
actions:
|
|
854
|
+
- id: aggregate-findings
|
|
855
|
+
action: compile_results
|
|
856
|
+
sources:
|
|
857
|
+
- phase_0_context
|
|
858
|
+
- phase_1_subtasks
|
|
859
|
+
- phase_2_environment
|
|
860
|
+
- phase_3_testing
|
|
861
|
+
- phase_4_browser
|
|
862
|
+
- phase_5_database
|
|
863
|
+
- phase_6_code_review
|
|
864
|
+
- phase_7_regression
|
|
865
|
+
|
|
866
|
+
- id: categorize-issues
|
|
867
|
+
action: categorize
|
|
868
|
+
categories:
|
|
869
|
+
- CRITICAL: 'Security vulnerabilities, data loss, breaking changes'
|
|
870
|
+
- HIGH: 'Test failures, build errors, major bugs'
|
|
871
|
+
- MEDIUM: 'Code quality, pattern violations, minor bugs'
|
|
872
|
+
- LOW: 'Suggestions, optimizations, style issues'
|
|
873
|
+
|
|
874
|
+
- id: generate-markdown
|
|
875
|
+
action: render_template
|
|
876
|
+
template: qa-report-template.md
|
|
877
|
+
output: docs/stories/{storyId}/qa/qa_report.md
|
|
878
|
+
|
|
879
|
+
template: |
|
|
880
|
+
# QA Review Report: Story {storyId}
|
|
881
|
+
|
|
882
|
+
**Review Date:** {timestamp}
|
|
883
|
+
**Reviewed By:** Quinn (Test Architect)
|
|
884
|
+
**Signal:** {APPROVE|REJECT}
|
|
885
|
+
|
|
886
|
+
---
|
|
887
|
+
|
|
888
|
+
## Executive Summary
|
|
889
|
+
|
|
890
|
+
{summary_paragraph}
|
|
891
|
+
|
|
892
|
+
## Phase Results
|
|
893
|
+
|
|
894
|
+
### Phase 0: Context Loaded
|
|
895
|
+
- Spec: {loaded|not_found}
|
|
896
|
+
- Implementation Plan: {loaded|not_found}
|
|
897
|
+
- Story File: {loaded|not_found}
|
|
898
|
+
|
|
899
|
+
### Phase 1: Subtasks Verification
|
|
900
|
+
- Total Subtasks: {count}
|
|
901
|
+
- Completed: {count}
|
|
902
|
+
- Pending: {count}
|
|
903
|
+
- Commits Found: {count}
|
|
904
|
+
|
|
905
|
+
### Phase 2: Environment
|
|
906
|
+
- Dependencies: {installed|failed}
|
|
907
|
+
- Build: {success|failed}
|
|
908
|
+
- TypeScript: {clean|errors}
|
|
909
|
+
|
|
910
|
+
### Phase 3: Automated Tests
|
|
911
|
+
- Unit Tests: {passed}/{total} ({percentage}%)
|
|
912
|
+
- Integration Tests: {status}
|
|
913
|
+
- E2E Tests: {status}
|
|
914
|
+
- Coverage: {percentage}%
|
|
915
|
+
|
|
916
|
+
### Phase 4: Browser Verification
|
|
917
|
+
- Applicable: {yes|no}
|
|
918
|
+
- Playwright: {status}
|
|
919
|
+
- Visual Regression: {status}
|
|
920
|
+
- Accessibility: {violations} violations
|
|
921
|
+
|
|
922
|
+
### Phase 5: Database Validation
|
|
923
|
+
- Applicable: {yes|no}
|
|
924
|
+
- Migrations: {status}
|
|
925
|
+
- Schema: {valid|invalid}
|
|
926
|
+
|
|
927
|
+
### Phase 6: Code Review
|
|
928
|
+
- Security Issues: {count}
|
|
929
|
+
- Pattern Violations: {count}
|
|
930
|
+
- Lint Errors: {count}
|
|
931
|
+
|
|
932
|
+
### Phase 7: Regression Testing
|
|
933
|
+
- Affected Areas: {count}
|
|
934
|
+
- Smoke Tests: {status}
|
|
935
|
+
- Breaking Changes: {count}
|
|
936
|
+
|
|
937
|
+
---
|
|
938
|
+
|
|
939
|
+
## Issues Found
|
|
940
|
+
|
|
941
|
+
### Critical Issues
|
|
942
|
+
{list_critical_issues}
|
|
943
|
+
|
|
944
|
+
### High Priority Issues
|
|
945
|
+
{list_high_issues}
|
|
946
|
+
|
|
947
|
+
### Medium Priority Issues
|
|
948
|
+
{list_medium_issues}
|
|
949
|
+
|
|
950
|
+
### Low Priority Issues
|
|
951
|
+
{list_low_issues}
|
|
952
|
+
|
|
953
|
+
---
|
|
954
|
+
|
|
955
|
+
## Recommendations
|
|
956
|
+
|
|
957
|
+
### Must Fix Before Approval
|
|
958
|
+
{must_fix_list}
|
|
959
|
+
|
|
960
|
+
### Suggested Improvements
|
|
961
|
+
{suggestions_list}
|
|
962
|
+
|
|
963
|
+
---
|
|
964
|
+
|
|
965
|
+
## Signal: {APPROVE|REJECT}
|
|
966
|
+
|
|
967
|
+
**Reason:** {signal_reason}
|
|
968
|
+
|
|
969
|
+
**Next Actions:**
|
|
970
|
+
{next_actions_list}
|
|
971
|
+
|
|
972
|
+
---
|
|
973
|
+
|
|
974
|
+
*Generated by Quinn (@qa) via qa-review-build task*
|
|
975
|
+
|
|
976
|
+
output:
|
|
977
|
+
report:
|
|
978
|
+
path: docs/stories/{storyId}/qa/qa_report.md
|
|
979
|
+
generated: true
|
|
980
|
+
```
|
|
981
|
+
|
|
982
|
+
### Phase 9: Update Implementation Plan
|
|
983
|
+
|
|
984
|
+
```yaml
|
|
985
|
+
phase: 9
|
|
986
|
+
name: 'Update Implementation Plan'
|
|
987
|
+
description: 'Mark story as reviewed, add issues to implementation plan'
|
|
988
|
+
blocking: false
|
|
989
|
+
|
|
990
|
+
actions:
|
|
991
|
+
- id: update-status-json
|
|
992
|
+
action: update_json
|
|
993
|
+
path: .grimoire/status.json
|
|
994
|
+
updates:
|
|
995
|
+
- path: 'stories.{storyId}.qaReviewed'
|
|
996
|
+
value: true
|
|
997
|
+
- path: 'stories.{storyId}.qaSignal'
|
|
998
|
+
value: '{APPROVE|REJECT}'
|
|
999
|
+
- path: 'stories.{storyId}.qaReviewedAt'
|
|
1000
|
+
value: '{timestamp}'
|
|
1001
|
+
|
|
1002
|
+
- id: update-implementation
|
|
1003
|
+
action: update_yaml
|
|
1004
|
+
path: docs/stories/{storyId}/implementation/implementation.yaml
|
|
1005
|
+
updates:
|
|
1006
|
+
- path: 'qa.reviewed'
|
|
1007
|
+
value: true
|
|
1008
|
+
- path: 'qa.signal'
|
|
1009
|
+
value: '{APPROVE|REJECT}'
|
|
1010
|
+
- path: 'qa.issues'
|
|
1011
|
+
value: '{issues_list}'
|
|
1012
|
+
|
|
1013
|
+
- id: create-fix-requests
|
|
1014
|
+
action: create_issues
|
|
1015
|
+
condition: 'signal == REJECT'
|
|
1016
|
+
issues: '{critical_and_high_issues}'
|
|
1017
|
+
format: fix-request
|
|
1018
|
+
|
|
1019
|
+
output:
|
|
1020
|
+
updates:
|
|
1021
|
+
statusJson: 'updated'
|
|
1022
|
+
implementationYaml: 'updated'
|
|
1023
|
+
fixRequestsCreated: '{count}'
|
|
1024
|
+
```
|
|
1025
|
+
|
|
1026
|
+
### Phase 10: Signal Completion
|
|
1027
|
+
|
|
1028
|
+
```yaml
|
|
1029
|
+
phase: 10
|
|
1030
|
+
name: 'Signal Completion'
|
|
1031
|
+
description: 'Emit final APPROVE or REJECT signal'
|
|
1032
|
+
blocking: true
|
|
1033
|
+
|
|
1034
|
+
actions:
|
|
1035
|
+
- id: calculate-signal
|
|
1036
|
+
action: determine_verdict
|
|
1037
|
+
rules:
|
|
1038
|
+
REJECT:
|
|
1039
|
+
- any_critical_issues: true
|
|
1040
|
+
- any_high_issues_unfixed: true
|
|
1041
|
+
- build_failed: true
|
|
1042
|
+
- unit_tests_failed: true
|
|
1043
|
+
APPROVE:
|
|
1044
|
+
- all_above_false: true
|
|
1045
|
+
- subtasks_complete: true
|
|
1046
|
+
|
|
1047
|
+
- id: notify-completion
|
|
1048
|
+
action: emit_signal
|
|
1049
|
+
signal: '{APPROVE|REJECT}'
|
|
1050
|
+
metadata:
|
|
1051
|
+
storyId: '{storyId}'
|
|
1052
|
+
reviewedBy: 'Quinn'
|
|
1053
|
+
reviewedAt: '{timestamp}'
|
|
1054
|
+
reportPath: 'docs/stories/{storyId}/qa/qa_report.md'
|
|
1055
|
+
|
|
1056
|
+
- id: update-story-status
|
|
1057
|
+
action: recommend_status
|
|
1058
|
+
condition: 'signal == APPROVE'
|
|
1059
|
+
recommendation: 'Ready for Done'
|
|
1060
|
+
|
|
1061
|
+
checks:
|
|
1062
|
+
- id: signal-clear
|
|
1063
|
+
condition: 'signal is definitively APPROVE or REJECT'
|
|
1064
|
+
severity: HIGH
|
|
1065
|
+
message: 'Unable to determine clear signal'
|
|
1066
|
+
|
|
1067
|
+
output:
|
|
1068
|
+
signal: 'APPROVE|REJECT'
|
|
1069
|
+
reason: '{detailed_reason}'
|
|
1070
|
+
nextSteps:
|
|
1071
|
+
APPROVE:
|
|
1072
|
+
- 'Story ready for Done status'
|
|
1073
|
+
- 'PR can be merged'
|
|
1074
|
+
- 'Deploy to staging/production'
|
|
1075
|
+
REJECT:
|
|
1076
|
+
- 'Review issues in qa_report.md'
|
|
1077
|
+
- 'Fix critical and high priority issues'
|
|
1078
|
+
- 'Re-run *review-build {storyId}'
|
|
1079
|
+
```
|
|
1080
|
+
|
|
1081
|
+
---
|
|
1082
|
+
|
|
1083
|
+
## Signal Logic
|
|
1084
|
+
|
|
1085
|
+
```yaml
|
|
1086
|
+
signal_rules:
|
|
1087
|
+
APPROVE:
|
|
1088
|
+
condition: |
|
|
1089
|
+
- No CRITICAL issues
|
|
1090
|
+
- No HIGH issues (or all HIGH issues resolved)
|
|
1091
|
+
- Build succeeds
|
|
1092
|
+
- Unit tests pass
|
|
1093
|
+
- All subtasks completed
|
|
1094
|
+
meaning: 'Build is ready for production'
|
|
1095
|
+
next_action: 'Proceed to deployment'
|
|
1096
|
+
|
|
1097
|
+
REJECT:
|
|
1098
|
+
condition: |
|
|
1099
|
+
- Any CRITICAL issue present OR
|
|
1100
|
+
- Any HIGH issue unresolved OR
|
|
1101
|
+
- Build fails OR
|
|
1102
|
+
- Unit tests fail OR
|
|
1103
|
+
- Subtasks incomplete
|
|
1104
|
+
meaning: 'Build requires fixes before approval'
|
|
1105
|
+
next_action: 'Return to @dev with fix requests'
|
|
1106
|
+
```
|
|
1107
|
+
|
|
1108
|
+
---
|
|
1109
|
+
|
|
1110
|
+
## Command Integration
|
|
1111
|
+
|
|
1112
|
+
```yaml
|
|
1113
|
+
command:
|
|
1114
|
+
name: '*review-build'
|
|
1115
|
+
syntax: '*review-build {story-id} [--quick] [--skip-browser] [--skip-db]'
|
|
1116
|
+
agent: qa
|
|
1117
|
+
|
|
1118
|
+
flags:
|
|
1119
|
+
--quick: 'Skip optional phases (4, 5)'
|
|
1120
|
+
--skip-browser: 'Skip Phase 4 (Browser Verification)'
|
|
1121
|
+
--skip-db: 'Skip Phase 5 (Database Validation)'
|
|
1122
|
+
|
|
1123
|
+
examples:
|
|
1124
|
+
- '*review-build 6.1'
|
|
1125
|
+
- '*review-build 6.1 --quick'
|
|
1126
|
+
- '*review-build 6.1 --skip-browser'
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
---
|
|
1130
|
+
|
|
1131
|
+
## Output Files
|
|
1132
|
+
|
|
1133
|
+
### Primary Output: qa_report.md
|
|
1134
|
+
|
|
1135
|
+
```yaml
|
|
1136
|
+
location: docs/stories/{storyId}/qa/qa_report.md
|
|
1137
|
+
format: markdown
|
|
1138
|
+
contents:
|
|
1139
|
+
- executive_summary
|
|
1140
|
+
- phase_results (all 10 phases)
|
|
1141
|
+
- issues_by_severity
|
|
1142
|
+
- recommendations
|
|
1143
|
+
- signal_with_reason
|
|
1144
|
+
```
|
|
1145
|
+
|
|
1146
|
+
### Secondary Output: status.json
|
|
1147
|
+
|
|
1148
|
+
```yaml
|
|
1149
|
+
location: .grimoire/status.json
|
|
1150
|
+
updates:
|
|
1151
|
+
- stories.{storyId}.qaReviewed: true
|
|
1152
|
+
- stories.{storyId}.qaSignal: 'APPROVE|REJECT'
|
|
1153
|
+
- stories.{storyId}.qaReviewedAt: '{ISO-8601}'
|
|
1154
|
+
- stories.{storyId}.qaIssues: '[issue_ids]'
|
|
1155
|
+
```
|
|
1156
|
+
|
|
1157
|
+
---
|
|
1158
|
+
|
|
1159
|
+
## Error Handling
|
|
1160
|
+
|
|
1161
|
+
```yaml
|
|
1162
|
+
errors:
|
|
1163
|
+
- id: spec-not-found
|
|
1164
|
+
condition: 'spec.md does not exist'
|
|
1165
|
+
action: 'HALT - Cannot review without specification'
|
|
1166
|
+
blocking: true
|
|
1167
|
+
|
|
1168
|
+
- id: build-timeout
|
|
1169
|
+
condition: 'npm run build exceeds timeout'
|
|
1170
|
+
action: 'Log timeout, mark build as FAILED'
|
|
1171
|
+
blocking: true
|
|
1172
|
+
|
|
1173
|
+
- id: test-timeout
|
|
1174
|
+
condition: 'tests exceed timeout'
|
|
1175
|
+
action: 'Log timeout, continue with partial results'
|
|
1176
|
+
blocking: false
|
|
1177
|
+
|
|
1178
|
+
- id: phase-failure
|
|
1179
|
+
condition: 'blocking phase fails'
|
|
1180
|
+
action: 'Stop review, generate partial report with REJECT signal'
|
|
1181
|
+
blocking: true
|
|
1182
|
+
```
|
|
1183
|
+
|
|
1184
|
+
---
|
|
1185
|
+
|
|
1186
|
+
## Integration with QA Agent
|
|
1187
|
+
|
|
1188
|
+
This task is automatically triggered by the `*review-build` command in the @qa agent:
|
|
1189
|
+
|
|
1190
|
+
```yaml
|
|
1191
|
+
agent_integration:
|
|
1192
|
+
command: '*review-build {story-id}'
|
|
1193
|
+
task_file: qa-review-build.md
|
|
1194
|
+
agent: qa
|
|
1195
|
+
|
|
1196
|
+
pre_requisites:
|
|
1197
|
+
- Story exists in docs/stories/
|
|
1198
|
+
- Story status is "Review" or "In Progress"
|
|
1199
|
+
- Spec file exists
|
|
1200
|
+
|
|
1201
|
+
post_actions:
|
|
1202
|
+
- Update QA Results section in story file
|
|
1203
|
+
- Create/update gate file in qa.qaLocation/gates
|
|
1204
|
+
- Emit signal to status.json
|
|
1205
|
+
```
|
|
1206
|
+
|
|
1207
|
+
---
|
|
1208
|
+
|
|
1209
|
+
## Metadata
|
|
1210
|
+
|
|
1211
|
+
```yaml
|
|
1212
|
+
metadata:
|
|
1213
|
+
story: '6.1'
|
|
1214
|
+
epic: 'Epic 6 - QA Evolution'
|
|
1215
|
+
created: '2026-01-29'
|
|
1216
|
+
author: '@architect'
|
|
1217
|
+
version: '1.0.0'
|
|
1218
|
+
tags:
|
|
1219
|
+
- qa-evolution
|
|
1220
|
+
- review-build
|
|
1221
|
+
- 10-phase-review
|
|
1222
|
+
- quality-gate
|
|
1223
|
+
- automated-testing
|
|
1224
|
+
```
|
|
1225
|
+
|