sinapse-ai 9.2.0 → 9.4.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 +56 -343
- package/.claude/hooks/README.md +1 -0
- package/.claude/hooks/enforce-architecture-first.py +197 -196
- package/.claude/hooks/install-hooks.sh +1 -0
- package/.claude/hooks/mind-clone-governance.py +193 -192
- package/.claude/hooks/pre-commit-version-check.sh +1 -0
- package/.claude/hooks/precompact-session-digest.cjs +1 -0
- package/.claude/hooks/precompact-wrapper.cjs +1 -0
- package/.claude/hooks/read-protection.py +152 -151
- package/.claude/hooks/sql-governance.py +183 -182
- package/.claude/hooks/synapse-engine.cjs +1 -0
- package/.claude/hooks/synapse-wrapper.cjs +1 -0
- package/.claude/hooks/write-path-validation.py +195 -194
- package/.claude/rules/agent-authority.md +6 -0
- package/.claude/rules/agent-handoff.md +5 -0
- package/.claude/rules/cross-squad-routing.md +5 -0
- package/.claude/rules/hook-governance.md +6 -0
- package/.claude/rules/ids-principles.md +1 -0
- package/.claude/rules/mcp-usage.md +3 -1
- package/.claude/rules/safe-collaboration.md +10 -0
- package/.claude/rules/security-data-protection.md +9 -0
- package/.claude/rules/squad-awareness.md +73 -0
- package/.claude/rules/story-lifecycle.md +1 -0
- package/.claude/rules/tool-examples.md +7 -0
- package/.claude/rules/workflow-execution.md +8 -0
- package/.codex/agents/analyst.md +253 -72
- package/.codex/agents/architect.md +455 -68
- package/.codex/agents/data-engineer.md +492 -106
- package/.codex/agents/developer.md +560 -0
- package/.codex/agents/devops.md +518 -69
- package/.codex/agents/product-lead.md +335 -0
- package/.codex/agents/project-lead.md +377 -0
- package/.codex/agents/quality-gate.md +449 -0
- package/.codex/agents/sinapse-orqx.md +9 -7
- package/.codex/agents/sprint-lead.md +287 -0
- package/.codex/agents/squad-creator.md +344 -0
- package/.codex/agents/ux-design-expert.md +495 -0
- package/.codex/delegation-matrix.json +756 -44
- package/.codex/handoff-packet.schema.json +30 -6
- package/.sinapse-ai/cli/commands/config/index.js +1 -0
- package/.sinapse-ai/cli/commands/generate/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/regenerate.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/validate.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/add.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/index.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/link.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/setup.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/status.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/cleanup.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/index.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/record.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/seed.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/show.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/analyze.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/backup.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/execute.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/index.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/rollback.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/update-imports.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/validate.js +1 -0
- package/.sinapse-ai/cli/commands/qa/run.js +1 -0
- package/.sinapse-ai/cli/commands/qa/status.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/info-formatter.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-table.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-tree.js +1 -0
- package/.sinapse-ai/cli/commands/workers/index.js +1 -0
- package/.sinapse-ai/cli/commands/workers/info.js +1 -0
- package/.sinapse-ai/cli/commands/workers/list.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-filters.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-keyword.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-semantic.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search.js +1 -0
- package/.sinapse-ai/cli/commands/workers/utils/pagination.js +1 -0
- package/.sinapse-ai/cli/index.js +1 -0
- package/.sinapse-ai/cli/utils/output-formatter-cli.js +1 -0
- package/.sinapse-ai/cli/utils/score-calculator.js +1 -0
- package/.sinapse-ai/core/README.md +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-client.js +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-enricher.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/creation-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/devops-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/planning-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/hook-runtime.js +1 -0
- package/.sinapse-ai/core/code-intel/index.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/code-graph-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/provider-interface.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/registry-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/registry-syncer.js +1 -0
- package/.sinapse-ai/core/config/config-cache.js +1 -0
- package/.sinapse-ai/core/config/config-loader.js +1 -0
- package/.sinapse-ai/core/config/config-resolver.js +1 -0
- package/.sinapse-ai/core/config/env-interpolator.js +1 -0
- package/.sinapse-ai/core/config/merge-utils.js +1 -0
- package/.sinapse-ai/core/config/migrate-config.js +1 -0
- package/.sinapse-ai/core/config/schemas/framework-config.schema.json +2 -1
- package/.sinapse-ai/core/config/schemas/local-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/project-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/user-config.schema.json +1 -0
- package/.sinapse-ai/core/config/template-overrides.js +1 -0
- package/.sinapse-ai/core/config/templates/user-config.yaml +1 -0
- package/.sinapse-ai/core/docs/SHARD-TRANSLATION-GUIDE.md +1 -0
- package/.sinapse-ai/core/docs/component-creation-guide.md +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -0
- package/.sinapse-ai/core/docs/template-syntax.md +1 -1
- package/.sinapse-ai/core/docs/troubleshooting-guide.md +1 -1
- package/.sinapse-ai/core/doctor/checks/agent-memory.js +1 -0
- package/.sinapse-ai/core/doctor/checks/claude-md.js +1 -0
- package/.sinapse-ai/core/doctor/checks/code-intel.js +1 -0
- package/.sinapse-ai/core/doctor/checks/commands-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/core-config.js +1 -0
- package/.sinapse-ai/core/doctor/checks/entity-registry.js +1 -0
- package/.sinapse-ai/core/doctor/checks/git-hooks.js +1 -0
- package/.sinapse-ai/core/doctor/checks/graph-dashboard.js +1 -0
- package/.sinapse-ai/core/doctor/checks/hooks-claude-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/ide-sync.js +1 -0
- package/.sinapse-ai/core/doctor/checks/node-version.js +1 -0
- package/.sinapse-ai/core/doctor/checks/npm-packages.js +1 -0
- package/.sinapse-ai/core/doctor/checks/rules-files.js +1 -0
- package/.sinapse-ai/core/doctor/checks/settings-json.js +1 -0
- package/.sinapse-ai/core/doctor/checks/skills-count.js +1 -0
- package/.sinapse-ai/core/doctor/fix-handler.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/json.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/text.js +1 -0
- package/.sinapse-ai/core/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/core/elicitation/elicitation-engine.js +1 -0
- package/.sinapse-ai/core/elicitation/session-manager.js +1 -0
- package/.sinapse-ai/core/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/core/events/dashboard-emitter.js +1 -0
- package/.sinapse-ai/core/events/index.js +1 -0
- package/.sinapse-ai/core/events/types.js +1 -0
- package/.sinapse-ai/core/execution/autonomous-build-loop.js +1 -0
- package/.sinapse-ai/core/execution/build-orchestrator.js +1 -0
- package/.sinapse-ai/core/execution/build-state-manager.js +1 -0
- package/.sinapse-ai/core/execution/context-injector.js +1 -0
- package/.sinapse-ai/core/execution/parallel-executor.js +1 -0
- package/.sinapse-ai/core/execution/parallel-monitor.js +1 -0
- package/.sinapse-ai/core/execution/rate-limit-manager.js +1 -0
- package/.sinapse-ai/core/execution/result-aggregator.js +1 -0
- package/.sinapse-ai/core/execution/semantic-merge-engine.js +1 -0
- package/.sinapse-ai/core/execution/subagent-dispatcher.js +1 -0
- package/.sinapse-ai/core/execution/wave-executor.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/cli.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/code-intel-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/metrics-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/registry-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/dot-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/html-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/json-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/mermaid-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/index.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/stats-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/status-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/tree-renderer.js +1 -0
- package/.sinapse-ai/core/health-check/base-check.js +1 -0
- package/.sinapse-ai/core/health-check/check-registry.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/build-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/ci-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/deployment-readiness.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/docker-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/env-file.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/disk-space.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/environment-vars.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/git-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/ide-detection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/memory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/network.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/npm-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/shell-environment.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/agent-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/framework-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/node-version.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/package-json.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/sinapse-directory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/task-definitions.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/workflow-dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/branch-protection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/commit-history.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/conflicts.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-repo.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-status.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/gitignore.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/large-files.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/lockfile-integrity.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/api-endpoints.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/claude-code.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/github-cli.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/index.js +1 -2
- package/.sinapse-ai/core/health-check/checks/services/mcp-integration.js +1 -0
- package/.sinapse-ai/core/health-check/engine.js +1 -0
- package/.sinapse-ai/core/health-check/healers/backup-manager.js +1 -0
- package/.sinapse-ai/core/health-check/healers/index.js +1 -0
- package/.sinapse-ai/core/health-check/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/console.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/markdown.js +1 -0
- package/.sinapse-ai/core/ideation/ideation-engine.js +1 -0
- package/.sinapse-ai/core/ids/README.md +1 -0
- package/.sinapse-ai/core/ids/circuit-breaker.js +1 -0
- package/.sinapse-ai/core/ids/framework-governor.js +1 -0
- package/.sinapse-ai/core/ids/gates/g1-epic-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g2-story-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g3-story-validation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g4-dev-context.js +1 -0
- package/.sinapse-ai/core/ids/incremental-decision-engine.js +1 -0
- package/.sinapse-ai/core/ids/index.js +1 -0
- package/.sinapse-ai/core/ids/layer-classifier.js +1 -0
- package/.sinapse-ai/core/ids/registry-healer.js +1 -0
- package/.sinapse-ai/core/ids/registry-loader.js +1 -0
- package/.sinapse-ai/core/ids/registry-updater.js +1 -0
- package/.sinapse-ai/core/ids/verification-gate.js +1 -0
- package/.sinapse-ai/core/index.esm.js +1 -0
- package/.sinapse-ai/core/index.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-generator.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-validator.js +1 -0
- package/.sinapse-ai/core/mcp/config-migrator.js +1 -0
- package/.sinapse-ai/core/mcp/global-config-manager.js +1 -0
- package/.sinapse-ai/core/mcp/index.js +1 -0
- package/.sinapse-ai/core/mcp/os-detector.js +1 -0
- package/.sinapse-ai/core/mcp/symlink-manager.js +1 -0
- package/.sinapse-ai/core/memory/__tests__/active-modules.verify.js +1 -0
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -0
- package/.sinapse-ai/core/migration/migration-config.yaml +1 -0
- package/.sinapse-ai/core/migration/module-mapping.yaml +1 -0
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-status-writer.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +1 -0
- package/.sinapse-ai/core/orchestration/brownfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/checklist-runner.js +1 -0
- package/.sinapse-ai/core/orchestration/cli-commands.js +1 -0
- package/.sinapse-ai/core/orchestration/condition-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/context-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/dashboard-integration.js +1 -0
- package/.sinapse-ai/core/orchestration/data-lifecycle-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/epic-context-accumulator.js +1 -0
- package/.sinapse-ai/core/orchestration/execution-profile-resolver.js +1 -0
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-3-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-5-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/index.js +1 -0
- package/.sinapse-ai/core/orchestration/gate-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/index.js +1 -0
- package/.sinapse-ai/core/orchestration/lock-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/message-formatter.js +1 -0
- package/.sinapse-ai/core/orchestration/parallel-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/recovery-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/session-state.js +1 -0
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +1 -0
- package/.sinapse-ai/core/orchestration/subagent-prompt-builder.js +1 -0
- package/.sinapse-ai/core/orchestration/surface-checker.js +1 -0
- package/.sinapse-ai/core/orchestration/task-complexity-classifier.js +1 -0
- package/.sinapse-ai/core/orchestration/tech-stack-detector.js +1 -0
- package/.sinapse-ai/core/orchestration/terminal-spawner.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-orchestrator.js +1 -0
- package/.sinapse-ai/core/permissions/__tests__/permission-mode.test.js +1 -0
- package/.sinapse-ai/core/permissions/index.js +1 -0
- package/.sinapse-ai/core/permissions/operation-guard.js +1 -0
- package/.sinapse-ai/core/permissions/permission-mode.js +1 -0
- package/.sinapse-ai/core/quality-gates/base-layer.js +1 -0
- package/.sinapse-ai/core/quality-gates/checklist-generator.js +1 -0
- package/.sinapse-ai/core/quality-gates/human-review-orchestrator.js +1 -0
- package/.sinapse-ai/core/quality-gates/index.js +244 -0
- package/.sinapse-ai/core/quality-gates/layer1-precommit.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -0
- package/.sinapse-ai/core/quality-gates/notification-manager.js +1 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.js +462 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +105 -16
- package/.sinapse-ai/core/quality-gates/quality-gate-manager.js +1 -0
- package/.sinapse-ai/core/registry/README.md +1 -0
- package/.sinapse-ai/core/registry/build-registry.js +1 -0
- package/.sinapse-ai/core/registry/registry-loader.js +1 -0
- package/.sinapse-ai/core/registry/registry-schema.json +1 -0
- package/.sinapse-ai/core/registry/service-registry.json +0 -120
- package/.sinapse-ai/core/registry/validate-registry.js +1 -0
- package/.sinapse-ai/core/session/context-detector.js +1 -0
- package/.sinapse-ai/core/session/context-loader.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-builder.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-tracker.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/consistency-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/hook-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/manifest-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/output-analyzer.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/pipeline-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/quality-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/relevance-matrix.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/safe-read-json.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/session-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/timing-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/uap-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/report-formatter.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/synapse-diagnostics.js +1 -0
- package/.sinapse-ai/core/synapse/domain/domain-loader.js +1 -0
- package/.sinapse-ai/core/synapse/engine.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l0-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l1-global.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l2-agent.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l3-workflow.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l4-task.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l5-squad.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l6-keyword.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l7-star-command.js +1 -0
- package/.sinapse-ai/core/synapse/layers/layer-processor.js +1 -0
- package/.sinapse-ai/core/synapse/memory/memory-bridge.js +1 -0
- package/.sinapse-ai/core/synapse/memory/synapse-memory-provider.js +1 -0
- package/.sinapse-ai/core/synapse/output/formatter.js +1 -0
- package/.sinapse-ai/core/synapse/runtime/hook-runtime.js +1 -0
- package/.sinapse-ai/core/synapse/scripts/generate-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/session/session-manager.js +1 -0
- package/.sinapse-ai/core/synapse/utils/atomic-write.js +1 -0
- package/.sinapse-ai/core/synapse/utils/paths.js +1 -0
- package/.sinapse-ai/core/synapse/utils/tokens.js +1 -0
- package/.sinapse-ai/core/ui/index.js +1 -0
- package/.sinapse-ai/core/ui/observability-panel.js +1 -0
- package/.sinapse-ai/core/ui/panel-renderer.js +1 -0
- package/.sinapse-ai/core/utils/output-formatter.js +1 -0
- package/.sinapse-ai/core/utils/security-utils.js +1 -0
- package/.sinapse-ai/core/utils/yaml-validator.js +1 -0
- package/.sinapse-ai/data/agent-config-requirements.yaml +1 -0
- package/.sinapse-ai/data/capability-detection.js +1 -0
- package/.sinapse-ai/data/entity-registry.yaml +1654 -1831
- package/.sinapse-ai/data/learned-patterns.yaml +1 -0
- package/.sinapse-ai/data/mcp-discipline.js +1 -0
- package/.sinapse-ai/data/mcp-tool-examples.yaml +1 -0
- package/.sinapse-ai/data/registry-update-log.jsonl +709 -0
- package/.sinapse-ai/data/tok2-validation.js +1 -0
- package/.sinapse-ai/data/tok3-token-comparison.js +1 -0
- package/.sinapse-ai/data/tool-registry.yaml +1 -0
- package/.sinapse-ai/data/tool-search-validation.js +1 -0
- package/.sinapse-ai/data/workflow-chains.yaml +1 -0
- package/.sinapse-ai/data/workflow-patterns.yaml +1 -0
- package/.sinapse-ai/data/workflow-state-schema.yaml +1 -0
- package/.sinapse-ai/development/README.md +1 -0
- package/.sinapse-ai/development/agents/analyst/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/analyst.md +90 -0
- package/.sinapse-ai/development/agents/architect.md +73 -0
- package/.sinapse-ai/development/agents/data-engineer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/data-engineer.md +1 -0
- package/.sinapse-ai/development/agents/developer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/developer.md +69 -0
- package/.sinapse-ai/development/agents/devops/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/devops.md +117 -0
- package/.sinapse-ai/development/agents/project-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/quality-gate/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/quality-gate.md +85 -0
- package/.sinapse-ai/development/agents/sprint-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/ux/MEMORY.md +1 -0
- package/.sinapse-ai/development/checklists/agent-quality-gate.md +28 -0
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +21 -0
- package/.sinapse-ai/development/checklists/code-review-checklist.md +106 -0
- package/.sinapse-ai/development/checklists/issue-triage-checklist.md +10 -0
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +17 -0
- package/.sinapse-ai/development/checklists/pr-quality-checklist.md +72 -0
- package/.sinapse-ai/development/checklists/security-deployment-checklist.md +54 -0
- package/.sinapse-ai/development/checklists/self-critique-checklist.md +20 -1
- package/.sinapse-ai/development/data/quality-dimensions-framework.md +1 -0
- package/.sinapse-ai/development/data/tier-system-framework.md +1 -0
- package/.sinapse-ai/development/scripts/activation-runtime.js +1 -0
- package/.sinapse-ai/development/scripts/agent-assignment-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -0
- package/.sinapse-ai/development/scripts/agent-exit-hooks.js +1 -0
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -0
- package/.sinapse-ai/development/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/development/scripts/backlog-manager.js +1 -0
- package/.sinapse-ai/development/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -0
- package/.sinapse-ai/development/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/development/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/development/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/development/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/development/scripts/decision-context.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-generator.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-indexer.js +1 -0
- package/.sinapse-ai/development/scripts/decision-recorder.js +1 -0
- package/.sinapse-ai/development/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -0
- package/.sinapse-ai/development/scripts/diff-generator.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-engine.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-session-manager.js +1 -1
- package/.sinapse-ai/development/scripts/generate-greeting.js +1 -0
- package/.sinapse-ai/development/scripts/git-wrapper.js +1 -1
- package/.sinapse-ai/development/scripts/greeting-builder.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-config-cli.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-preference-manager.js +1 -0
- package/.sinapse-ai/development/scripts/issue-triage.js +1 -0
- package/.sinapse-ai/development/scripts/manifest-preview.js +1 -1
- package/.sinapse-ai/development/scripts/metrics-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/migrate-task-to-v2.js +1 -0
- package/.sinapse-ai/development/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/development/scripts/pattern-learner.js +1 -1
- package/.sinapse-ai/development/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +1 -0
- package/.sinapse-ai/development/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/development/scripts/rollback-handler.js +1 -1
- package/.sinapse-ai/development/scripts/security-checker.js +1 -1
- package/.sinapse-ai/development/scripts/skill-validator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/README.md +1 -0
- package/.sinapse-ai/development/scripts/squad/index.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-analyzer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-designer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-extender.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-generator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-loader.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-migrator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-validator.js +1 -0
- package/.sinapse-ai/development/scripts/story-index-generator.js +1 -0
- package/.sinapse-ai/development/scripts/story-manager.js +1 -0
- package/.sinapse-ai/development/scripts/story-update-hook.js +1 -0
- package/.sinapse-ai/development/scripts/task-identifier-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/template-engine.js +1 -1
- package/.sinapse-ai/development/scripts/template-validator.js +1 -1
- package/.sinapse-ai/development/scripts/test-generator.js +1 -1
- package/.sinapse-ai/development/scripts/test-greeting-system.js +1 -0
- package/.sinapse-ai/development/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +1 -0
- package/.sinapse-ai/development/scripts/usage-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/validate-filenames.js +1 -0
- package/.sinapse-ai/development/scripts/validate-task-v2.js +1 -0
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +1 -0
- package/.sinapse-ai/development/scripts/version-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/workflow-navigator.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-state-manager.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-validator.js +1 -0
- package/.sinapse-ai/development/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/development/skills/debug.md +57 -0
- package/.sinapse-ai/development/skills/fast-review.md +69 -0
- package/.sinapse-ai/development/skills/research-synthesis.md +77 -0
- package/.sinapse-ai/development/skills/security-scan.md +73 -0
- package/.sinapse-ai/development/skills/verify.md +53 -0
- package/.sinapse-ai/development/tasks/add-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/advanced-elicitation.md +1 -1
- package/.sinapse-ai/development/tasks/analyst-facilitate-brainstorming.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-brownfield.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-framework.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-performance.md +1 -0
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/audit-codebase.md +1 -0
- package/.sinapse-ai/development/tasks/audit-tailwind-config.md +1 -0
- package/.sinapse-ai/development/tasks/audit-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/README.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/agent-prompt-template.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/context-loading.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/execution-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/finalization.md +1 -0
- package/.sinapse-ai/development/tasks/bootstrap-shadcn-library.md +1 -0
- package/.sinapse-ai/development/tasks/build-component.md +1 -0
- package/.sinapse-ai/development/tasks/calculate-roi.md +1 -0
- package/.sinapse-ai/development/tasks/check-docs-links.md +1 -0
- package/.sinapse-ai/development/tasks/ci-cd-configuration.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-worktrees.md +1 -0
- package/.sinapse-ai/development/tasks/collaborative-edit.md +1 -1
- package/.sinapse-ai/development/tasks/compose-molecule.md +1 -0
- package/.sinapse-ai/development/tasks/consolidate-patterns.md +1 -0
- package/.sinapse-ai/development/tasks/correct-course.md +1 -1
- package/.sinapse-ai/development/tasks/create-doc.md +1 -0
- package/.sinapse-ai/development/tasks/create-task.md +1 -1
- package/.sinapse-ai/development/tasks/db-analyze-hotpaths.md +1 -0
- package/.sinapse-ai/development/tasks/db-apply-migration.md +1 -0
- package/.sinapse-ai/development/tasks/db-bootstrap.md +1 -0
- package/.sinapse-ai/development/tasks/db-domain-modeling.md +1 -0
- package/.sinapse-ai/development/tasks/db-dry-run.md +1 -0
- package/.sinapse-ai/development/tasks/db-env-check.md +1 -0
- package/.sinapse-ai/development/tasks/db-explain.md +1 -0
- package/.sinapse-ai/development/tasks/db-impersonate.md +1 -0
- package/.sinapse-ai/development/tasks/db-load-csv.md +1 -0
- package/.sinapse-ai/development/tasks/db-policy-apply.md +1 -0
- package/.sinapse-ai/development/tasks/db-rls-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-rollback.md +1 -0
- package/.sinapse-ai/development/tasks/db-run-sql.md +1 -0
- package/.sinapse-ai/development/tasks/db-schema-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-seed.md +1 -0
- package/.sinapse-ai/development/tasks/db-smoke-test.md +1 -0
- package/.sinapse-ai/development/tasks/db-snapshot.md +1 -0
- package/.sinapse-ai/development/tasks/db-squad-integration.md +1 -0
- package/.sinapse-ai/development/tasks/db-supabase-setup.md +1 -0
- package/.sinapse-ai/development/tasks/db-verify-order.md +1 -0
- package/.sinapse-ai/development/tasks/deprecate-component.md +1 -1
- package/.sinapse-ai/development/tasks/dev-apply-qa-fixes.md +1 -0
- package/.sinapse-ai/development/tasks/dev-improve-code-quality.md +1 -1
- package/.sinapse-ai/development/tasks/dev-optimize-performance.md +1 -1
- package/.sinapse-ai/development/tasks/dev-suggest-refactoring.md +1 -1
- package/.sinapse-ai/development/tasks/dev-validate-next-story.md +1 -1
- package/.sinapse-ai/development/tasks/document-gotchas.md +1 -0
- package/.sinapse-ai/development/tasks/document-project.md +1 -1
- package/.sinapse-ai/development/tasks/export-design-tokens-dtcg.md +1 -0
- package/.sinapse-ai/development/tasks/extend-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/extract-tokens.md +1 -0
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +1 -0
- package/.sinapse-ai/development/tasks/generate-ai-frontend-prompt.md +1 -1
- package/.sinapse-ai/development/tasks/generate-documentation.md +1 -0
- package/.sinapse-ai/development/tasks/generate-migration-strategy.md +1 -0
- package/.sinapse-ai/development/tasks/generate-shock-report.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-repository-cleanup.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-version-management.md +1 -0
- package/.sinapse-ai/development/tasks/github-issue-triage.md +1 -0
- package/.sinapse-ai/development/tasks/ids-health.md +1 -0
- package/.sinapse-ai/development/tasks/ids-query.md +1 -0
- package/.sinapse-ai/development/tasks/improve-self.md +1 -1
- package/.sinapse-ai/development/tasks/index-docs.md +1 -1
- package/.sinapse-ai/development/tasks/integrate-squad.md +1 -0
- package/.sinapse-ai/development/tasks/kb-mode-interaction.md +1 -1
- package/.sinapse-ai/development/tasks/learn-patterns.md +1 -1
- package/.sinapse-ai/development/tasks/list-mcps.md +1 -0
- package/.sinapse-ai/development/tasks/mcp-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/merge-worktree.md +1 -0
- package/.sinapse-ai/development/tasks/modify-agent.md +1 -1
- package/.sinapse-ai/development/tasks/modify-task.md +1 -1
- package/.sinapse-ai/development/tasks/modify-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -0
- package/.sinapse-ai/development/tasks/po-manage-story-backlog.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story-from-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story-to-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story.md +1 -0
- package/.sinapse-ai/development/tasks/propose-modification.md +1 -1
- package/.sinapse-ai/development/tasks/publish-npm.md +1 -0
- package/.sinapse-ai/development/tasks/qa-browser-console-check.md +1 -0
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -0
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -0
- package/.sinapse-ai/development/tasks/qa-gate.md +1 -1
- package/.sinapse-ai/development/tasks/qa-generate-tests.md +1 -1
- package/.sinapse-ai/development/tasks/qa-library-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-migration-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-nfr-assess.md +1 -1
- package/.sinapse-ai/development/tasks/qa-review-proposal.md +1 -1
- package/.sinapse-ai/development/tasks/qa-risk-profile.md +1 -1
- package/.sinapse-ai/development/tasks/qa-security-checklist.md +1 -0
- package/.sinapse-ai/development/tasks/qa-test-design.md +1 -1
- package/.sinapse-ai/development/tasks/qa-trace-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/remove-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/review-contributor-pr.md +1 -0
- package/.sinapse-ai/development/tasks/run-design-system-pipeline.md +1 -0
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/search-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/security-audit.md +1 -0
- package/.sinapse-ai/development/tasks/security-scan.md +1 -0
- package/.sinapse-ai/development/tasks/session-resume.md +1 -0
- package/.sinapse-ai/development/tasks/setup-database.md +1 -0
- package/.sinapse-ai/development/tasks/setup-design-system.md +1 -0
- package/.sinapse-ai/development/tasks/setup-project-docs.md +1 -0
- package/.sinapse-ai/development/tasks/shard-doc.md +1 -1
- package/.sinapse-ai/development/tasks/sm-create-next-story.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-analyze.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-design.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-extend.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-list.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-migrate.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-validate.md +1 -0
- package/.sinapse-ai/development/tasks/sync-documentation.md +1 -1
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -0
- package/.sinapse-ai/development/tasks/tailwind-upgrade.md +1 -0
- package/.sinapse-ai/development/tasks/test-as-user.md +1 -0
- package/.sinapse-ai/development/tasks/test-validation-task.md +1 -0
- package/.sinapse-ai/development/tasks/triage-github-issues.md +1 -0
- package/.sinapse-ai/development/tasks/undo-last.md +1 -1
- package/.sinapse-ai/development/tasks/update-manifest.md +1 -1
- package/.sinapse-ai/development/tasks/update-source-tree.md +1 -0
- package/.sinapse-ai/development/tasks/ux-create-wireframe.md +1 -0
- package/.sinapse-ai/development/tasks/ux-ds-scan-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/ux-user-research.md +1 -0
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -0
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/yolo-toggle.md +1 -0
- package/.sinapse-ai/development/templates/ptc-entity-validation.md +1 -0
- package/.sinapse-ai/development/templates/ptc-qa-gate.md +1 -0
- package/.sinapse-ai/development/templates/ptc-research-aggregation.md +1 -0
- package/.sinapse-ai/development/templates/research-prompt-tmpl.md +1 -0
- package/.sinapse-ai/development/templates/service-template/README.md.hbs +159 -158
- package/.sinapse-ai/development/templates/service-template/__tests__/index.test.ts.hbs +238 -237
- package/.sinapse-ai/development/templates/service-template/client.ts.hbs +404 -403
- package/.sinapse-ai/development/templates/service-template/errors.ts.hbs +183 -182
- package/.sinapse-ai/development/templates/service-template/index.ts.hbs +121 -120
- package/.sinapse-ai/development/templates/service-template/jest.config.js +1 -0
- package/.sinapse-ai/development/templates/service-template/package.json.hbs +88 -87
- package/.sinapse-ai/development/templates/service-template/tsconfig.json +1 -0
- package/.sinapse-ai/development/templates/service-template/types.ts.hbs +146 -145
- package/.sinapse-ai/development/templates/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/agent-template.md +18 -4
- package/.sinapse-ai/development/templates/squad/checklist-template.md +14 -5
- package/.sinapse-ai/development/templates/squad/data-template.yaml +1 -0
- package/.sinapse-ai/development/templates/squad/script-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/task-template.md +8 -0
- package/.sinapse-ai/development/templates/squad/template-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/tool-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/workflow-template.yaml +8 -0
- package/.sinapse-ai/development/templates/squad-template/LICENSE +22 -21
- package/.sinapse-ai/development/templates/squad-template/README.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/agents/example-agent.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/package.json +1 -0
- package/.sinapse-ai/development/templates/squad-template/squad.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/tasks/example-task.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/templates/example-template.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/tests/example-agent.test.js +1 -0
- package/.sinapse-ai/development/templates/squad-template/workflows/example-workflow.yaml +1 -0
- package/.sinapse-ai/development/workflows/README.md +1 -0
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/design-system-build-quality.yaml +1 -0
- package/.sinapse-ai/development/workflows/development-cycle.yaml +1 -0
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +1 -0
- package/.sinapse-ai/development/workflows/fast-track.yaml +87 -0
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -0
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +1 -0
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -0
- package/.sinapse-ai/docs/standards/EXECUTOR-DECISION-TREE.md +1 -0
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -0
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-QUICK-REFERENCE.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-V2.1.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +1 -0
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +1 -0
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1 -0
- package/.sinapse-ai/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/workflow-elicitation.js +1 -1
- package/.sinapse-ai/framework-config.yaml +1 -16
- package/.sinapse-ai/hooks/ids-post-commit.js +1 -0
- package/.sinapse-ai/hooks/ids-pre-push.js +1 -0
- package/.sinapse-ai/hooks/unified/README.md +11 -11
- package/.sinapse-ai/hooks/unified/hook-interface.js +1 -0
- package/.sinapse-ai/hooks/unified/hook-registry.js +1 -0
- package/.sinapse-ai/hooks/unified/index.js +1 -0
- package/.sinapse-ai/hooks/unified/runners/precompact-runner.js +1 -0
- package/.sinapse-ai/index.esm.js +1 -1
- package/.sinapse-ai/index.js +1 -1
- package/.sinapse-ai/infrastructure/README.md +1 -0
- package/.sinapse-ai/infrastructure/contracts/compatibility/sinapse-4.0.4.yaml +1 -21
- package/.sinapse-ai/infrastructure/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider-factory.js +7 -5
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/claude-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/clickup-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/github-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/jira-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/local-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/schemas/agent-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/schemas/task-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/scripts/approach-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/asset-inventory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/atomic-layer-classifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/batch-creator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/capability-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/changelog-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/cicd-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/clickup-helpers.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/codebase-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/collect-tool-usage.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-metadata.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-search.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-cache.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/coverage-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dashboard-status-writer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dependency-impact-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/diff-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/config-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/doc-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/gitignore-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/mode-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-synchronizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/framework-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/generate-optimization-report.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/generate-settings-json.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-config-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-hooks/post-commit.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-wrapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/agent-parser.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/claude-code.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/improvement-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/improvement-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.cmd +81 -80
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.cmd +27 -26
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/usage-tracker/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/modification-risk-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/output-formatter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/path-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pattern-extractor.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-and-error-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-optimizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/plan-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter-factory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pr-review-ai.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/project-status-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-loop-orchestrator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/repository-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/sandbox-tester.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/security-checker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/sinapse-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/spot-check-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/status-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/story-worktree-hooks.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/stuck-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/subtask-verifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/template-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/template-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-quality-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-utilities-fast.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-utilities.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/tool-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/usage-analytics.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-agents.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-claude-integration.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-codex-delegation.js +3 -1
- package/.sinapse-ai/infrastructure/scripts/validate-output-pattern.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-user-profile.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/visual-impact-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/worktree-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/infrastructure/templates/coderabbit.yaml.template +280 -279
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/README.md +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/ci.yml.template +170 -169
- package/.sinapse-ai/infrastructure/templates/github-workflows/pr-automation.yml.template +331 -330
- package/.sinapse-ai/infrastructure/templates/github-workflows/release.yml.template +197 -196
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +19 -18
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-node.tmpl +86 -85
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-python.tmpl +146 -145
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-sinapse-base.tmpl +64 -63
- package/.sinapse-ai/infrastructure/templates/project-docs/coding-standards-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/source-tree-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/tech-stack-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +183 -182
- package/.sinapse-ai/infrastructure/tests/project-status-loader.test.js +1 -0
- package/.sinapse-ai/infrastructure/tests/regression-suite-v2.md +1 -0
- package/.sinapse-ai/infrastructure/tests/validate-module.js +1 -0
- package/.sinapse-ai/infrastructure/tests/worktree-manager.test.js +1 -0
- package/.sinapse-ai/infrastructure/tools/README.md +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/github-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/llm-routing.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/railway-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/supabase-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/local/ffmpeg.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/21st-dev-magic.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/browser.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/clickup.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/context7.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/desktop-commander.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/exa.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/google-workspace.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/n8n.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/supabase.yaml +1 -0
- package/.sinapse-ai/install-manifest.yaml +1933 -1937
- package/.sinapse-ai/local-config.yaml.template +65 -71
- package/.sinapse-ai/manifests/agents.csv +29 -0
- package/.sinapse-ai/manifests/schema/manifest-schema.json +1 -0
- package/.sinapse-ai/manifests/tasks.csv +204 -0
- package/.sinapse-ai/manifests/workers.csv +196 -0
- package/.sinapse-ai/monitor/hooks/lib/__init__.py +2 -1
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +59 -58
- package/.sinapse-ai/monitor/hooks/lib/send_event.py +48 -47
- package/.sinapse-ai/monitor/hooks/notification.py +30 -29
- package/.sinapse-ai/monitor/hooks/post_tool_use.py +46 -45
- package/.sinapse-ai/monitor/hooks/pre_compact.py +30 -29
- package/.sinapse-ai/monitor/hooks/pre_tool_use.py +41 -40
- package/.sinapse-ai/monitor/hooks/stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/subagent_stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/user_prompt_submit.py +39 -38
- package/.sinapse-ai/presets/README.md +1 -0
- package/.sinapse-ai/product/README.md +1 -0
- package/.sinapse-ai/product/checklists/accessibility-wcag-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/architect-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/change-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/component-quality-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/database-design-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-predeploy-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-rollback-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/migration-readiness-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pattern-audit-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pm-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/po-master-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/pre-push-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/release-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/story-dod-checklist.md +1 -1
- package/.sinapse-ai/product/data/atomic-design-principles.md +1 -0
- package/.sinapse-ai/product/data/brainstorming-techniques.md +1 -1
- package/.sinapse-ai/product/data/consolidation-algorithms.md +1 -0
- package/.sinapse-ai/product/data/database-best-practices.md +1 -0
- package/.sinapse-ai/product/data/design-token-best-practices.md +1 -0
- package/.sinapse-ai/product/data/elicitation-methods.md +1 -1
- package/.sinapse-ai/product/data/integration-patterns.md +1 -0
- package/.sinapse-ai/product/data/migration-safety-guide.md +1 -0
- package/.sinapse-ai/product/data/mode-selection-best-practices.md +1 -0
- package/.sinapse-ai/product/data/postgres-tuning-guide.md +1 -0
- package/.sinapse-ai/product/data/rls-security-patterns.md +1 -0
- package/.sinapse-ai/product/data/roi-calculation-guide.md +1 -0
- package/.sinapse-ai/product/data/supabase-patterns.md +1 -0
- package/.sinapse-ai/product/data/test-levels-framework.md +1 -1
- package/.sinapse-ai/product/data/test-priorities-matrix.md +1 -1
- package/.sinapse-ai/product/data/wcag-compliance-guide.md +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-inline-greeting.yaml +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-template.md +1 -0
- package/.sinapse-ai/product/templates/adr.hbs +126 -125
- package/.sinapse-ai/product/templates/agent-template.yaml +1 -1
- package/.sinapse-ai/product/templates/architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brainstorming-output-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-risk-report-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/changelog-template.md +1 -0
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +1 -0
- package/.sinapse-ai/product/templates/competitor-analysis-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/component-react-tmpl.tsx +1 -0
- package/.sinapse-ai/product/templates/current-approach-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/dbdr.hbs +242 -241
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/ds-artifact-analysis.md +1 -0
- package/.sinapse-ai/product/templates/engine/elicitation.js +1 -0
- package/.sinapse-ai/product/templates/engine/index.js +1 -0
- package/.sinapse-ai/product/templates/engine/loader.js +1 -0
- package/.sinapse-ai/product/templates/engine/renderer.js +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/adr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/dbdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/epic.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/pmdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd-v2.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/story.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/task.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/validator.js +1 -0
- package/.sinapse-ai/product/templates/epic.hbs +213 -212
- package/.sinapse-ai/product/templates/eslintrc-security.json +1 -0
- package/.sinapse-ai/product/templates/front-end-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/front-end-spec-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/fullstack-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/github-actions-cd.yml +1 -0
- package/.sinapse-ai/product/templates/github-actions-ci.yml +1 -0
- package/.sinapse-ai/product/templates/github-pr-template.md +1 -0
- package/.sinapse-ai/product/templates/gordon-mcp.yaml +1 -0
- package/.sinapse-ai/product/templates/index-strategy-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/market-research-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/mcp-workflow.js +1 -0
- package/.sinapse-ai/product/templates/migration-plan-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/migration-strategy-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-checklist-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -0
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +1 -0
- package/.sinapse-ai/product/templates/pmdr.hbs +187 -186
- package/.sinapse-ai/product/templates/prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/prd-v2.0.hbs +217 -216
- package/.sinapse-ai/product/templates/prd.hbs +202 -201
- package/.sinapse-ai/product/templates/project-brief-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/qa-gate-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/qa-report-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/rls-policies-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/schema-design-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/shock-report-tmpl.html +1 -0
- package/.sinapse-ai/product/templates/spec-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/state-persistence-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +1 -0
- package/.sinapse-ai/product/templates/statusline/track-agent.sh +1 -0
- package/.sinapse-ai/product/templates/story-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/story.hbs +264 -263
- package/.sinapse-ai/product/templates/task-execution-report.md +1 -0
- package/.sinapse-ai/product/templates/task-template.md +1 -1
- package/.sinapse-ai/product/templates/task.hbs +171 -170
- package/.sinapse-ai/product/templates/tmpl-comment-on-examples.sql +159 -158
- package/.sinapse-ai/product/templates/tmpl-migration-script.sql +92 -91
- package/.sinapse-ai/product/templates/tmpl-rls-granular-policies.sql +105 -104
- package/.sinapse-ai/product/templates/tmpl-rls-kiss-policy.sql +11 -10
- package/.sinapse-ai/product/templates/tmpl-rls-roles.sql +136 -135
- package/.sinapse-ai/product/templates/tmpl-rls-simple.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-rls-tenant.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-rollback-script.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-seed-data.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-smoke-test.sql +17 -16
- package/.sinapse-ai/product/templates/tmpl-staging-copy-merge.sql +140 -139
- package/.sinapse-ai/product/templates/tmpl-stored-proc.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-trigger.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-view-materialized.sql +134 -133
- package/.sinapse-ai/product/templates/tmpl-view.sql +178 -177
- package/.sinapse-ai/product/templates/token-exports-css-tmpl.css +1 -0
- package/.sinapse-ai/product/templates/token-exports-tailwind-tmpl.js +1 -0
- package/.sinapse-ai/product/templates/tokens-schema-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/workflow-template.yaml +1 -1
- package/.sinapse-ai/quality/metrics-collector.js +1 -0
- package/.sinapse-ai/quality/metrics-hook.js +1 -0
- package/.sinapse-ai/quality/schemas/quality-metrics.schema.json +1 -0
- package/.sinapse-ai/quality/seed-metrics.js +1 -0
- package/.sinapse-ai/schemas/README.md +1 -0
- package/.sinapse-ai/schemas/validate-v3-schema.js +1 -0
- package/.sinapse-ai/scripts/README.md +1 -0
- package/.sinapse-ai/scripts/batch-migrate-phase1.ps1 +37 -36
- package/.sinapse-ai/scripts/batch-migrate-phase2.ps1 +89 -88
- package/.sinapse-ai/scripts/batch-migrate-phase3.ps1 +46 -45
- package/.sinapse-ai/scripts/command-execution-hook.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/diagnose-npx-issue.ps1 +97 -96
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/README.md +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/index.html +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/public/favicon.svg +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/App.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useAutoRefresh.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useHealthData.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/main.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/App.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/index.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/vite.config.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.cmd +86 -85
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.ps1 +118 -117
- package/.sinapse-ai/scripts/migrate-framework-docs.sh +1 -0
- package/.sinapse-ai/scripts/pm.sh +1 -0
- package/.sinapse-ai/scripts/session-context-loader.js +1 -0
- package/.sinapse-ai/scripts/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/scripts/test-template-system.js +1 -1
- package/.sinapse-ai/scripts/validate-phase1.ps1 +36 -35
- package/.sinapse-ai/scripts/workflow-management.md +1 -0
- package/.sinapse-ai/utils/filters/constants.js +1 -0
- package/.sinapse-ai/utils/filters/content-filter.js +1 -0
- package/.sinapse-ai/utils/filters/field-filter.js +1 -0
- package/.sinapse-ai/utils/filters/index.js +1 -0
- package/.sinapse-ai/utils/filters/schema-filter.js +1 -0
- package/.sinapse-ai/utils/format-duration.js +1 -0
- package/.sinapse-ai/utils/sinapse-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/confidence-scorer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/integration.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/suggestion-engine.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/wave-analyzer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/workflow-registry.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/confidence-scorer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/output-formatter.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/suggestion-engine.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/capture-hook.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/gotcha-registry.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-capture.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-store.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/qa-feedback.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/semantic-search.js +1 -0
- package/.sinapse-ai/workflow-intelligence/registry/workflow-registry.js +1 -0
- package/LICENSE +34 -33
- package/README.en.md +192 -229
- package/README.md +118 -308
- package/bin/modules/mcp-installer.js +1 -0
- package/bin/sinapse-graph.js +1 -0
- package/bin/sinapse-ids.js +1 -0
- package/bin/sinapse-minimal.js +1 -0
- package/bin/utils/detect-fsmonitor.js +1 -0
- package/bin/utils/framework-guard.js +1 -0
- package/bin/utils/install-errors.js +1 -0
- package/bin/utils/install-transaction.js +1 -0
- package/bin/utils/pro-detector.js +1 -0
- package/docs/README.md +1 -0
- package/docs/codex-integration-process.md +12 -160
- package/docs/codex-parity-program.md +18 -661
- package/docs/examples/squads/basic-squad/README.md +1 -0
- package/docs/examples/squads/basic-squad/agents/greeter-agent.md +1 -0
- package/docs/examples/squads/basic-squad/tasks/greet-user.md +1 -0
- package/docs/examples/squads/multi-agent-squad/README.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/lead-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/researcher-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/writer-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/research-topic.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/write-report.md +1 -0
- package/docs/examples/squads/squad-with-tools/README.md +1 -0
- package/docs/examples/squads/squad-with-tools/agents/analyzer-agent.md +1 -0
- package/docs/examples/squads/squad-with-tools/tools/text-analyzer.js +1 -0
- package/docs/framework/codex-parity/codex-integration-process.md +171 -0
- package/docs/framework/codex-parity/codex-parity-program.md +670 -0
- package/docs/framework/config-override-guide.md +1 -0
- package/docs/{core-architecture.md → framework/core-architecture.md} +1 -0
- package/docs/framework/entity-layer-classification.md +1 -0
- package/docs/{glossary.md → framework/glossary.md} +1 -0
- package/docs/framework/performance-tips.md +1 -0
- package/docs/{00-shared-activation-pipeline.md → framework/shared-activation-pipeline.md} +1 -0
- package/docs/framework/source-tree.md +1 -0
- package/docs/framework/squad-creation-standards.md +331 -0
- package/docs/{versioning-and-releases.md → framework/versioning-and-releases.md} +1 -0
- package/docs/guides/README.md +1 -0
- package/docs/guides/ade-guide.md +1 -0
- package/docs/guides/agent-reference.md +131 -194
- package/docs/guides/agent-selection-guide.md +1 -0
- package/docs/guides/agents/ANALYST-SYSTEM.md +1 -0
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +1 -0
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +1 -0
- package/docs/guides/agents/DEV-SYSTEM.md +1 -0
- package/docs/guides/agents/DEVOPS-SYSTEM.md +1 -0
- package/docs/guides/agents/PM-SYSTEM.md +1 -0
- package/docs/guides/agents/QA-SYSTEM.md +1 -0
- package/docs/guides/agents/SINAPSE-AGENT-FLOWS.zip +0 -0
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +1 -0
- package/docs/guides/agents/SM-SYSTEM.md +1 -0
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +1 -0
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +1 -0
- package/docs/guides/agents/traces/README.md +1 -0
- package/docs/guides/agents/traces/analyst-execution-trace.md +1 -0
- package/docs/guides/agents/traces/architect-execution-trace.md +1 -0
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +1 -0
- package/docs/guides/agents/traces/dev-execution-trace.md +1 -0
- package/docs/guides/agents/traces/devops-execution-trace.md +1 -0
- package/docs/guides/agents/traces/execution-traces.zip +0 -0
- package/docs/guides/agents/traces/pm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/po-execution-trace.md +1 -0
- package/docs/guides/agents/traces/qa-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sinapse-orqx-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +1 -0
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +1 -0
- package/docs/guides/api-reference.md +1 -0
- package/docs/guides/build-recovery-guide.md +1 -0
- package/docs/guides/code-graph-mcp-setup.md +1 -0
- package/docs/guides/coderabbit/README.md +1 -0
- package/docs/guides/config-migration-guide.md +1 -0
- package/docs/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/guides/development-setup.md +1 -0
- package/docs/{docker-mcp-setup.md → guides/docker-mcp-setup.md} +1 -0
- package/docs/guides/ide-integration.md +237 -0
- package/docs/guides/ide-sync-guide.md +1 -0
- package/docs/guides/mcp/desktop-commander.md +1 -0
- package/docs/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/guides/mcp-global-setup.md +1 -0
- package/docs/{meta-agent-commands.md → guides/meta-agent-commands.md} +1 -1
- package/docs/guides/permission-modes.md +1 -0
- package/docs/guides/project-status-feature.md +1 -0
- package/docs/guides/quality-dashboard.md +1 -0
- package/docs/guides/quality-gates.md +1 -0
- package/docs/guides/service-discovery.md +1 -0
- package/docs/guides/squad-examples/README.md +1 -0
- package/docs/guides/squad-examples/data-processor-squad.yaml +1 -0
- package/docs/guides/squad-examples/simple-agent.yaml +1 -0
- package/docs/guides/squad-migration.md +1 -0
- package/docs/guides/testing-guide.md +1 -0
- package/docs/guides/vertical-trails/data-engineer-trail.md +1 -0
- package/docs/guides/vertical-trails/devops-trail.md +1 -0
- package/docs/guides/vertical-trails/squad-creator-trail.md +1 -0
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/DESIGN-SYSTEM-BUILD-QUALITY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +1 -0
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +1 -0
- package/docs/guides/workflows/SINAPSE-WORKFLOWS.zip +0 -0
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +1 -0
- package/docs/guides/workflows/xref-phase3-scripts.md +1 -0
- package/docs/guides/workflows/xref-phase5-core.md +1 -0
- package/docs/ide-integration.md +30 -231
- package/docs/pt/ENVIRONMENT.md +1 -0
- package/docs/pt/README.md +1 -0
- package/docs/pt/agents/archetype-rationale.md +1 -0
- package/docs/pt/agents/persona-definitions.md +1 -0
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +1 -0
- package/docs/pt/architecture/ade-architecture.md +1 -0
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +1 -0
- package/docs/pt/architecture/adr/adr-isolated-vm-decision.md +1 -0
- package/docs/pt/architecture/agent-config-audit.md +1 -0
- package/docs/pt/architecture/agent-responsibility-matrix.md +1 -0
- package/docs/pt/architecture/agent-tool-integration-guide.md +1 -0
- package/docs/pt/architecture/contribution-workflow-research.md +1 -0
- package/docs/pt/architecture/dashboard-architecture.md +1 -0
- package/docs/pt/architecture/dashboard-realtime.md +1 -0
- package/docs/pt/architecture/hcs-check-specifications.md +1 -0
- package/docs/pt/architecture/hcs-execution-modes.md +1 -0
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -0
- package/docs/pt/architecture/high-level-architecture.md +1 -0
- package/docs/pt/architecture/introduction.md +1 -0
- package/docs/pt/architecture/mcp-api-keys-management.md +1 -0
- package/docs/pt/architecture/mcp-system-diagrams.md +1 -0
- package/docs/pt/architecture/module-system.md +1 -0
- package/docs/pt/architecture/source-tree.md +1 -0
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +1 -0
- package/docs/pt/architecture/utility-integration-guide.md +1 -0
- package/docs/pt/contributing.md +1 -0
- package/docs/pt/core-architecture.md +1 -0
- package/docs/pt/docker-mcp-setup.md +1 -0
- package/docs/pt/framework/source-tree.md +1 -0
- package/docs/pt/getting-started.md +1 -0
- package/docs/pt/guides/README.md +1 -0
- package/docs/pt/guides/ade-guide.md +1 -0
- package/docs/pt/guides/agent-selection-guide.md +1 -0
- package/docs/pt/guides/api-reference.md +1 -0
- package/docs/pt/guides/build-recovery-guide.md +1 -0
- package/docs/pt/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/pt/guides/development-setup.md +1 -0
- package/docs/pt/guides/ide-sync-guide.md +1 -0
- package/docs/pt/guides/mcp/desktop-commander.md +1 -0
- package/docs/pt/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/pt/guides/mcp-global-setup.md +1 -0
- package/docs/pt/guides/permission-modes.md +1 -0
- package/docs/pt/guides/project-status-feature.md +1 -0
- package/docs/pt/guides/quality-dashboard.md +1 -0
- package/docs/pt/guides/quality-gates.md +1 -0
- package/docs/pt/guides/service-discovery.md +1 -0
- package/docs/pt/guides/squad-examples/README.md +1 -0
- package/docs/pt/guides/squad-migration.md +1 -0
- package/docs/pt/guides/testing-guide.md +1 -0
- package/docs/pt/guides/user-guide.md +1 -0
- package/docs/pt/guides/workflows-guide.md +1 -0
- package/docs/pt/installation/troubleshooting.md +1 -0
- package/docs/pt/installation/v4-quick-start.md +1 -0
- package/docs/pt/meta-agent-commands.md +1 -0
- package/docs/pt/performance-tuning-guide.md +1 -0
- package/docs/pt/platforms/claude-code.md +1 -0
- package/docs/pt/sinapse-nomenclature-specification.md +1 -0
- package/docs/pt/specifications/docs-agent-technical-specification.md +1 -0
- package/docs/pt/troubleshooting.md +1 -0
- package/docs/pt/versioning-and-releases.md +1 -0
- package/docs/sinapse-agent-flows/README.md +1 -0
- package/docs/sinapse-agent-flows/analyst-system.md +1 -0
- package/docs/sinapse-agent-flows/architect-system.md +1 -0
- package/docs/sinapse-agent-flows/data-engineer-system.md +1 -0
- package/docs/sinapse-agent-flows/dev-system.md +1 -0
- package/docs/sinapse-agent-flows/devops-system.md +1 -0
- package/docs/sinapse-agent-flows/pm-system.md +1 -0
- package/docs/sinapse-agent-flows/qa-system.md +1 -0
- package/docs/sinapse-agent-flows/sinapse-orqx-system.md +1 -0
- package/docs/sinapse-agent-flows/sm-system.md +1 -0
- package/docs/sinapse-agent-flows/squad-creator-system.md +1 -0
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +1 -0
- package/docs/sinapse-workflows/README.md +1 -0
- package/docs/sinapse-workflows/auto-worktree-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/design-system-build-quality-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/qa-loop-workflow.md +1 -0
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +1 -0
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +1 -0
- package/package.json +1 -1
- package/packages/installer/package.json +1 -0
- package/packages/installer/src/__tests__/performance-benchmark.js +1 -0
- package/packages/installer/src/config/templates/env-template.js +1 -0
- package/packages/installer/src/config/validation/config-validator.js +1 -0
- package/packages/installer/src/detection/detect-project-type.js +1 -0
- package/packages/installer/src/installer/dependency-installer.js +1 -0
- package/packages/installer/src/installer/file-hasher.js +1 -0
- package/packages/installer/src/installer/manifest-signature.js +1 -0
- package/packages/installer/src/merger/index.js +1 -0
- package/packages/installer/src/merger/parsers/env-parser.js +1 -0
- package/packages/installer/src/merger/parsers/markdown-section-parser.js +1 -0
- package/packages/installer/src/merger/strategies/base-merger.js +1 -0
- package/packages/installer/src/merger/strategies/env-merger.js +1 -0
- package/packages/installer/src/merger/strategies/index.js +1 -0
- package/packages/installer/src/merger/strategies/markdown-merger.js +1 -0
- package/packages/installer/src/merger/strategies/replace-merger.js +1 -0
- package/packages/installer/src/merger/strategies/yaml-merger.js +1 -0
- package/packages/installer/src/merger/types.js +1 -0
- package/packages/installer/src/updater/index.js +1 -0
- package/packages/installer/src/utils/sinapse-colors.js +1 -0
- package/packages/installer/src/wizard/ide-selector.js +1 -0
- package/packages/installer/src/wizard/validation/index.js +1 -0
- package/packages/installer/src/wizard/validation/validators/config-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/dependency-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/mcp-health-checker.js +1 -0
- package/packages/installer/src/wizard/validators.js +1 -0
- package/packages/installer/src/wizard/wizard.js +1 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +1 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +1 -0
- package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-checks.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-orchestrator.test.js +1 -0
- package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +1 -0
- package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +1 -0
- package/packages/installer/tests/unit/merger/markdown-merger.test.js +1 -0
- package/packages/installer/tests/unit/merger/strategies.test.js +1 -0
- package/packages/installer/tests/unit/merger/yaml-merger.test.js +1 -0
- package/packages/sinapse-install/README.md +1 -0
- package/packages/sinapse-install/src/dep-checker.js +1 -0
- package/packages/sinapse-install/src/edmcp/index.js +1 -0
- package/packages/sinapse-install/src/os-detector.js +1 -0
- package/packages/sinapse-pro-cli/src/recover.js +1 -0
- package/scripts/check-markdown-links.py +353 -352
- package/scripts/code-intel-health-check.js +1 -0
- package/scripts/dashboard-parallel-dev.sh +1 -0
- package/scripts/dashboard-parallel-phase3.sh +1 -0
- package/scripts/dashboard-parallel-phase4.sh +1 -0
- package/scripts/install-monitor-hooks.sh +1 -0
- package/scripts/package-synapse.js +1 -0
- package/scripts/semantic-lint.js +1 -0
- package/scripts/sign-manifest.ps1 +131 -130
- package/scripts/validate-sinapse-ai-deps.js +1 -0
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -0
- package/sinapse/knowledge-base/routing-catalog.md +1 -0
- package/sinapse/squad.yaml +1 -0
- package/sinapse/tasks/compose-multi-squad-plan.md +1 -0
- package/sinapse/tasks/coordinate-cross-squad.md +1 -0
- package/sinapse/tasks/diagnose-and-route.md +1 -0
- package/sinapse/tasks/onboard-user.md +1 -0
- package/sinapse/tasks/resolve-conflict.md +1 -0
- package/sinapse/tasks/squad-status-report.md +1 -0
- package/sinapse/tasks/strategic-brief.md +1 -0
- package/squads/claude-code-mastery/README.md +1 -0
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +1 -0
- package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/change-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/context-rot-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/pre-push-checklist.md +1 -0
- package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +1 -0
- package/squads/claude-code-mastery/data/hook-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +1 -0
- package/squads/claude-code-mastery/data/project-type-signatures.yaml +1 -0
- package/squads/claude-code-mastery/knowledge-base/claude-code-internals-reference.md +927 -0
- package/squads/claude-code-mastery/scripts/validate-setup.js +1 -0
- package/squads/claude-code-mastery/templates/claude-md-fullstack.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-library.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-microservices.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-mobile.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-monorepo.md +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +1 -0
- package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +1 -0
- package/squads/squad-animations/knowledge-base/unicorn-studio-pipeline.md +197 -0
- package/squads/squad-animations/squad.yaml +7 -2
- package/squads/squad-animations/tasks/create-unicorn-animation.md +61 -0
- package/squads/squad-animations/tasks/identify-website-animation.md +120 -0
- package/squads/squad-brand/knowledge-base/archetype-brand-mapping.md +12 -1
- package/squads/squad-brand/knowledge-base/brand-activism-cultural-branding.md +216 -0
- package/squads/squad-brand/knowledge-base/brand-audit-criteria.md +58 -0
- package/squads/squad-brand/knowledge-base/brand-digital-strategy.md +188 -0
- package/squads/squad-brand/knowledge-base/brand-experience-bx.md +227 -0
- package/squads/squad-brand/knowledge-base/brand-legal-ip.md +222 -0
- package/squads/squad-brand/knowledge-base/brand-naming-framework.md +163 -0
- package/squads/squad-brand/knowledge-base/brand-rebranding-framework.md +208 -0
- package/squads/squad-brand/knowledge-base/brand-strategy-frameworks-catalog.md +330 -52
- package/squads/squad-brand/knowledge-base/brand-valuation-frameworks.md +92 -13
- package/squads/squad-brand/knowledge-base/branding-master-reference.md +1001 -0
- package/squads/squad-brand/knowledge-base/brazilian-branding-context.md +208 -0
- package/squads/squad-brand/knowledge-base/color-psychology.md +25 -12
- package/squads/squad-brand/knowledge-base/employer-personal-branding.md +206 -0
- package/squads/squad-brand/knowledge-base/routing-catalog.md +34 -0
- package/squads/squad-brand/knowledge-base/sonic-branding-principles.md +6 -1
- package/squads/squad-brand/knowledge-base/typography-personality.md +34 -0
- package/squads/squad-claude/knowledge-base/claude-code-internals-deep.md +578 -0
- package/squads/squad-claude/knowledge-base/claude-code-tools-reference.md +313 -0
- package/squads/squad-claude/knowledge-base/context-window-optimization.md +334 -0
- package/squads/squad-claude/knowledge-base/knowledge-architecture-reference.md +403 -0
- package/squads/squad-claude/knowledge-base/memory-systems-reference.md +412 -0
- package/squads/squad-claude/knowledge-base/obsidian-claude-integration.md +423 -0
- package/squads/squad-claude/knowledge-base/retrieval-augmented-generation.md +320 -0
- package/squads/squad-claude/knowledge-base/skill-creation-patterns.md +380 -0
- package/squads/squad-claude/knowledge-base/swarm-orchestration-patterns.md +411 -0
- package/squads/squad-cloning/knowledge-base/agent-generation-guide.md +89 -0
- package/squads/squad-cloning/knowledge-base/clone-quality-assurance.md +211 -0
- package/squads/squad-cloning/knowledge-base/cognitive-dna-framework.md +90 -0
- package/squads/squad-cloning/knowledge-base/confidence-scoring.md +51 -0
- package/squads/squad-cloning/knowledge-base/cross-squad-deployment.md +47 -0
- package/squads/squad-cloning/knowledge-base/ethical-guidelines.md +237 -0
- package/squads/squad-cloning/knowledge-base/knowledge-graph-for-clones.md +295 -0
- package/squads/squad-cloning/knowledge-base/memory-architecture-for-clones.md +229 -0
- package/squads/squad-cloning/knowledge-base/multi-agent-deployment-patterns.md +320 -0
- package/squads/squad-cloning/knowledge-base/skill-standard-for-clones.md +262 -0
- package/squads/squad-cloning/knowledge-base/sop-extraction-guide.md +243 -0
- package/squads/squad-cloning/knowledge-base/source-classification.md +68 -0
- package/squads/squad-commercial/knowledge-base/account-based-selling.md +206 -0
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +14 -0
- package/squads/squad-commercial/knowledge-base/ai-in-sales.md +199 -0
- package/squads/squad-commercial/knowledge-base/brazilian-sales-context.md +195 -0
- package/squads/squad-commercial/knowledge-base/commercial-analytics-reporting.md +120 -1
- package/squads/squad-commercial/knowledge-base/customer-success-operations.md +83 -2
- package/squads/squad-commercial/knowledge-base/negotiation-frameworks.md +166 -0
- package/squads/squad-commercial/knowledge-base/plg-pls-framework.md +160 -0
- package/squads/squad-commercial/knowledge-base/prospecting-pipeline-generation.md +69 -0
- package/squads/squad-commercial/knowledge-base/revenue-architecture-models.md +153 -1
- package/squads/squad-commercial/knowledge-base/sales-compensation-brazil.md +210 -0
- package/squads/squad-commercial/knowledge-base/sales-enablement-playbook.md +260 -0
- package/squads/squad-commercial/knowledge-base/sales-methodology-comparison.md +185 -0
- package/squads/squad-commercial/knowledge-base/sales-qualification-methodology.md +97 -4
- package/squads/squad-commercial/knowledge-base/sales-revenue-master-reference.md +1123 -0
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +104 -0
- package/squads/squad-content/knowledge-base/brazilian-content-context.md +176 -0
- package/squads/squad-content/knowledge-base/competitor-analysis-methods.md +40 -1
- package/squads/squad-content/knowledge-base/content-architecture-taxonomy.md +206 -0
- package/squads/squad-content/knowledge-base/content-formats-encyclopedia.md +58 -1
- package/squads/squad-content/knowledge-base/content-governance-principles.md +132 -1
- package/squads/squad-content/knowledge-base/content-measurement-framework.md +99 -3
- package/squads/squad-content/knowledge-base/content-references-bibliography.md +130 -0
- package/squads/squad-content/knowledge-base/content-repurposing-playbook.md +107 -1
- package/squads/squad-content/knowledge-base/content-strategy-master-reference.md +1097 -0
- package/squads/squad-content/knowledge-base/content-tech-stack.md +150 -0
- package/squads/squad-content/knowledge-base/copywriting-formulas-library.md +188 -0
- package/squads/squad-content/knowledge-base/editorial-strategy-frameworks.md +148 -5
- package/squads/squad-content/knowledge-base/email-newsletter-strategy.md +161 -0
- package/squads/squad-content/knowledge-base/hook-formulas-library.md +88 -0
- package/squads/squad-content/knowledge-base/narrative-structures-library.md +72 -1
- package/squads/squad-content/knowledge-base/platform-algorithm-intelligence.md +86 -1
- package/squads/squad-content/knowledge-base/seo-content-deep.md +231 -0
- package/squads/squad-content/knowledge-base/social-algorithms-master-reference.md +1007 -0
- package/squads/squad-content/knowledge-base/video-audio-content-playbook.md +218 -0
- package/squads/squad-copy/knowledge-base/ai-copy-production.md +254 -0
- package/squads/squad-copy/knowledge-base/brazilian-copywriting-context.md +242 -0
- package/squads/squad-copy/knowledge-base/copywriting-formulas-encyclopedia.md +164 -80
- package/squads/squad-copy/knowledge-base/email-copywriting-system.md +299 -0
- package/squads/squad-copy/knowledge-base/headline-patterns-library.md +70 -0
- package/squads/squad-copy/knowledge-base/landing-page-copy-architecture.md +267 -0
- package/squads/squad-copy/knowledge-base/legendary-copywriters-frameworks.md +128 -0
- package/squads/squad-copy/knowledge-base/power-words-catalog.md +205 -0
- package/squads/squad-copy/knowledge-base/seo-copywriting.md +255 -0
- package/squads/squad-copy/knowledge-base/storytelling-frameworks.md +103 -0
- package/squads/squad-copy/knowledge-base/video-script-copywriting.md +239 -0
- package/squads/squad-council/knowledge-base/brand-strategy-models.md +193 -0
- package/squads/squad-council/knowledge-base/decision-frameworks-encyclopedia.md +266 -0
- package/squads/squad-council/knowledge-base/financial-strategy-models.md +239 -0
- package/squads/squad-council/knowledge-base/growth-strategy-models.md +267 -0
- package/squads/squad-council/knowledge-base/innovation-disruption-frameworks.md +193 -0
- package/squads/squad-council/knowledge-base/market-analysis-frameworks.md +240 -0
- package/squads/squad-council/knowledge-base/organizational-leadership-models.md +212 -0
- package/squads/squad-council/knowledge-base/sales-strategy-models.md +215 -0
- package/squads/squad-courses/knowledge-base/adult-learning-principles.md +75 -0
- package/squads/squad-courses/knowledge-base/assessment-design-guide.md +68 -0
- package/squads/squad-courses/knowledge-base/course-launch-strategy.md +251 -0
- package/squads/squad-courses/knowledge-base/course-pricing-models.md +95 -0
- package/squads/squad-courses/knowledge-base/domain-advocacia-curriculum.md +385 -0
- package/squads/squad-courses/knowledge-base/domain-contabilidade-curriculum.md +266 -0
- package/squads/squad-courses/knowledge-base/engagement-retention-patterns.md +93 -0
- package/squads/squad-courses/knowledge-base/instructional-design-frameworks.md +149 -2
- package/squads/squad-courses/knowledge-base/platform-comparison.md +68 -0
- package/squads/squad-courses/knowledge-base/video-production-guide.md +70 -0
- package/squads/squad-cybersecurity/knowledge-base/authentication-security.md +393 -0
- package/squads/squad-cybersecurity/knowledge-base/cloud-security-reference.md +363 -0
- package/squads/squad-cybersecurity/knowledge-base/compliance-frameworks.md +273 -0
- package/squads/squad-cybersecurity/knowledge-base/database-security.md +438 -0
- package/squads/squad-cybersecurity/knowledge-base/incident-response-playbook.md +420 -0
- package/squads/squad-cybersecurity/knowledge-base/network-security-reference.md +477 -0
- package/squads/squad-cybersecurity/knowledge-base/owasp-top-10-reference.md +362 -0
- package/squads/squad-cybersecurity/knowledge-base/penetration-testing-methodology.md +350 -0
- package/squads/squad-cybersecurity/knowledge-base/supply-chain-security.md +311 -0
- package/squads/squad-cybersecurity/knowledge-base/vulnerability-management.md +349 -0
- package/squads/squad-cybersecurity/knowledge-base/zero-trust-architecture.md +225 -0
- package/squads/squad-design/knowledge-base/brazilian-design-context.md +223 -0
- package/squads/squad-design/knowledge-base/component-api-patterns.md +208 -4
- package/squads/squad-design/knowledge-base/design-system-master-reference.md +1302 -0
- package/squads/squad-design/knowledge-base/design-systems-frameworks.md +433 -25
- package/squads/squad-design/knowledge-base/design-to-code-pipeline.md +375 -0
- package/squads/squad-design/knowledge-base/design-token-architecture.md +259 -4
- package/squads/squad-design/knowledge-base/designops-maturity.md +312 -0
- package/squads/squad-design/knowledge-base/famous-design-systems-study.md +291 -0
- package/squads/squad-design/knowledge-base/responsive-modern-css.md +96 -4
- package/squads/squad-design/knowledge-base/wcag-aria-reference.md +117 -5
- package/squads/squad-design/knowledge-base/web-performance-reference.md +127 -4
- package/squads/squad-finance/knowledge-base/brazilian-taxation.md +263 -0
- package/squads/squad-finance/knowledge-base/capital-budgeting.md +229 -0
- package/squads/squad-finance/knowledge-base/cash-flow-management.md +220 -0
- package/squads/squad-finance/knowledge-base/contabilidade-master-reference.md +998 -0
- package/squads/squad-finance/knowledge-base/corporate-finance-frameworks.md +272 -0
- package/squads/squad-finance/knowledge-base/finance-master-reference.md +946 -0
- package/squads/squad-finance/knowledge-base/financial-reporting-analysis.md +316 -0
- package/squads/squad-finance/knowledge-base/fintech-brazilian-context.md +242 -0
- package/squads/squad-finance/knowledge-base/fpa-planning-frameworks.md +286 -0
- package/squads/squad-finance/knowledge-base/ma-and-transactions.md +285 -0
- package/squads/squad-finance/knowledge-base/risk-management.md +233 -0
- package/squads/squad-finance/knowledge-base/startups-venture-capital.md +337 -0
- package/squads/squad-finance/knowledge-base/valuation-methods.md +254 -0
- package/squads/squad-growth/knowledge-base/ai-growth-playbook.md +216 -0
- package/squads/squad-growth/knowledge-base/attribution-models.md +78 -0
- package/squads/squad-growth/knowledge-base/brazilian-growth-context.md +208 -0
- package/squads/squad-growth/knowledge-base/community-led-growth.md +175 -0
- package/squads/squad-growth/knowledge-base/content-marketing-flywheel.md +190 -0
- package/squads/squad-growth/knowledge-base/cro-experimentation-framework.md +93 -2
- package/squads/squad-growth/knowledge-base/email-lifecycle-framework.md +192 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks-catalog.md +82 -0
- package/squads/squad-growth/knowledge-base/growth-frameworks.md +99 -6
- package/squads/squad-growth/knowledge-base/growth-master-reference.md +1168 -0
- package/squads/squad-growth/knowledge-base/plg-metrics-framework.md +183 -0
- package/squads/squad-growth/knowledge-base/retention-lifecycle-marketing.md +193 -0
- package/squads/squad-growth/knowledge-base/routing-catalog.md +53 -11
- package/squads/squad-growth/knowledge-base/seo-technical-reference.md +69 -0
- package/squads/squad-growth/knowledge-base/unit-economics-ltv-cac.md +253 -0
- package/squads/squad-growth/knowledge-base/viral-referral-mechanics.md +159 -0
- package/squads/squad-paidmedia/knowledge-base/audiences-segmentation-deep.md +285 -0
- package/squads/squad-paidmedia/knowledge-base/brazil-market-context.md +284 -0
- package/squads/squad-paidmedia/knowledge-base/creative-strategy-deep.md +294 -0
- package/squads/squad-paidmedia/knowledge-base/google-ads-account-architecture.md +87 -0
- package/squads/squad-paidmedia/knowledge-base/meta-ads-campaign-architecture.md +76 -0
- package/squads/squad-paidmedia/knowledge-base/paid-media-metrics-reference.md +117 -0
- package/squads/squad-paidmedia/knowledge-base/paid-traffic-master-reference.md +1308 -0
- package/squads/squad-paidmedia/knowledge-base/programmatic-attribution-deep.md +311 -0
- package/squads/squad-paidmedia/knowledge-base/routing-catalog.md +95 -18
- package/squads/squad-paidmedia/knowledge-base/social-algorithms-playbook.md +361 -0
- package/squads/squad-paidmedia/knowledge-base/tiktok-linkedin-ads-playbook.md +213 -0
- package/squads/squad-paidmedia/knowledge-base/traffic-masters-frameworks.md +71 -0
- package/squads/squad-product/knowledge-base/brazilian-product-context.md +284 -0
- package/squads/squad-product/knowledge-base/customer-success-integration.md +242 -0
- package/squads/squad-product/knowledge-base/discovery-methodology-playbook.md +141 -0
- package/squads/squad-product/knowledge-base/experimentation-framework.md +196 -0
- package/squads/squad-product/knowledge-base/pm-frameworks-reference.md +125 -9
- package/squads/squad-product/knowledge-base/product-analytics-formulas.md +72 -0
- package/squads/squad-product/knowledge-base/product-led-growth-reference.md +155 -13
- package/squads/squad-product/knowledge-base/product-market-fit-framework.md +222 -0
- package/squads/squad-product/knowledge-base/routing-catalog.md +32 -0
- package/squads/squad-research/knowledge-base/agentic-second-brain-reference.md +591 -0
- package/squads/squad-research/knowledge-base/ai-augmented-research.md +212 -0
- package/squads/squad-research/knowledge-base/brazilian-market-research-sources.md +197 -0
- package/squads/squad-research/knowledge-base/community-platforms-reference.md +786 -0
- package/squads/squad-research/knowledge-base/community-research-methods.md +194 -0
- package/squads/squad-research/knowledge-base/hybrid-retrieval-patterns.md +144 -0
- package/squads/squad-research/knowledge-base/knowledge-graph-construction.md +122 -0
- package/squads/squad-research/knowledge-base/mixed-methods-research-design.md +168 -0
- package/squads/squad-research/knowledge-base/multi-agent-research-methodology.md +144 -0
- package/squads/squad-research/knowledge-base/network-effects-analysis.md +192 -0
- package/squads/squad-research/knowledge-base/qualitative-research-deep-methods.md +202 -0
- package/squads/squad-research/knowledge-base/quantitative-research-methods.md +208 -0
- package/squads/squad-research/knowledge-base/research-frameworks-encyclopedia.md +40 -0
- package/squads/squad-research/knowledge-base/research-synthesis-frameworks.md +223 -0
- package/squads/squad-storytelling/knowledge-base/blake-snyder-beat-sheet.md +151 -0
- package/squads/squad-storytelling/knowledge-base/brand-mythology-framework.md +236 -0
- package/squads/squad-storytelling/knowledge-base/brazilian-storytelling-context.md +237 -0
- package/squads/squad-storytelling/knowledge-base/business-storytelling-frameworks.md +209 -0
- package/squads/squad-storytelling/knowledge-base/data-storytelling.md +232 -0
- package/squads/squad-storytelling/knowledge-base/heros-journey-deep.md +174 -0
- package/squads/squad-storytelling/knowledge-base/improv-storytelling.md +226 -0
- package/squads/squad-storytelling/knowledge-base/persuasion-narrative-techniques.md +269 -0
- package/squads/squad-storytelling/knowledge-base/pitch-presentation-frameworks.md +222 -0
- package/squads/squad-storytelling/knowledge-base/social-movement-narratives.md +191 -0
- package/squads/squad-storytelling/knowledge-base/story-circle-dan-harmon.md +171 -0
- package/squads/squad-storytelling/knowledge-base/video-storytelling.md +252 -0
- package/.sinapse-ai/core/health-check/checks/services/gemini-cli.js +0 -239
- package/.sinapse-ai/core/orchestration/gemini-model-selector.js +0 -161
- package/.sinapse-ai/hooks/gemini/after-tool.js +0 -77
- package/.sinapse-ai/hooks/gemini/before-agent.js +0 -79
- package/.sinapse-ai/hooks/gemini/before-tool.js +0 -114
- package/.sinapse-ai/hooks/gemini/rewind-handler.js +0 -68
- package/.sinapse-ai/hooks/gemini/session-end.js +0 -90
- package/.sinapse-ai/hooks/gemini/session-start.js +0 -90
- package/.sinapse-ai/infrastructure/integrations/ai-providers/gemini-provider.js +0 -365
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/cloudrun-adapter.js +0 -128
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/index.js +0 -41
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/policy-sync.js +0 -73
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/security-adapter.js +0 -159
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/supabase-adapter.js +0 -88
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/workspace-adapter.js +0 -99
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +0 -205
- package/.sinapse-ai/product/templates/gemini/settings.json +0 -79
- package/.sinapse-ai/product/templates/sinapse-ai-config.yaml +0 -106
- package/docs/changelog.md +0 -184
- package/docs/community.md +0 -227
- package/docs/en/sinapse-agent-flows/README.md +0 -190
- package/docs/en/sinapse-agent-flows/analyst-system.md +0 -26
- package/docs/en/sinapse-agent-flows/architect-system.md +0 -26
- package/docs/en/sinapse-agent-flows/data-engineer-system.md +0 -26
- package/docs/en/sinapse-agent-flows/dev-system.md +0 -26
- package/docs/en/sinapse-agent-flows/devops-system.md +0 -26
- package/docs/en/sinapse-agent-flows/pm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/qa-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sinapse-orqx-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/squad-creator-system.md +0 -26
- package/docs/en/sinapse-agent-flows/ux-design-expert-system.md +0 -26
- package/docs/en/sinapse-workflows/README.md +0 -247
- package/docs/en/sinapse-workflows/auto-worktree-workflow.md +0 -62
- package/docs/en/sinapse-workflows/brownfield-discovery-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-fullstack-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-service-workflow.md +0 -51
- package/docs/en/sinapse-workflows/brownfield-ui-workflow.md +0 -51
- package/docs/en/sinapse-workflows/design-system-build-quality-workflow.md +0 -53
- package/docs/en/sinapse-workflows/greenfield-fullstack-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-service-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-ui-workflow.md +0 -45
- package/docs/en/sinapse-workflows/qa-loop-workflow.md +0 -50
- package/docs/en/sinapse-workflows/spec-pipeline-workflow.md +0 -48
- package/docs/en/sinapse-workflows/story-development-cycle-workflow.md +0 -50
- package/docs/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/prd-cli-graph-dashboard.md +0 -274
- package/docs/troubleshooting.md +0 -881
- package/packages/gemini-sinapse-extension/README.md +0 -53
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +0 -138
- package/packages/gemini-sinapse-extension/commands/sinapse-agent.js +0 -7
- package/packages/gemini-sinapse-extension/commands/sinapse-agents.js +0 -49
- package/packages/gemini-sinapse-extension/commands/sinapse-analyst.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-architect.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-data-engineer.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-dev.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-devops.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-menu.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-orqx.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-pm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-po.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-qa.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-sm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-squad-creator.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-status.js +0 -66
- package/packages/gemini-sinapse-extension/commands/sinapse-ux-design-expert.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-validate.js +0 -33
- package/packages/gemini-sinapse-extension/extension.json +0 -147
- package/packages/gemini-sinapse-extension/gemini-extension.json +0 -147
- package/packages/gemini-sinapse-extension/hooks/hooks.json +0 -70
- /package/docs/{architecture-overview.md → framework/architecture-overview.md} +0 -0
- /package/docs/{codex-delegation-parity.md → framework/codex-parity/codex-delegation-parity.md} +0 -0
- /package/docs/{codex-total-parity-orchestration-plan.md → framework/codex-parity/codex-total-parity-orchestration-plan.md} +0 -0
- /package/docs/{codex-workflow-task-parity.md → framework/codex-parity/codex-workflow-task-parity.md} +0 -0
- /package/docs/{collaboration-autonomy-plan.md → framework/collaboration-autonomy-plan.md} +0 -0
- /package/docs/{feature-process.md → framework/feature-process.md} +0 -0
- /package/docs/{guiding-principles.md → framework/guiding-principles.md} +0 -0
- /package/docs/{orqx-plan.md → framework/orqx-plan.md} +0 -0
- /package/docs/{roadmap.md → framework/roadmap.md} +0 -0
- /package/docs/{getting-started.md → guides/getting-started.md} +0 -0
- /package/docs/{git-workflow-guide.md → guides/git-workflow-guide.md} +0 -0
- /package/docs/{squad-commands-reference.md → guides/squad-commands-reference.md} +0 -0
- /package/{CHROME-BRAIN-INSTALL.md → docs/installation/chrome-brain.md} +0 -0
- /package/docs/{npx-install.md → installation/npx-install.md} +0 -0
- /package/docs/{uninstallation.md → installation/uninstallation.md} +0 -0
- /package/docs/{security.md → security/overview.md} +0 -0
- /package/docs/{security-best-practices.md → security/security-best-practices.md} +0 -0
|
@@ -0,0 +1,998 @@
|
|
|
1
|
+
# Contabilidade Master Reference
|
|
2
|
+
|
|
3
|
+
> **Source:** MS-012 Contabilidade Research (2026-04-06, verified 2026-04-07)
|
|
4
|
+
> **Scope:** Financial Accounting (IFRS/CPC), Tax Accounting (Simples/Presumido/Real), Tax Reform (CBS/IBS), Auditing (COSO), Digital (SPED/eSocial), Forensic (Benford), Cost Accounting (ABC), Strategic Accounting
|
|
5
|
+
> **Context:** Brazilian market + international best practices (70+ sources)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. The 10 Accounting Systems
|
|
10
|
+
|
|
11
|
+
| # | System | Focus | Primary Users |
|
|
12
|
+
|---|--------|-------|--------------|
|
|
13
|
+
| 1 | Financial Accounting | External reporting, statements | Investors, CVM, Receita |
|
|
14
|
+
| 2 | Management Accounting | Internal decisions, planning | Managers, C-Level |
|
|
15
|
+
| 3 | Tax Accounting | Fiscal compliance, planning | Tax authorities, consultants |
|
|
16
|
+
| 4 | Controllership | KPIs, BSC, performance | Controllers, CFO |
|
|
17
|
+
| 5 | Auditing | Assurance of reliability | Auditors, stakeholders |
|
|
18
|
+
| 6 | Digital Accounting | Automation, ERP, AI | IT, accountants |
|
|
19
|
+
| 7 | Forensic Accounting | Fraud investigation | Experts, prosecutors |
|
|
20
|
+
| 8 | International Accounting | IFRS, consolidation, currencies | Multinationals, CVM |
|
|
21
|
+
| 9 | Cost Accounting | Costing, price formation | Industry, managers |
|
|
22
|
+
| 10 | Strategic Accounting | Strategic cost management | Board, strategists |
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Financial Accounting (IFRS/CPC)
|
|
27
|
+
|
|
28
|
+
### 2.1 Mandatory Statements (Brazil)
|
|
29
|
+
|
|
30
|
+
| Statement | Abbreviation | CPC | IFRS |
|
|
31
|
+
|-----------|-------------|-----|------|
|
|
32
|
+
| Balance Sheet | BP | CPC 26 (R1) | IAS 1 |
|
|
33
|
+
| Income Statement | DRE | CPC 26 (R1) | IAS 1 |
|
|
34
|
+
| Comprehensive Income | DRA | CPC 26 (R1) | IAS 1 |
|
|
35
|
+
| Changes in Equity | DMPL | CPC 26 (R1) | IAS 1 |
|
|
36
|
+
| Cash Flow Statement | DFC | CPC 03 (R2) | IAS 7 |
|
|
37
|
+
| Value Added Statement | DVA | CPC 09 | N/A (Brazil only) |
|
|
38
|
+
| Notes | NE | CPC 26 (R1) | IAS 1 |
|
|
39
|
+
|
|
40
|
+
### 2.2 IFRS and CPC Framework
|
|
41
|
+
|
|
42
|
+
IFRS issued by IASB (London), adopted by 140+ jurisdictions. Brazil adopted fully since 2010 via CPC (committee of 6 entities: CFC, CVM, FIPECAFI, IBRACON, ABRASCA, APIMEC).
|
|
43
|
+
|
|
44
|
+
**Key mappings:**
|
|
45
|
+
|
|
46
|
+
| IFRS | CPC | Topic |
|
|
47
|
+
|------|-----|-------|
|
|
48
|
+
| IFRS 15 | CPC 47 | Revenue from Contracts with Customers |
|
|
49
|
+
| IFRS 16 | CPC 06 (R2) | Leases |
|
|
50
|
+
| IFRS 9 | CPC 48 | Financial Instruments |
|
|
51
|
+
| IFRS 17 | CPC 50 | Insurance Contracts |
|
|
52
|
+
| IAS 36 | CPC 01 (R1) | Impairment |
|
|
53
|
+
| IAS 12 | CPC 32 | Income Taxes |
|
|
54
|
+
|
|
55
|
+
### 2.3 IFRS 18 / CPC 51 -- New Income Statement (2025-2027)
|
|
56
|
+
|
|
57
|
+
Published by IASB April 2024, replaces IAS 1. Brazilian equivalent: CPC 51 (replaces CPC 26 R1).
|
|
58
|
+
|
|
59
|
+
**Key changes:**
|
|
60
|
+
1. **Mandatory DRE categories:** Operating, Investing, Financing
|
|
61
|
+
2. **Management Performance Measures (MPMs):** Non-GAAP metrics must be reconciled
|
|
62
|
+
3. **Mandatory subtotals:** Operating profit and profit before financing
|
|
63
|
+
4. **Aggregation/disaggregation:** Clearer rules on what can be grouped
|
|
64
|
+
|
|
65
|
+
**Timeline:**
|
|
66
|
+
- Mandatory for periods starting on/after Jan 1, 2027 (CVM Res. 237/238, Dec/2025)
|
|
67
|
+
- Early adoption permitted
|
|
68
|
+
- Retrospective application required (2027 statements must restate 2026 comparatives)
|
|
69
|
+
- No cumulative impact on reserves (presentation change, not recognition)
|
|
70
|
+
|
|
71
|
+
### 2.4 Revenue Recognition -- CPC 47 / IFRS 15
|
|
72
|
+
|
|
73
|
+
**5-step model:**
|
|
74
|
+
1. Identify the contract with the customer
|
|
75
|
+
2. Identify performance obligations
|
|
76
|
+
3. Determine transaction price (including variable consideration)
|
|
77
|
+
4. Allocate price to performance obligations
|
|
78
|
+
5. Recognize revenue when (or as) each obligation is satisfied
|
|
79
|
+
|
|
80
|
+
**Major impact:** SaaS, construction, telecom, long-term contracts.
|
|
81
|
+
|
|
82
|
+
### 2.5 US GAAP vs IFRS
|
|
83
|
+
|
|
84
|
+
| Aspect | IFRS | US GAAP |
|
|
85
|
+
|--------|------|---------|
|
|
86
|
+
| Approach | Principles-based | Rules-based |
|
|
87
|
+
| Inventories | FIFO and weighted avg (LIFO prohibited) | FIFO, weighted avg, LIFO allowed |
|
|
88
|
+
| Development costs | Capitalize if criteria met | Expense immediately (except software) |
|
|
89
|
+
| Impairment reversal | Allowed | Prohibited (except securities) |
|
|
90
|
+
| Adoption | 140+ jurisdictions | Primarily USA |
|
|
91
|
+
|
|
92
|
+
### 2.6 IFRS S1/S2 -- Sustainability Reporting
|
|
93
|
+
|
|
94
|
+
- Mandatory from Jan 1, 2026 for Brazilian listed companies (CVM Res. 193/23)
|
|
95
|
+
- Brazil was the first country to adopt ISSB standards
|
|
96
|
+
- IFRS S1: general sustainability risks/opportunities
|
|
97
|
+
- IFRS S2: climate risks (Scopes 1, 2, and 3 GHG emissions)
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 3. Management Accounting
|
|
102
|
+
|
|
103
|
+
### 3.1 Budget Types
|
|
104
|
+
|
|
105
|
+
| Type | Description | Best For |
|
|
106
|
+
|------|-------------|----------|
|
|
107
|
+
| Static | Fixed for the period | Stable environments |
|
|
108
|
+
| Flexible | Adjusts to actual volume | Manufacturing, retail |
|
|
109
|
+
| Zero-Based (ZBB) | Every expense justified from zero | Restructurings, cost cuts |
|
|
110
|
+
| Rolling Forecast | Continuous 12-18 month projection | Volatile environments, startups |
|
|
111
|
+
| Beyond Budgeting | No fixed budget, relative targets | Agile, decentralized orgs |
|
|
112
|
+
|
|
113
|
+
### 3.2 Unit Economics
|
|
114
|
+
|
|
115
|
+
| Metric | Formula | What It Measures |
|
|
116
|
+
|--------|---------|-----------------|
|
|
117
|
+
| CAC | Marketing+Sales Cost / New Customers | Acquisition cost |
|
|
118
|
+
| LTV | ARPU x Gross Margin x Avg Lifetime | Customer lifetime value |
|
|
119
|
+
| LTV/CAC | LTV / CAC | Acquisition efficiency (>3x ideal) |
|
|
120
|
+
| Payback | CAC / (ARPU x Gross Margin) | Time to recover investment |
|
|
121
|
+
| Churn | Lost Customers / Total Customers | Loss rate |
|
|
122
|
+
| ARPU | Total Revenue / Total Customers | Average revenue per user |
|
|
123
|
+
| Contribution Margin | Revenue - Variable Costs | Unit contribution |
|
|
124
|
+
|
|
125
|
+
### 3.3 Break-Even Analysis
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
Break-Even (units) = Total Fixed Costs / Contribution Margin per Unit
|
|
129
|
+
Break-Even (revenue) = Total Fixed Costs / Contribution Margin %
|
|
130
|
+
|
|
131
|
+
Types:
|
|
132
|
+
- Accounting: covers fixed + variable costs (profit = 0)
|
|
133
|
+
- Financial: excludes depreciation (cash flow = 0)
|
|
134
|
+
- Economic: includes opportunity cost of capital
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### 3.4 Trends
|
|
138
|
+
|
|
139
|
+
- Rolling Forecast replacing static annual budgets
|
|
140
|
+
- Beyond Budgeting in tech companies
|
|
141
|
+
- Generative AI for scenario simulation and predictive analysis
|
|
142
|
+
- Self-service analytics -- interactive dashboards for non-financial managers
|
|
143
|
+
- Real-time management accounting with cloud ERPs
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 4. Tax Accounting (Contabilidade Tributaria)
|
|
148
|
+
|
|
149
|
+
### 4.1 The Three Tax Regimes
|
|
150
|
+
|
|
151
|
+
#### Simples Nacional
|
|
152
|
+
|
|
153
|
+
| Feature | Detail |
|
|
154
|
+
|---------|--------|
|
|
155
|
+
| Eligibility | ME/EPP (revenue up to R$4.8M/year) |
|
|
156
|
+
| Unified taxes | IRPJ, CSLL, PIS, COFINS, CPP, ICMS, ISS, IPI |
|
|
157
|
+
| Collection | Monthly via DAS |
|
|
158
|
+
| Rates | Progressive by bracket (Annexes I to V) |
|
|
159
|
+
| Advantage | Simplicity, lower burden for initial brackets |
|
|
160
|
+
| Disadvantage | No ICMS/PIS/COFINS credits |
|
|
161
|
+
|
|
162
|
+
**Annexes:**
|
|
163
|
+
|
|
164
|
+
| Annex | Activity | Initial Rate | Maximum Rate |
|
|
165
|
+
|-------|----------|-------------|-------------|
|
|
166
|
+
| I | Commerce | 4.0% | 19.0% |
|
|
167
|
+
| II | Industry | 4.5% | 30.0% |
|
|
168
|
+
| III | Services (mixed) | 6.0% | 33.0% |
|
|
169
|
+
| IV | Services (construction, law) | 4.5% | 33.0% |
|
|
170
|
+
| V | Services (tech, consulting) | 15.5% | 30.5% |
|
|
171
|
+
|
|
172
|
+
**R Factor:** Companies with payroll >= 28% of revenue can use Annex III (lower) instead of Annex V.
|
|
173
|
+
|
|
174
|
+
#### Lucro Presumido
|
|
175
|
+
|
|
176
|
+
| Feature | Detail |
|
|
177
|
+
|---------|--------|
|
|
178
|
+
| Eligibility | Revenue up to R$78M/year |
|
|
179
|
+
| Calculation | Presumed percentage on gross revenue |
|
|
180
|
+
| IRPJ | 15% + 10% surcharge (profit > R$20K/month) |
|
|
181
|
+
| CSLL | 9% on presumed base |
|
|
182
|
+
| PIS | 0.65% (cumulative) |
|
|
183
|
+
| COFINS | 3.0% (cumulative) |
|
|
184
|
+
|
|
185
|
+
**Presumption percentages (IRPJ):**
|
|
186
|
+
|
|
187
|
+
| Activity | Presumption |
|
|
188
|
+
|----------|------------|
|
|
189
|
+
| Commerce/Industry | 8% |
|
|
190
|
+
| Services (general) | 32% |
|
|
191
|
+
| Cargo transport | 8% |
|
|
192
|
+
| Passenger transport | 16% |
|
|
193
|
+
| Hospital services | 8% |
|
|
194
|
+
|
|
195
|
+
**2026 changes (LC 224/2025):**
|
|
196
|
+
- Revenue > R$5M/year: 10% increase in presumption percentages on excess (e.g., services: 32% -> 35.2% on excess)
|
|
197
|
+
- Estimated impact: up to 1.73% increase in combined IRPJ+CSLL
|
|
198
|
+
- Progressive hollowing-out of presumed profit as competitive option
|
|
199
|
+
|
|
200
|
+
#### Lucro Real
|
|
201
|
+
|
|
202
|
+
| Feature | Detail |
|
|
203
|
+
|---------|--------|
|
|
204
|
+
| Eligibility | Mandatory for revenue > R$78M/year |
|
|
205
|
+
| Calculation | Adjusted accounting profit (additions and exclusions) |
|
|
206
|
+
| IRPJ | 15% + 10% surcharge |
|
|
207
|
+
| CSLL | 9% |
|
|
208
|
+
| PIS | 1.65% (non-cumulative, with credits) |
|
|
209
|
+
| COFINS | 7.6% (non-cumulative, with credits) |
|
|
210
|
+
| Assessment | Quarterly or annual (with monthly advances) |
|
|
211
|
+
| LALUR | Mandatory tax adjustment book |
|
|
212
|
+
|
|
213
|
+
### 4.2 Tax Summary
|
|
214
|
+
|
|
215
|
+
#### Federal Taxes
|
|
216
|
+
|
|
217
|
+
| Tax | Base | Typical Rate |
|
|
218
|
+
|-----|------|-------------|
|
|
219
|
+
| IRPJ | Profit | 15% + 10% surcharge |
|
|
220
|
+
| CSLL | Profit | 9% |
|
|
221
|
+
| PIS | Revenue | 0.65% (cum.) / 1.65% (non-cum.) |
|
|
222
|
+
| COFINS | Revenue | 3% (cum.) / 7.6% (non-cum.) |
|
|
223
|
+
| IPI | Manufactured products | Variable (0-300%) |
|
|
224
|
+
| IOF | Financial operations | Variable |
|
|
225
|
+
|
|
226
|
+
#### State Taxes
|
|
227
|
+
|
|
228
|
+
| Tax | Base | Rate |
|
|
229
|
+
|-----|------|------|
|
|
230
|
+
| ICMS | Goods and services | 7-35% (varies by state/product) |
|
|
231
|
+
| ITCMD | Inheritance and gifts | Up to 8% |
|
|
232
|
+
|
|
233
|
+
#### Municipal Taxes
|
|
234
|
+
|
|
235
|
+
| Tax | Base | Rate |
|
|
236
|
+
|-----|------|------|
|
|
237
|
+
| ISS | Services | 2-5% |
|
|
238
|
+
| IPTU | Urban property | Varies |
|
|
239
|
+
| ITBI | Real estate transfer | Varies |
|
|
240
|
+
|
|
241
|
+
### 4.3 Tax Reform (EC 132/2023 + LC 214/2025 + LC 224/2025)
|
|
242
|
+
|
|
243
|
+
**5 taxes extinguished -> 3 new:**
|
|
244
|
+
- **CBS** (federal) -> replaces PIS, COFINS, IPI
|
|
245
|
+
- **IBS** (state/municipal) -> replaces ICMS, ISS
|
|
246
|
+
- **IS** (Selective Tax) -> goods harmful to health/environment
|
|
247
|
+
|
|
248
|
+
**Transition timeline:**
|
|
249
|
+
|
|
250
|
+
| Year | Event |
|
|
251
|
+
|------|-------|
|
|
252
|
+
| 2026 | Test phase: CBS 0.9% + IBS 0.1% (informational, no collection) |
|
|
253
|
+
| 2027 | CBS effective (~8.8%). PIS/COFINS extinguished. IS effective |
|
|
254
|
+
| 2028 | CBS adjustments and consolidation |
|
|
255
|
+
| 2029 | IBS begins: ICMS/ISS reduced to 9/10, IBS covers 1/10 |
|
|
256
|
+
| 2030 | ICMS/ISS at 8/10, IBS at 2/10 |
|
|
257
|
+
| 2031 | ICMS/ISS at 7/10, IBS at 3/10 |
|
|
258
|
+
| 2032 | ICMS/ISS at 6/10, IBS at 4/10 |
|
|
259
|
+
| 2033 | ICMS/ISS extinguished. IBS fully effective (~17.7%) |
|
|
260
|
+
|
|
261
|
+
**Combined reference rate: ~26.5%** (CBS ~8.8% + IBS ~17.7%) -- among the highest IVA rates globally (EU avg: 21%, OECD avg: 19%).
|
|
262
|
+
|
|
263
|
+
**Accounting impacts:**
|
|
264
|
+
- Complete redesign of accounting controls
|
|
265
|
+
- New bookkeeping and assessment methods
|
|
266
|
+
- Broad financial credit (every acquisition generates credit)
|
|
267
|
+
- Split payment (automatic collection at payment time)
|
|
268
|
+
- Cashback for low-income population
|
|
269
|
+
- Updated ERP systems required
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## 5. Controllership
|
|
274
|
+
|
|
275
|
+
### 5.1 Balanced Scorecard (BSC)
|
|
276
|
+
|
|
277
|
+
Created by Robert Kaplan and David Norton (1992). Translates strategy into performance indicators across 4 perspectives:
|
|
278
|
+
|
|
279
|
+
| Perspective | Key Question | KPI Examples |
|
|
280
|
+
|-------------|-------------|-------------|
|
|
281
|
+
| Financial | "How do we look to shareholders?" | ROE, EBITDA, EVA, net margin |
|
|
282
|
+
| Customer | "How do customers see us?" | NPS, market share, churn, satisfaction |
|
|
283
|
+
| Internal Processes | "What must we excel at?" | Lead time, defect rate, OEE |
|
|
284
|
+
| Learning & Growth | "How can we keep improving?" | R&D investment, turnover, training hours |
|
|
285
|
+
|
|
286
|
+
**Strategy Map:** Cause-effect across perspectives. Training (learning) -> better processes (internal) -> higher satisfaction (customer) -> more revenue (financial).
|
|
287
|
+
|
|
288
|
+
### 5.2 Financial KPIs
|
|
289
|
+
|
|
290
|
+
| KPI | Formula | Benchmark |
|
|
291
|
+
|-----|---------|-----------|
|
|
292
|
+
| EBITDA | Operating Profit + D&A | Sector-specific |
|
|
293
|
+
| EBITDA Margin | EBITDA / Net Revenue x 100 | >15% healthy |
|
|
294
|
+
| ROE | Net Income / Avg Equity x 100 | >15% |
|
|
295
|
+
| ROA | Net Income / Avg Total Assets x 100 | >5% |
|
|
296
|
+
| ROIC | NOPAT / Invested Capital x 100 | >WACC |
|
|
297
|
+
| EVA | NOPAT - (Invested Capital x WACC) | >0 (creates value) |
|
|
298
|
+
| Current Ratio | Current Assets / Current Liabilities | >1.5 |
|
|
299
|
+
| Debt Ratio | Total Liabilities / Total Assets x 100 | <60% |
|
|
300
|
+
| Asset Turnover | Net Revenue / Avg Total Assets | Sector-specific |
|
|
301
|
+
| Financial Cycle | DSO + DIO - DPO | Lower = better |
|
|
302
|
+
|
|
303
|
+
### 5.3 Cost Centers
|
|
304
|
+
|
|
305
|
+
| Type | Description | Example |
|
|
306
|
+
|------|-------------|---------|
|
|
307
|
+
| Productive | Direct contribution to product/service | Assembly line |
|
|
308
|
+
| Support | Supports productive centers | Maintenance, warehouse |
|
|
309
|
+
| Administrative | Management areas | HR, finance, legal |
|
|
310
|
+
| Commercial | Sales and marketing | Sales team, advertising |
|
|
311
|
+
|
|
312
|
+
### 5.4 Trends
|
|
313
|
+
|
|
314
|
+
- Continuous Planning replacing annual cycles
|
|
315
|
+
- AI-powered forecasting
|
|
316
|
+
- FP&A as strategic function
|
|
317
|
+
- xP&A (Extended Planning & Analysis) -- beyond financial
|
|
318
|
+
- ESG metrics integrated into BSC (5th perspective)
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## 6. Auditing
|
|
323
|
+
|
|
324
|
+
### 6.1 Internal vs External
|
|
325
|
+
|
|
326
|
+
| Aspect | Internal | External |
|
|
327
|
+
|--------|----------|----------|
|
|
328
|
+
| Relationship | Company employee | Independent firm |
|
|
329
|
+
| Objective | Improve operations and controls | Opine on financial statements |
|
|
330
|
+
| Audience | Management, audit committee | Shareholders, market |
|
|
331
|
+
| Regulation | IIA | IAASB (ISA), CVM, CFC |
|
|
332
|
+
| Frequency | Continuous | Annual |
|
|
333
|
+
| Scope | Broad (operational, compliance, IT) | Financial statements |
|
|
334
|
+
|
|
335
|
+
### 6.2 COSO Framework
|
|
336
|
+
|
|
337
|
+
**COSO ICIF (Internal Control -- Integrated Framework, 2013):**
|
|
338
|
+
|
|
339
|
+
| Component | Description | Principles |
|
|
340
|
+
|-----------|-------------|-----------|
|
|
341
|
+
| Control Environment | Leadership tone, ethics, governance | 1-5 |
|
|
342
|
+
| Risk Assessment | Identify and evaluate risks | 6-9 |
|
|
343
|
+
| Control Activities | Policies and procedures | 10-12 |
|
|
344
|
+
| Information & Communication | Information quality | 13-15 |
|
|
345
|
+
| Monitoring | Continuous and point-in-time evaluation | 16-17 |
|
|
346
|
+
|
|
347
|
+
**COSO ERM (Enterprise Risk Management, 2017):**
|
|
348
|
+
Evolution to corporate risk management with 5 components and 20 principles, integrating strategy with risk management.
|
|
349
|
+
|
|
350
|
+
### 6.3 ISA / NBC TA Mapping
|
|
351
|
+
|
|
352
|
+
| ISA | NBC TA | Topic |
|
|
353
|
+
|-----|--------|-------|
|
|
354
|
+
| ISA 200 | NBC TA 200 | General objectives of the auditor |
|
|
355
|
+
| ISA 240 | NBC TA 240 | Responsibility for fraud |
|
|
356
|
+
| ISA 315 | NBC TA 315 | Identifying misstatement risks |
|
|
357
|
+
| ISA 330 | NBC TA 330 | Auditor's response to risks |
|
|
358
|
+
| ISA 500 | NBC TA 500 | Audit evidence |
|
|
359
|
+
| ISA 700 | NBC TA 700 | Forming an opinion |
|
|
360
|
+
| ISA 701 | NBC TA 701 | Key Audit Matters (KAM) |
|
|
361
|
+
|
|
362
|
+
### 6.4 Continuous Auditing
|
|
363
|
+
|
|
364
|
+
- **Continuous monitoring** -- automated indicator tracking
|
|
365
|
+
- **Continuous data assurance** -- automatic data validation
|
|
366
|
+
- **Exception reporting** -- automatic anomaly alerts
|
|
367
|
+
- **Data analytics** -- 100% transaction analysis (vs. traditional sampling)
|
|
368
|
+
|
|
369
|
+
Tools: ACL, IDEA, CaseWare Analytics, Power BI with audit models.
|
|
370
|
+
|
|
371
|
+
### 6.5 Big Four in Brazil
|
|
372
|
+
|
|
373
|
+
| Firm | Since | Notable Clients |
|
|
374
|
+
|------|-------|----------------|
|
|
375
|
+
| Deloitte | 1911 | Petrobras, Ambev, Magazine Luiza |
|
|
376
|
+
| EY | 1930 | Itau, Vale, JBS |
|
|
377
|
+
| KPMG | 1945 | Bradesco, Natura, Embraer |
|
|
378
|
+
| PwC | 1915 | Banco do Brasil, Gerdau, Eletrobras |
|
|
379
|
+
|
|
380
|
+
### 6.6 Trends
|
|
381
|
+
|
|
382
|
+
- AI audit -- 100% data analysis, anomaly detection
|
|
383
|
+
- Blockchain audit trails -- immutable, verifiable records
|
|
384
|
+
- ESG assurance -- sustainability report auditing
|
|
385
|
+
- Continuous auditing as standard for large corporations
|
|
386
|
+
|
|
387
|
+
---
|
|
388
|
+
|
|
389
|
+
## 7. Digital Accounting & Automation
|
|
390
|
+
|
|
391
|
+
### 7.1 ERP Landscape (Brazil)
|
|
392
|
+
|
|
393
|
+
| ERP | Target | Highlight |
|
|
394
|
+
|-----|--------|-----------|
|
|
395
|
+
| SAP S/4HANA | Large enterprises | ~24% global market share, FI/CO module |
|
|
396
|
+
| TOTVS Protheus | Most used in Brazil | ~50% Brazilian market, native SPED/eSocial |
|
|
397
|
+
| Oracle NetSuite | Mid-market | Cloud-native, strong in SaaS |
|
|
398
|
+
| Omie | SMEs | Modern interface, API-first |
|
|
399
|
+
| Bling | Micro/small | E-commerce integrated |
|
|
400
|
+
| Conta Azul | MEI/ME | Simplicity |
|
|
401
|
+
| Sankhya | Mid-market | Flexibility |
|
|
402
|
+
|
|
403
|
+
### 7.2 RPA in Accounting
|
|
404
|
+
|
|
405
|
+
| Process | RPA Automation |
|
|
406
|
+
|---------|---------------|
|
|
407
|
+
| Bank reconciliation | Automatic cross-matching statements vs. entries |
|
|
408
|
+
| Journal entries | Automatic classification and posting of invoices |
|
|
409
|
+
| Accessory obligations | Auto-generation and submission of SPED, DCTFWeb |
|
|
410
|
+
| Accounts payable | Invoice processing, approvals, payments |
|
|
411
|
+
| Monthly close | Automation of closing routines |
|
|
412
|
+
|
|
413
|
+
Tools: UiPath, Automation Anywhere, Blue Prism, Power Automate.
|
|
414
|
+
|
|
415
|
+
### 7.3 AI in Accounting (2025-2026)
|
|
416
|
+
|
|
417
|
+
| Application | Technology | Maturity |
|
|
418
|
+
|------------|-----------|----------|
|
|
419
|
+
| Entry classification | Machine Learning | High |
|
|
420
|
+
| Anomaly detection | Deep Learning | Medium-High |
|
|
421
|
+
| Cash flow forecasting | Time Series / ML | Medium |
|
|
422
|
+
| Document reading (OCR) | Computer Vision + NLP | High |
|
|
423
|
+
| Accounting chatbots | LLMs (GPT, Claude) | Medium |
|
|
424
|
+
| Tax simulation | Generative AI | Emerging |
|
|
425
|
+
| Automated auditing | Data Analytics + ML | Medium |
|
|
426
|
+
|
|
427
|
+
**Generative AI applications:**
|
|
428
|
+
- Automatic generation of explanatory notes
|
|
429
|
+
- Accounting standards analysis and interpretation
|
|
430
|
+
- Tax scenario simulation
|
|
431
|
+
- Virtual assistants for tax queries
|
|
432
|
+
- Narrative management report generation
|
|
433
|
+
|
|
434
|
+
### 7.4 SPED (Sistema Publico de Escrituracao Digital)
|
|
435
|
+
|
|
436
|
+
Brazil's reference project for electronic tax administration (Decree 6.022/2007).
|
|
437
|
+
|
|
438
|
+
| Module | Content | Frequency |
|
|
439
|
+
|--------|---------|-----------|
|
|
440
|
+
| ECD | Digital accounting books | Annual (May) |
|
|
441
|
+
| ECF | LALUR, IRPJ/CSLL assessment | Annual (July) |
|
|
442
|
+
| EFD ICMS/IPI | ICMS/IPI fiscal records | Monthly |
|
|
443
|
+
| EFD Contribuicoes | PIS/PASEP and COFINS | Monthly |
|
|
444
|
+
| EFD-Reinf | Withholdings and information | Monthly/event |
|
|
445
|
+
| NFe | Electronic invoices | Per operation |
|
|
446
|
+
| CTe | Transport knowledge | Per operation |
|
|
447
|
+
| MDFe | Document manifest | Per trip |
|
|
448
|
+
|
|
449
|
+
**2026 version:** EFD ICMS/IPI gets PVA version 6.0.0 (mandatory from Jan/2026). Practical Guide updated to 3.2.2 (Mar/2026), with NFCom (model 62) fields. Joint Act CGIBS/RFB establishes CBS/IBS regulatory framework in SPED.
|
|
450
|
+
|
|
451
|
+
### 7.5 eSocial
|
|
452
|
+
|
|
453
|
+
Digital bookkeeping system for fiscal, social security, and labor obligations. Unifies 15 accessory obligations.
|
|
454
|
+
|
|
455
|
+
**Event groups:**
|
|
456
|
+
- S-1000 to S-1080: Tables (positions, functions, schedules)
|
|
457
|
+
- S-2190 to S-2420: Non-periodic (hiring, termination, vacation)
|
|
458
|
+
- S-1200 to S-1299: Periodic (payroll, payments)
|
|
459
|
+
- S-2210 to S-2240: SST (Health and Safety at Work)
|
|
460
|
+
|
|
461
|
+
**Current version:** S-1.3 (mandatory since Jan/2025). Key changes:
|
|
462
|
+
- **DIRF extinction** -- from 2026, withholding info migrates to eSocial + EFD-Reinf (monthly)
|
|
463
|
+
- **CPF as exclusive identifier** -- progressive substitution of other IDs
|
|
464
|
+
- **New SST fields** -- expanded health/safety requirements
|
|
465
|
+
- **Table 03 reformulation** -- new codes (1015, 1799, 1811)
|
|
466
|
+
- **Sectigo digital certificate** -- new security standard (production from Jun/2026)
|
|
467
|
+
|
|
468
|
+
### 7.6 XBRL
|
|
469
|
+
|
|
470
|
+
eXtensible Business Reporting Language for machine-readable financial reporting.
|
|
471
|
+
- CVM adopted XBRL for form reception (since 2018)
|
|
472
|
+
- Brazilian taxonomy based on IFRS taxonomy
|
|
473
|
+
- Facilitates cross-company and cross-country comparability
|
|
474
|
+
|
|
475
|
+
### 7.7 Trends
|
|
476
|
+
|
|
477
|
+
- BPaaS (Business Process as a Service) -- accounting as complete cloud service
|
|
478
|
+
- AI-as-a-Service -- subscription AI accounting
|
|
479
|
+
- Real-time accounting -- continuous close instead of monthly
|
|
480
|
+
- Blockchain for immutable audit trails
|
|
481
|
+
- Open Finance/Banking integrated with accounting
|
|
482
|
+
- Low-code/no-code for custom accounting automations
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
## 8. Forensic Accounting
|
|
487
|
+
|
|
488
|
+
### 8.1 The Fraud Triangle (Donald Cressey)
|
|
489
|
+
|
|
490
|
+
```
|
|
491
|
+
Pressure/Motivation
|
|
492
|
+
/\
|
|
493
|
+
/ \
|
|
494
|
+
/ FRAUD \
|
|
495
|
+
/________\
|
|
496
|
+
Opportunity Rationalization
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
- **Pressure** -- financial problems, unrealistic targets, aggressive bonuses
|
|
500
|
+
- **Opportunity** -- weak controls, lack of supervision, inadequate segregation
|
|
501
|
+
- **Rationalization** -- "everyone does it," "just borrowing," "the company owes me"
|
|
502
|
+
|
|
503
|
+
### 8.2 Benford's Law
|
|
504
|
+
|
|
505
|
+
In natural data sets, the distribution of first digits is NOT uniform:
|
|
506
|
+
|
|
507
|
+
| Digit | Expected Frequency |
|
|
508
|
+
|-------|-------------------|
|
|
509
|
+
| 1 | 30.1% |
|
|
510
|
+
| 2 | 17.6% |
|
|
511
|
+
| 3 | 12.5% |
|
|
512
|
+
| 4 | 9.7% |
|
|
513
|
+
| 5 | 7.9% |
|
|
514
|
+
| 6 | 6.7% |
|
|
515
|
+
| 7 | 5.8% |
|
|
516
|
+
| 8 | 5.1% |
|
|
517
|
+
| 9 | 4.6% |
|
|
518
|
+
|
|
519
|
+
**Application:** Financial data deviating significantly from Benford's distribution may indicate manipulation. Brazilian studies applied it to detect fraud in Bolsa Familia (210,899 contracts).
|
|
520
|
+
|
|
521
|
+
**Limitations:**
|
|
522
|
+
- Does not work with data restricted to narrow ranges (e.g., prices R$90-R$110)
|
|
523
|
+
- Deviation does not prove fraud -- indicates need for deeper investigation
|
|
524
|
+
- Requires large samples (>500 observations)
|
|
525
|
+
|
|
526
|
+
### 8.3 Red Flags
|
|
527
|
+
|
|
528
|
+
**Financial Statements:**
|
|
529
|
+
- Revenue growth incompatible with market
|
|
530
|
+
- A/R growing faster than revenues
|
|
531
|
+
- Frequent accounting policy changes
|
|
532
|
+
- Undisclosed related-party transactions
|
|
533
|
+
- Inventory growing faster than sales
|
|
534
|
+
- Negative operating cash flow with growing profit
|
|
535
|
+
|
|
536
|
+
**Behavioral:**
|
|
537
|
+
- Lifestyle incompatible with compensation
|
|
538
|
+
- Resistance to vacations or role rotation
|
|
539
|
+
- Controls dependent on a single person
|
|
540
|
+
- Refusal of audits or information requests
|
|
541
|
+
|
|
542
|
+
**Operational:**
|
|
543
|
+
- Suppliers without verifiable physical address
|
|
544
|
+
- Payments in round numbers
|
|
545
|
+
- Duplicate payments
|
|
546
|
+
- Sequential invoices from same supplier
|
|
547
|
+
|
|
548
|
+
### 8.4 Brazilian Anti-Corruption Law (12.846/2013)
|
|
549
|
+
|
|
550
|
+
- Objective liability (regardless of fault) for legal entities
|
|
551
|
+
- Fines: 0.1% to 20% of gross revenue
|
|
552
|
+
- Compliance program as mitigating factor
|
|
553
|
+
- Leniency agreement as collaboration instrument
|
|
554
|
+
- CGU as oversight body
|
|
555
|
+
|
|
556
|
+
### 8.5 Investigation Tools
|
|
557
|
+
|
|
558
|
+
| Tool | Application |
|
|
559
|
+
|------|------------|
|
|
560
|
+
| Benford Analysis | Anomalous patterns in financial data |
|
|
561
|
+
| Data Mining | Hidden patterns in large data volumes |
|
|
562
|
+
| Network Analysis | Mapping relationships between entities |
|
|
563
|
+
| Text Mining | Analysis of emails, contracts, communications |
|
|
564
|
+
| Forensic Data Analytics | ACL, IDEA, Tableau |
|
|
565
|
+
| Blockchain Analysis | Crypto-asset tracing (Chainalysis, Elliptic) |
|
|
566
|
+
|
|
567
|
+
### 8.6 Key Statistics
|
|
568
|
+
|
|
569
|
+
- Global fraud losses: ~5% of annual revenue (ACFE)
|
|
570
|
+
- Brazil Corruption Perception Index: 107th place, score 34/100 (worst since 2012, Transparency International 2024)
|
|
571
|
+
|
|
572
|
+
---
|
|
573
|
+
|
|
574
|
+
## 9. International Accounting
|
|
575
|
+
|
|
576
|
+
### 9.1 IFRS Convergence Status (2026)
|
|
577
|
+
|
|
578
|
+
| Region | Status |
|
|
579
|
+
|--------|--------|
|
|
580
|
+
| European Union | Mandatory since 2005 |
|
|
581
|
+
| Brazil | Mandatory since 2010 (via CPC) |
|
|
582
|
+
| Canada | Mandatory since 2011 |
|
|
583
|
+
| Australia | Mandatory since 2005 |
|
|
584
|
+
| India | Ind-AS (convergent) since 2016 |
|
|
585
|
+
| China | CAS (substantially convergent) |
|
|
586
|
+
| Japan | Permitted (not mandatory) |
|
|
587
|
+
| USA | Does not adopt (US GAAP) |
|
|
588
|
+
|
|
589
|
+
140+ jurisdictions require IFRS for listed entities. 166 jurisdictions permit/require IFRS for SMEs.
|
|
590
|
+
|
|
591
|
+
### 9.2 Consolidation (CPC 36 / IFRS 10)
|
|
592
|
+
|
|
593
|
+
**Process:**
|
|
594
|
+
1. Sum assets, liabilities, revenues, expenses (line by line)
|
|
595
|
+
2. Eliminate investment in subsidiary vs. subsidiary equity
|
|
596
|
+
3. Eliminate intercompany transactions and balances
|
|
597
|
+
4. Recognize non-controlling interests
|
|
598
|
+
5. Adjust for uniform accounting policies
|
|
599
|
+
|
|
600
|
+
**Methods:**
|
|
601
|
+
|
|
602
|
+
| Method | When | Standard |
|
|
603
|
+
|--------|------|----------|
|
|
604
|
+
| Full consolidation | Control (>50%) | CPC 36 / IFRS 10 |
|
|
605
|
+
| Equity method | Significant influence (20-50%) | CPC 18 / IAS 28 |
|
|
606
|
+
| Joint ventures | Joint control | CPC 19 / IFRS 11 |
|
|
607
|
+
| Fair value | Financial investments | CPC 48 / IFRS 9 |
|
|
608
|
+
|
|
609
|
+
### 9.3 Currency Translation (IAS 21 / CPC 02)
|
|
610
|
+
|
|
611
|
+
| Element | Exchange Rate |
|
|
612
|
+
|---------|--------------|
|
|
613
|
+
| Assets and liabilities | Closing rate (spot) |
|
|
614
|
+
| Revenue and expenses | Average rate for the period |
|
|
615
|
+
| Equity | Historical rate |
|
|
616
|
+
| Translation difference | Other comprehensive income (OCI) |
|
|
617
|
+
|
|
618
|
+
### 9.4 Transfer Pricing -- Law 14.596/2023
|
|
619
|
+
|
|
620
|
+
Brazil abandoned its old idiosyncratic system and aligned with OECD guidelines, adopting the Arm's Length Principle.
|
|
621
|
+
|
|
622
|
+
**Methods:**
|
|
623
|
+
|
|
624
|
+
| Method | Abbreviation | Description |
|
|
625
|
+
|--------|-------------|-------------|
|
|
626
|
+
| Comparable Uncontrolled Price | PIC | Compare with similar independent transactions |
|
|
627
|
+
| Resale Price minus Profit | PRL | Resale price minus adequate margin |
|
|
628
|
+
| Cost plus Profit | MCL | Cost plus adequate margin |
|
|
629
|
+
| Transactional Net Margin | MLT | Net margin of controlled transaction |
|
|
630
|
+
| Profit Split | MDL | Split profit based on contributions |
|
|
631
|
+
|
|
632
|
+
### 9.5 Trends
|
|
633
|
+
|
|
634
|
+
- IFRS 18 (CPC 51) -- new statement presentation (2027)
|
|
635
|
+
- Pillar Two (OECD) -- 15% global minimum tax
|
|
636
|
+
- AI for automated consolidation and intercompany eliminations
|
|
637
|
+
- Real-time global consolidation (days, not weeks)
|
|
638
|
+
|
|
639
|
+
---
|
|
640
|
+
|
|
641
|
+
## 10. Cost Accounting
|
|
642
|
+
|
|
643
|
+
### 10.1 Cost Classification
|
|
644
|
+
|
|
645
|
+
| Classification | Types | Examples |
|
|
646
|
+
|---------------|-------|---------|
|
|
647
|
+
| By behavior | Fixed, Variable, Semi-fixed, Semi-variable | Rent (fixed), raw material (variable) |
|
|
648
|
+
| By allocation | Direct, Indirect | Direct labor, electricity |
|
|
649
|
+
| By function | Production, Commercial, Administrative | Inputs, freight, accounting |
|
|
650
|
+
| By timing | Historical, Predetermined | Actual cost, standard cost |
|
|
651
|
+
|
|
652
|
+
### 10.2 Costing Methods
|
|
653
|
+
|
|
654
|
+
#### Absorption Costing
|
|
655
|
+
|
|
656
|
+
All production costs (fixed and variable, direct and indirect) allocated to products.
|
|
657
|
+
- **Accepted by Brazilian tax law** (RIR/2018) and CPC/IFRS (IAS 2)
|
|
658
|
+
- Advantage: fiscal and corporate compliance
|
|
659
|
+
- Disadvantage: diluted fixed costs can distort profitability analysis
|
|
660
|
+
|
|
661
|
+
```
|
|
662
|
+
Direct Costs -> Product
|
|
663
|
+
Indirect Costs -> Apportionment -> Product
|
|
664
|
+
Expenses -> Income Statement (period)
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
#### Variable (Direct) Costing
|
|
668
|
+
|
|
669
|
+
Only variable costs allocated to products; fixed costs go to P&L.
|
|
670
|
+
- **NOT accepted for tax purposes in Brazil** (management only)
|
|
671
|
+
- Advantage: facilitates contribution margin analysis and short-term decisions
|
|
672
|
+
- Disadvantage: does not meet tax legislation
|
|
673
|
+
|
|
674
|
+
```
|
|
675
|
+
Variable Costs -> Product
|
|
676
|
+
Fixed Costs -> Income Statement (period)
|
|
677
|
+
Expenses -> Income Statement (period)
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
**Key difference:** In absorption costing, inventories "carry" fixed costs. If production > sales, profit is higher (fixed costs remain in inventory). Variable costing eliminates this effect.
|
|
681
|
+
|
|
682
|
+
#### ABC -- Activity-Based Costing
|
|
683
|
+
|
|
684
|
+
Developed by Robert Kaplan and Robin Cooper (1987-1991).
|
|
685
|
+
|
|
686
|
+
```
|
|
687
|
+
Resources -> (Resource Drivers) -> Activities -> (Activity Drivers) -> Cost Objects
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
**Process:**
|
|
691
|
+
1. Identify relevant activities
|
|
692
|
+
2. Assign resource costs to activities (resource drivers)
|
|
693
|
+
3. Identify activity drivers
|
|
694
|
+
4. Assign activity costs to cost objects
|
|
695
|
+
|
|
696
|
+
**Example:**
|
|
697
|
+
|
|
698
|
+
| Activity | Cost | Driver | Product A | Product B |
|
|
699
|
+
|----------|------|--------|-----------|-----------|
|
|
700
|
+
| Machine setup | R$100K | Number of setups | 10 | 40 |
|
|
701
|
+
| Inspection | R$50K | Inspection hours | 100h | 400h |
|
|
702
|
+
| Purchasing | R$30K | Purchase orders | 20 | 80 |
|
|
703
|
+
|
|
704
|
+
- Advantage: more accurate in high-diversity, high-indirect-cost environments
|
|
705
|
+
- Disadvantage: high implementation and maintenance cost
|
|
706
|
+
|
|
707
|
+
#### Standard Costing
|
|
708
|
+
|
|
709
|
+
Predetermined cost based on normal efficiency conditions.
|
|
710
|
+
- Types: Ideal (theoretical), Estimated (expected actual), Current (attainable)
|
|
711
|
+
|
|
712
|
+
**Variance analysis:**
|
|
713
|
+
|
|
714
|
+
| Variance | Formula |
|
|
715
|
+
|----------|---------|
|
|
716
|
+
| Material Price | (Actual Price - Standard Price) x Actual Qty |
|
|
717
|
+
| Material Quantity | (Actual Qty - Standard Qty) x Standard Price |
|
|
718
|
+
| Labor Rate | (Actual Rate - Standard Rate) x Actual Hours |
|
|
719
|
+
| Labor Efficiency | (Actual Hours - Standard Hours) x Standard Rate |
|
|
720
|
+
|
|
721
|
+
### 10.3 Trends
|
|
722
|
+
|
|
723
|
+
- **TDABC (Time-Driven ABC)** -- simplified version (Kaplan & Anderson)
|
|
724
|
+
- **AI-based cost allocation** -- ML to identify drivers
|
|
725
|
+
- **Real-time costing** -- IoT + ERP for live cost calculation
|
|
726
|
+
- **Lean Accounting** -- aligned with Lean Manufacturing
|
|
727
|
+
- **RCA (Resource Consumption Accounting)** -- alternative to ABC focused on resources
|
|
728
|
+
|
|
729
|
+
---
|
|
730
|
+
|
|
731
|
+
## 11. Strategic Accounting
|
|
732
|
+
|
|
733
|
+
### 11.1 Three Pillars of Strategic Cost Management (Shank & Govindarajan)
|
|
734
|
+
|
|
735
|
+
#### Value Chain Analysis
|
|
736
|
+
|
|
737
|
+
Decompose all activities (company, suppliers, customers) to identify where value is created and costs incurred.
|
|
738
|
+
|
|
739
|
+
**Porter's Value Chain:**
|
|
740
|
+
```
|
|
741
|
+
Primary Activities:
|
|
742
|
+
[Inbound Logistics] -> [Operations] -> [Outbound Logistics] -> [Marketing & Sales] -> [Service]
|
|
743
|
+
|
|
744
|
+
Support Activities:
|
|
745
|
+
[Infrastructure] | [HR Management] | [Technology Development] | [Procurement]
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
#### Strategic Positioning Analysis
|
|
749
|
+
|
|
750
|
+
| Strategy | Accounting Focus | Priority Metrics |
|
|
751
|
+
|----------|-----------------|-----------------|
|
|
752
|
+
| Cost Leadership | Cost reduction, efficiency, scale | Unit cost, OEE, economies of scale |
|
|
753
|
+
| Differentiation | Value investment, innovation | R&D/revenue, premium pricing, brand value |
|
|
754
|
+
| Focus | Specific niche, customization | Margin by segment, cost-to-serve |
|
|
755
|
+
|
|
756
|
+
#### Cost Driver Analysis
|
|
757
|
+
|
|
758
|
+
**Structural drivers:** scale, scope, experience (learning curve), technology, portfolio complexity.
|
|
759
|
+
|
|
760
|
+
**Execution drivers:** participative management, TQM, capacity utilization, layout efficiency, product configuration, supplier/customer linkages.
|
|
761
|
+
|
|
762
|
+
### 11.2 Target Costing (Genka Kikaku)
|
|
763
|
+
|
|
764
|
+
```
|
|
765
|
+
Target Cost = Market Price - Desired Margin
|
|
766
|
+
```
|
|
767
|
+
|
|
768
|
+
**Process:**
|
|
769
|
+
1. Research acceptable market price
|
|
770
|
+
2. Define desired profit margin
|
|
771
|
+
3. Calculate target cost
|
|
772
|
+
4. Design product to achieve target cost
|
|
773
|
+
5. If projected cost > target -> redesign (value engineering)
|
|
774
|
+
|
|
775
|
+
Intensive use in: automotive (Toyota), electronics, consumer goods.
|
|
776
|
+
|
|
777
|
+
### 11.3 Kaizen Costing
|
|
778
|
+
|
|
779
|
+
Complements target costing in the production phase. Sets periodic cost reduction targets:
|
|
780
|
+
|
|
781
|
+
```
|
|
782
|
+
Kaizen Target Cost = Current Actual Cost - Reduction Target
|
|
783
|
+
```
|
|
784
|
+
|
|
785
|
+
Principle: small continuous improvements yield large results over time.
|
|
786
|
+
|
|
787
|
+
### 11.4 Lifecycle Costing
|
|
788
|
+
|
|
789
|
+
| Phase | Costs Included |
|
|
790
|
+
|-------|---------------|
|
|
791
|
+
| R&D and Design | Research, prototyping, testing |
|
|
792
|
+
| Production | Materials, labor, overhead |
|
|
793
|
+
| Distribution | Logistics, warehousing, marketing |
|
|
794
|
+
| Customer Use | Maintenance, energy consumption |
|
|
795
|
+
| Disposal | Recycling, decommissioning |
|
|
796
|
+
|
|
797
|
+
**Insight:** 80-90% of lifecycle costs are determined at the design phase.
|
|
798
|
+
|
|
799
|
+
### 11.5 Throughput Accounting (TOC -- Goldratt)
|
|
800
|
+
|
|
801
|
+
| Metric | Definition |
|
|
802
|
+
|--------|-----------|
|
|
803
|
+
| Throughput | Revenue - Totally Variable Costs |
|
|
804
|
+
| Investment | Money tied up in the system (inventory, equipment) |
|
|
805
|
+
| Operating Expense | Money spent to convert investment into throughput |
|
|
806
|
+
|
|
807
|
+
**Decision rule:** Prioritize products/orders that maximize throughput per unit of constraint.
|
|
808
|
+
|
|
809
|
+
---
|
|
810
|
+
|
|
811
|
+
## 12. Historical Timeline
|
|
812
|
+
|
|
813
|
+
| Year | Milestone |
|
|
814
|
+
|------|-----------|
|
|
815
|
+
| 1494 | Luca Pacioli publishes "Summa de Arithmetica" -- double-entry bookkeeping |
|
|
816
|
+
| 1850 | Brazilian Commercial Code -- mandatory bookkeeping |
|
|
817
|
+
| 1946 | CFC (Federal Accounting Council) created |
|
|
818
|
+
| 1976 | Law 6.404 (Corporations Act) -- revolutionizes corporate accounting |
|
|
819
|
+
| 1987 | Kaplan & Cooper publish on ABC |
|
|
820
|
+
| 1992 | Kaplan & Norton launch the Balanced Scorecard |
|
|
821
|
+
| 2005 | CPC (Accounting Pronouncements Committee) created |
|
|
822
|
+
| 2007 | Law 11.638 -- beginning of IFRS convergence in Brazil |
|
|
823
|
+
| 2007 | SPED -- mandatory digital bookkeeping begins |
|
|
824
|
+
| 2010 | Full IFRS adoption by Brazilian listed companies |
|
|
825
|
+
| 2023 | Law 14.596 -- new transfer pricing rules (OECD-aligned) |
|
|
826
|
+
| 2024 | IFRS 18 published by IASB |
|
|
827
|
+
| 2025 | LC 214/2025 (CBS/IBS). LC 224/2025 (Lucro Presumido changes). CPC 51 approved. eSocial S-1.3 mandatory |
|
|
828
|
+
| 2026 | CBS/IBS test phase. IFRS S1/S2 mandatory (CVM 193/23). DIRF definitively extinguished |
|
|
829
|
+
| 2027 | CBS effective (~8.8%). IS effective. PIS/COFINS extinguished. IFRS 18/CPC 51 mandatory |
|
|
830
|
+
| 2033 | ICMS/ISS extinguished. IBS fully effective |
|
|
831
|
+
|
|
832
|
+
---
|
|
833
|
+
|
|
834
|
+
## 13. Key People
|
|
835
|
+
|
|
836
|
+
### Pioneers
|
|
837
|
+
|
|
838
|
+
| Person | Contribution |
|
|
839
|
+
|--------|-------------|
|
|
840
|
+
| Luca Pacioli (1447-1517) | Codified double-entry in "Summa de Arithmetica" (1494) |
|
|
841
|
+
| Josiah Wedgwood (1730-1795) | First to develop cost accounting in industry |
|
|
842
|
+
|
|
843
|
+
### Brazilian Accounting
|
|
844
|
+
|
|
845
|
+
| Person | Contribution |
|
|
846
|
+
|--------|-------------|
|
|
847
|
+
| Sergio de Iudicibus | Manual de Contabilidade Societaria (FIPECAFI), scientific approach |
|
|
848
|
+
| Eliseu Martins | "Contabilidade de Custos" (10th ed, 2023), USP professor emeritus |
|
|
849
|
+
| Jose Carlos Marion | "Contabilidade Empresarial," prolific Brazilian author |
|
|
850
|
+
| Nelson Carvalho | USP professor, former IASB member, bridge to international standards |
|
|
851
|
+
| Roberto Dias Duarte | Reference in digital transformation of Brazilian accounting |
|
|
852
|
+
|
|
853
|
+
### Management Accounting & Cost
|
|
854
|
+
|
|
855
|
+
| Person | Contribution |
|
|
856
|
+
|--------|-------------|
|
|
857
|
+
| Robert S. Kaplan | ABC (1987) and BSC (1992), Harvard professor |
|
|
858
|
+
| David P. Norton | BSC co-creator |
|
|
859
|
+
| Robin Cooper | ABC co-developer, strategic cost management |
|
|
860
|
+
| Charles T. Horngren | "Cost Accounting" -- most adopted textbook globally |
|
|
861
|
+
| John K. Shank | Strategic Cost Management (with Govindarajan) |
|
|
862
|
+
|
|
863
|
+
### Auditing & Governance
|
|
864
|
+
|
|
865
|
+
| Person | Contribution |
|
|
866
|
+
|--------|-------------|
|
|
867
|
+
| James Treadway | Led Treadway Commission (originated COSO) |
|
|
868
|
+
| Larry Sawyer | Father of modern internal auditing |
|
|
869
|
+
|
|
870
|
+
### Forensic
|
|
871
|
+
|
|
872
|
+
| Person | Contribution |
|
|
873
|
+
|--------|-------------|
|
|
874
|
+
| Frank Benford | Law of the First Digit (1938) |
|
|
875
|
+
| Donald Cressey | Fraud Triangle |
|
|
876
|
+
| Joseph T. Wells | Founded ACFE |
|
|
877
|
+
|
|
878
|
+
### Tax Reform
|
|
879
|
+
|
|
880
|
+
| Person | Contribution |
|
|
881
|
+
|--------|-------------|
|
|
882
|
+
| Bernard Appy | Intellectual architect of Brazilian tax reform (CBS/IBS) |
|
|
883
|
+
|
|
884
|
+
---
|
|
885
|
+
|
|
886
|
+
## 14. Reference Books (Bibles by Sub-Area)
|
|
887
|
+
|
|
888
|
+
### Financial & Corporate Accounting
|
|
889
|
+
|
|
890
|
+
| Book | Author | Notes |
|
|
891
|
+
|------|--------|-------|
|
|
892
|
+
| Manual de Contabilidade Societaria | FIPECAFI (Iudicibus, Martins, Gelbcke, Santos) | Definitive Brazilian accounting work |
|
|
893
|
+
| Intermediate Accounting | Kieso, Weygandt, Warfield | World reference |
|
|
894
|
+
|
|
895
|
+
### Cost Accounting
|
|
896
|
+
|
|
897
|
+
| Book | Author | Notes |
|
|
898
|
+
|------|--------|-------|
|
|
899
|
+
| Contabilidade de Custos | Eliseu Martins (10th ed, 2023) | Absolute Brazilian reference |
|
|
900
|
+
| Cost Accounting: A Managerial Emphasis | Horngren, Datar, Rajan (16th ed, 2024) | Most adopted globally |
|
|
901
|
+
| Activity-Based Costing and ABM | Kaplan & Cooper | Defined ABC as a field |
|
|
902
|
+
|
|
903
|
+
### Management Accounting & Controllership
|
|
904
|
+
|
|
905
|
+
| Book | Author | Notes |
|
|
906
|
+
|------|--------|-------|
|
|
907
|
+
| The Balanced Scorecard | Kaplan & Norton | Defined BSC, 25+ languages |
|
|
908
|
+
| Relevance Lost | Johnson & Kaplan (1987) | Revolutionized management accounting |
|
|
909
|
+
| Management Control Systems | Anthony & Govindarajan | Reference in control systems |
|
|
910
|
+
|
|
911
|
+
### Auditing
|
|
912
|
+
|
|
913
|
+
| Book | Author | Notes |
|
|
914
|
+
|------|--------|-------|
|
|
915
|
+
| Auditing and Assurance Services | Arens, Elder, Beasley | World reference |
|
|
916
|
+
| Sawyer's Internal Auditing | IIA | Internal audit classic |
|
|
917
|
+
| COSO Internal Control Framework | COSO (2013) | Defines internal controls |
|
|
918
|
+
|
|
919
|
+
### Forensic
|
|
920
|
+
|
|
921
|
+
| Book | Author | Notes |
|
|
922
|
+
|------|--------|-------|
|
|
923
|
+
| Financial Shenanigans | Schilit & Perler (4th ed, 2018) | Classic on statement manipulation |
|
|
924
|
+
| Benford's Law | Mark Nigrini (2012) | Benford application in auditing |
|
|
925
|
+
|
|
926
|
+
### Strategic
|
|
927
|
+
|
|
928
|
+
| Book | Author | Notes |
|
|
929
|
+
|------|--------|-------|
|
|
930
|
+
| Strategic Cost Management | Shank & Govindarajan (1993) | Defined the field |
|
|
931
|
+
| Competitive Advantage | Michael Porter (1985) | Value chain framework |
|
|
932
|
+
| The Goal | Eliyahu Goldratt (1984) | Theory of Constraints |
|
|
933
|
+
|
|
934
|
+
### Taxation
|
|
935
|
+
|
|
936
|
+
| Book | Author | Notes |
|
|
937
|
+
|------|--------|-------|
|
|
938
|
+
| Manual de Contabilidade Tributaria | Paulo Henrique Pegas (12th ed, 2023) | Brazilian tax accounting reference |
|
|
939
|
+
| Direito Tributario Brasileiro | Luciano Amaro | Legal foundation for tax accounting |
|
|
940
|
+
|
|
941
|
+
---
|
|
942
|
+
|
|
943
|
+
## 15. Key Organizations
|
|
944
|
+
|
|
945
|
+
| Entity | Abbreviation | Role |
|
|
946
|
+
|--------|-------------|------|
|
|
947
|
+
| Conselho Federal de Contabilidade | CFC | Regulates accounting profession in Brazil |
|
|
948
|
+
| Comite de Pronunciamentos Contabeis | CPC | Issues IFRS-convergent pronouncements |
|
|
949
|
+
| Comissao de Valores Mobiliarios | CVM | Regulates capital markets |
|
|
950
|
+
| IASB | IASB | Issues IFRS globally |
|
|
951
|
+
| FASB | FASB | Issues US GAAP |
|
|
952
|
+
| IIA | IIA | Internal audit standards |
|
|
953
|
+
| ACFE | ACFE | Fraud examination and forensic |
|
|
954
|
+
| FIPECAFI | FIPECAFI | Academic accounting research (USP) |
|
|
955
|
+
| IBRACON | IBRACON | Independent auditors in Brazil |
|
|
956
|
+
|
|
957
|
+
---
|
|
958
|
+
|
|
959
|
+
## 16. Actionable Checklists
|
|
960
|
+
|
|
961
|
+
### Pre-Close Monthly Checklist
|
|
962
|
+
|
|
963
|
+
- [ ] Bank reconciliations completed
|
|
964
|
+
- [ ] Intercompany balances confirmed
|
|
965
|
+
- [ ] Revenue recognition reviewed (CPC 47 criteria)
|
|
966
|
+
- [ ] Provisions and estimates updated
|
|
967
|
+
- [ ] Fixed asset additions/disposals recorded
|
|
968
|
+
- [ ] Tax obligations calculated (IRPJ, CSLL, PIS, COFINS)
|
|
969
|
+
- [ ] SPED files generated and validated
|
|
970
|
+
- [ ] eSocial events transmitted
|
|
971
|
+
- [ ] Variance analysis (actual vs. budget) prepared
|
|
972
|
+
- [ ] Flash report issued to management
|
|
973
|
+
|
|
974
|
+
### Tax Regime Decision Checklist (Annual)
|
|
975
|
+
|
|
976
|
+
- [ ] Simulate total tax under Simples Nacional (if eligible)
|
|
977
|
+
- [ ] Simulate total tax under Lucro Presumido
|
|
978
|
+
- [ ] Simulate total tax under Lucro Real
|
|
979
|
+
- [ ] Consider PIS/COFINS credit impact (non-cumulative vs. cumulative)
|
|
980
|
+
- [ ] Evaluate payroll impact on Simples (R Factor for Annex III vs. V)
|
|
981
|
+
- [ ] Assess LC 224/2025 impact on Presumido (revenue > R$5M threshold)
|
|
982
|
+
- [ ] Document decision rationale
|
|
983
|
+
- [ ] File regime option by January deadline
|
|
984
|
+
|
|
985
|
+
### Tax Reform Readiness Checklist (2026)
|
|
986
|
+
|
|
987
|
+
- [ ] ERP updated for CBS/IBS test fields on invoices
|
|
988
|
+
- [ ] Team trained on new tax mechanics (IVA dual)
|
|
989
|
+
- [ ] Credit calculation processes reviewed (broad financial credit)
|
|
990
|
+
- [ ] Pricing models updated for new tax structure
|
|
991
|
+
- [ ] Split payment infrastructure assessed
|
|
992
|
+
- [ ] Parallel operation plan for 2026-2033 transition
|
|
993
|
+
- [ ] Tax incentive phase-out impact quantified
|
|
994
|
+
|
|
995
|
+
---
|
|
996
|
+
|
|
997
|
+
*Contabilidade Master Reference v1.0 -- SINAPSE squad-finance knowledge base*
|
|
998
|
+
*Source: MS-012 Contabilidade Research (2026-04-06, verified 2026-04-07)*
|