sinapse-ai 1.19.2 → 1.20.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 +2 -2
- package/.claude/hooks/enforce-delegation.cjs +32 -36
- package/.claude/rules/agent-handoff.md +10 -21
- package/.claude/rules/mandatory-delegation.md +1 -1
- package/.claude/rules/token-economy.md +12 -5
- package/.sinapse-ai/constitution.md +2 -0
- package/.sinapse-ai/core/atlas/flows-pt.js +6 -0
- package/.sinapse-ai/core/atlas/flows.js +7 -0
- package/.sinapse-ai/core/atlas/render-markdown.js +8 -0
- package/.sinapse-ai/core/doctor/checks/constitution-consistency.js +7 -0
- package/.sinapse-ai/core/execution/autonomous-build-loop.js +10 -4
- package/.sinapse-ai/core/execution/build-orchestrator.js +73 -2
- package/.sinapse-ai/core/execution/context-injector.js +2 -0
- package/.sinapse-ai/core/execution/parallel-executor.js +2 -0
- package/.sinapse-ai/core/execution/parallel-monitor.js +2 -0
- package/.sinapse-ai/core/execution/rate-limit-manager.js +2 -0
- package/.sinapse-ai/core/execution/result-aggregator.js +2 -0
- package/.sinapse-ai/core/execution/semantic-merge-engine.js +2 -0
- package/.sinapse-ai/core/execution/wave-executor.js +2 -0
- package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +12 -1
- package/.sinapse-ai/core/orchestration/cli-commands.js +121 -4
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +10 -2
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +53 -2
- package/.sinapse-ai/core/orchestration/index.js +3 -0
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +116 -18
- package/.sinapse-ai/core/synapse/context/context-tracker.js +118 -11
- package/.sinapse-ai/core/synapse/engine.js +18 -3
- package/.sinapse-ai/core/synapse/layers/l0-constitution.js +189 -8
- package/.sinapse-ai/core/synapse/output/formatter.js +65 -25
- package/.sinapse-ai/core-config.yaml +8 -1
- package/.sinapse-ai/data/entity-registry.yaml +69 -68
- package/.sinapse-ai/development/agents/developer.md +18 -34
- package/.sinapse-ai/development/agents/snps-orqx.md +5 -5
- package/.sinapse-ai/development/agents/sprint-lead.md +20 -36
- package/.sinapse-ai/development/scripts/agent-exit-hooks.js +13 -4
- package/.sinapse-ai/infrastructure/integrations/ai-providers/README.md +2 -2
- package/.sinapse-ai/install-manifest.yaml +71 -71
- package/.sinapse-ai/product/templates/activation-instructions-template.md +72 -185
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +45 -274
- package/.sinapse-ai/product/templates/statusline/agent-badges.json +2 -2
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +5 -3
- package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +8 -0
- package/CHANGELOG.md +31 -2
- package/README.md +10 -0
- package/bin/cli.js +29 -0
- package/bin/commands/help.js +5 -0
- package/bin/commands/uninstall.js +5 -0
- package/bin/postinstall.js +7 -0
- package/bin/sinapse.js +149 -1
- package/docs/framework/atlas/OPERATING-ATLAS.md +3 -3
- package/docs/framework/atlas/atlas-data.json +6 -6
- package/docs/framework/atlas/atlas.html +2 -2
- package/docs/framework/source-tree.md +1 -1
- package/docs/framework/workflow-engine-status.md +70 -0
- package/docs/guides/ade-guide.md +4 -2
- package/docs/guides/api-reference.md +2 -0
- package/docs/guides/permission-modes.md +2 -0
- package/docs/guides/user-guide.md +21 -7
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +2 -2
- package/docs/pt/architecture/ade-architecture.md +2 -0
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/guides/ade-guide.md +4 -2
- package/docs/pt/guides/api-reference.md +2 -0
- package/docs/pt/guides/permission-modes.md +2 -0
- package/docs/pt/guides/user-guide.md +21 -7
- package/docs/pt/platforms/claude-code.md +2 -2
- package/docs/sinapse-workflows/auto-worktree-workflow.md +2 -2
- package/package.json +1 -1
- package/packages/installer/src/config/configure-environment.js +6 -0
- package/packages/installer/src/config/templates/core-config-template.js +43 -1
- package/packages/installer/src/installer/synapse-runtime-installer.js +148 -0
- package/packages/installer/src/wizard/i18n.js +294 -0
- package/packages/installer/src/wizard/index.js +26 -0
- package/packages/installer/src/wizard/validation/troubleshooting-system.js +60 -131
- package/scripts/bracket-report.js +103 -0
- package/scripts/validate-agent-codenames.js +168 -37
- package/scripts/validate-install-docs.js +23 -2
- package/sinapse/agents/sinapse-orqx.md +3 -3
- package/sinapse/agents/snps-orqx.md +3 -3
- package/sinapse/knowledge-base/routing-catalog.md +1 -1
- package/sinapse/tasks/diagnose-and-route.md +1 -1
- package/squads/claude-code-mastery/CHANGELOG.md +1 -1
- package/squads/claude-code-mastery/README.md +6 -6
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +7 -7
- package/squads/claude-code-mastery/agents/roadmap-sentinel.md +9 -9
- package/squads/claude-code-mastery/agents/swarm-orqx.md +5 -5
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +1 -1
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-deep.md +4 -4
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +4 -4
- package/squads/claude-code-mastery/tasks/create-agent-definition.md +6 -6
- package/squads/claude-code-mastery/tasks/create-team-topology.md +3 -3
- package/squads/claude-code-mastery/tasks/diagnose.md +1 -1
- package/squads/claude-code-mastery/tasks/parallel-decomposition.md +1 -1
- package/squads/claude-code-mastery/tasks/worktree-strategy.md +1 -1
- package/squads/squad-animations/README.md +1 -1
- package/squads/squad-animations/agents/animation-interpreter.md +5 -5
- package/squads/squad-animations/agents/animations-orqx.md +6 -6
- package/squads/squad-animations/squad.yaml +1 -1
- package/squads/squad-animations/tasks/analyze-reference-animation.md +1 -1
- package/squads/squad-animations/tasks/build-animation-brief.md +1 -1
- package/squads/squad-animations/tasks/create-animation-storyboard.md +1 -1
- package/squads/squad-animations/tasks/cross-reference-brand-system.md +1 -1
- package/squads/squad-animations/tasks/extract-animation-intent.md +1 -1
- package/squads/squad-animations/tasks/generate-motion-vocabulary.md +1 -1
- package/squads/squad-animations/tasks/identify-website-animation.md +1 -1
- package/squads/squad-animations/tasks/interpret-animation-prompt.md +1 -1
- package/squads/squad-animations/tasks/refine-animation-specification.md +1 -1
- package/squads/squad-animations/tasks/translate-feeling-to-parameters.md +1 -1
- package/squads/squad-animations/tasks/validate-animation-feasibility.md +1 -1
- package/squads/squad-animations/workflows/prompt-to-animation-cycle.yaml +2 -2
- package/squads/squad-brand/agents/brand-auditor.md +1 -1
- package/squads/squad-brand/agents/brand-compiler.md +1 -1
- package/squads/squad-brand/agents/brand-motion-vfx.md +5 -5
- package/squads/squad-brand/agents/brand-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
- package/squads/squad-brand/squad.yaml +1 -1
- package/squads/squad-brand/tasks/create-animation-library.md +1 -1
- package/squads/squad-brand/tasks/create-brand-characters.md +2 -2
- package/squads/squad-brand/tasks/create-event-branding.md +2 -2
- package/squads/squad-brand/tasks/create-micro-interactions.md +1 -1
- package/squads/squad-brand/tasks/create-page-transitions.md +1 -1
- package/squads/squad-brand/tasks/create-video-templates.md +1 -1
- package/squads/squad-brand/tasks/create-web-templates.md +1 -1
- package/squads/squad-brand/tasks/define-motion-language.md +1 -1
- package/squads/squad-brand/tasks/design-dynamic-identity-system.md +2 -2
- package/squads/squad-brand/tasks/design-illustration-system.md +1 -1
- package/squads/squad-commercial/README.md +3 -3
- package/squads/squad-commercial/agents/commercial-orqx.md +8 -8
- package/squads/squad-commercial/agents/cs-crm-specialist.md +3 -3
- package/squads/squad-commercial/agents/cs-revops-analyst.md +3 -3
- package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
- package/squads/squad-commercial/knowledge-base/commercial-analytics-reporting.md +7 -7
- package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1 -1
- package/squads/squad-commercial/squad.yaml +3 -3
- package/squads/squad-commercial/tasks/analyze-revenue-leaks.md +2 -2
- package/squads/squad-commercial/tasks/audit-commercial-tech-stack.md +1 -1
- package/squads/squad-commercial/tasks/audit-crm-data.md +1 -1
- package/squads/squad-commercial/tasks/build-deal-scoring-model.md +1 -1
- package/squads/squad-commercial/tasks/build-forecasting-model.md +1 -1
- package/squads/squad-commercial/tasks/build-pipeline-dashboard.md +2 -2
- package/squads/squad-commercial/tasks/build-unit-economics-model.md +1 -1
- package/squads/squad-commercial/tasks/conduct-commercial-retrospective.md +2 -2
- package/squads/squad-commercial/tasks/conduct-deal-review.md +1 -1
- package/squads/squad-commercial/tasks/conduct-win-loss-analysis.md +1 -1
- package/squads/squad-commercial/tasks/configure-activity-tracking.md +1 -1
- package/squads/squad-commercial/tasks/configure-crm-integrations.md +1 -1
- package/squads/squad-commercial/tasks/configure-pipeline-stages.md +1 -1
- package/squads/squad-commercial/tasks/coordinate-revenue-cycle.md +1 -1
- package/squads/squad-commercial/tasks/create-commercial-brief.md +2 -2
- package/squads/squad-commercial/tasks/create-revenue-dashboard.md +1 -1
- package/squads/squad-commercial/tasks/design-lead-routing.md +1 -1
- package/squads/squad-commercial/tasks/design-quota-model.md +1 -1
- package/squads/squad-commercial/tasks/execute-save-play.md +1 -1
- package/squads/squad-commercial/tasks/manage-commercial-handoffs.md +1 -1
- package/squads/squad-commercial/tasks/manage-pipeline-forecast.md +3 -3
- package/squads/squad-commercial/tasks/monitor-pipeline-health.md +1 -1
- package/squads/squad-commercial/tasks/monitor-saas-metrics.md +1 -1
- package/squads/squad-commercial/tasks/plan-sales-capacity.md +1 -1
- package/squads/squad-commercial/tasks/plan-territory-mapping.md +1 -1
- package/squads/squad-commercial/tasks/review-revenue-architecture.md +2 -2
- package/squads/squad-commercial/tasks/run-quarterly-commercial-review.md +3 -3
- package/squads/squad-commercial/tasks/select-commercial-workflow.md +1 -1
- package/squads/squad-commercial/tasks/setup-outreach-sequences.md +1 -1
- package/squads/squad-commercial/templates/offer-brief-template.md +2 -2
- package/squads/squad-commercial/workflows/new-offer-launch.yaml +2 -2
- package/squads/squad-commercial/workflows/quarterly-commercial-review.yaml +1 -1
- package/squads/squad-commercial/workflows/revenue-forecasting-cycle.yaml +2 -2
- package/squads/squad-content/README.md +1 -1
- package/squads/squad-content/agents/content-analyst.md +4 -4
- package/squads/squad-content/agents/content-engineer.md +2 -2
- package/squads/squad-content/agents/content-governor.md +1 -1
- package/squads/squad-content/agents/content-orqx.md +6 -6
- package/squads/squad-content/agents/editorial-strategist.md +5 -5
- package/squads/squad-content/agents/platform-specialist.md +1 -1
- package/squads/squad-content/agents/signal-intelligence.md +4 -4
- package/squads/squad-content/checklists/editorial-planning-checklist.md +1 -1
- package/squads/squad-content/checklists/onboarding-setup-checklist.md +2 -2
- package/squads/squad-content/knowledge-base/ai-native-content-loop.md +2 -2
- package/squads/squad-content/knowledge-base/content-governance-principles.md +2 -2
- package/squads/squad-content/knowledge-base/cross-squad-integration-protocol.md +1 -1
- package/squads/squad-content/knowledge-base/signal-intelligence-v2.md +1 -1
- package/squads/squad-content/knowledge-base/task-ownership-map.md +5 -5
- package/squads/squad-content/squad.yaml +2 -2
- package/squads/squad-content/tasks/alert-opportunity-windows.md +6 -6
- package/squads/squad-content/tasks/analyze-content-performance.md +2 -2
- package/squads/squad-content/tasks/batch-content-production.md +1 -1
- package/squads/squad-content/tasks/benchmark-against-competitors.md +1 -1
- package/squads/squad-content/tasks/coordinate-cross-squad.md +1 -1
- package/squads/squad-content/tasks/create-content-governance.md +1 -1
- package/squads/squad-content/tasks/create-editorial-calendar.md +1 -1
- package/squads/squad-content/tasks/curate-ugc-signals.md +2 -2
- package/squads/squad-content/tasks/define-big-idea.md +1 -1
- package/squads/squad-content/tasks/define-content-kpis.md +1 -1
- package/squads/squad-content/tasks/flag-content-for-amplification.md +2 -2
- package/squads/squad-content/tasks/generate-content-report.md +3 -3
- package/squads/squad-content/tasks/manage-content-sprint.md +1 -1
- package/squads/squad-content/tasks/measure-content-roi.md +3 -3
- package/squads/squad-content/tasks/orchestrate-content-pipeline.md +2 -2
- package/squads/squad-content/tasks/plan-content-sprint.md +3 -3
- package/squads/squad-content/tasks/predict-content-performance.md +2 -2
- package/squads/squad-content/tasks/scan-daily-signals.md +2 -2
- package/squads/squad-content/tasks/triage-content-requests.md +1 -1
- package/squads/squad-content/tasks/triage-urgent-signal.md +1 -1
- package/squads/squad-content/templates/signal-alert-template.md +2 -2
- package/squads/squad-content/templates/weekly-briefing-template.md +1 -1
- package/squads/squad-content/workflows/content-audit-cycle.yaml +1 -1
- package/squads/squad-content/workflows/content-creation-cycle.yaml +3 -3
- package/squads/squad-content/workflows/editorial-planning-cycle.yaml +3 -3
- package/squads/squad-content/workflows/onboarding-content-cycle.yaml +3 -3
- package/squads/squad-content/workflows/performance-feedback-loop.yaml +3 -3
- package/squads/squad-content/workflows/signal-to-content-cycle.yaml +5 -5
- package/squads/squad-copy/README.md +4 -4
- package/squads/squad-copy/agents/ad-copywriter.md +4 -4
- package/squads/squad-copy/agents/copy-orqx.md +3 -3
- package/squads/squad-copy/agents/copy-strategist.md +5 -5
- package/squads/squad-copy/agents/direct-response-writer.md +3 -3
- package/squads/squad-copy/agents/email-sequence-strategist.md +1 -1
- package/squads/squad-copy/agents/funnel-copywriter.md +3 -3
- package/squads/squad-copy/agents/headline-specialist.md +1 -1
- package/squads/squad-copy/agents/proof-architect.md +3 -3
- package/squads/squad-copy/squad.yaml +3 -3
- package/squads/squad-copy/tasks/build-proof-stack.md +3 -3
- package/squads/squad-copy/tasks/craft-cta-variations.md +2 -2
- package/squads/squad-copy/tasks/craft-email-nurture-sequence.md +2 -2
- package/squads/squad-copy/tasks/craft-objection-handlers.md +1 -1
- package/squads/squad-copy/tasks/craft-social-media-hooks.md +1 -1
- package/squads/squad-copy/tasks/create-cart-abandonment-sequence.md +2 -2
- package/squads/squad-copy/tasks/create-customer-story.md +2 -2
- package/squads/squad-copy/tasks/create-email-campaign.md +2 -2
- package/squads/squad-copy/tasks/create-mechanism-copy.md +4 -4
- package/squads/squad-copy/tasks/create-opening-hooks.md +1 -1
- package/squads/squad-copy/tasks/create-ugc-script.md +2 -2
- package/squads/squad-copy/tasks/create-urgency-scarcity-framework.md +1 -1
- package/squads/squad-copy/tasks/create-welcome-sequence.md +2 -2
- package/squads/squad-copy/tasks/design-headline-ab-tests.md +1 -1
- package/squads/squad-copy/tasks/design-trigger-sequence.md +1 -1
- package/squads/squad-copy/tasks/design-welcome-series.md +2 -2
- package/squads/squad-copy/tasks/optimize-existing-copy.md +2 -2
- package/squads/squad-copy/tasks/optimize-funnel-conversion-copy.md +2 -2
- package/squads/squad-copy/tasks/optimize-pricing-framing.md +2 -2
- package/squads/squad-copy/tasks/write-ad-copy-google.md +2 -2
- package/squads/squad-copy/tasks/write-ad-copy-social.md +2 -2
- package/squads/squad-copy/tasks/write-ad-copy-variations.md +4 -4
- package/squads/squad-copy/tasks/write-case-study.md +2 -2
- package/squads/squad-copy/tasks/write-comparison-piece.md +2 -2
- package/squads/squad-copy/tasks/write-email-sequence.md +1 -1
- package/squads/squad-copy/tasks/write-email-subject-lines.md +1 -1
- package/squads/squad-copy/tasks/write-funnel-copy-sequence.md +4 -4
- package/squads/squad-copy/tasks/write-landing-page-copy.md +2 -2
- package/squads/squad-copy/tasks/write-launch-sequence.md +2 -2
- package/squads/squad-copy/tasks/write-opt-in-page.md +2 -2
- package/squads/squad-copy/tasks/write-product-narrative.md +2 -2
- package/squads/squad-copy/tasks/write-retargeting-copy.md +2 -2
- package/squads/squad-copy/tasks/write-sales-letter.md +1 -1
- package/squads/squad-copy/tasks/write-social-proof-section.md +1 -1
- package/squads/squad-copy/tasks/write-subheadlines-and-deck-copy.md +1 -1
- package/squads/squad-copy/tasks/write-upsell-copy.md +2 -2
- package/squads/squad-copy/tasks/write-vsl-script.md +3 -3
- package/squads/squad-copy/tasks/write-whitepaper-persuasive.md +2 -2
- package/squads/squad-copy/workflows/campaign-copy-cycle.yaml +4 -4
- package/squads/squad-copy/workflows/conversion-copy-sprint.yaml +6 -6
- package/squads/squad-copy/workflows/sales-copy-pipeline.yaml +4 -4
- package/squads/squad-design/README.md +6 -6
- package/squads/squad-design/agents/cro-persuasion.md +3 -3
- package/squads/squad-design/agents/design-orqx.md +17 -17
- package/squads/squad-design/agents/dx-accessibility-specialist.md +5 -5
- package/squads/squad-design/agents/dx-design-system-architect.md +8 -8
- package/squads/squad-design/agents/dx-frontend-engineer.md +7 -7
- package/squads/squad-design/agents/dx-interaction-designer.md +6 -6
- package/squads/squad-design/agents/dx-performance-engineer.md +3 -3
- package/squads/squad-design/agents/dx-ui-designer.md +7 -7
- package/squads/squad-design/agents/dx-ux-strategist.md +7 -7
- package/squads/squad-design/agents/platform-aesthetic-director.md +11 -11
- package/squads/squad-design/agents/premium-packaging-strategist.md +2 -2
- package/squads/squad-design/agents/product-surface-director.md +1 -1
- package/squads/squad-design/squad.yaml +6 -6
- package/squads/squad-design/tasks/analyze-javascript-bundles.md +1 -1
- package/squads/squad-design/tasks/audit-core-web-vitals.md +1 -1
- package/squads/squad-design/tasks/audit-design-system-health.md +1 -1
- package/squads/squad-design/tasks/audit-motion-performance.md +1 -1
- package/squads/squad-design/tasks/certify-accessibility-compliance.md +2 -2
- package/squads/squad-design/tasks/compose-screen-layouts.md +3 -3
- package/squads/squad-design/tasks/conduct-competitive-ux-analysis.md +1 -1
- package/squads/squad-design/tasks/conduct-dx-quality-gate.md +3 -3
- package/squads/squad-design/tasks/conduct-usability-heuristic-review.md +1 -1
- package/squads/squad-design/tasks/conduct-visual-qa.md +1 -1
- package/squads/squad-design/tasks/conduct-wcag-audit.md +1 -1
- package/squads/squad-design/tasks/configure-cdn-strategy.md +1 -1
- package/squads/squad-design/tasks/configure-token-export-pipeline.md +1 -1
- package/squads/squad-design/tasks/create-a11y-remediation-plan.md +4 -4
- package/squads/squad-design/tasks/create-color-system.md +2 -2
- package/squads/squad-design/tasks/create-component-governance.md +1 -1
- package/squads/squad-design/tasks/create-component-tokens.md +2 -2
- package/squads/squad-design/tasks/create-dark-light-themes.md +3 -3
- package/squads/squad-design/tasks/create-easing-curve-library.md +1 -1
- package/squads/squad-design/tasks/create-empty-error-states.md +1 -1
- package/squads/squad-design/tasks/create-error-boundary-patterns.md +1 -1
- package/squads/squad-design/tasks/create-illustration-style.md +1 -1
- package/squads/squad-design/tasks/create-mobile-first-designs.md +2 -2
- package/squads/squad-design/tasks/create-motion-documentation.md +1 -1
- package/squads/squad-design/tasks/create-motion-tokens.md +2 -2
- package/squads/squad-design/tasks/create-primitive-tokens.md +1 -1
- package/squads/squad-design/tasks/create-responsive-grid-system.md +1 -1
- package/squads/squad-design/tasks/create-screen-reader-specs.md +1 -1
- package/squads/squad-design/tasks/create-scroll-animation-patterns.md +1 -1
- package/squads/squad-design/tasks/create-semantic-tokens.md +1 -1
- package/squads/squad-design/tasks/create-storybook-documentation-standards.md +1 -1
- package/squads/squad-design/tasks/create-user-personas.md +1 -1
- package/squads/squad-design/tasks/create-ux-principles.md +1 -1
- package/squads/squad-design/tasks/create-wireframe-brief.md +2 -2
- package/squads/squad-design/tasks/define-atomic-hierarchy.md +2 -2
- package/squads/squad-design/tasks/define-content-hierarchy.md +2 -2
- package/squads/squad-design/tasks/define-motion-principles.md +4 -4
- package/squads/squad-design/tasks/define-performance-budgets.md +1 -1
- package/squads/squad-design/tasks/define-token-taxonomy.md +2 -2
- package/squads/squad-design/tasks/design-accessible-form-patterns.md +2 -2
- package/squads/squad-design/tasks/design-component-api-contracts.md +3 -3
- package/squads/squad-design/tasks/design-component-visual-states.md +4 -4
- package/squads/squad-design/tasks/design-dashboard-layouts.md +1 -1
- package/squads/squad-design/tasks/design-duration-scale.md +1 -1
- package/squads/squad-design/tasks/design-feedback-animations.md +2 -2
- package/squads/squad-design/tasks/design-focus-management.md +1 -1
- package/squads/squad-design/tasks/design-form-patterns.md +2 -2
- package/squads/squad-design/tasks/design-icon-system.md +1 -1
- package/squads/squad-design/tasks/design-information-architecture.md +2 -2
- package/squads/squad-design/tasks/design-landing-page-ui.md +3 -3
- package/squads/squad-design/tasks/design-loading-choreography.md +1 -1
- package/squads/squad-design/tasks/design-multi-brand-theming.md +1 -1
- package/squads/squad-design/tasks/design-page-transitions.md +1 -1
- package/squads/squad-design/tasks/design-spacing-scale.md +3 -3
- package/squads/squad-design/tasks/design-typography-scale.md +3 -3
- package/squads/squad-design/tasks/design-user-flows.md +2 -2
- package/squads/squad-design/tasks/design-visual-hierarchy.md +2 -2
- package/squads/squad-design/tasks/eliminate-render-blocking.md +1 -1
- package/squads/squad-design/tasks/extract-critical-css.md +1 -1
- package/squads/squad-design/tasks/govern-third-party-scripts.md +1 -1
- package/squads/squad-design/tasks/implement-authentication-ui.md +1 -1
- package/squads/squad-design/tasks/implement-component-library.md +4 -4
- package/squads/squad-design/tasks/implement-form-system.md +2 -2
- package/squads/squad-design/tasks/implement-reduced-motion.md +3 -3
- package/squads/squad-design/tasks/implement-responsive-layouts.md +1 -1
- package/squads/squad-design/tasks/implement-routing-strategy.md +1 -1
- package/squads/squad-design/tasks/map-dark-mode-tokens.md +3 -3
- package/squads/squad-design/tasks/map-user-journeys.md +2 -2
- package/squads/squad-design/tasks/migrate-legacy-design-system.md +1 -1
- package/squads/squad-design/tasks/monitor-performance-regression.md +1 -1
- package/squads/squad-design/tasks/optimize-font-loading.md +1 -1
- package/squads/squad-design/tasks/optimize-image-pipeline.md +1 -1
- package/squads/squad-design/tasks/orchestrate-dx-pipeline.md +2 -2
- package/squads/squad-design/tasks/plan-ux-research-sprint.md +1 -1
- package/squads/squad-design/tasks/produce-design-handoff-specs.md +4 -4
- package/squads/squad-design/tasks/review-aria-patterns.md +1 -1
- package/squads/squad-design/tasks/setup-performance-ci-gates.md +1 -1
- package/squads/squad-design/tasks/setup-storybook-integration.md +1 -1
- package/squads/squad-design/tasks/spec-gesture-interactions.md +1 -1
- package/squads/squad-design/tasks/spec-micro-interactions.md +2 -2
- package/squads/squad-design/tasks/synthesize-user-research.md +2 -2
- package/squads/squad-design/tasks/test-keyboard-navigation.md +1 -1
- package/squads/squad-design/tasks/validate-ux-with-testing.md +1 -1
- package/squads/squad-design/tasks/verify-color-contrast.md +2 -2
- package/squads/squad-design/templates/a11y-audit-report-template.md +1 -1
- package/squads/squad-design/templates/design-handoff-template.md +1 -1
- package/squads/squad-design/templates/performance-budget-template.md +1 -1
- package/squads/squad-design/templates/ux-research-plan-template.md +1 -1
- package/squads/squad-design/workflows/a11y-compliance-cycle.yaml +8 -8
- package/squads/squad-design/workflows/design-system-build-cycle.yaml +12 -12
- package/squads/squad-design/workflows/landing-page-sprint.yaml +10 -10
- package/squads/squad-design/workflows/performance-remediation-cycle.yaml +6 -6
- package/squads/squad-design/workflows/ux-research-sprint.yaml +8 -8
- package/squads/squad-design/workflows/zero-to-digital-product-cycle.yaml +16 -16
- package/squads/squad-finance/README.md +1 -1
- package/squads/squad-finance/agents/budget-controller.md +1 -1
- package/squads/squad-finance/agents/cost-optimizer.md +2 -2
- package/squads/squad-finance/agents/finance-orqx.md +4 -4
- package/squads/squad-finance/agents/fiscal-compliance-br.md +4 -4
- package/squads/squad-finance/agents/forecast-strategist.md +6 -6
- package/squads/squad-finance/agents/pricing-strategist.md +3 -3
- package/squads/squad-finance/agents/profitability-analyst.md +1 -1
- package/squads/squad-finance/agents/revenue-analyst.md +1 -1
- package/squads/squad-finance/checklists/monthly-close-checklist.md +1 -1
- package/squads/squad-finance/checklists/quarterly-review-checklist.md +1 -1
- package/squads/squad-finance/squad.yaml +2 -2
- package/squads/squad-finance/tasks/analyze-price-sensitivity.md +1 -1
- package/squads/squad-finance/tasks/benchmark-competitor-pricing.md +1 -1
- package/squads/squad-finance/tasks/calculate-rate-card.md +1 -1
- package/squads/squad-finance/tasks/coordinate-quarterly-review.md +2 -2
- package/squads/squad-finance/tasks/create-proposal-pricing.md +1 -1
- package/squads/squad-finance/tasks/design-service-tiers.md +1 -1
- package/squads/squad-finance/tasks/design-value-based-pricing.md +1 -1
- package/squads/squad-finance/tasks/manage-financial-calendar.md +1 -1
- package/squads/squad-finance/tasks/model-pricing-scenario.md +1 -1
- package/squads/squad-finance/tasks/optimize-rate-realization.md +1 -1
- package/squads/squad-finance/tasks/simulate-pricing-impact.md +1 -1
- package/squads/squad-finance/tasks/track-pricing-performance.md +1 -1
- package/squads/squad-paidmedia/README.md +4 -4
- package/squads/squad-paidmedia/agents/campaign-analyst.md +6 -6
- package/squads/squad-paidmedia/agents/creative-strategist.md +2 -2
- package/squads/squad-paidmedia/agents/cro-specialist.md +5 -5
- package/squads/squad-paidmedia/agents/google-ads-specialist.md +2 -2
- package/squads/squad-paidmedia/agents/meta-ads-specialist.md +6 -6
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +6 -6
- package/squads/squad-paidmedia/agents/performance-engineer.md +2 -2
- package/squads/squad-paidmedia/agents/pm-creative-performance-analyst.md +2 -2
- package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +21 -21
- package/squads/squad-paidmedia/squad.yaml +4 -4
- package/squads/squad-paidmedia/tasks/allocate-cross-channel-budget.md +1 -1
- package/squads/squad-paidmedia/tasks/allocate-meta-budget.md +2 -2
- package/squads/squad-paidmedia/tasks/analyze-audience-performance.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-content-performance.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-conversion-funnel.md +2 -2
- package/squads/squad-paidmedia/tasks/analyze-creative-effectiveness.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-keyword-rankings.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-landing-page.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-local-keywords.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-local-market.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-reviews-strategy.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-top-pages.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-traffic-sources.md +1 -1
- package/squads/squad-paidmedia/tasks/analyze-user-behavior.md +1 -1
- package/squads/squad-paidmedia/tasks/audit-conversion-tracking.md +1 -1
- package/squads/squad-paidmedia/tasks/audit-gmb-location.md +1 -1
- package/squads/squad-paidmedia/tasks/audit-meta-ads-account.md +1 -1
- package/squads/squad-paidmedia/tasks/audit-sitemap-health.md +1 -1
- package/squads/squad-paidmedia/tasks/build-audience-architecture.md +2 -2
- package/squads/squad-paidmedia/tasks/build-creative-scorecard.md +1 -1
- package/squads/squad-paidmedia/tasks/calculate-sample-size.md +1 -1
- package/squads/squad-paidmedia/tasks/check-indexing-status.md +1 -1
- package/squads/squad-paidmedia/tasks/create-scaling-roadmap.md +1 -1
- package/squads/squad-paidmedia/tasks/design-campaign-structure.md +2 -2
- package/squads/squad-paidmedia/tasks/design-progressive-profiling.md +1 -1
- package/squads/squad-paidmedia/tasks/detect-creative-fatigue.md +1 -1
- package/squads/squad-paidmedia/tasks/execute-launch-checklist.md +1 -1
- package/squads/squad-paidmedia/tasks/generate-monthly-report.md +1 -1
- package/squads/squad-paidmedia/tasks/generate-search-performance-overview.md +1 -1
- package/squads/squad-paidmedia/tasks/generate-weekly-summary.md +1 -1
- package/squads/squad-paidmedia/tasks/manage-pixel-capi-health.md +1 -1
- package/squads/squad-paidmedia/tasks/manage-scaling-roadmap.md +1 -1
- package/squads/squad-paidmedia/tasks/measure-activation-rate.md +1 -1
- package/squads/squad-paidmedia/tasks/optimize-ad-set-targeting.md +2 -2
- package/squads/squad-paidmedia/tasks/optimize-form-conversion.md +1 -1
- package/squads/squad-paidmedia/tasks/optimize-onboarding-activation.md +1 -1
- package/squads/squad-paidmedia/tasks/optimize-page-conversion.md +1 -1
- package/squads/squad-paidmedia/tasks/optimize-signup-flow.md +1 -1
- package/squads/squad-paidmedia/tasks/plan-customer-engagement.md +1 -1
- package/squads/squad-paidmedia/tasks/run-ab-test.md +1 -1
- package/squads/squad-paidmedia/tasks/run-creative-test.md +1 -1
- package/squads/squad-paidmedia/tasks/track-gmb-performance-trends.md +1 -1
- package/squads/squad-paidmedia/tasks/triage-campaign-issues.md +1 -1
- package/squads/squad-product/README.md +2 -2
- package/squads/squad-product/agents/product-orqx.md +4 -4
- package/squads/squad-product/agents/ps-delivery-manager.md +2 -2
- package/squads/squad-product/agents/ps-product-ops-specialist.md +2 -2
- package/squads/squad-product/squad.yaml +2 -2
- package/squads/squad-product/tasks/audit-product-tool-stack.md +1 -1
- package/squads/squad-product/tasks/build-product-knowledge-base.md +1 -1
- package/squads/squad-product/tasks/calculate-sprint-velocity.md +1 -1
- package/squads/squad-product/tasks/configure-feature-flag-rollout.md +1 -1
- package/squads/squad-product/tasks/create-product-artifact-template.md +1 -1
- package/squads/squad-product/tasks/create-product-onboarding-runbook.md +3 -3
- package/squads/squad-product/tasks/create-product-playbook.md +2 -2
- package/squads/squad-product/tasks/document-product-process.md +1 -1
- package/squads/squad-product/tasks/execute-feature-launch-checklist.md +1 -1
- package/squads/squad-product/tasks/facilitate-sprint-retrospective.md +1 -1
- package/squads/squad-product/tasks/generate-product-health-report.md +2 -2
- package/squads/squad-product/tasks/maintain-decision-log-system.md +1 -1
- package/squads/squad-product/tasks/manage-sprint-capacity-planning.md +1 -1
- package/squads/squad-product/tasks/map-cross-functional-dependencies.md +1 -1
- package/squads/squad-product/tasks/prepare-product-handoff-package.md +4 -4
- package/squads/squad-product/tasks/run-product-operations-audit.md +1 -1
- package/squads/squad-product/tasks/run-shape-up-betting-table.md +1 -1
- package/squads/squad-product/tasks/run-sprint-planning-session.md +1 -1
- package/squads/squad-product/tasks/scope-agency-mvp.md +1 -1
- package/squads/squad-product/tasks/setup-new-client-product-operations.md +1 -1
- package/squads/squad-product/tasks/standardize-cross-client-metrics.md +1 -1
- package/squads/squad-product/tasks/triage-technical-debt-backlog.md +1 -1
- package/squads/squad-product/tasks/write-release-notes.md +1 -1
- package/squads/squad-research/README.md +3 -3
- package/squads/squad-research/agents/audience-intelligence.md +9 -9
- package/squads/squad-research/agents/competitive-intelligence.md +1 -1
- package/squads/squad-research/agents/data-synthesizer.md +11 -11
- package/squads/squad-research/agents/deep-researcher.md +2 -2
- package/squads/squad-research/agents/market-analyst.md +9 -9
- package/squads/squad-research/agents/research-orqx.md +4 -4
- package/squads/squad-research/agents/trend-forecaster.md +2 -2
- package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +1 -1
- package/squads/squad-research/knowledge-base/community-platforms-reference.md +1 -1
- package/squads/squad-research/knowledge-base/cross-squad-integration-protocol.md +1 -1
- package/squads/squad-research/knowledge-base/multi-agent-research-methodology.md +3 -3
- package/squads/squad-research/squad.yaml +3 -3
- package/squads/squad-research/tasks/analyze-audience-behavior.md +2 -2
- package/squads/squad-research/tasks/analyze-audience-psychographics.md +2 -2
- package/squads/squad-research/tasks/analyze-competitor-pricing.md +1 -1
- package/squads/squad-research/tasks/analyze-industry-trends.md +2 -2
- package/squads/squad-research/tasks/analyze-macro-forces.md +1 -1
- package/squads/squad-research/tasks/analyze-pricing-landscape.md +2 -2
- package/squads/squad-research/tasks/analyze-social-listening.md +2 -2
- package/squads/squad-research/tasks/analyze-value-chain.md +2 -2
- package/squads/squad-research/tasks/answer-strategic-question.md +1 -1
- package/squads/squad-research/tasks/assess-market-maturity.md +2 -2
- package/squads/squad-research/tasks/build-audience-persona.md +2 -2
- package/squads/squad-research/tasks/build-data-narrative.md +2 -2
- package/squads/squad-research/tasks/compile-competitive-dossier.md +2 -2
- package/squads/squad-research/tasks/conduct-deep-research.md +1 -1
- package/squads/squad-research/tasks/conduct-jobs-to-be-done.md +2 -2
- package/squads/squad-research/tasks/create-empathy-map.md +2 -2
- package/squads/squad-research/tasks/create-executive-briefing.md +2 -2
- package/squads/squad-research/tasks/create-insight-deck.md +2 -2
- package/squads/squad-research/tasks/create-research-dossier.md +1 -1
- package/squads/squad-research/tasks/create-research-repository.md +2 -2
- package/squads/squad-research/tasks/create-swot-analysis.md +4 -4
- package/squads/squad-research/tasks/design-survey.md +2 -2
- package/squads/squad-research/tasks/evaluate-market-entry.md +2 -2
- package/squads/squad-research/tasks/evaluate-regulatory-landscape.md +2 -2
- package/squads/squad-research/tasks/forecast-industry-trends.md +2 -2
- package/squads/squad-research/tasks/forecast-market-growth.md +2 -2
- package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
- package/squads/squad-research/tasks/identify-market-segments.md +3 -3
- package/squads/squad-research/tasks/map-audience-ecosystem.md +2 -2
- package/squads/squad-research/tasks/map-audience-journey.md +2 -2
- package/squads/squad-research/tasks/map-industry-ecosystem.md +2 -2
- package/squads/squad-research/tasks/map-market-opportunity.md +2 -2
- package/squads/squad-research/tasks/map-pain-gain-matrix.md +2 -2
- package/squads/squad-research/tasks/map-strategic-implications.md +2 -2
- package/squads/squad-research/tasks/orchestrate-research-pipeline.md +4 -4
- package/squads/squad-research/tasks/predict-market-shifts.md +1 -1
- package/squads/squad-research/tasks/profile-ideal-customer.md +2 -2
- package/squads/squad-research/tasks/run-porter-five-forces.md +1 -1
- package/squads/squad-research/tasks/run-scenario-planning.md +1 -1
- package/squads/squad-research/tasks/segment-audience.md +2 -2
- package/squads/squad-research/tasks/size-market-tam-sam-som.md +2 -2
- package/squads/squad-research/tasks/synthesize-multi-source.md +1 -1
- package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
- package/squads/squad-research/tasks/validate-persona-with-data.md +2 -2
- package/squads/squad-research/tasks/visualize-research-data.md +2 -2
- package/squads/squad-research/templates/audience-persona-template.md +1 -1
- package/squads/squad-research/templates/competitive-dossier-template.md +1 -1
- package/squads/squad-research/templates/market-analysis-template.md +1 -1
- package/squads/squad-research/workflows/audience-intelligence-cycle.yaml +12 -12
- package/squads/squad-research/workflows/competitive-intelligence-cycle.yaml +2 -2
- package/squads/squad-research/workflows/deep-research-cycle.yaml +2 -2
- package/squads/squad-research/workflows/full-research-sprint.yaml +8 -8
- package/squads/squad-research/workflows/market-analysis-cycle.yaml +12 -12
- package/squads/squad-research/workflows/trend-forecasting-cycle.yaml +2 -2
- package/.sinapse-ai/lib/build.json +0 -1
|
@@ -741,7 +741,7 @@ outputs/ # Runtime outputs (gitignored)
|
|
|
741
741
|
|
|
742
742
|
## Autonomous Development Engine (ADE)
|
|
743
743
|
|
|
744
|
-
> **
|
|
744
|
+
> **Added in v3.0** - The ADE provides structured workflows, pattern learning, and self-healing loops for development. **Measured scope:** reliable as a single-story assistant (spec + plan + build); autonomous multi-story orchestration was measured and abandoned in favor of the native flow — see [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
745
745
|
|
|
746
746
|
### ADE Architecture Overview
|
|
747
747
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Workflow Engine Status — o que os 15 YAMLs de workflow realmente fazem
|
|
2
|
+
|
|
3
|
+
> **Fonte:** `audits/AF-20260702-fable5-upgrade.md` §3 Onda 2, item 2.17 (verificado por leitura direta de código nesta story).
|
|
4
|
+
> **Story:** `docs/stories/story-o2p5-enforcement-honesto.md` (Onda2-P5).
|
|
5
|
+
> **Data:** 2026-07-02.
|
|
6
|
+
|
|
7
|
+
## Por que este documento existe
|
|
8
|
+
|
|
9
|
+
`.sinapse-ai/development/workflows/*.yaml` descreve 15 fluxos de trabalho. Isso NÃO significa que existem 15 fluxos executados por um engine — cada YAML tem um nível de "vivência" no código diferente, e a documentação pública nunca distinguiu isso explicitamente. Este documento é a fonte da verdade sobre o que cada YAML É de fato, verificado por leitura de código (não por inferência).
|
|
10
|
+
|
|
11
|
+
## Contagem
|
|
12
|
+
|
|
13
|
+
`Glob(.sinapse-ai/development/workflows/*.yaml)` retorna exatamente **15 arquivos** (confirmado em 2026-07-02) — bate com a contagem do relatório de auditoria.
|
|
14
|
+
|
|
15
|
+
## Classificação verificada
|
|
16
|
+
|
|
17
|
+
| # | Workflow | Classe | Evidência (lida diretamente) |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| 1 | `development-cycle.yaml` | **(a) Engine real, in-process** | `workflow-executor.js:104` — único YAML cujo path é carregado e cujas fases o `WorkflowExecutor` de fato interpreta e avança em código. |
|
|
20
|
+
| 2 | `greenfield-ui.yaml` | **(b) Handler + prosa** | `greenfield-handler.js:144-150` resolve o YAML pelo `project_type` (`resolveGreenfieldWorkflow`) e monta `workflowPath`; o handler chama `WorkflowExecutor`, mas os `steps` do YAML são instrução em linguagem natural — o executor carrega/valida o arquivo e devolve handoff, não interpreta os steps como programa. |
|
|
21
|
+
| 3 | `greenfield-fullstack.yaml` | **(b) Handler + prosa** | Idem (mesmo `greenfield-handler.js`, variante `fullstack`). |
|
|
22
|
+
| 4 | `greenfield-service.yaml` | **(b) Handler + prosa** | Idem (mesmo `greenfield-handler.js`, variante `service`). |
|
|
23
|
+
| 5 | `brownfield-ui.yaml` | **(b) Handler + prosa** | `brownfield-handler.js:78-84` mapeia `project_type` → `brownfield-ui`/`fullstack`/`service` (`resolveBrownfieldWorkflow`, mesmo padrão do greenfield); `:135-138` monta `workflowPath`; `:360` chama `workflowExecutor.executeWorkflow(this.workflowPath, ...)`. |
|
|
24
|
+
| 6 | `brownfield-fullstack.yaml` | **(b) Handler + prosa** | Idem. |
|
|
25
|
+
| 7 | `brownfield-service.yaml` | **(b) Handler + prosa** | Idem. |
|
|
26
|
+
| 8 | `brownfield-discovery.yaml` | **(b) Handler + prosa** | `brownfield-handler.js:13,326-360` — entry point específico da descoberta; o próprio YAML declara em `metadata.action_types.workflow-action` (linha ~23): "Action is a workflow orchestration step executed via **manual prompt**". |
|
|
27
|
+
| 9 | `qa-loop.yaml` | **(c) Citado, quebrado/parcial** | `epic-6-executor.js` reimplementa o loop review→fix→re-review direto em JS (`_runReview`/`_applyFixes`/contagem de iteração), sem nunca ler o YAML. O comentário do próprio arquivo (linhas 40-45) diz que o caminho antigo que citava o YAML via `qa-loop-orchestrator.js` era "triple-broken theater" e foi substituído por invocação direta de agente. `qa-loop-orchestrator.js` (que guarda `workflowPath: '.../qa-loop.yaml'` como constante) não tem nenhum call site fora de si mesmo — está órfão. |
|
|
28
|
+
| 10 | `spec-pipeline.yaml` | **(c) Citado, quebrado/parcial** | `epic-3-executor.js:36-41` guarda `this.pipelinePath` apontando pro YAML — mas essa é a **única** ocorrência da variável no arquivo inteiro (grep confirma), nunca é lida (`fs.readFileSync` nunca chamado sobre ela). As fases rodam de um array JS hardcoded (`SPEC_PHASES`), não do conteúdo do YAML. |
|
|
29
|
+
| 11 | `story-development-cycle.yaml` | **(d) Catálogo puro** | Só existe como entrada em `service-registry.json:11941-11972` (`path` na linha 11956). Nenhum executor em `.sinapse-ai/core/` referencia esse path. |
|
|
30
|
+
| 12 | `epic-orchestration.yaml` | **(d) Catálogo puro** | Só existe em `service-registry.json:11739` (`maxConcurrency: 4` nunca teve executor). Nenhum código carrega o arquivo. |
|
|
31
|
+
| 13 | `fast-track.yaml` | **(d) Catálogo puro** | Só existe em `service-registry.json:11770`. Nenhum código carrega o arquivo. |
|
|
32
|
+
| 14 | `auto-worktree.yaml` | **(d) Catálogo puro** | `triggers` declara `event: story_started` (linha 24) — nenhum engine do repo escuta esse evento. Os blocos `script:` dentro de cada step (JS embutido em YAML) nunca são interpretados/executados por nenhum runtime; é só entrada de catálogo em `service-registry.json`. |
|
|
33
|
+
| 15 | `design-system-build-quality.yaml` | **(d) Catálogo puro** | Só existe em `service-registry.json:11677`. Nenhum código carrega o arquivo. |
|
|
34
|
+
|
|
35
|
+
**Total: 1 (a) + 7 (b) + 2 (c) + 5 (d) = 15.**
|
|
36
|
+
|
|
37
|
+
## O que cada classe significa na prática
|
|
38
|
+
|
|
39
|
+
- **(a) Engine real (1/15)** — o único caso em que o YAML é literalmente a fonte de execução: `WorkflowExecutor` lê o arquivo e avança fase a fase em código.
|
|
40
|
+
- **(b) Handler + prosa (7/15)** — existe código real e vivo (`greenfield-handler.js`, `brownfield-handler.js`) que resolve qual YAML usar por tipo de projeto e invoca `WorkflowExecutor.executeWorkflow()` — mas isso carrega/valida o arquivo e devolve um handoff para o humano/agente seguir manualmente. Os `steps` descritos no YAML são instrução em linguagem natural, não um programa interpretado.
|
|
41
|
+
- **(c) Citado mas quebrado/parcial (2/15)** — em algum ponto do histórico o código apontava para o YAML (variável de path guardada, ou um script satélite), mas o caminho vivo de hoje contorna o arquivo por completo: ou porque foi reescrito para chamar um agente real diretamente (`qa-loop`), ou porque a variável do path nunca chega a ser lida (`spec-pipeline`).
|
|
42
|
+
- **(d) Catálogo puro (5/15)** — existem apenas como entrada em `service-registry.json` (id, nome, tags, path). Nenhuma linha de código em `.sinapse-ai/core/` carrega ou executa o arquivo.
|
|
43
|
+
|
|
44
|
+
## Decisão
|
|
45
|
+
|
|
46
|
+
O YAML continua sendo a **especificação / fonte da verdade** de cada workflow — é o contrato que a documentação em `docs/sinapse-workflows/` deriva e que humanos/agentes seguem manualmente hoje. Construir uma camada executável (`.workflow.js`) para os 15 não é a aposta certa: o veredito HÍBRIDO medido em 30/06/2026 mostrou que orquestração multi-agente sem gate determinístico tende a piorar (coordenação sabotou 1/3 vs 3/3 do caminho nativo — ver `docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md`).
|
|
47
|
+
|
|
48
|
+
A decisão é: **camada executável real só para os 3-5 fluxos de maior valor**, cada um condicionado a um gate de medição antes de virar produto (repetir o protocolo do checkpoint de 30/06 — comparar contra o caminho nativo em custo e resultado). Candidatos, escopados para a Onda 3 (`audits/AF-20260702-fable5-upgrade.md` §3 Onda 3, itens 3.3-3.5):
|
|
49
|
+
|
|
50
|
+
1. **Brownfield Discovery (TOP 3)** — fan-out real (`parallel()`) na fase de coleta (arquiteto/dados/UX em paralelo) + gate de QA em código (APPROVED/NEEDS_WORK com retorno automático, máx. 2 voltas).
|
|
51
|
+
2. **Greenfield Discovery Phase 1 (TOP 4)** — pipeline com gate determinístico por artefato ("arquivo existe e não está vazio", reaproveitando `doc-first-resolver.js::fileHasContent`) + checkpoint humano honrando `confirmation_required`.
|
|
52
|
+
3. **Epic waves multi-story (TOP 5)** — wrapper fino no harness, fan-out por story em worktree isolado (zero estado compartilhado) — **gate inegociável de adoção:** repetir a medição de 30/06 (3 stories dependentes vs. nativo puro); só vira produto se empatar ou vencer em custo.
|
|
53
|
+
|
|
54
|
+
Sem essas 3, os outros 12 YAMLs continuam sendo espec, não motor — e está tudo bem, contanto que nenhum documento afirme o contrário.
|
|
55
|
+
|
|
56
|
+
## Docs shipped verificados (busca dirigida, sem correção necessária)
|
|
57
|
+
|
|
58
|
+
Busca em 2026-07-02 por afirmações de que os 15 YAMLs seriam executados automaticamente por um engine:
|
|
59
|
+
|
|
60
|
+
- `docs/framework/source-tree.md` (seção "Autonomous Development Engine") — já escopado por uma Onda 2 anterior: "**Measured scope:** reliable as a single-story assistant", com link para `KNOWN-LIMITATIONS.md`. Não overclaima.
|
|
61
|
+
- `docs/framework/atlas/OPERATING-ATLAS.md` §6 ("Workflow catalog") — lista os 15 com nome/tipo/descrição; é um catálogo neutro gerado do `service-registry.json`, não afirma execução automática.
|
|
62
|
+
- `docs/sinapse-workflows/README.md` — descreve o uso como algo que humano/agente "segue" ("Siga os Steps na ordem"), consistente com a realidade de handler+prosa.
|
|
63
|
+
|
|
64
|
+
Nenhuma correção adicional foi necessária além do que a Onda 2 anterior (itens 2.1/2.4 do relatório) já cobriu.
|
|
65
|
+
|
|
66
|
+
## Links
|
|
67
|
+
|
|
68
|
+
- Épico-mãe: [`docs/epics/epic-ultra-optimization/README.md`](../epics/epic-ultra-optimization/README.md) §0.5 (Estado).
|
|
69
|
+
- Evidência completa: `audits/AF-20260702-fable5-upgrade.md`, item 2.17 e §3 Onda 3 (itens 3.3-3.5).
|
|
70
|
+
- Limitação medida do motor: [`docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md`](../epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
package/docs/guides/ade-guide.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> **Versão:** 1.0.0
|
|
4
4
|
> **Data:** 2026-01-29
|
|
5
|
-
> **Status:**
|
|
5
|
+
> **Status:** Assistente confiável de 1 story (medido) ⚠️ — multi-story não suportado
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
O **SINAPSE Autonomous Development Engine (ADE)** é um sistema de desenvolvimento autônomo que transforma requisitos vagos em código funcional através de pipelines estruturados e agentes especializados.
|
|
12
12
|
|
|
13
|
+
> **Escopo real (medido em 2026-06-30):** confiável para **1 story isolada** — gera spec (Epic 3) e plano (Epic 4) reais, e produz código correto para essa story. Orquestração autônoma de **múltiplas stories encadeadas** foi medida e **abandonada** (o caminho nativo venceu 3/3 stories vs 1/3 do motor). Detalhes: [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
14
|
+
|
|
13
15
|
### Características Principais
|
|
14
16
|
|
|
15
17
|
- **Spec Pipeline** - Transforma ideias em especificações executáveis
|
|
@@ -443,5 +445,5 @@ cat docs/stories/STORY-42/spec-critique.json
|
|
|
443
445
|
|
|
444
446
|
---
|
|
445
447
|
|
|
446
|
-
_SINAPSE Autonomous Development Engine -
|
|
448
|
+
_SINAPSE Autonomous Development Engine - Assistente confiável de spec a código, 1 story por vez_
|
|
447
449
|
|
|
@@ -200,6 +200,8 @@ Task execution with arguments: { story: "story-1.2.3" }
|
|
|
200
200
|
| `*build-status` | `[--all]` | Show build status |
|
|
201
201
|
| `*build-log` | `{story-id}` | View build attempt log |
|
|
202
202
|
|
|
203
|
+
> **Scope:** build commands run **one `{story-id}` at a time** — a reliable single-story pipeline. Multi-story chaining is not supported; see [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
204
|
+
|
|
203
205
|
**Quality & Debt:**
|
|
204
206
|
|
|
205
207
|
| Command | Arguments | Description |
|
|
@@ -205,6 +205,8 @@ The Autonomous Development Engine (ADE) respects permission modes:
|
|
|
205
205
|
| **Ask** | Batches operations for approval |
|
|
206
206
|
| **Auto** | Full autonomous execution |
|
|
207
207
|
|
|
208
|
+
> **Scope:** "Full autonomous execution" applies per story. Chained multi-story autonomy is not supported — see [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
209
|
+
|
|
208
210
|
### Batch Approval in Ask Mode
|
|
209
211
|
|
|
210
212
|
When running autonomous workflows, operations are grouped:
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Complete guide for using SINAPSE - the AI-Orchestrated System for Full Stack Development.
|
|
8
8
|
|
|
9
|
-
**Version:**
|
|
10
|
-
**Last Updated:** 2026-
|
|
9
|
+
**Version:** 1.19.2
|
|
10
|
+
**Last Updated:** 2026-07-02
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ Complete guide for using SINAPSE - the AI-Orchestrated System for Full Stack Dev
|
|
|
18
18
|
Before using SINAPSE, ensure you have:
|
|
19
19
|
|
|
20
20
|
- **Node.js** version 18.0.0 or higher
|
|
21
|
-
- **npm** version
|
|
21
|
+
- **npm** version 9.0.0 or higher
|
|
22
22
|
- **Git** for version control
|
|
23
23
|
- An AI provider API key (Anthropic, OpenAI, or compatible)
|
|
24
24
|
|
|
@@ -40,10 +40,10 @@ npx sinapse-ai install
|
|
|
40
40
|
cd my-project
|
|
41
41
|
|
|
42
42
|
# List available agents
|
|
43
|
-
sinapse agents list
|
|
43
|
+
npx sinapse-ai agents list
|
|
44
44
|
|
|
45
45
|
# Activate an agent
|
|
46
|
-
@
|
|
46
|
+
@developer
|
|
47
47
|
|
|
48
48
|
# Get help
|
|
49
49
|
*help
|
|
@@ -224,6 +224,20 @@ sinapse route "add dark mode to the platform"
|
|
|
224
224
|
sinapse orchestrate <story-id>
|
|
225
225
|
```
|
|
226
226
|
|
|
227
|
+
### Orchestrate — Supported Scope (Measured)
|
|
228
|
+
|
|
229
|
+
`sinapse orchestrate` is reliable for **one story at a time**. Sequential
|
|
230
|
+
multi-story orchestration in the same working directory is **not supported** —
|
|
231
|
+
this was measured directly (native flow: 3/3 stories, 64s, 1 call; the
|
|
232
|
+
orchestrate pipeline: 1/3 stories, ~13.5min, state leaked across stories) and
|
|
233
|
+
the autonomous multi-story path was abandoned in favor of the native flow.
|
|
234
|
+
Full write-up: [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
235
|
+
|
|
236
|
+
| Use | Supported? |
|
|
237
|
+
| ------------------------------------------------------ | ---------------------------- |
|
|
238
|
+
| `orchestrate` for **1 story** (spec + plan + build) | ✅ Yes, reliable |
|
|
239
|
+
| `orchestrate` for **multiple chained stories** | ❌ No — use the native flow |
|
|
240
|
+
|
|
227
241
|
---
|
|
228
242
|
|
|
229
243
|
## Squads
|
|
@@ -341,7 +355,7 @@ features:
|
|
|
341
355
|
|
|
342
356
|
ai:
|
|
343
357
|
provider: anthropic
|
|
344
|
-
model:
|
|
358
|
+
model: opus # family alias (opus | sonnet | haiku) — the CLI resolves the current version; never hardcode a dated snapshot id
|
|
345
359
|
|
|
346
360
|
environment: development
|
|
347
361
|
```
|
|
@@ -490,4 +504,4 @@ before building a new agent from scratch.
|
|
|
490
504
|
|
|
491
505
|
---
|
|
492
506
|
|
|
493
|
-
_SINAPSE User Guide
|
|
507
|
+
_SINAPSE User Guide v1.19.2_
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
## Visao Geral
|
|
11
11
|
|
|
12
|
-
O **Auto-Worktree** e um workflow de automacao que cria e gerencia worktrees Git isoladas para desenvolvimento de stories. Faz parte da infraestrutura **Auto-Claude ADE** (Autonomous Development Engine)
|
|
12
|
+
O **Auto-Worktree** e um workflow de automacao que cria e gerencia worktrees Git isoladas para desenvolvimento de stories (isolamento real de branch por story, um recurso generico do Git). Faz parte da infraestrutura **Auto-Claude ADE** (Autonomous Development Engine). Nota de escopo: isso NAO e o mesmo que orquestracao autonoma multi-story — essa foi medida e abandonada (o pipeline `sinapse orchestrate` hoje nao usa esse isolamento). Detalhes: KNOWN-LIMITATIONS.md (https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
13
13
|
|
|
14
14
|
### Principais Beneficios
|
|
15
15
|
|
|
16
16
|
| Beneficio | Descricao |
|
|
17
17
|
|-----------|-----------|
|
|
18
18
|
| **Isolamento** | Cada story trabalha em um diretorio e branch separados |
|
|
19
|
-
| **Paralelismo** | Multiplas stories podem
|
|
19
|
+
| **Paralelismo** | Multiplas stories podem ter worktrees isoladas ao mesmo tempo (isolamento manual/nativo — nao e orquestracao autonoma multi-story) |
|
|
20
20
|
| **Automacao** | Worktrees sao criadas automaticamente ao iniciar uma story |
|
|
21
21
|
| **Limpeza** | Worktrees obsoletas podem ser removidas automaticamente |
|
|
22
22
|
|
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
O **Motor de Desenvolvimento Autônomo (ADE)** é a infraestrutura do SINAPSE para workflows de desenvolvimento autônomo. Ele permite que agentes de IA trabalhem de forma independente através de pipelines inteligentes, loops auto-recuperáveis e aprendizado persistente.
|
|
28
28
|
|
|
29
|
+
> **Escopo real (medido em 2026-06-30):** confiável para **1 story isolada** (spec + plano + build). Orquestração autônoma de múltiplas stories encadeadas foi medida e abandonada em favor do caminho nativo — ver [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
30
|
+
|
|
29
31
|
### Capacidades Principais
|
|
30
32
|
|
|
31
33
|
| Capacidade | Descrição | Épica |
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
│ │
|
|
55
55
|
│ ┌─────────────────────────────────────────────────────────────────┐ │
|
|
56
56
|
│ │ CLI / FERRAMENTAS │ │
|
|
57
|
-
│ │ (sinapse agents, sinapse tasks, sinapse squads, sinapse workflow)
|
|
57
|
+
│ │ (sinapse-ai agents, sinapse tasks, sinapse squads, sinapse workflow) │ │
|
|
58
58
|
│ └─────────────────────────────────────────────────────────────────┘ │
|
|
59
59
|
│ │ │
|
|
60
60
|
│ ┌────────────────────┼────────────────────┐ │
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **Versão:** 1.0.0
|
|
10
10
|
> **Data:** 2026-01-29
|
|
11
|
-
> **Status:**
|
|
11
|
+
> **Status:** Assistente confiável de 1 story (medido) ⚠️ — multi-story não suportado
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
O **SINAPSE Autonomous Development Engine (ADE)** é um sistema de desenvolvimento autônomo que transforma requisitos vagos em código funcional através de pipelines estruturados e agentes especializados.
|
|
18
18
|
|
|
19
|
+
> **Escopo real (medido em 2026-06-30):** confiável para **1 story isolada** — gera spec (Epic 3) e plano (Epic 4) reais, e produz código correto para essa story. Orquestração autônoma de **múltiplas stories encadeadas** foi medida e **abandonada** (o caminho nativo venceu 3/3 stories vs 1/3 do motor). Detalhes: [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
20
|
+
|
|
19
21
|
### Características Principais
|
|
20
22
|
|
|
21
23
|
- **Spec Pipeline** - Transforma ideias em especificações executáveis
|
|
@@ -449,5 +451,5 @@ cat docs/stories/STORY-42/spec-critique.json
|
|
|
449
451
|
|
|
450
452
|
---
|
|
451
453
|
|
|
452
|
-
_SINAPSE Autonomous Development Engine -
|
|
454
|
+
_SINAPSE Autonomous Development Engine - Assistente confiável de spec a código, 1 story por vez_
|
|
453
455
|
|
|
@@ -200,6 +200,8 @@ Execução de task com argumentos: { story: "story-1.2.3" }
|
|
|
200
200
|
| `*build-status` | `[--all]` | Mostrar status do build |
|
|
201
201
|
| `*build-log` | `{story-id}` | Visualizar log de tentativas de build |
|
|
202
202
|
|
|
203
|
+
> **Escopo:** os comandos de build rodam **1 `{story-id}` por vez** — pipeline confiável de 1 story. Encadeamento multi-story não é suportado; ver [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
204
|
+
|
|
203
205
|
**Qualidade & Débito:**
|
|
204
206
|
|
|
205
207
|
| Comando | Argumentos | Descrição |
|
|
@@ -211,6 +211,8 @@ O Autonomous Development Engine (ADE) respeita os modos de permissão:
|
|
|
211
211
|
| **Perguntar** | Agrupa operações para aprovação |
|
|
212
212
|
| **Auto** | Execução totalmente autônoma |
|
|
213
213
|
|
|
214
|
+
> **Escopo:** "Execução totalmente autônoma" vale por story. Orquestração autônoma de múltiplas stories encadeadas não é suportada — ver [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
215
|
+
|
|
214
216
|
### Aprovação em Lote no Modo Perguntar
|
|
215
217
|
|
|
216
218
|
Ao executar workflows autônomos, operações são agrupadas:
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
Guia completo para usar o SINAPSE - o Sistema Orquestrado por IA para Desenvolvimento Full Stack.
|
|
14
14
|
|
|
15
|
-
**Versão:**
|
|
16
|
-
**Última Atualização:** 2026-
|
|
15
|
+
**Versão:** 1.19.2
|
|
16
|
+
**Última Atualização:** 2026-07-02
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ Guia completo para usar o SINAPSE - o Sistema Orquestrado por IA para Desenvolvi
|
|
|
24
24
|
Antes de usar o SINAPSE, certifique-se de ter:
|
|
25
25
|
|
|
26
26
|
- **Node.js** versão 18.0.0 ou superior
|
|
27
|
-
- **npm** versão
|
|
27
|
+
- **npm** versão 9.0.0 ou superior
|
|
28
28
|
- **Git** para controle de versão
|
|
29
29
|
- Uma chave de API de provedor de IA (Anthropic, OpenAI ou compatível)
|
|
30
30
|
|
|
@@ -46,10 +46,10 @@ npx sinapse-ai install
|
|
|
46
46
|
cd my-project
|
|
47
47
|
|
|
48
48
|
# Liste agentes disponíveis
|
|
49
|
-
sinapse agents list
|
|
49
|
+
npx sinapse-ai agents list
|
|
50
50
|
|
|
51
51
|
# Ative um agente
|
|
52
|
-
@
|
|
52
|
+
@developer
|
|
53
53
|
|
|
54
54
|
# Obtenha ajuda
|
|
55
55
|
*help
|
|
@@ -189,6 +189,20 @@ sinapse route "adicionar dark mode na plataforma"
|
|
|
189
189
|
sinapse orchestrate <story-id>
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
+
### Orchestrate — Escopo Suportado (Medido)
|
|
193
|
+
|
|
194
|
+
O `sinapse orchestrate` é confiável para **1 story por vez**. Orquestração
|
|
195
|
+
autônoma de múltiplas stories encadeadas no mesmo diretório de trabalho **não é
|
|
196
|
+
suportada** — isso foi medido diretamente (fluxo nativo: 3/3 stories, 64s, 1
|
|
197
|
+
chamada; o pipeline orchestrate: 1/3 stories, ~13,5min, com contaminação de
|
|
198
|
+
estado entre stories) e o caminho multi-story autônomo foi abandonado em favor
|
|
199
|
+
do fluxo nativo. Detalhes completos: [KNOWN-LIMITATIONS.md](https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
200
|
+
|
|
201
|
+
| Uso | Suportado? |
|
|
202
|
+
| ------------------------------------------------------ | ---------------------------- |
|
|
203
|
+
| `orchestrate` de **1 story** (spec + plano + build) | ✅ Sim, confiável |
|
|
204
|
+
| `orchestrate` de **múltiplas stories** encadeadas | ❌ Não — use o caminho nativo |
|
|
205
|
+
|
|
192
206
|
---
|
|
193
207
|
|
|
194
208
|
## Squads
|
|
@@ -304,7 +318,7 @@ features:
|
|
|
304
318
|
|
|
305
319
|
ai:
|
|
306
320
|
provider: anthropic
|
|
307
|
-
model:
|
|
321
|
+
model: opus # alias de família (opus | sonnet | haiku) — o CLI resolve a versão atual; nunca fixe um id datado
|
|
308
322
|
|
|
309
323
|
environment: development
|
|
310
324
|
```
|
|
@@ -453,5 +467,5 @@ construir um agente novo do zero.
|
|
|
453
467
|
|
|
454
468
|
---
|
|
455
469
|
|
|
456
|
-
_Guia do Usuário SINAPSE
|
|
470
|
+
_Guia do Usuário SINAPSE v1.19.2_
|
|
457
471
|
|
|
@@ -151,7 +151,7 @@ Este arquivo contém:
|
|
|
151
151
|
export ANTHROPIC_API_KEY="sk-ant-..."
|
|
152
152
|
|
|
153
153
|
# Opcional
|
|
154
|
-
export CLAUDE_MODEL="
|
|
154
|
+
export CLAUDE_MODEL="sonnet" # Alias de família — o CLI resolve a versão atual (nunca fixe um id datado)
|
|
155
155
|
export CLAUDE_MAX_TOKENS="8192" # Máximo de tokens de resposta
|
|
156
156
|
export SINAPSE_DEBUG="true" # Habilitar log de debug
|
|
157
157
|
```
|
|
@@ -162,7 +162,7 @@ export SINAPSE_DEBUG="true" # Habilitar log de debug
|
|
|
162
162
|
|
|
163
163
|
```json
|
|
164
164
|
{
|
|
165
|
-
"model": "
|
|
165
|
+
"model": "sonnet",
|
|
166
166
|
"maxTokens": 8192,
|
|
167
167
|
"permissions": {
|
|
168
168
|
"allowedTools": ["Read", "Write", "Edit", "Bash", "Glob", "Grep"],
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
## Visão Geral
|
|
11
11
|
|
|
12
|
-
O **Auto-Worktree** é um workflow de automação que cria e gerencia worktrees Git isoladas para desenvolvimento de stories. Faz parte da infraestrutura **Auto-Claude ADE** (Autonomous Development Engine)
|
|
12
|
+
O **Auto-Worktree** é um workflow de automação que cria e gerencia worktrees Git isoladas para desenvolvimento de stories (isolamento real de branch por story, um recurso genérico do Git). Faz parte da infraestrutura **Auto-Claude ADE** (Autonomous Development Engine). Nota de escopo: isso NÃO é o mesmo que orquestração autônoma multi-story — essa foi medida e abandonada (o pipeline `sinapse orchestrate` hoje não usa esse isolamento). Detalhes: KNOWN-LIMITATIONS.md (https://github.com/caioimori/sinapse-ai/blob/main/docs/epics/epic-orchestration-consolidation/KNOWN-LIMITATIONS.md).
|
|
13
13
|
|
|
14
14
|
### Principais Beneficios
|
|
15
15
|
|
|
16
16
|
| Benefício | Descrição |
|
|
17
17
|
|-----------|-----------|
|
|
18
18
|
| **Isolamento** | Cada story trabalha em um diretório e branch separados |
|
|
19
|
-
| **Paralelismo** | Multiplas stories podem
|
|
19
|
+
| **Paralelismo** | Multiplas stories podem ter worktrees isoladas ao mesmo tempo (isolamento manual/nativo — não é orquestração autônoma multi-story) |
|
|
20
20
|
| **Automação** | Worktrees são criadas automaticamente ao iniciar uma story |
|
|
21
21
|
| **Limpeza** | Worktrees obsoletas podem ser removidas automaticamente |
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -321,6 +321,12 @@ async function updateGitignore(targetDir) {
|
|
|
321
321
|
'Build & Logs': ['dist/', 'build/', '*.log', 'logs/'],
|
|
322
322
|
'IDE & OS': ['.DS_Store', 'Thumbs.db', '.idea/', '*.swp'],
|
|
323
323
|
'SINAPSE Local': ['.sinapse-ai/local/', '.claude/settings.local.json', '.sinapse/install-log.txt'],
|
|
324
|
+
// Story onda2-p9 — context-engine runtime. The framework repo ignores the
|
|
325
|
+
// WHOLE .synapse/ (see its .gitignore): the constitution is regenerated
|
|
326
|
+
// from .sinapse-ai/constitution.md on every install, and sessions/ +
|
|
327
|
+
// metrics/ are per-machine runtime state. Installed projects replicate
|
|
328
|
+
// that intent — nothing under .synapse/ is meant to be versioned.
|
|
329
|
+
'SINAPSE Context Engine': ['.synapse/'],
|
|
324
330
|
};
|
|
325
331
|
|
|
326
332
|
const lines = gitignoreContent.split('\n').map(line => line.trim());
|
|
@@ -210,13 +210,55 @@ function generateCoreConfig(options = {}) {
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
// Convert to YAML with proper formatting
|
|
213
|
-
|
|
213
|
+
const dumped = yaml.dump(config, {
|
|
214
214
|
indent: 2,
|
|
215
215
|
lineWidth: 120,
|
|
216
216
|
noRefs: true,
|
|
217
217
|
});
|
|
218
|
+
|
|
219
|
+
// Story onda2-p9 (closes the P4/DEC-01 loose end): the `models` section is
|
|
220
|
+
// appended as a raw block (yaml.dump cannot emit comments) so installed
|
|
221
|
+
// projects stop falling back to the conservative 200000-token window when
|
|
222
|
+
// the active model actually has a 1M window. Values MIRROR the framework
|
|
223
|
+
// repo's core-config.yaml `models` section — never invent context windows.
|
|
224
|
+
return dumped + MODELS_SECTION;
|
|
218
225
|
}
|
|
219
226
|
|
|
227
|
+
/**
|
|
228
|
+
* `models` registry block for installed projects (Story onda2-p9, AC2).
|
|
229
|
+
*
|
|
230
|
+
* Consumed by .sinapse-ai/core/synapse/context/context-tracker.js
|
|
231
|
+
* (getModelConfig): `active` selects which registry entry drives
|
|
232
|
+
* estimateContextPercent/shouldCompact.
|
|
233
|
+
*
|
|
234
|
+
* MAINTENANCE: keep in sync with the framework repo's core-config.yaml
|
|
235
|
+
* `models:` section (source of truth). When the frontier model changes,
|
|
236
|
+
* update `active` + add the entry THERE first, then mirror here.
|
|
237
|
+
* Windows below are copied verbatim from that source — do not invent values.
|
|
238
|
+
*
|
|
239
|
+
* @constant {string}
|
|
240
|
+
*/
|
|
241
|
+
const MODELS_SECTION = `
|
|
242
|
+
# Context-tracker dynamic model registry (mirrors the framework core-config.yaml).
|
|
243
|
+
# Consumed by .sinapse-ai/core/synapse/context/context-tracker.js (getModelConfig):
|
|
244
|
+
# 'active' selects which registry entry drives context estimation.
|
|
245
|
+
# MAINTENANCE: keep in sync with the framework repo's core-config.yaml models
|
|
246
|
+
# section. If this section (or the active entry) is missing/invalid, the
|
|
247
|
+
# tracker falls back to a conservative 200000-token window (documented in
|
|
248
|
+
# context-tracker.js DEFAULTS) — safe, but wrong for 1M-window models.
|
|
249
|
+
models:
|
|
250
|
+
active: claude-fable-5
|
|
251
|
+
registry:
|
|
252
|
+
claude-fable-5:
|
|
253
|
+
contextWindow: 1000000
|
|
254
|
+
avgTokensPerPrompt: 2000
|
|
255
|
+
claude-sonnet-5:
|
|
256
|
+
# conservative default — verify against official docs before relying on 1M
|
|
257
|
+
contextWindow: 200000
|
|
258
|
+
avgTokensPerPrompt: 1500
|
|
259
|
+
`;
|
|
260
|
+
|
|
220
261
|
module.exports = {
|
|
221
262
|
generateCoreConfig,
|
|
263
|
+
MODELS_SECTION,
|
|
222
264
|
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SYNAPSE Context-Engine Runtime Installer
|
|
3
|
+
*
|
|
4
|
+
* Story onda2-p9 (DEC-01 option A) — activates the context engine for every
|
|
5
|
+
* installed project. The synapse-engine.cjs hook is ALREADY copied + registered
|
|
6
|
+
* by every install (wizard/ide-config-generator.js HOOKS_TO_COPY + HOOK_EVENT_MAP),
|
|
7
|
+
* but it dies on an early-return when `<project>/.synapse/` does not exist
|
|
8
|
+
* (.sinapse-ai/core/synapse/runtime/hook-runtime.js — `if (!fs.existsSync(synapsePath)) return null;`).
|
|
9
|
+
* This module closes that gap on the CANONICAL install path (install + init)
|
|
10
|
+
* by generating the `.synapse/` runtime in the target project:
|
|
11
|
+
*
|
|
12
|
+
* .synapse/constitution — L0 domain (KEY=VALUE), generated from the target's
|
|
13
|
+
* own .sinapse-ai/constitution.md by the EXISTING
|
|
14
|
+
* generator (core/synapse/scripts/generate-constitution.js
|
|
15
|
+
* — reused via main({ projectRoot }), never duplicated)
|
|
16
|
+
* .synapse/sessions/ — per-session state (session-manager also auto-creates)
|
|
17
|
+
* .synapse/metrics/ — engine injection metrics
|
|
18
|
+
*
|
|
19
|
+
* FAIL-OPEN CONTRACT (NON-NEGOTIABLE for this step): any error here must NEVER
|
|
20
|
+
* break the installation. The function never throws — it returns
|
|
21
|
+
* { success: false, error } and the caller logs a warning and continues.
|
|
22
|
+
* This is safe because the hook itself is fail-safe by design: in the absence
|
|
23
|
+
* of .synapse/ (or of a readable constitution) hook-runtime.js returns null and
|
|
24
|
+
* NOTHING is injected — the engine simply stays dormant, exactly the pre-P9
|
|
25
|
+
* behavior. Worst case of a generation failure = status quo ante.
|
|
26
|
+
*
|
|
27
|
+
* @module installer/synapse-runtime-installer
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const fs = require('fs');
|
|
31
|
+
const path = require('path');
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Relative path (from a project root) to the constitution generator that ships
|
|
35
|
+
* inside the framework core.
|
|
36
|
+
* @constant {string[]}
|
|
37
|
+
*/
|
|
38
|
+
const GENERATOR_REL_PATH = [
|
|
39
|
+
'.sinapse-ai', 'core', 'synapse', 'scripts', 'generate-constitution.js',
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Resolve the generate-constitution.js module to use for a given target.
|
|
44
|
+
*
|
|
45
|
+
* Preference order:
|
|
46
|
+
* 1. The TARGET's own copy (installed by installSinapseCore just before this
|
|
47
|
+
* step) — version-matched with the .sinapse-ai/ payload the project got.
|
|
48
|
+
* In framework-dev mode (target === package root) this IS the source copy.
|
|
49
|
+
* 2. The package's own copy — fallback for partial copies.
|
|
50
|
+
*
|
|
51
|
+
* @param {string} targetDir - Target project root
|
|
52
|
+
* @returns {string|null} Absolute path to the generator, or null if none found
|
|
53
|
+
*/
|
|
54
|
+
function resolveGeneratorPath(targetDir) {
|
|
55
|
+
const targetCopy = path.join(targetDir, ...GENERATOR_REL_PATH);
|
|
56
|
+
if (fs.existsSync(targetCopy)) return targetCopy;
|
|
57
|
+
|
|
58
|
+
// packages/installer/src/installer/ → package root
|
|
59
|
+
const packageCopy = path.join(__dirname, '..', '..', '..', '..', ...GENERATOR_REL_PATH);
|
|
60
|
+
if (fs.existsSync(packageCopy)) return packageCopy;
|
|
61
|
+
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Generate the `.synapse/` context-engine runtime in the target project.
|
|
67
|
+
*
|
|
68
|
+
* Never throws. Silences the generator's own console.log and preserves
|
|
69
|
+
* process.exitCode (the underlying generator sets exitCode=1 on a miss, which
|
|
70
|
+
* must not leak into the installer's exit semantics — same protection the
|
|
71
|
+
* repo-source wrapper scripts/generate-synapse-runtime.js applies).
|
|
72
|
+
*
|
|
73
|
+
* @param {Object} [options]
|
|
74
|
+
* @param {string} [options.targetDir=process.cwd()] - Target project root
|
|
75
|
+
* @param {string} [options.generatorPath] - Override generator module (tests)
|
|
76
|
+
* @returns {{success: boolean, articles?: number, rules?: number, outputPath?: string, error?: string, sessionsDir?: string, metricsDir?: string}}
|
|
77
|
+
*/
|
|
78
|
+
function installSynapseRuntime(options = {}) {
|
|
79
|
+
const { targetDir = process.cwd() } = options;
|
|
80
|
+
const savedExitCode = process.exitCode;
|
|
81
|
+
const origLog = console.log;
|
|
82
|
+
const origError = console.error;
|
|
83
|
+
|
|
84
|
+
try {
|
|
85
|
+
const generatorPath = options.generatorPath || resolveGeneratorPath(targetDir);
|
|
86
|
+
if (!generatorPath) {
|
|
87
|
+
return {
|
|
88
|
+
success: false,
|
|
89
|
+
error: 'generate-constitution.js not found (target and package copies missing)',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Silence the generator's console output ("Constitution generated…" /
|
|
94
|
+
// "Constitution not found…") — the wizard prints its own summary line.
|
|
95
|
+
console.log = () => {};
|
|
96
|
+
console.error = () => {};
|
|
97
|
+
|
|
98
|
+
let result;
|
|
99
|
+
try {
|
|
100
|
+
const { main } = require(generatorPath);
|
|
101
|
+
if (typeof main !== 'function') {
|
|
102
|
+
return { success: false, error: 'generator module has no main() export' };
|
|
103
|
+
}
|
|
104
|
+
result = main({ projectRoot: targetDir });
|
|
105
|
+
} finally {
|
|
106
|
+
console.log = origLog;
|
|
107
|
+
console.error = origError;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (!result || !result.success) {
|
|
111
|
+
return {
|
|
112
|
+
success: false,
|
|
113
|
+
error: (result && result.error) || 'constitution generation failed',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// sessions/ + metrics/ — mirrors the repo-source .synapse/ layout. The
|
|
118
|
+
// session-manager also mkdir -p's sessions/ lazily, but creating them here
|
|
119
|
+
// gives the installed project the complete structure from prompt zero.
|
|
120
|
+
const sessionsDir = path.join(targetDir, '.synapse', 'sessions');
|
|
121
|
+
const metricsDir = path.join(targetDir, '.synapse', 'metrics');
|
|
122
|
+
fs.mkdirSync(sessionsDir, { recursive: true });
|
|
123
|
+
fs.mkdirSync(metricsDir, { recursive: true });
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
success: true,
|
|
127
|
+
articles: result.articles,
|
|
128
|
+
rules: result.rules,
|
|
129
|
+
outputPath: result.outputPath,
|
|
130
|
+
sessionsDir,
|
|
131
|
+
metricsDir,
|
|
132
|
+
};
|
|
133
|
+
} catch (err) {
|
|
134
|
+
return { success: false, error: (err && err.message) || String(err) };
|
|
135
|
+
} finally {
|
|
136
|
+
// The generator sets process.exitCode = 1 on a miss; restore whatever the
|
|
137
|
+
// installer process had (fail-open: a dormant engine is not an install error).
|
|
138
|
+
process.exitCode = savedExitCode;
|
|
139
|
+
console.log = origLog;
|
|
140
|
+
console.error = origError;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
module.exports = {
|
|
145
|
+
installSynapseRuntime,
|
|
146
|
+
resolveGeneratorPath,
|
|
147
|
+
GENERATOR_REL_PATH,
|
|
148
|
+
};
|