sinapse-ai 1.16.0 → 1.19.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/hooks/doc-first-gate.cjs +156 -0
- package/.claude/hooks/enforce-story-gate.cjs +6 -2
- package/.claude/rules/documentation-first.md +6 -0
- package/.claude/rules/hook-governance.md +1 -0
- package/.sinapse-ai/constitution.md +3 -3
- package/.sinapse-ai/core/atlas/atlas-data.js +278 -0
- package/.sinapse-ai/core/atlas/flows-pt.js +253 -0
- package/.sinapse-ai/core/atlas/flows.js +266 -0
- package/.sinapse-ai/core/atlas/index.js +62 -0
- package/.sinapse-ai/core/atlas/render-html.js +216 -0
- package/.sinapse-ai/core/atlas/render-markdown.js +313 -0
- package/.sinapse-ai/core/atlas/render-research-card.js +164 -0
- package/.sinapse-ai/core/code-intel/registry-syncer.js +5 -3
- package/.sinapse-ai/core/doctor/checks/agent-memory.js +7 -5
- package/.sinapse-ai/core/doctor/checks/claude-md.js +13 -0
- package/.sinapse-ai/core/doctor/checks/constitution-consistency.js +1 -0
- package/.sinapse-ai/core/doctor/checks/hooks-claude-count.js +11 -0
- package/.sinapse-ai/core/doctor/checks/settings-json.js +16 -2
- package/.sinapse-ai/core/doctor/index.js +27 -0
- package/.sinapse-ai/core/execution/build-orchestrator.js +192 -8
- package/.sinapse-ai/core/external-executors/delegate-cli.js +6 -2
- package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +2 -1
- package/.sinapse-ai/core/ideation/ideation-engine.js +10 -8
- package/.sinapse-ai/core/mcp/config-migrator.js +8 -5
- package/.sinapse-ai/core/mcp/global-config-manager.js +4 -1
- package/.sinapse-ai/core/mcp/symlink-manager.js +6 -3
- package/.sinapse-ai/core/orchestration/brownfield-handler.js +5 -4
- package/.sinapse-ai/core/orchestration/build-command.js +136 -0
- package/.sinapse-ai/core/orchestration/doc-first-resolver.js +322 -0
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +3 -0
- package/.sinapse-ai/core/orchestration/gate-evaluator.js +58 -9
- package/.sinapse-ai/core/orchestration/route-command.js +97 -0
- package/.sinapse-ai/core/orchestration/session-state.js +19 -2
- package/.sinapse-ai/core/orchestration/terminal-spawner.js +24 -1
- package/.sinapse-ai/core/orchestration/workflow-executor.js +102 -3
- package/.sinapse-ai/core/quality-gates/focus-area-recommender.js +15 -11
- package/.sinapse-ai/core/registry/build-registry.js +3 -2
- package/.sinapse-ai/core/synapse/scripts/generate-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/utils/atomic-write.js +34 -9
- package/.sinapse-ai/core-config.yaml +5 -1
- package/.sinapse-ai/data/capability-detection.js +3 -3
- package/.sinapse-ai/data/entity-registry.yaml +288 -90
- package/.sinapse-ai/data/mcp-discipline.js +1 -1
- package/.sinapse-ai/data/mcp-tool-examples.yaml +8 -8
- package/.sinapse-ai/data/tok2-validation.js +1 -1
- package/.sinapse-ai/data/tool-registry.yaml +4 -3
- package/.sinapse-ai/development/agents/snps-orqx.md +14 -5
- package/.sinapse-ai/development/scripts/migrate-task-to-v2.js +1 -1
- package/.sinapse-ai/development/scripts/validate-task-v2.js +67 -4
- package/.sinapse-ai/development/tasks/advanced-elicitation.md +3 -3
- package/.sinapse-ai/development/tasks/analyst-facilitate-brainstorming.md +3 -3
- package/.sinapse-ai/development/tasks/analyze-framework.md +1 -8
- package/.sinapse-ai/development/tasks/analyze-performance.md +1 -8
- package/.sinapse-ai/development/tasks/apply-qa-fixes.md +3 -3
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +3 -3
- package/.sinapse-ai/development/tasks/audit-codebase.md +1 -8
- package/.sinapse-ai/development/tasks/audit-tailwind-config.md +1 -4
- package/.sinapse-ai/development/tasks/audit-utilities.md +1 -8
- package/.sinapse-ai/development/tasks/bootstrap-shadcn-library.md +3 -3
- package/.sinapse-ai/development/tasks/brownfield-create-epic.md +3 -3
- package/.sinapse-ai/development/tasks/brownfield-create-story.md +3 -3
- package/.sinapse-ai/development/tasks/build-component.md +2 -5
- package/.sinapse-ai/development/tasks/calculate-roi.md +3 -3
- package/.sinapse-ai/development/tasks/ci-cd-configuration.md +1 -1
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +3 -3
- package/.sinapse-ai/development/tasks/collaborative-edit.md +3 -3
- package/.sinapse-ai/development/tasks/compose-molecule.md +2 -5
- package/.sinapse-ai/development/tasks/consolidate-patterns.md +3 -3
- package/.sinapse-ai/development/tasks/correct-course.md +3 -3
- package/.sinapse-ai/development/tasks/create-brownfield-story.md +2 -5
- package/.sinapse-ai/development/tasks/create-deep-research-prompt.md +2 -5
- package/.sinapse-ai/development/tasks/create-doc.md +3 -6
- package/.sinapse-ai/development/tasks/create-next-story.md +4 -8
- package/.sinapse-ai/development/tasks/create-suite.md +2 -5
- package/.sinapse-ai/development/tasks/create-task.md +2 -5
- package/.sinapse-ai/development/tasks/create-workflow.md +2 -5
- package/.sinapse-ai/development/tasks/db-analyze-hotpaths.md +1 -8
- package/.sinapse-ai/development/tasks/db-apply-migration.md +1 -8
- package/.sinapse-ai/development/tasks/db-bootstrap.md +1 -8
- package/.sinapse-ai/development/tasks/db-domain-modeling.md +1 -8
- package/.sinapse-ai/development/tasks/db-dry-run.md +1 -8
- package/.sinapse-ai/development/tasks/db-env-check.md +1 -8
- package/.sinapse-ai/development/tasks/db-explain.md +1 -8
- package/.sinapse-ai/development/tasks/db-impersonate.md +1 -8
- package/.sinapse-ai/development/tasks/db-load-csv.md +1 -8
- package/.sinapse-ai/development/tasks/db-policy-apply.md +1 -8
- package/.sinapse-ai/development/tasks/db-rls-audit.md +1 -8
- package/.sinapse-ai/development/tasks/db-rollback.md +1 -8
- package/.sinapse-ai/development/tasks/db-run-sql.md +1 -8
- package/.sinapse-ai/development/tasks/db-schema-audit.md +1 -8
- package/.sinapse-ai/development/tasks/db-seed.md +1 -8
- package/.sinapse-ai/development/tasks/db-smoke-test.md +1 -8
- package/.sinapse-ai/development/tasks/db-snapshot.md +1 -8
- package/.sinapse-ai/development/tasks/db-squad-integration.md +1 -8
- package/.sinapse-ai/development/tasks/db-supabase-setup.md +1 -8
- package/.sinapse-ai/development/tasks/db-verify-order.md +1 -8
- package/.sinapse-ai/development/tasks/deprecate-component.md +3 -3
- package/.sinapse-ai/development/tasks/dev-apply-qa-fixes.md +3 -3
- package/.sinapse-ai/development/tasks/dev-backlog-debt.md +3 -3
- package/.sinapse-ai/development/tasks/dev-develop-story.md +1 -1
- package/.sinapse-ai/development/tasks/dev-improve-code-quality.md +3 -3
- package/.sinapse-ai/development/tasks/dev-optimize-performance.md +3 -3
- package/.sinapse-ai/development/tasks/dev-suggest-refactoring.md +3 -3
- package/.sinapse-ai/development/tasks/dev-validate-next-story.md +3 -3
- package/.sinapse-ai/development/tasks/document-project.md +3 -3
- package/.sinapse-ai/development/tasks/environment-bootstrap.md +0 -4
- package/.sinapse-ai/development/tasks/execute-checklist.md +3 -3
- package/.sinapse-ai/development/tasks/export-design-tokens-dtcg.md +3 -3
- package/.sinapse-ai/development/tasks/extend-pattern.md +1 -8
- package/.sinapse-ai/development/tasks/extract-tokens.md +3 -3
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +1 -1
- package/.sinapse-ai/development/tasks/generate-ai-frontend-prompt.md +2 -5
- package/.sinapse-ai/development/tasks/generate-documentation.md +2 -5
- package/.sinapse-ai/development/tasks/generate-migration-strategy.md +2 -5
- package/.sinapse-ai/development/tasks/generate-shock-report.md +2 -5
- package/.sinapse-ai/development/tasks/github-devops-github-pr-automation.md +3 -3
- package/.sinapse-ai/development/tasks/github-devops-repository-cleanup.md +3 -3
- package/.sinapse-ai/development/tasks/github-devops-version-management.md +3 -3
- package/.sinapse-ai/development/tasks/improve-self.md +1 -16
- package/.sinapse-ai/development/tasks/index-docs.md +1 -4
- package/.sinapse-ai/development/tasks/init-project-status.md +1 -7
- package/.sinapse-ai/development/tasks/integrate-squad.md +3 -3
- package/.sinapse-ai/development/tasks/kb-mode-interaction.md +3 -3
- package/.sinapse-ai/development/tasks/learn-patterns.md +3 -3
- package/.sinapse-ai/development/tasks/modify-agent.md +1 -8
- package/.sinapse-ai/development/tasks/modify-task.md +1 -8
- package/.sinapse-ai/development/tasks/modify-workflow.md +1 -8
- package/.sinapse-ai/development/tasks/po-backlog-add.md +3 -3
- package/.sinapse-ai/development/tasks/po-manage-story-backlog.md +3 -3
- package/.sinapse-ai/development/tasks/po-pull-story-from-clickup.md +3 -3
- package/.sinapse-ai/development/tasks/po-pull-story.md +3 -3
- package/.sinapse-ai/development/tasks/po-stories-index.md +3 -3
- package/.sinapse-ai/development/tasks/po-sync-story-to-clickup.md +3 -3
- package/.sinapse-ai/development/tasks/po-sync-story.md +3 -3
- package/.sinapse-ai/development/tasks/pr-automation.md +1 -1
- package/.sinapse-ai/development/tasks/propose-modification.md +3 -3
- package/.sinapse-ai/development/tasks/qa-backlog-add-followup.md +1 -8
- package/.sinapse-ai/development/tasks/qa-create-fix-request.md +1 -4
- package/.sinapse-ai/development/tasks/qa-gate.md +1 -8
- package/.sinapse-ai/development/tasks/qa-generate-tests.md +1 -8
- package/.sinapse-ai/development/tasks/qa-nfr-assess.md +1 -8
- package/.sinapse-ai/development/tasks/qa-review-proposal.md +1 -8
- package/.sinapse-ai/development/tasks/qa-review-story.md +1 -8
- package/.sinapse-ai/development/tasks/qa-risk-profile.md +1 -8
- package/.sinapse-ai/development/tasks/qa-run-tests.md +1 -8
- package/.sinapse-ai/development/tasks/qa-test-design.md +1 -8
- package/.sinapse-ai/development/tasks/qa-trace-requirements.md +1 -8
- package/.sinapse-ai/development/tasks/release-management.md +1 -1
- package/.sinapse-ai/development/tasks/security-audit.md +1 -4
- package/.sinapse-ai/development/tasks/security-scan.md +1 -4
- package/.sinapse-ai/development/tasks/setup-database.md +2 -11
- package/.sinapse-ai/development/tasks/setup-design-system.md +2 -11
- package/.sinapse-ai/development/tasks/shard-doc.md +3 -3
- package/.sinapse-ai/development/tasks/sm-create-next-story.md +3 -3
- package/.sinapse-ai/development/tasks/spec-gather-requirements.md +11 -0
- package/.sinapse-ai/development/tasks/sync-documentation.md +1 -6
- package/.sinapse-ai/development/tasks/tailwind-upgrade.md +3 -3
- package/.sinapse-ai/development/tasks/test-as-user.md +3 -3
- package/.sinapse-ai/development/tasks/undo-last.md +2 -5
- package/.sinapse-ai/development/tasks/update-manifest.md +1 -8
- package/.sinapse-ai/development/tasks/ux-create-wireframe.md +1 -1
- package/.sinapse-ai/development/tasks/ux-ds-scan-artifact.md +3 -3
- package/.sinapse-ai/development/tasks/ux-user-research.md +3 -3
- package/.sinapse-ai/development/tasks/validate-next-story.md +1 -8
- package/.sinapse-ai/development/templates/approval-table.md +106 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-ensure.cjs +1 -1
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +1 -0
- package/.sinapse-ai/git-hooks/post-commit +0 -0
- package/.sinapse-ai/git-hooks/pre-commit +0 -0
- package/.sinapse-ai/git-hooks/pre-push +0 -0
- package/.sinapse-ai/infrastructure/scripts/changelog-generator.js +5 -1
- package/.sinapse-ai/infrastructure/scripts/pattern-extractor.js +11 -2
- package/.sinapse-ai/infrastructure/scripts/test-utilities.js +34 -13
- package/.sinapse-ai/infrastructure/scripts/usage-analytics.js +9 -5
- package/.sinapse-ai/infrastructure/scripts/validate-claude-integration.js +10 -2
- package/.sinapse-ai/install-manifest.yaml +364 -320
- package/.sinapse-ai/lib/build.json +1 -0
- package/.sinapse-ai/product/templates/personalized-task-template-v2.md +4 -2
- package/.sinapse-ai/product/templates/prd-tmpl.yaml +6 -2
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +7 -3
- package/CHANGELOG.md +85 -7
- package/README.en.md +5 -5
- package/README.md +5 -5
- package/bin/cli.js +1 -1
- package/bin/commands/install.js +288 -114
- package/bin/commands/local.js +11 -0
- package/bin/lib/command-generator.js +31 -2
- package/bin/sinapse.js +121 -0
- package/docs/README.md +1 -1
- package/docs/agent-reference-guide.md +1 -1
- package/docs/community/README-community-snippet-core.md +1 -1
- package/docs/community/README-community-snippet-mcp.md +1 -1
- package/docs/community/README-community-snippet-squads.md +1 -1
- package/docs/examples/quickstart-recording.md +1 -1
- package/docs/framework/README.md +1 -1
- package/docs/framework/architecture-overview.md +1 -0
- package/docs/framework/atlas/OPERATING-ATLAS.md +537 -0
- package/docs/framework/atlas/README.md +34 -0
- package/docs/framework/atlas/atlas-data.json +2810 -0
- package/docs/framework/atlas/atlas.html +392 -0
- package/docs/framework/coding-standards.md +1 -1
- package/docs/framework/core-architecture.md +1 -1
- package/docs/framework/guiding-principles.md +1 -1
- package/docs/framework/source-tree.md +1 -1
- package/docs/framework/tech-stack.md +1 -1
- package/docs/framework/versioning-and-releases.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/guides/agent-reference.md +1 -1
- package/docs/guides/agent-selection-guide.md +1 -1
- package/docs/guides/api-reference.md +1 -1
- package/docs/guides/contextual-greeting-system-guide.md +1 -1
- package/docs/guides/contributing-squads.md +1 -1
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/git-workflow-guide.md +1 -1
- package/docs/guides/installation-troubleshooting.md +1 -1
- package/docs/guides/llm-routing.md +1 -1
- package/docs/guides/mcp-global-setup.md +1 -1
- package/docs/guides/meta-agent-commands.md +1 -1
- package/docs/guides/project-status-feature.md +1 -1
- package/docs/guides/quality-dashboard.md +1 -1
- package/docs/guides/quality-gates.md +1 -1
- package/docs/guides/security-hardening.md +1 -1
- package/docs/guides/service-discovery.md +19 -22
- package/docs/guides/squad-examples/README.md +1 -1
- package/docs/guides/squad-migration.md +1 -1
- package/docs/guides/squads-guide.md +1 -1
- package/docs/guides/squads-overview.md +10 -13
- package/docs/guides/template-engine-v2.md +1 -1
- package/docs/guides/testing-guide.md +1 -1
- package/docs/guides/user-guide.md +30 -26
- package/docs/installation/README.md +3 -3
- package/docs/installation/faq.md +1 -1
- package/docs/installation/linux.md +2 -2
- package/docs/installation/macos.md +1 -1
- package/docs/installation/npx-install.md +1 -1
- package/docs/installation/troubleshooting.md +1 -1
- package/docs/installation/uninstallation.md +1 -1
- package/docs/installation/v4-quick-start.md +1 -1
- package/docs/installation/windows.md +2 -2
- package/docs/pt/CHANGELOG.md +1 -1
- package/docs/pt/DOCUMENTATION-ROADMAP.md +1 -1
- package/docs/pt/ENVIRONMENT.md +1 -1
- package/docs/pt/FEATURE_PROCESS.md +2 -2
- package/docs/pt/GUIDING-PRINCIPLES.md +2 -2
- package/docs/pt/agent-reference-guide.md +3 -3
- package/docs/pt/architecture/ARCHITECTURE-INDEX.md +2 -2
- package/docs/pt/architecture/ade-architecture.md +1 -1
- package/docs/pt/architecture/agent-config-audit.md +1 -1
- package/docs/pt/architecture/agent-responsibility-matrix.md +1 -1
- package/docs/pt/architecture/agent-tool-integration-guide.md +1 -1
- package/docs/pt/architecture/ci-cd.md +1 -1
- package/docs/pt/architecture/coding-standards.md +1 -1
- package/docs/pt/architecture/contribution-workflow-research.md +1 -1
- package/docs/pt/architecture/dashboard-architecture.md +1 -1
- package/docs/pt/architecture/dashboard-realtime.md +1 -1
- package/docs/pt/architecture/hcs-check-specifications.md +1 -1
- package/docs/pt/architecture/hcs-execution-modes.md +1 -1
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -1
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/architecture/introduction.md +1 -1
- package/docs/pt/architecture/mcp-api-keys-management.md +3 -3
- package/docs/pt/architecture/mcp-system-diagrams.md +1 -1
- package/docs/pt/architecture/module-system.md +4 -4
- package/docs/pt/architecture/multi-repo-strategy.md +2 -2
- package/docs/pt/architecture/source-tree.md +1 -1
- package/docs/pt/architecture/squad-improvement-analysis.md +1 -1
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +1 -1
- package/docs/pt/architecture/tech-stack.md +1 -1
- package/docs/pt/architecture/utility-integration-guide.md +1 -1
- package/docs/pt/code-of-conduct.md +1 -1
- package/docs/pt/community/README-community-snippet-core.md +1 -1
- package/docs/pt/community/README-community-snippet-mcp.md +2 -2
- package/docs/pt/contributing.md +7 -7
- package/docs/pt/core-architecture.md +1 -1
- package/docs/pt/docker-mcp-setup.md +1 -1
- package/docs/pt/framework/README.md +1 -1
- package/docs/pt/framework/coding-standards.md +1 -1
- package/docs/pt/framework/source-tree.md +1 -1
- package/docs/pt/framework/tech-stack.md +1 -1
- package/docs/pt/getting-started.md +1 -1
- package/docs/pt/git-workflow-guide.md +1 -1
- package/docs/pt/guides/README.md +3 -3
- package/docs/pt/guides/agent-selection-guide.md +2 -2
- package/docs/pt/guides/api-reference.md +1 -1
- package/docs/pt/guides/contextual-greeting-system-guide.md +1 -1
- package/docs/pt/guides/contributing-squads.md +1 -1
- package/docs/pt/guides/development-setup.md +1 -1
- package/docs/pt/guides/installation-troubleshooting.md +1 -1
- package/docs/pt/guides/llm-routing.md +1 -1
- package/docs/pt/guides/mcp/desktop-commander.md +1 -1
- package/docs/pt/guides/mcp/docker-gateway-tutorial.md +1 -1
- package/docs/pt/guides/mcp-global-setup.md +1 -1
- package/docs/pt/guides/project-status-feature.md +1 -1
- package/docs/pt/guides/quality-dashboard.md +1 -1
- package/docs/pt/guides/quality-gates.md +1 -1
- package/docs/pt/guides/security-hardening.md +2 -2
- package/docs/pt/guides/service-discovery.md +19 -22
- package/docs/pt/guides/squad-examples/README.md +1 -1
- package/docs/pt/guides/squad-migration.md +1 -1
- package/docs/pt/guides/squads-guide.md +1 -1
- package/docs/pt/guides/squads-overview.md +11 -13
- package/docs/pt/guides/template-engine-v2.md +1 -1
- package/docs/pt/guides/testing-guide.md +3 -3
- package/docs/pt/guides/user-guide.md +30 -26
- package/docs/pt/guides/workflows-guide.md +1 -1
- package/docs/pt/how-to-contribute-with-pull-requests.md +1 -1
- package/docs/pt/ide-integration.md +2 -2
- package/docs/pt/installation/README.md +1 -1
- package/docs/pt/installation/faq.md +1 -1
- package/docs/pt/installation/linux.md +1 -1
- package/docs/pt/installation/macos.md +1 -1
- package/docs/pt/installation/troubleshooting.md +1 -1
- package/docs/pt/installation/v4-quick-start.md +1 -1
- package/docs/pt/installation/windows.md +1 -1
- package/docs/pt/meta-agent-commands.md +1 -1
- package/docs/pt/migration-guide.md +1 -1
- package/docs/pt/npx-install.md +1 -1
- package/docs/pt/performance-tuning-guide.md +1 -1
- package/docs/pt/platforms/claude-code.md +2 -2
- package/docs/pt/roadmap.md +2 -2
- package/docs/pt/security-best-practices.md +2 -2
- package/docs/pt/security.md +1 -1
- package/docs/pt/sinapse-nomenclature-specification.md +1 -1
- package/docs/pt/troubleshooting.md +1 -1
- package/docs/pt/uninstallation.md +1 -1
- package/docs/pt/versioning-and-releases.md +1 -1
- package/docs/security/overview.md +1 -1
- package/docs/security/security-best-practices.md +2 -2
- package/docs/sinapse-workflows/README.md +1 -1
- package/package.json +2 -1
- package/packages/installer/package.json +1 -0
- package/packages/installer/src/wizard/feedback.js +18 -2
- package/packages/installer/src/wizard/i18n.js +78 -0
- package/packages/installer/src/wizard/ide-config-generator.js +14 -9
- package/packages/installer/src/wizard/index.js +16 -16
- package/packages/installer/src/wizard/validation/report-generator.js +22 -21
- package/packages/installer/src/wizard/validation/troubleshooting-system.js +19 -13
- package/scripts/gen-agent-badges.js +1 -1
- package/scripts/install-chrome-brain.sh +2 -2
- package/scripts/package-synapse.js +14 -5
- package/scripts/prepare-hooks.js +19 -0
- package/scripts/validate-agent-codenames.js +174 -0
- package/scripts/validate-all.js +1 -0
- package/scripts/validate-no-personal-leaks.js +24 -9
- package/sinapse/agents/sinapse-orqx.md +5 -5
- package/sinapse/agents/snps-orqx.md +5 -5
- package/squads/squad-brand/agents/brand-creative-engineer.md +5 -5
- package/squads/squad-brand/squad.yaml +6 -6
- package/squads/squad-content/agents/content-engineer.md +7 -7
- package/squads/squad-content/squad.yaml +5 -5
- package/squads/squad-copy/knowledge-base/consequence-headline-patterns.md +2 -2
- package/squads/squad-courses/agents/production-director.md +5 -5
- package/squads/squad-courses/squad.yaml +1 -1
- package/docs/guides/hooks-two-layers.md +0 -66
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# README Community Section - sinapse-ai
|
|
2
2
|
|
|
3
|
-
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-core.md)
|
|
3
|
+
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-core.md)
|
|
4
4
|
|
|
5
5
|
> **Purpose:** Copy this snippet into the README.md of `caioimori/sinapse-ai` repository.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# README Community Section - mcp-ecosystem
|
|
2
2
|
|
|
3
|
-
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-mcp.md)
|
|
3
|
+
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-mcp.md)
|
|
4
4
|
|
|
5
5
|
> **Purpose:** Copy this snippet into the README.md of `caioimori/mcp-ecosystem` repository.
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# README Community Section - sinapse-squads
|
|
2
2
|
|
|
3
|
-
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-squads.md)
|
|
3
|
+
> 🌐 **EN** | [PT](../pt/community/README-community-snippet-squads.md)
|
|
4
4
|
|
|
5
5
|
> **Purpose:** Copy this snippet into the README.md of `caioimori/sinapse-squads` repository.
|
|
6
6
|
|
|
@@ -55,7 +55,7 @@ $ npx sinapse-ai install
|
|
|
55
55
|
SINAPSE AI v10.0.0
|
|
56
56
|
|
|
57
57
|
✓ Agents copiados para ~/.sinapse
|
|
58
|
-
✓ Squads sincronizados (
|
|
58
|
+
✓ Squads sincronizados (17 squads · 210 agents)
|
|
59
59
|
✓ Settings do Claude Code atualizados
|
|
60
60
|
|
|
61
61
|
Pronto. Rode `claude` pra começar.
|
package/docs/framework/README.md
CHANGED
|
@@ -55,6 +55,7 @@ Agentes sao personas especializadas com expertise, comandos e responsabilidades
|
|
|
55
55
|
|
|
56
56
|
- **12 agentes core** cobrem o ciclo completo de desenvolvimento de software
|
|
57
57
|
- **160 agentes em 17 squads** expandem para dominios especializados
|
|
58
|
+
- **172 agentes no total** (12 core + 160 squad) compoem o ecossistema completo
|
|
58
59
|
- Cada agente tem persona (nome, estilo), comandos (`*help`, `*task`) e dependencias
|
|
59
60
|
|
|
60
61
|
Ativacao: `@agent-name` ou `/SINAPSE:agents:agent-name`
|
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
# SINAPSE — Framework Operating Atlas
|
|
2
|
+
|
|
3
|
+
> Single, generated map of how the SINAPSE framework works: routing, models,
|
|
4
|
+
> constitution, workflows, agents, squads. Regenerate with `sinapse atlas`.
|
|
5
|
+
> Counts are read from disk (Article VII — always exact).
|
|
6
|
+
> Generated: 2026-06-26T05:56:32.158Z
|
|
7
|
+
|
|
8
|
+
**At a glance:** 17 squads · 172 agents
|
|
9
|
+
(12 framework + 160 squad) ·
|
|
10
|
+
18 orchestrators · 98 workflows
|
|
11
|
+
(15 framework + 83 squad) ·
|
|
12
|
+
11 constitutional articles · 22 rules.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 1. How SINAPSE works (operating model)
|
|
17
|
+
|
|
18
|
+
SINAPSE is a **meta-framework**: it does not run application code itself — it
|
|
19
|
+
orchestrates AI agents (inside Claude Code / Codex) through a governed pipeline.
|
|
20
|
+
Every user request flows through the same spine:
|
|
21
|
+
|
|
22
|
+
```mermaid
|
|
23
|
+
flowchart TD
|
|
24
|
+
U[User briefing] --> I[Imperator · master orchestrator]
|
|
25
|
+
I -->|classify intent + project type| R{Route}
|
|
26
|
+
R -->|domain work| SQ[Squad orchestrator -orqx]
|
|
27
|
+
R -->|framework dev| FW[Framework agents pm/architect/dev/qa/...]
|
|
28
|
+
SQ --> SP[Squad specialist agent]
|
|
29
|
+
FW --> DOC[Doc-first pipeline]
|
|
30
|
+
SP --> DOC
|
|
31
|
+
DOC -->|PRD -> Epic -> Story -> Spec| GATE{{Gates}}
|
|
32
|
+
GATE -->|pass| EXEC[Implementation]
|
|
33
|
+
GATE -->|fail| BLOCK[Blocked — produce docs first]
|
|
34
|
+
EXEC --> QA[Quality gate] --> SHIP[Push / PR · devops only]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Two routing decisions happen up front, both deterministic in spirit:**
|
|
38
|
+
|
|
39
|
+
1. **Agent routing** — the Imperator (master `-orqx`) absorbs the briefing,
|
|
40
|
+
diagnoses the domain, and **delegates** to the right squad orchestrator,
|
|
41
|
+
which in turn routes to a specialist. Orchestrators never execute domain work
|
|
42
|
+
themselves (Article VIII — Mandatory Delegation). There are **18
|
|
43
|
+
orchestrators** (17 squad + 1 master) fronting **172
|
|
44
|
+
agents** across **17 squads**.
|
|
45
|
+
|
|
46
|
+
2. **Model routing** — each task picks the cheapest model that solves it
|
|
47
|
+
(haiku → sonnet → opus), escalating only when needed. Documentation/spec work
|
|
48
|
+
spends the tokens; execution then just reads the finished doc (see §4).
|
|
49
|
+
|
|
50
|
+
**Documentation-First is the law** (Article III). No project reaches code without
|
|
51
|
+
its planning documents. A briefing like "build a site" is forced through:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
brief → PRD → Epic → Story (validated, status ≥ Ready) → Spec → implementation
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The pipeline produces scannable approval tables in the terminal (requirements,
|
|
58
|
+
epics, stories) and is guarded so that a brand-new project cannot start coding
|
|
59
|
+
with no PRD / epic / story. Observability: `sinapse route "<brief>"` prints,
|
|
60
|
+
for any project, its type → workflow → which documents are missing → whether the
|
|
61
|
+
gate is satisfied — i.e. *exactly where it is breaking*.
|
|
62
|
+
|
|
63
|
+
This atlas is itself generated by `sinapse atlas`; its counts are read from disk,
|
|
64
|
+
so they are always exact.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 2. Agent routing — briefing to specialist
|
|
69
|
+
|
|
70
|
+
```mermaid
|
|
71
|
+
sequenceDiagram
|
|
72
|
+
participant U as User
|
|
73
|
+
participant I as Imperator (master -orqx)
|
|
74
|
+
participant S as Squad -orqx
|
|
75
|
+
participant A as Specialist agent
|
|
76
|
+
U->>I: briefing (natural language)
|
|
77
|
+
I->>I: classify intent + project type (deterministic)
|
|
78
|
+
alt domain work
|
|
79
|
+
I->>S: delegate (announce plan, await go)
|
|
80
|
+
S->>A: route to specialist
|
|
81
|
+
A-->>S: artifact / result
|
|
82
|
+
S-->>I: consolidated
|
|
83
|
+
else framework dev
|
|
84
|
+
I->>A: route to framework agent (pm/architect/dev/qa)
|
|
85
|
+
end
|
|
86
|
+
I-->>U: business-language result (no internal jargon)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Rules that make this deterministic, not improvised:
|
|
90
|
+
- **Article VIII — Mandatory Delegation:** an orchestrator that does domain work
|
|
91
|
+
itself is a constitutional violation. Even "just do it yourself" → delegate.
|
|
92
|
+
- **Auto-routing:** the user never types an agent name; the system detects the
|
|
93
|
+
domain and routes. Acknowledgement is business language, never `@agent-id`.
|
|
94
|
+
- **Project-type gate:** site / lp / app / platform / saas / api / service with
|
|
95
|
+
no epic → the greenfield workflow is invoked *before* any code.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 2b. Framework flows — how each mechanism runs
|
|
100
|
+
|
|
101
|
+
The meta-workflows of the framework itself (not the development workflows in
|
|
102
|
+
`docs/sinapse-workflows/`). Each is a single diagram you can read at a glance.
|
|
103
|
+
|
|
104
|
+
### End-to-end lifecycle
|
|
105
|
+
|
|
106
|
+
The full spine a request travels: from briefing to shipped code, with the doc-first pipeline and gates in the middle.
|
|
107
|
+
|
|
108
|
+
```mermaid
|
|
109
|
+
flowchart TD
|
|
110
|
+
U[User briefing] --> C{Classify intent + project type}
|
|
111
|
+
C -->|new project| GF[Greenfield workflow]
|
|
112
|
+
C -->|existing project| BF[Brownfield discovery]
|
|
113
|
+
C -->|bug / tweak| SDC[Story dev cycle - YOLO]
|
|
114
|
+
GF --> DOC[Doc-first pipeline]
|
|
115
|
+
BF --> DOC
|
|
116
|
+
DOC --> PRD[PRD] --> EPIC[Epic] --> STORY[Story - validated >= Ready] --> SPEC[Spec]
|
|
117
|
+
SPEC --> GATE{{Doc-first gate}}
|
|
118
|
+
SDC --> GATE
|
|
119
|
+
GATE -->|missing docs| BLOCK[Blocked - produce docs first]
|
|
120
|
+
GATE -->|satisfied| IMPL[Implementation - @developer]
|
|
121
|
+
IMPL --> QA[QA gate + QA loop]
|
|
122
|
+
QA -->|pass| SHIP[Push / PR - @devops only]
|
|
123
|
+
QA -->|fail| IMPL
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Agent routing (delegation)
|
|
127
|
+
|
|
128
|
+
How a briefing reaches the right specialist. Orchestrators route and coordinate; they never execute domain work themselves (Article VIII).
|
|
129
|
+
|
|
130
|
+
```mermaid
|
|
131
|
+
sequenceDiagram
|
|
132
|
+
participant U as User
|
|
133
|
+
participant I as Imperator (master -orqx)
|
|
134
|
+
participant S as Squad -orqx
|
|
135
|
+
participant A as Specialist agent
|
|
136
|
+
U->>I: briefing (natural language)
|
|
137
|
+
I->>I: diagnose domain + project type
|
|
138
|
+
alt domain work
|
|
139
|
+
I->>S: delegate (announce plan, await go)
|
|
140
|
+
S->>A: route to specialist
|
|
141
|
+
A-->>S: artifact / result
|
|
142
|
+
S-->>I: consolidated
|
|
143
|
+
else framework dev
|
|
144
|
+
I->>A: route to framework agent (pm / architect / dev / qa)
|
|
145
|
+
end
|
|
146
|
+
I-->>U: business-language result (no internal jargon)
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Model routing (cheapest that solves it)
|
|
150
|
+
|
|
151
|
+
How each task picks a model tier. Heavy thinking goes into the spec; execution then mostly reads a finished doc, so token economy is a consequence.
|
|
152
|
+
|
|
153
|
+
```mermaid
|
|
154
|
+
flowchart TD
|
|
155
|
+
T[Task] --> K{Kind?}
|
|
156
|
+
K -->|lint / rename / yaml / bulk| H[haiku - low effort]
|
|
157
|
+
K -->|feature from spec / review / bug / tests| SO[sonnet - high]
|
|
158
|
+
K -->|single-file / factual| SM[sonnet - medium]
|
|
159
|
+
K -->|cross-system arch / complex debug / multi-file| OP[opus - xhigh]
|
|
160
|
+
K -->|Spec Pipeline COMPLEX score >= 16| OM[opus - max]
|
|
161
|
+
H --> SP{>= 8 tool calls or real fan-out?}
|
|
162
|
+
SO --> SP
|
|
163
|
+
SM --> SP
|
|
164
|
+
OP --> SP
|
|
165
|
+
OM --> SP
|
|
166
|
+
SP -->|yes| SUB[Spawn sub-agent]
|
|
167
|
+
SP -->|no| INLINE[Run inline]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Doc-first enforcement
|
|
171
|
+
|
|
172
|
+
What makes it impossible to start a new project without docs. The resolver answers what is missing; hooks block code writes until PRD + epic + story exist.
|
|
173
|
+
|
|
174
|
+
```mermaid
|
|
175
|
+
flowchart TD
|
|
176
|
+
W[Write/Edit a code file] --> EX{Exempt path or framework repo?}
|
|
177
|
+
EX -->|yes| ALLOW[Allow]
|
|
178
|
+
EX -->|no| RES[doc-first-resolver: type, workflow, gate]
|
|
179
|
+
RES --> GF{Greenfield + gate unsatisfied?}
|
|
180
|
+
GF -->|no| STORY{Ready story exists? - story-gate}
|
|
181
|
+
GF -->|yes, no PRD/epic/story| DENY[BLOCK - run greenfield flow first]
|
|
182
|
+
STORY -->|yes| ALLOW
|
|
183
|
+
STORY -->|no| DENY2[BLOCK - create a story]
|
|
184
|
+
DENY -.->|escape: SINAPSE_SKIP_DOCFIRST=1| ALLOW
|
|
185
|
+
OBS["sinapse route gives the same answer (observability)"]:::note
|
|
186
|
+
RES -. shares logic .- OBS
|
|
187
|
+
classDef note fill:#1c1c1c,stroke:#555,color:#aaa
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Constitutional gates by phase
|
|
191
|
+
|
|
192
|
+
Where each non-negotiable article fires across the lifecycle — the enforcement layer that blocks violations automatically.
|
|
193
|
+
|
|
194
|
+
```mermaid
|
|
195
|
+
flowchart LR
|
|
196
|
+
subgraph PLAN[Plan]
|
|
197
|
+
A3[III Documentation-First]
|
|
198
|
+
A4[IV No Invention]
|
|
199
|
+
end
|
|
200
|
+
subgraph BUILD[Build]
|
|
201
|
+
A6[VI Absolute Imports]
|
|
202
|
+
A8[VIII Mandatory Delegation]
|
|
203
|
+
A10[X Security & Data]
|
|
204
|
+
end
|
|
205
|
+
subgraph SHIP[Ship]
|
|
206
|
+
A2[II Agent Authority - devops only]
|
|
207
|
+
A5[V Quality First]
|
|
208
|
+
A9[IX Safe Collaboration]
|
|
209
|
+
end
|
|
210
|
+
subgraph ALWAYS[Cross-cutting]
|
|
211
|
+
A1[I CLI First]
|
|
212
|
+
A7[VII Metrics Accuracy]
|
|
213
|
+
A11[XI Conservative Default]
|
|
214
|
+
end
|
|
215
|
+
PLAN --> BUILD --> SHIP
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Project classification to workflow
|
|
219
|
+
|
|
220
|
+
How intent maps to the right workflow: site/lp/app vs platform/saas vs api/service, greenfield vs brownfield, or a light fix.
|
|
221
|
+
|
|
222
|
+
```mermaid
|
|
223
|
+
flowchart TD
|
|
224
|
+
B[Briefing] --> N{New or existing?}
|
|
225
|
+
N -->|existing, unknown| BD[brownfield-discovery]
|
|
226
|
+
N -->|existing, known| FIX{Change size?}
|
|
227
|
+
N -->|new| TYPE{Project type?}
|
|
228
|
+
TYPE -->|site / lp / app| GUI[greenfield-ui]
|
|
229
|
+
TYPE -->|platform / saas| GFS[greenfield-fullstack]
|
|
230
|
+
TYPE -->|api / service| GSV[greenfield-service]
|
|
231
|
+
BD --> BTYPE{Type?}
|
|
232
|
+
BTYPE -->|ui| BUI[brownfield-ui]
|
|
233
|
+
BTYPE -->|fullstack| BFS[brownfield-fullstack]
|
|
234
|
+
BTYPE -->|service| BSV[brownfield-service]
|
|
235
|
+
FIX -->|bug / tweak| YOLO[SDC - YOLO]
|
|
236
|
+
FIX -->|feature| SDCI[SDC - interactive]
|
|
237
|
+
FIX -->|complex score >= 16| SPEC[Spec Pipeline first]
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Every prompt (what fires on each message)
|
|
241
|
+
|
|
242
|
+
What happens on every single user message before the model even answers: hooks inject grounding and the constitution, so each turn starts already aware of the project knowledge base, design system, engineering laws and the active rules.
|
|
243
|
+
|
|
244
|
+
```mermaid
|
|
245
|
+
flowchart TD
|
|
246
|
+
P[User sends a prompt] --> H[UserPromptSubmit hooks fire]
|
|
247
|
+
H --> VG[Knowledge grounding - project context by domain]
|
|
248
|
+
H --> DS[Design system grounding - DS resolver by cwd]
|
|
249
|
+
H --> EG[Engineering grounding - laws + KIT by topic]
|
|
250
|
+
H --> SG[Squad grounding - curated squad context]
|
|
251
|
+
H --> CR[Constitution + context bracket injected]
|
|
252
|
+
VG --> M[Model receives enriched context]
|
|
253
|
+
DS --> M
|
|
254
|
+
EG --> M
|
|
255
|
+
SG --> M
|
|
256
|
+
CR --> M
|
|
257
|
+
M --> ACT[Act: answer or route to specialist]
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### Every session (safe start)
|
|
261
|
+
|
|
262
|
+
The safety net that runs before any work in a session: sync with remote, never touch main, audit what already exists so partial work is never overwritten (Safe Collaboration + Project Intelligence).
|
|
263
|
+
|
|
264
|
+
```mermaid
|
|
265
|
+
flowchart TD
|
|
266
|
+
S[Session starts] --> F[git fetch origin]
|
|
267
|
+
F --> SY{Local main behind?}
|
|
268
|
+
SY -->|yes, clean| PULL[Fast-forward pull]
|
|
269
|
+
SY -->|diverged| STOP[Stop - resolve safely]
|
|
270
|
+
PULL --> BR[Auto-create feature branch - user/type/desc]
|
|
271
|
+
STOP --> BR
|
|
272
|
+
BR --> AUD[Initial state audit - 8 dimensions]
|
|
273
|
+
AUD --> MAT{Maturity?}
|
|
274
|
+
MAT -->|empty| GREEN[Greenfield workflow]
|
|
275
|
+
MAT -->|partial| CONT[Continue - never overwrite]
|
|
276
|
+
MAT -->|mature| BROWN[Brownfield discovery]
|
|
277
|
+
MAT -->|sinapse-managed| RESUME[Resume active story - SDC]
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Every orchestration (plan + handoff)
|
|
281
|
+
|
|
282
|
+
How control passes between agents without context bloat: the orchestrator plans then waits for go, and each agent switch compacts the previous persona into a tiny handoff artifact (~379 tokens) instead of carrying it all forward.
|
|
283
|
+
|
|
284
|
+
```mermaid
|
|
285
|
+
sequenceDiagram
|
|
286
|
+
participant U as User
|
|
287
|
+
participant O as Orchestrator
|
|
288
|
+
participant A1 as Agent A (outgoing)
|
|
289
|
+
participant A2 as Agent B (incoming)
|
|
290
|
+
O->>O: diagnose + build orchestration plan
|
|
291
|
+
O->>U: present plan
|
|
292
|
+
U-->>O: go
|
|
293
|
+
O->>A1: assign work (isolated, minimal context)
|
|
294
|
+
A1->>A1: write handoff artifact + scratchpad
|
|
295
|
+
A1-->>A2: handoff (story id, decisions, files, next action)
|
|
296
|
+
Note over A1,A2: full persona discarded, ~379 tok kept
|
|
297
|
+
A2->>A2: read scratchpad, continue
|
|
298
|
+
A2-->>O: distilled result
|
|
299
|
+
O-->>U: synthesis
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Every execution (story dev cycle)
|
|
303
|
+
|
|
304
|
+
The story lifecycle once the doc-first gate is satisfied: draft to validated to implemented to reviewed to shipped, with CodeRabbit self-healing in dev and the QA loop before push (only @devops ships).
|
|
305
|
+
|
|
306
|
+
```mermaid
|
|
307
|
+
flowchart TD
|
|
308
|
+
D[Draft - sprint-lead] --> V{Validate - product-lead 10pt}
|
|
309
|
+
V -->|NO-GO| D
|
|
310
|
+
V -->|GO| R[Ready]
|
|
311
|
+
R --> IMP[InProgress - developer]
|
|
312
|
+
IMP --> CRB[CodeRabbit self-heal - max 2 iter]
|
|
313
|
+
CRB --> REV[InReview - quality-gate]
|
|
314
|
+
REV --> QL{QA loop verdict}
|
|
315
|
+
QL -->|FAIL| IMP
|
|
316
|
+
QL -->|CONCERNS| DOC[Document debt]
|
|
317
|
+
QL -->|PASS| PUSH[Push / PR - devops only]
|
|
318
|
+
DOC --> PUSH
|
|
319
|
+
PUSH --> DONE[Done]
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
### Security enforcement (cross-cutting)
|
|
323
|
+
|
|
324
|
+
The always-on guardrails from commit to production: secrets never get committed, data access is least-privilege and parameterized, and nothing reaches main without a PR (Articles IX + X).
|
|
325
|
+
|
|
326
|
+
```mermaid
|
|
327
|
+
flowchart TD
|
|
328
|
+
C[Pre-commit] --> SS{Secret scan}
|
|
329
|
+
SS -->|secret found| BLK[Block - remove from staging]
|
|
330
|
+
SS -->|clean| CM[Commit]
|
|
331
|
+
CM --> MRG[Merge origin/main - resolve conflicts]
|
|
332
|
+
MRG --> PR[PR required - branch protection]
|
|
333
|
+
PR --> CHK{Status checks + review}
|
|
334
|
+
CHK -->|fail| FIXS[Return for fixes]
|
|
335
|
+
CHK -->|pass| SHIP[Merge]
|
|
336
|
+
DATA[Data layer] --> RLS[RLS on every user table]
|
|
337
|
+
DATA --> PAR[Parameterized queries only]
|
|
338
|
+
DATA --> ENV[Secrets in env, never in code]
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Knowledge & memory (how it stays current)
|
|
342
|
+
|
|
343
|
+
How the framework keeps itself grounded and self-documenting: grounding sources feed every turn, durable facts persist as memory hints, and the Atlas regenerates from disk so the map never drifts from reality.
|
|
344
|
+
|
|
345
|
+
```mermaid
|
|
346
|
+
flowchart TD
|
|
347
|
+
SRC[Grounding sources] --> VLT[Knowledge base - project source of truth]
|
|
348
|
+
SRC --> DSY[Design systems - project DS]
|
|
349
|
+
SRC --> ENG[Engineering research - 60 domains]
|
|
350
|
+
VLT --> TURN[Injected every turn]
|
|
351
|
+
DSY --> TURN
|
|
352
|
+
ENG --> TURN
|
|
353
|
+
MEM[Memory files - hints, not truth] --> VERIFY[Verify vs codebase before acting]
|
|
354
|
+
ATL[sinapse atlas] --> SCAN[Scan repo from disk - exact counts]
|
|
355
|
+
SCAN --> OUT[Regenerate map - md + html + json]
|
|
356
|
+
OUT --> NODRIFT[Single source, never drifts]
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## 3. Constitution — the 11 articles
|
|
362
|
+
|
|
363
|
+
Gates automatically block violations of NON-NEGOTIABLE / MUST articles.
|
|
364
|
+
*(Source of truth: `.sinapse-ai/constitution.md`.)*
|
|
365
|
+
|
|
366
|
+
| Art. | Principle | Severity |
|
|
367
|
+
|---|---|---|
|
|
368
|
+
| I | CLI First | NON-NEGOTIABLE |
|
|
369
|
+
| II | Agent Authority | NON-NEGOTIABLE |
|
|
370
|
+
| III | Documentation-First Development | NON-NEGOTIABLE |
|
|
371
|
+
| IV | No Invention | MUST |
|
|
372
|
+
| V | Quality First | MUST |
|
|
373
|
+
| VI | Absolute Imports | SHOULD |
|
|
374
|
+
| VII | Ecosystem Metrics Accuracy | NON-NEGOTIABLE |
|
|
375
|
+
| VIII | Mandatory Delegation | NON-NEGOTIABLE |
|
|
376
|
+
| IX | Safe Collaboration | NON-NEGOTIABLE |
|
|
377
|
+
| X | Security & Data Protection | NON-NEGOTIABLE |
|
|
378
|
+
| XI | Conservative Default | MUST |
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## 4. Model routing (cheapest model that solves it)
|
|
383
|
+
|
|
384
|
+
The token economy is a consequence of the pipeline: heavy thinking goes into the
|
|
385
|
+
PRD/spec, so execution mostly *reads a finished document* instead of reasoning.
|
|
386
|
+
|
|
387
|
+
| Task | Model | Effort |
|
|
388
|
+
|---|---|---|
|
|
389
|
+
| Cross-system architecture, complex debug, multi-file refactor | **opus** | xhigh |
|
|
390
|
+
| Spec Pipeline COMPLEX (score ≥ 16) | **opus** | max |
|
|
391
|
+
| Feature from spec, code review, bug fix, tests, stories | **sonnet** | high |
|
|
392
|
+
| Single-file analysis, factual question | **sonnet** | medium |
|
|
393
|
+
| Lint, rename, YAML, lookup, bulk | **haiku** | low |
|
|
394
|
+
|
|
395
|
+
Rule of thumb: when in doubt, drop a tier and escalate only on failure. A
|
|
396
|
+
sub-agent is only spawned for real parallel fan-out (≥ 8 tool calls), otherwise
|
|
397
|
+
work runs inline. *(Source of truth: `.claude/rules/token-economy.md`.)*
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## 5. Non-negotiable rules (22)
|
|
402
|
+
|
|
403
|
+
Loaded automatically by the harness. *(Source: `.claude/rules/`.)*
|
|
404
|
+
|
|
405
|
+
| Rule | What it governs |
|
|
406
|
+
|---|---|
|
|
407
|
+
| `agent-authority` | Agent Authority — Detailed Rules |
|
|
408
|
+
| `agent-handoff` | Agent Handoff Protocol — Context Compaction |
|
|
409
|
+
| `agent-memory-imports` | Agent Memory Imports |
|
|
410
|
+
| `coderabbit-integration` | CodeRabbit Integration — Detailed Rules |
|
|
411
|
+
| `cross-squad-routing` | Cross-Squad Routing Rules |
|
|
412
|
+
| `documentation-first` | Documentation-First Development |
|
|
413
|
+
| `hook-governance` | Hook Governance Rules |
|
|
414
|
+
| `ids-principles` | IDS Principles — Detailed Rules |
|
|
415
|
+
| `mandatory-delegation` | Mandatory Delegation |
|
|
416
|
+
| `mcp-usage` | MCP Server Usage Rules - SINAPSE Architecture |
|
|
417
|
+
| `nsn-mode` | NSN Mode — Never Say Never |
|
|
418
|
+
| `project-intelligence` | Project Intelligence — Auto-Detection |
|
|
419
|
+
| `response-format` | Response Format |
|
|
420
|
+
| `safe-collaboration` | Safe Collaboration — Git Safety Net |
|
|
421
|
+
| `security-data-protection` | Security & Data Protection |
|
|
422
|
+
| `security-scanning` | Security Scanning Rules |
|
|
423
|
+
| `squad-awareness` | Sinapse — Intelligent Auto-Routing |
|
|
424
|
+
| `story-lifecycle` | Story Lifecycle — Detailed Rules |
|
|
425
|
+
| `token-economy` | Token Economy & Response Format — NON-NEGOTIABLE |
|
|
426
|
+
| `tool-examples` | Tool Input Examples — Selection Guidance |
|
|
427
|
+
| `tool-response-filtering` | Tool Response Filtering — Dynamic Token Reduction |
|
|
428
|
+
| `workflow-execution` | Workflow Execution — Detailed Rules |
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## 6. Workflow catalog (98 total)
|
|
433
|
+
|
|
434
|
+
**15 framework workflows** + **83
|
|
435
|
+
squad workflows**. The 13 primary framework workflows have detailed docs in
|
|
436
|
+
`docs/sinapse-workflows/`.
|
|
437
|
+
|
|
438
|
+
### Framework workflows (15)
|
|
439
|
+
|
|
440
|
+
| Workflow | Type | Description |
|
|
441
|
+
|---|---|---|
|
|
442
|
+
| `auto-worktree` | automation | Automatically creates and manages isolated worktrees for story development. Triggered when @developer starts working on a story, ensuring parallel development … |
|
|
443
|
+
| `brownfield-discovery` | brownfield | Comprehensive multi-agent discovery workflow for existing projects. Includes specialist validation cycles and executive awareness report. Designed for projects… |
|
|
444
|
+
| `brownfield-fullstack` | brownfield | Agent workflow for enhancing existing full-stack applications with new features, modernization, or significant changes. Handles existing system analysis and sa… |
|
|
445
|
+
| `brownfield-service` | brownfield | Agent workflow for enhancing existing backend services and APIs with new features, modernization, or performance improvements. Handles existing system analysis… |
|
|
446
|
+
| `brownfield-ui` | brownfield | Agent workflow for enhancing existing frontend applications with new features, modernization, or design improvements. Handles existing UI analysis and safe int… |
|
|
447
|
+
| `design-system-build-quality` | brownfield | Pipeline pós-migração para Design System. Encadeia sequencialmente as etapas de build, documentação, auditoria de acessibilidade e cálculo de ROI para garantir… |
|
|
448
|
+
| `development-cycle` | — | Workflow orquestrado para ciclo de desenvolvimento por story. Implementa o fluxo PO → Executor → Quality Gate → DevOps → Push com suporte a executor dinâmico, … |
|
|
449
|
+
| `epic-orchestration` | epic-orchestration | Reusable template for executing epics with wave-based parallel development. Stories within each wave run the full development-cycle workflow (PO → Executor → S… |
|
|
450
|
+
| `fast-track` | fast-fix | Streamlined workflow for trivial fixes that bypasses full story validation. Auto-generates a Ready story, simplified QA (lint + typecheck + test only). |
|
|
451
|
+
| `greenfield-fullstack` | greenfield | Agent workflow for building full-stack applications from concept to development. Supports both comprehensive planning for complex projects and rapid prototypin… |
|
|
452
|
+
| `greenfield-service` | greenfield | Agent workflow for building backend services from concept to development. Supports both comprehensive planning for complex services and rapid prototyping for s… |
|
|
453
|
+
| `greenfield-ui` | greenfield | Agent workflow for building frontend applications from concept to development. Supports both comprehensive planning for complex UIs and rapid prototyping for s… |
|
|
454
|
+
| `qa-loop` | loop | Automated QA loop that orchestrates the review → fix → re-review cycle. Runs up to maxIterations (default 5), tracking each iteration's results. Escalates to h… |
|
|
455
|
+
| `spec-pipeline` | pipeline | Pipeline completo que transforma requisitos informais em especificações executáveis. Orquestra as fases: Gather → Assess → Research → Write → Clarify → Critiqu… |
|
|
456
|
+
| `story-development-cycle` | generic | Ciclo completo de desenvolvimento de stories. Automatiza o fluxo desde a criação até a entrega com quality gate: create → validate → implement → QA review. Apl… |
|
|
457
|
+
|
|
458
|
+
### Squad workflows (83, grouped by squad)
|
|
459
|
+
|
|
460
|
+
| Squad | Workflows |
|
|
461
|
+
|---|---|
|
|
462
|
+
| `claude-code-mastery` | `optimization-cycle`, `project-setup-cycle`, `wf-audit-complete`, `wf-knowledge-update`, `wf-project-setup` |
|
|
463
|
+
| `squad-animations` | `3d-scene-creation-cycle`, `animation-quality-review-cycle`, `generative-art-creation-cycle`, `prompt-to-animation-cycle`, `scroll-experience-creation-cycle` |
|
|
464
|
+
| `squad-brand` | `brand-application-cycle`, `brand-diagnosis-cycle`, `client-idv-delivery-cycle`, `zero-to-brand-system-cycle` |
|
|
465
|
+
| `squad-cloning` | `full-clone-pipeline`, `quality-validation-cycle`, `source-discovery-cycle`, `tier1-kb-only`, `tier2-consultant`, `tier3-full-clone` |
|
|
466
|
+
| `squad-commercial` | `churn-prevention-protocol`, `client-onboarding-activation`, `expansion-revenue-cycle`, `new-offer-launch`, `quarterly-commercial-review`, `revenue-forecasting-cycle` |
|
|
467
|
+
| `squad-content` | `content-audit-cycle`, `content-creation-cycle`, `editorial-planning-cycle`, `onboarding-content-cycle`, `performance-feedback-loop`, `signal-to-content-cycle` |
|
|
468
|
+
| `squad-copy` | `brand-voice-development`, `campaign-copy-cycle`, `content-copy-cycle`, `conversion-copy-sprint`, `full-copy-cycle`, `sales-copy-pipeline` |
|
|
469
|
+
| `squad-council` | `business-audit-cycle`, `strategic-advisory-session` |
|
|
470
|
+
| `squad-courses` | `course-launch-cycle`, `course-quality-review`, `full-course-creation`, `presentation-creation`, `video-course-production`, `written-course-creation` |
|
|
471
|
+
| `squad-cybersecurity` | `incident-response-cycle`, `security-audit-workflow` |
|
|
472
|
+
| `squad-design` | `a11y-compliance-cycle`, `design-system-build-cycle`, `landing-page-sprint`, `performance-remediation-cycle`, `ux-research-sprint`, `zero-to-digital-product-cycle` |
|
|
473
|
+
| `squad-finance` | `client-profitability-audit`, `monthly-financial-cycle`, `pricing-design-cycle`, `quarterly-financial-review` |
|
|
474
|
+
| `squad-growth` | `analytics-instrumentation-pipeline`, `campaign-performance-review`, `cro-experimentation-sprint`, `full-growth-analytics-cycle`, `growth-experiment-loop`, `seo-audit-optimization-cycle` |
|
|
475
|
+
| `squad-paidmedia` | `account-audit-cycle`, `campaign-launch-cycle`, `creative-testing-cycle`, `cro-optimization-cycle`, `scaling-sprint` |
|
|
476
|
+
| `squad-product` | `client-roadmap-alignment-cycle`, `product-discovery-cycle`, `product-handoff-cycle`, `product-launch-cycle`, `product-strategy-definition-cycle`, `story-development-delivery-cycle` |
|
|
477
|
+
| `squad-research` | `audience-intelligence-cycle`, `competitive-intelligence-cycle`, `deep-research-cycle`, `full-research-sprint`, `market-analysis-cycle`, `trend-forecasting-cycle` |
|
|
478
|
+
| `squad-storytelling` | `wf-pitch-narrative`, `wf-story-development` |
|
|
479
|
+
|
|
480
|
+
---
|
|
481
|
+
|
|
482
|
+
## 7. Agents & squads map
|
|
483
|
+
|
|
484
|
+
**172 agents** = 12 framework +
|
|
485
|
+
160 squad, fronted by **18 orchestrators**.
|
|
486
|
+
|
|
487
|
+
### Orchestrators (18) — the routing layer
|
|
488
|
+
|
|
489
|
+
| Orchestrator | Persona | Squad | Role |
|
|
490
|
+
|---|---|---|---|
|
|
491
|
+
| `swarm-orqx` | Nexus | claude-code-mastery | Multi-Agent Systems Architect & Swarm Orchestration Specialist |
|
|
492
|
+
| `snps-orqx` | Imperator | framework | Supreme Orchestrator of all 17 SINAPSE Squads (172 agents) |
|
|
493
|
+
| `animations-orqx` | Kinetic | squad-animations | Animation Squad Orchestrator |
|
|
494
|
+
| `squad-brand` | Meridian | squad-brand | Brand Squad Orchestrator — coordena os 14 agentes especialistas do squad |
|
|
495
|
+
| `squad-cloning` | Helix | squad-cloning | Clone Pipeline Orchestrator — coordena o pipeline completo de clonagem cognitiva |
|
|
496
|
+
| `commercial-orqx` | — | squad-commercial | Revenue Cycle Orchestrator |
|
|
497
|
+
| `squad-content` | Nexus | squad-content | Content Pipeline Orchestrator — coordena todo o fluxo de deteccao, producao, publicacao e analise |
|
|
498
|
+
| `squad-copy` | Quill Prime | squad-copy | Copy Squad Orchestrator — coordena os 12 agentes especialistas do squad |
|
|
499
|
+
| `council-orqx` | Zenith | squad-council | Strategic Council Orchestrator & Wisdom Synthesizer |
|
|
500
|
+
| `squad-courses` | Syllabus | squad-courses | Course Project Orchestrator — coordena o ciclo completo de criacao de cursos |
|
|
501
|
+
| `cyber-orqx` | Cyber Orchestrator | squad-cybersecurity | Cyber Defense Operations Orchestrator & Ethical Oversight |
|
|
502
|
+
| `design-orqx` | Nexus | squad-design | Digital Experience Orchestrator |
|
|
503
|
+
| `finance-orqx` | Ledger | squad-finance | Financial Intelligence Orchestrator |
|
|
504
|
+
| `growth-orqx` | Catalyst | squad-growth | Growth Orchestrator |
|
|
505
|
+
| `paidmedia-orqx` | Apex | squad-paidmedia | Paid Media Squad Orchestrator |
|
|
506
|
+
| `product-orqx` | — | squad-product | — |
|
|
507
|
+
| `research-orqx` | Prism | squad-research | Research Operations Conductor |
|
|
508
|
+
| `storytelling-orqx` | Arc | squad-storytelling | Narrative Masters Squad Commander & Narrative Router |
|
|
509
|
+
|
|
510
|
+
### Squads (17)
|
|
511
|
+
|
|
512
|
+
| Squad | Name | Agents | Workflows | Orchestrator(s) |
|
|
513
|
+
|---|---|---|---|---|
|
|
514
|
+
| `claude-code-mastery` | Claude Code Mastery Squad | 8 | 5 | `swarm-orqx` |
|
|
515
|
+
| `squad-animations` | Squad Animations | 9 | 5 | `animations-orqx` |
|
|
516
|
+
| `squad-brand` | squad-brand | 15 | 4 | `squad-brand` |
|
|
517
|
+
| `squad-cloning` | Squad Cloning | 9 | 6 | `squad-cloning` |
|
|
518
|
+
| `squad-commercial` | Squad Commercial | 10 | 6 | `commercial-orqx` |
|
|
519
|
+
| `squad-content` | Squad Content | 7 | 6 | `squad-content` |
|
|
520
|
+
| `squad-copy` | Squad Copy | 13 | 6 | `squad-copy` |
|
|
521
|
+
| `squad-council` | Squad Council | 11 | 2 | `council-orqx` |
|
|
522
|
+
| `squad-courses` | Squad Courses | 8 | 6 | `squad-courses` |
|
|
523
|
+
| `squad-cybersecurity` | Squad Cybersecurity | 8 | 2 | `cyber-orqx` |
|
|
524
|
+
| `squad-design` | Squad Design | 14 | 6 | `design-orqx` |
|
|
525
|
+
| `squad-finance` | Squad Finance | 8 | 4 | `finance-orqx` |
|
|
526
|
+
| `squad-growth` | Squad Growth | 7 | 6 | `growth-orqx` |
|
|
527
|
+
| `squad-paidmedia` | Squad Paid Media | 9 | 5 | `paidmedia-orqx` |
|
|
528
|
+
| `squad-product` | Squad Product | 7 | 6 | `product-orqx` |
|
|
529
|
+
| `squad-research` | Squad Research | 7 | 6 | `research-orqx` |
|
|
530
|
+
| `squad-storytelling` | Squad Storytelling | 10 | 2 | `storytelling-orqx` |
|
|
531
|
+
|
|
532
|
+
> The full 172-agent index is in the generated
|
|
533
|
+
> `atlas-data.json` (one object per agent, with file path and role).
|
|
534
|
+
|
|
535
|
+
---
|
|
536
|
+
|
|
537
|
+
*Generated by `.sinapse-ai/core/atlas` · data: `docs/framework/atlas/atlas-data.json`.*
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Framework Operating Atlas
|
|
2
|
+
|
|
3
|
+
The living, generated map of **how the SINAPSE framework works** — routing,
|
|
4
|
+
model selection, the constitution, the full workflow catalog, every agent and
|
|
5
|
+
squad. One source of truth, two renderings (plus the raw data):
|
|
6
|
+
|
|
7
|
+
| File | For | Format |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| [`OPERATING-ATLAS.md`](./OPERATING-ATLAS.md) | reading (human or LLM) | dense, navigable markdown with Mermaid diagrams |
|
|
10
|
+
| [`atlas.html`](./atlas.html) | exploring visually | self-contained dashboard — searchable/filterable tables + flow diagram |
|
|
11
|
+
| [`atlas-data.json`](./atlas-data.json) | tooling | structured data (one object per workflow / agent / squad / article / rule) |
|
|
12
|
+
|
|
13
|
+
## Regenerate
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
sinapse atlas # regenerate all three from disk
|
|
17
|
+
sinapse atlas --open # ...and open the visual dashboard
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Counts are read directly from the repository every time, so the atlas is always
|
|
21
|
+
exact (Constitution **Article VII — Ecosystem Metrics Accuracy**). After adding
|
|
22
|
+
or changing a squad, agent, workflow, rule, or constitutional article, run
|
|
23
|
+
`sinapse atlas` to refresh.
|
|
24
|
+
|
|
25
|
+
## How it's built
|
|
26
|
+
|
|
27
|
+
- `.sinapse-ai/core/atlas/atlas-data.js` — scans the repo → the single data object.
|
|
28
|
+
- `.sinapse-ai/core/atlas/render-markdown.js` — the LLM-readable atlas.
|
|
29
|
+
- `.sinapse-ai/core/atlas/render-html.js` — the visual dashboard.
|
|
30
|
+
- `.sinapse-ai/core/atlas/index.js` — `generateAtlas()` (writes all three).
|
|
31
|
+
|
|
32
|
+
The narrative "operating model" and "routing" sections are authored in the
|
|
33
|
+
markdown renderer; every catalog (constitution, workflows, agents, squads,
|
|
34
|
+
rules) is generated, so the docs can never drift from the code.
|