sinapse-ai 1.21.0 → 1.22.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/rules/coderabbit-integration.md +6 -0
- package/.claude/rules/documentation-first-reference.md +146 -0
- package/.claude/rules/documentation-first.md +27 -119
- package/.claude/rules/mandatory-delegation-reference.md +93 -0
- package/.claude/rules/mandatory-delegation.md +29 -93
- package/.claude/rules/project-intelligence-reference.md +159 -0
- package/.claude/rules/project-intelligence.md +37 -155
- package/.claude/rules/safe-collaboration-reference.md +163 -0
- package/.claude/rules/safe-collaboration.md +32 -173
- package/.sinapse-ai/core/doctor/checks/index.js +1 -1
- package/.sinapse-ai/core/execution/build-orchestrator.js +4 -3
- package/.sinapse-ai/core/execution/subagent-dispatcher.js +2 -2
- package/.sinapse-ai/core/ideation/ideation-engine.js +2 -1
- package/.sinapse-ai/core/orchestration/cli-commands.js +13 -0
- package/.sinapse-ai/core/orchestration/doc-first-resolver.js +93 -2
- package/.sinapse-ai/core/orchestration/executors/epic-3-executor.js +15 -2
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +3 -1
- package/.sinapse-ai/core/orchestration/index.js +5 -0
- package/.sinapse-ai/core/orchestration/spec-complexity.js +141 -0
- package/.sinapse-ai/core-config.yaml +30 -0
- package/.sinapse-ai/data/entity-registry.yaml +46 -25
- package/.sinapse-ai/development/agents/architect.md +3 -15
- package/.sinapse-ai/development/agents/data-engineer.md +3 -15
- package/.sinapse-ai/development/agents/developer.md +3 -24
- package/.sinapse-ai/development/agents/devops.md +4 -25
- package/.sinapse-ai/development/agents/quality-gate.md +3 -25
- package/.sinapse-ai/development/knowledge-base/token-economy-guide.md +1 -1
- package/.sinapse-ai/development/tasks/resolve-github-issue.md +1 -1
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -2
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.2-SUMMARY.md +4 -1
- package/.sinapse-ai/install-manifest.yaml +44 -40
- package/.sinapse-ai/product/templates/story-tmpl.yaml +11 -6
- package/.sinapse-ai/quality/judge-calibration/README.md +75 -0
- package/.sinapse-ai/quality/judge-calibration/calibration-log.md +70 -0
- package/.sinapse-ai/quality/judge-calibration/golden-set.json +105 -0
- package/.sinapse-ai/quality/judge-calibration/scenarios.json +90 -0
- package/CHANGELOG.md +38 -8
- package/README.en.md +1 -1
- package/README.md +6 -6
- package/bin/sinapse-minimal.js +5 -4
- package/docs/community/README-community-snippet-core.md +1 -1
- package/docs/community/README-community-snippet-mcp.md +2 -2
- package/docs/framework/README.md +2 -2
- package/docs/framework/architecture-overview.md +2 -2
- package/docs/framework/core-architecture.md +1 -1
- package/docs/framework/feature-process.md +5 -5
- package/docs/framework/guiding-principles.md +1 -1
- package/docs/framework/roadmap.md +4 -4
- package/docs/framework/source-tree.md +1 -1
- package/docs/framework/versioning-and-releases.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/guides/agent-selection-guide.md +1 -1
- package/docs/guides/agents/traces/README.md +1 -1
- package/docs/guides/config-migration-guide.md +1 -1
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/docker-mcp-setup.md +5 -5
- package/docs/guides/getting-started.md +1 -1
- package/docs/guides/git-workflow-guide.md +3 -3
- package/docs/guides/ide-integration.md +3 -3
- package/docs/guides/ide-sync-guide.md +1 -1
- package/docs/guides/mcp/desktop-commander.md +2 -2
- package/docs/guides/mcp/docker-gateway-tutorial.md +1 -1
- package/docs/guides/mcp-global-setup.md +3 -3
- package/docs/guides/memory-intelligence-system.md +10 -10
- package/docs/guides/meta-agent-commands.md +1 -1
- package/docs/guides/quality-gates.md +1 -1
- package/docs/guides/security-hardening.md +1 -1
- package/docs/guides/service-discovery.md +1 -1
- package/docs/guides/squad-examples/README.md +1 -1
- package/docs/guides/squads-guide.md +1 -1
- package/docs/guides/testing-guide.md +2 -2
- package/docs/guides/user-guide.md +22 -22
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +3 -3
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +1 -1
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +2 -2
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/pro-developer-workflow.md +2 -2
- package/docs/guides/workflows-guide.md +1 -1
- package/docs/guides/workflows-overview.md +1 -1
- package/docs/installation/npx-install.md +1 -1
- package/docs/installation/uninstallation.md +1 -1
- package/docs/installation/v4-quick-start.md +1 -1
- package/docs/pt/guides/user-guide.md +18 -18
- package/docs/pt/security.md +2 -2
- package/docs/security/overview.md +2 -2
- package/docs/security/security-best-practices.md +1 -1
- package/docs/sinapse-agent-flows/architect-system.md +1 -1
- package/docs/sinapse-agent-flows/data-engineer-system.md +1 -1
- package/docs/sinapse-agent-flows/dev-system.md +1 -1
- package/docs/sinapse-agent-flows/devops-system.md +2 -2
- package/docs/sinapse-agent-flows/qa-system.md +1 -1
- package/docs/sinapse-agent-flows/sm-system.md +2 -2
- package/docs/sinapse-agent-flows/snps-orqx-system.md +4 -4
- package/docs/sinapse-agent-flows/squad-creator-system.md +1 -1
- package/docs/sinapse-workflows/README.md +2 -2
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +3 -3
- package/docs/sinapse-workflows/brownfield-service-workflow.md +3 -3
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +2 -2
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +3 -3
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +3 -3
- package/docs/troubleshooting.md +1 -1
- package/package.json +5 -1
- package/scripts/calibrate-judge.js +134 -0
- package/scripts/validate-all.js +5 -0
- package/scripts/validate-constitution.js +58 -0
- package/scripts/validate-story-acs.js +174 -0
- package/scripts/validate-tool-descriptions.js +128 -0
- package/scripts/wave-gate.js +1 -1
- package/squads/claude-code-mastery/agents/project-integrator.md +3 -10
- package/squads/claude-code-mastery/knowledge-base/context-window-optimization.md +2 -2
- package/squads/claude-code-mastery/knowledge-base/memory-systems-reference.md +1 -1
- package/squads/squad-copy/knowledge-base/ai-copy-human-loop-canon.md +1 -1
|
@@ -193,6 +193,12 @@ github:
|
|
|
193
193
|
draft_by_default: false
|
|
194
194
|
semantic_release:
|
|
195
195
|
enabled: true
|
|
196
|
+
# ── CodeRabbit integration — SINGLE SOURCE OF TRUTH ──────────────────────────
|
|
197
|
+
# This section (machine config) + .claude/rules/coderabbit-integration.md
|
|
198
|
+
# (auto-loaded, human-readable) are the ONE canonical source for WSL execution
|
|
199
|
+
# mechanics, self-healing thresholds, canonical review commands and report
|
|
200
|
+
# location. Agents REFERENCE this — they must NOT copy the mechanics into their
|
|
201
|
+
# own definitions. (Dedup: Story rodada2-m6-coderabbit-dedup.)
|
|
196
202
|
coderabbit_integration:
|
|
197
203
|
enabled: true
|
|
198
204
|
installation_mode: wsl
|
|
@@ -213,11 +219,35 @@ coderabbit_integration:
|
|
|
213
219
|
graceful_degradation:
|
|
214
220
|
skip_if_not_installed: true
|
|
215
221
|
fallback_message: 'CodeRabbit CLI not found. Skipping automated review. Install via: pip install coderabbit-cli'
|
|
222
|
+
# Canonical review commands (referenced by all agents; keyed by intent, not by agent).
|
|
216
223
|
commands:
|
|
224
|
+
review_uncommitted: |
|
|
225
|
+
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t uncommitted'
|
|
226
|
+
review_committed_base_main: |
|
|
227
|
+
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t committed --base main'
|
|
228
|
+
review_against_main: |
|
|
229
|
+
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only --base main'
|
|
230
|
+
review_committed: |
|
|
231
|
+
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t committed'
|
|
232
|
+
# Back-compat aliases (previous key names):
|
|
217
233
|
qa_pre_review_uncommitted: |
|
|
218
234
|
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t uncommitted'
|
|
219
235
|
qa_story_review_committed: |
|
|
220
236
|
wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t committed --base main'
|
|
237
|
+
execution_guidelines: |
|
|
238
|
+
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
239
|
+
|
|
240
|
+
**How to Execute:**
|
|
241
|
+
1. Use 'wsl bash -c' wrapper for all commands
|
|
242
|
+
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
243
|
+
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
244
|
+
|
|
245
|
+
**Timeout:** dev/pre-push 15 min (900000ms); full QA review 30 min (1800000ms) — reviews take 7-30 min.
|
|
246
|
+
|
|
247
|
+
**Error Handling:**
|
|
248
|
+
- If "coderabbit: command not found" → verify installation in WSL (wsl_config.installation_path)
|
|
249
|
+
- If timeout → increase timeout, review is still processing
|
|
250
|
+
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
221
251
|
report_location: docs/qa/coderabbit-reports/
|
|
222
252
|
squads:
|
|
223
253
|
templateLocation: templates/squad
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
metadata:
|
|
2
2
|
version: 1.0.0
|
|
3
|
-
lastUpdated: '2026-07-
|
|
4
|
-
entityCount:
|
|
3
|
+
lastUpdated: '2026-07-06T05:44:51.322Z'
|
|
4
|
+
entityCount: 815
|
|
5
5
|
checksumAlgorithm: sha256
|
|
6
6
|
resolutionRate: 100
|
|
7
7
|
entities:
|
|
@@ -649,8 +649,8 @@ entities:
|
|
|
649
649
|
score: 0.7
|
|
650
650
|
constraints: []
|
|
651
651
|
extensionPoints: []
|
|
652
|
-
checksum: sha256:
|
|
653
|
-
lastVerified: '2026-
|
|
652
|
+
checksum: sha256:14606597c434fdf064bd78d5eb904ef2d28ce0523e5431521fcdd9ea0753da56
|
|
653
|
+
lastVerified: '2026-07-05T02:51:22.240Z'
|
|
654
654
|
sinapse:
|
|
655
655
|
path: bin/sinapse.js
|
|
656
656
|
layer: L1
|
|
@@ -5033,8 +5033,8 @@ entities:
|
|
|
5033
5033
|
score: 0.8
|
|
5034
5034
|
constraints: []
|
|
5035
5035
|
extensionPoints: []
|
|
5036
|
-
checksum: sha256:
|
|
5037
|
-
lastVerified: '2026-
|
|
5036
|
+
checksum: sha256:288ab27dfcc8337e4502bfc4e713b03f39635bc3bdd25a78ff1c3953ac02e0a1
|
|
5037
|
+
lastVerified: '2026-07-05T02:51:22.310Z'
|
|
5038
5038
|
review-contributor-pr:
|
|
5039
5039
|
path: .sinapse-ai/development/tasks/review-contributor-pr.md
|
|
5040
5040
|
layer: L2
|
|
@@ -7328,8 +7328,8 @@ entities:
|
|
|
7328
7328
|
score: 0.5
|
|
7329
7329
|
constraints: []
|
|
7330
7330
|
extensionPoints: []
|
|
7331
|
-
checksum: sha256:
|
|
7332
|
-
lastVerified: '2026-
|
|
7331
|
+
checksum: sha256:af24bf39ed706db9fca15dcc1bd3a0170c74e9956e3c2de58b221d4b28f14b9e
|
|
7332
|
+
lastVerified: '2026-07-05T02:51:22.342Z'
|
|
7333
7333
|
task-execution-report:
|
|
7334
7334
|
path: .sinapse-ai/product/templates/task-execution-report.md
|
|
7335
7335
|
layer: L2
|
|
@@ -9795,8 +9795,8 @@ entities:
|
|
|
9795
9795
|
score: 0.4
|
|
9796
9796
|
constraints: []
|
|
9797
9797
|
extensionPoints: []
|
|
9798
|
-
checksum: sha256:
|
|
9799
|
-
lastVerified: '2026-07-
|
|
9798
|
+
checksum: sha256:d115167d203651b7288c1ee2f2a3b2d1bc0b09d624d8e7bd0123c27574890b53
|
|
9799
|
+
lastVerified: '2026-07-06T05:44:51.104Z'
|
|
9800
9800
|
build-state-manager:
|
|
9801
9801
|
path: .sinapse-ai/core/execution/build-state-manager.js
|
|
9802
9802
|
layer: L1
|
|
@@ -9886,8 +9886,8 @@ entities:
|
|
|
9886
9886
|
score: 0.4
|
|
9887
9887
|
constraints: []
|
|
9888
9888
|
extensionPoints: []
|
|
9889
|
-
checksum: sha256:
|
|
9890
|
-
lastVerified: '2026-
|
|
9889
|
+
checksum: sha256:d7c440006585bd750d88da6926a766055e4b5bcb01974f30b4fc1fe8812c91a5
|
|
9890
|
+
lastVerified: '2026-07-06T05:44:51.106Z'
|
|
9891
9891
|
delegate-cli:
|
|
9892
9892
|
path: .sinapse-ai/core/external-executors/delegate-cli.js
|
|
9893
9893
|
layer: L1
|
|
@@ -10974,8 +10974,8 @@ entities:
|
|
|
10974
10974
|
score: 0.4
|
|
10975
10975
|
constraints: []
|
|
10976
10976
|
extensionPoints: []
|
|
10977
|
-
checksum: sha256:
|
|
10978
|
-
lastVerified: '2026-
|
|
10977
|
+
checksum: sha256:9fbbd66ea38bc08696e42abca30810ae55e3c80aca703ec2ab0f7657eb3566be
|
|
10978
|
+
lastVerified: '2026-07-05T02:51:22.407Z'
|
|
10979
10979
|
circuit-breaker:
|
|
10980
10980
|
path: .sinapse-ai/core/ids/circuit-breaker.js
|
|
10981
10981
|
layer: L1
|
|
@@ -11663,8 +11663,8 @@ entities:
|
|
|
11663
11663
|
score: 0.4
|
|
11664
11664
|
constraints: []
|
|
11665
11665
|
extensionPoints: []
|
|
11666
|
-
checksum: sha256:
|
|
11667
|
-
lastVerified: '2026-07-
|
|
11666
|
+
checksum: sha256:55fe402101964487a8ad91c99a3cf1f2af3832a58bda294244cf5abb46fd8654
|
|
11667
|
+
lastVerified: '2026-07-06T05:44:51.134Z'
|
|
11668
11668
|
condition-evaluator:
|
|
11669
11669
|
path: .sinapse-ai/core/orchestration/condition-evaluator.js
|
|
11670
11670
|
layer: L1
|
|
@@ -11753,7 +11753,7 @@ entities:
|
|
|
11753
11753
|
path: .sinapse-ai/core/orchestration/doc-first-resolver.js
|
|
11754
11754
|
layer: L1
|
|
11755
11755
|
type: module
|
|
11756
|
-
purpose:
|
|
11756
|
+
purpose: /^#{1,4}\s*(description|descri[cç][aã]o)/im,
|
|
11757
11757
|
keywords:
|
|
11758
11758
|
- doc
|
|
11759
11759
|
- first
|
|
@@ -11772,8 +11772,8 @@ entities:
|
|
|
11772
11772
|
score: 0.4
|
|
11773
11773
|
constraints: []
|
|
11774
11774
|
extensionPoints: []
|
|
11775
|
-
checksum: sha256:
|
|
11776
|
-
lastVerified: '2026-07-
|
|
11775
|
+
checksum: sha256:70ed2b0522825e74cdd229ee2e5c9a3908a026f229a7803edfee9aa7c8a69ec5
|
|
11776
|
+
lastVerified: '2026-07-06T05:44:51.137Z'
|
|
11777
11777
|
epic-context-accumulator:
|
|
11778
11778
|
path: .sinapse-ai/core/orchestration/epic-context-accumulator.js
|
|
11779
11779
|
layer: L1
|
|
@@ -11848,6 +11848,7 @@ entities:
|
|
|
11848
11848
|
usedBy: []
|
|
11849
11849
|
dependencies:
|
|
11850
11850
|
- epic-executor
|
|
11851
|
+
- spec-complexity
|
|
11851
11852
|
externalDeps: []
|
|
11852
11853
|
plannedDeps: []
|
|
11853
11854
|
lifecycle: experimental
|
|
@@ -11855,8 +11856,8 @@ entities:
|
|
|
11855
11856
|
score: 0.4
|
|
11856
11857
|
constraints: []
|
|
11857
11858
|
extensionPoints: []
|
|
11858
|
-
checksum: sha256:
|
|
11859
|
-
lastVerified: '2026-
|
|
11859
|
+
checksum: sha256:adbf4790f4381727be0a5e6842d05471f92bbf6475495a1241f8799a95559add
|
|
11860
|
+
lastVerified: '2026-07-06T05:44:51.138Z'
|
|
11860
11861
|
epic-4-executor:
|
|
11861
11862
|
path: .sinapse-ai/core/orchestration/executors/epic-4-executor.js
|
|
11862
11863
|
layer: L1
|
|
@@ -11878,8 +11879,8 @@ entities:
|
|
|
11878
11879
|
score: 0.4
|
|
11879
11880
|
constraints: []
|
|
11880
11881
|
extensionPoints: []
|
|
11881
|
-
checksum: sha256:
|
|
11882
|
-
lastVerified: '2026-07-
|
|
11882
|
+
checksum: sha256:9cf89dad552b9ea369fd9274fe1d14d3860f5150154c73d30a7883c18ce89931
|
|
11883
|
+
lastVerified: '2026-07-06T05:44:51.139Z'
|
|
11883
11884
|
epic-5-executor:
|
|
11884
11885
|
path: .sinapse-ai/core/orchestration/executors/epic-5-executor.js
|
|
11885
11886
|
layer: L1
|
|
@@ -12168,6 +12169,26 @@ entities:
|
|
|
12168
12169
|
extensionPoints: []
|
|
12169
12170
|
checksum: sha256:321eee21d44c8c2548a4a989b4fd9bd13782dc95f917098d67c514e0886000f5
|
|
12170
12171
|
lastVerified: '2026-06-15T00:26:26.411Z'
|
|
12172
|
+
spec-complexity:
|
|
12173
|
+
path: .sinapse-ai/core/orchestration/spec-complexity.js
|
|
12174
|
+
layer: L1
|
|
12175
|
+
type: module
|
|
12176
|
+
purpose: Entity at .sinapse-ai\core\orchestration\spec-complexity.js
|
|
12177
|
+
keywords:
|
|
12178
|
+
- spec
|
|
12179
|
+
- complexity
|
|
12180
|
+
usedBy:
|
|
12181
|
+
- epic-3-executor
|
|
12182
|
+
dependencies: []
|
|
12183
|
+
externalDeps: []
|
|
12184
|
+
plannedDeps: []
|
|
12185
|
+
lifecycle: production
|
|
12186
|
+
adaptability:
|
|
12187
|
+
score: 0.4
|
|
12188
|
+
constraints: []
|
|
12189
|
+
extensionPoints: []
|
|
12190
|
+
checksum: sha256:98263efa7189b42e8747929886eddb84b047083369d5636a401141de5b13385a
|
|
12191
|
+
lastVerified: '2026-07-06T05:44:51.145Z'
|
|
12171
12192
|
subagent-prompt-builder:
|
|
12172
12193
|
path: .sinapse-ai/core/orchestration/subagent-prompt-builder.js
|
|
12173
12194
|
layer: L1
|
|
@@ -14227,8 +14248,8 @@ entities:
|
|
|
14227
14248
|
score: 0.3
|
|
14228
14249
|
constraints: []
|
|
14229
14250
|
extensionPoints: []
|
|
14230
|
-
checksum: sha256:
|
|
14231
|
-
lastVerified: '2026-07-
|
|
14251
|
+
checksum: sha256:c0aa3c0b60809ef2fbbe4d7b27ae44e48817d5a7266b6c5d7d5f1d313329a2a0
|
|
14252
|
+
lastVerified: '2026-07-05T02:51:22.469Z'
|
|
14232
14253
|
product-lead:
|
|
14233
14254
|
path: .sinapse-ai/development/agents/product-lead.md
|
|
14234
14255
|
layer: L2
|
|
@@ -276,6 +276,9 @@ dependencies:
|
|
|
276
276
|
|
|
277
277
|
coderabbit_integration:
|
|
278
278
|
enabled: true
|
|
279
|
+
# CodeRabbit mechanics (WSL execution, timeout, commands, report location) are
|
|
280
|
+
# single-sourced in .sinapse-ai/core-config.yaml + .claude/rules/coderabbit-integration.md.
|
|
281
|
+
# Only this agent's review focus/policy lives here — see Story rodada2-m6.
|
|
279
282
|
focus: Architectural patterns, security, anti-patterns, cross-stack consistency
|
|
280
283
|
|
|
281
284
|
when_to_use:
|
|
@@ -334,21 +337,6 @@ dependencies:
|
|
|
334
337
|
6. Recommend patterns from technical-preferences.md
|
|
335
338
|
7. Document decisions in architecture docs
|
|
336
339
|
|
|
337
|
-
execution_guidelines: |
|
|
338
|
-
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
339
|
-
|
|
340
|
-
**How to Execute:**
|
|
341
|
-
1. Use 'wsl bash -c' wrapper for all commands
|
|
342
|
-
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
343
|
-
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
344
|
-
|
|
345
|
-
**Timeout:** 15 minutes (900000ms) - CodeRabbit reviews take 7-30 min
|
|
346
|
-
|
|
347
|
-
**Error Handling:**
|
|
348
|
-
- If "coderabbit: command not found" → verify installation in WSL
|
|
349
|
-
- If timeout → increase timeout, review is still processing
|
|
350
|
-
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
351
|
-
|
|
352
340
|
architectural_patterns_to_check:
|
|
353
341
|
- API consistency (REST conventions, error handling, pagination)
|
|
354
342
|
- Authentication/Authorization patterns (JWT, sessions, RLS)
|
|
@@ -255,6 +255,9 @@ usage_tips:
|
|
|
255
255
|
|
|
256
256
|
coderabbit_integration:
|
|
257
257
|
enabled: true
|
|
258
|
+
# CodeRabbit mechanics (WSL execution, timeout, commands, report location) are
|
|
259
|
+
# single-sourced in .sinapse-ai/core-config.yaml + .claude/rules/coderabbit-integration.md.
|
|
260
|
+
# Only this agent's review focus/policy lives here — see Story rodada2-m6.
|
|
258
261
|
focus: SQL quality, schema design, query performance, RLS security, migration safety
|
|
259
262
|
|
|
260
263
|
when_to_use:
|
|
@@ -317,21 +320,6 @@ coderabbit_integration:
|
|
|
317
320
|
5. Document all MEDIUM/HIGH issues in migration notes
|
|
318
321
|
6. Update database-best-practices.md with patterns found
|
|
319
322
|
|
|
320
|
-
execution_guidelines: |
|
|
321
|
-
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
322
|
-
|
|
323
|
-
**How to Execute:**
|
|
324
|
-
1. Use 'wsl bash -c' wrapper for all commands
|
|
325
|
-
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
326
|
-
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
327
|
-
|
|
328
|
-
**Timeout:** 15 minutes (900000ms) - CodeRabbit reviews take 7-30 min
|
|
329
|
-
|
|
330
|
-
**Error Handling:**
|
|
331
|
-
- If "coderabbit: command not found" → verify installation in WSL
|
|
332
|
-
- If timeout → increase timeout, review is still processing
|
|
333
|
-
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
334
|
-
|
|
335
323
|
database_patterns_to_check:
|
|
336
324
|
security:
|
|
337
325
|
- SQL injection vulnerabilities (dynamic SQL, string concat)
|
|
@@ -279,11 +279,9 @@ dependencies:
|
|
|
279
279
|
|
|
280
280
|
coderabbit_integration:
|
|
281
281
|
enabled: true
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
installation_path: ~/.local/bin/coderabbit
|
|
286
|
-
working_directory: ${PROJECT_ROOT}
|
|
282
|
+
# CodeRabbit mechanics (WSL execution, timeout, commands, report location) are
|
|
283
|
+
# single-sourced in .sinapse-ai/core-config.yaml + .claude/rules/coderabbit-integration.md.
|
|
284
|
+
# Only this agent's review focus/policy lives here — see Story rodada2-m6.
|
|
287
285
|
usage:
|
|
288
286
|
- Pre-commit quality check - run before marking story complete
|
|
289
287
|
- Catch issues early - find bugs, security issues, code smells during development
|
|
@@ -330,25 +328,6 @@ dependencies:
|
|
|
330
328
|
- HALT and report to user
|
|
331
329
|
- DO NOT mark story complete
|
|
332
330
|
|
|
333
|
-
commands:
|
|
334
|
-
dev_pre_commit_uncommitted: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t uncommitted'"
|
|
335
|
-
execution_guidelines: |
|
|
336
|
-
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
337
|
-
|
|
338
|
-
**How to Execute:**
|
|
339
|
-
1. Use 'wsl bash -c' wrapper for all commands
|
|
340
|
-
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
341
|
-
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
342
|
-
|
|
343
|
-
**Timeout:** 15 minutes (900000ms) - CodeRabbit reviews take 7-30 min
|
|
344
|
-
|
|
345
|
-
**Self-Healing:** Max 2 iterations for CRITICAL issues only
|
|
346
|
-
|
|
347
|
-
**Error Handling:**
|
|
348
|
-
- If "coderabbit: command not found" → verify wsl_config.installation_path
|
|
349
|
-
- If timeout → increase timeout, review is still processing
|
|
350
|
-
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
351
|
-
report_location: docs/qa/coderabbit-reports/
|
|
352
331
|
integration_point: 'Part of story completion workflow in develop-story.md'
|
|
353
332
|
|
|
354
333
|
decision_logging:
|
|
@@ -306,11 +306,9 @@ dependencies:
|
|
|
306
306
|
|
|
307
307
|
coderabbit_integration:
|
|
308
308
|
enabled: true
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
installation_path: ~/.local/bin/coderabbit
|
|
313
|
-
working_directory: ${PROJECT_ROOT}
|
|
309
|
+
# CodeRabbit mechanics (WSL execution, timeout, commands, report location) are
|
|
310
|
+
# single-sourced in .sinapse-ai/core-config.yaml + .claude/rules/coderabbit-integration.md.
|
|
311
|
+
# Only this agent's review focus/policy lives here — see Story rodada2-m6.
|
|
314
312
|
usage:
|
|
315
313
|
- Pre-PR quality gate - run before creating pull requests
|
|
316
314
|
- Pre-push validation - verify code quality before push
|
|
@@ -321,25 +319,6 @@ dependencies:
|
|
|
321
319
|
HIGH: Warn user, recommend fix before merge
|
|
322
320
|
MEDIUM: Document in PR description, create follow-up issue
|
|
323
321
|
LOW: Optional improvements, note in comments
|
|
324
|
-
commands:
|
|
325
|
-
pre_push_uncommitted: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t uncommitted'"
|
|
326
|
-
pre_pr_against_main: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only --base main'"
|
|
327
|
-
pre_commit_committed: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t committed'"
|
|
328
|
-
execution_guidelines: |
|
|
329
|
-
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
330
|
-
|
|
331
|
-
**How to Execute:**
|
|
332
|
-
1. Use 'wsl bash -c' wrapper for all commands
|
|
333
|
-
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
334
|
-
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
335
|
-
|
|
336
|
-
**Timeout:** 15 minutes (900000ms) - CodeRabbit reviews take 7-30 min
|
|
337
|
-
|
|
338
|
-
**Error Handling:**
|
|
339
|
-
- If "coderabbit: command not found" → verify wsl_config.installation_path
|
|
340
|
-
- If timeout → increase timeout, review is still processing
|
|
341
|
-
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
342
|
-
report_location: docs/qa/coderabbit-reports/
|
|
343
322
|
integration_point: 'Runs automatically in *pre-push and *create-pr workflows'
|
|
344
323
|
|
|
345
324
|
pr_automation:
|
|
@@ -582,7 +561,7 @@ gt stack sync # Keeps stack synced with main
|
|
|
582
561
|
|
|
583
562
|
- `*pre-push` - Run all quality gates
|
|
584
563
|
- `*push` - Push changes after quality gates
|
|
585
|
-
- `*health-check` - Run health diagnostic (
|
|
564
|
+
- `*health-check` - Run health diagnostic (16 checks + governance)
|
|
586
565
|
- `*sync-registry` - Sync entity registry (incremental, --full, --heal)
|
|
587
566
|
|
|
588
567
|
**GitHub Operations:**
|
|
@@ -227,11 +227,9 @@ dependencies:
|
|
|
227
227
|
|
|
228
228
|
coderabbit_integration:
|
|
229
229
|
enabled: true
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
installation_path: ~/.local/bin/coderabbit
|
|
234
|
-
working_directory: ${PROJECT_ROOT}
|
|
230
|
+
# CodeRabbit mechanics (WSL execution, timeout, commands, report location) are
|
|
231
|
+
# single-sourced in .sinapse-ai/core-config.yaml + .claude/rules/coderabbit-integration.md.
|
|
232
|
+
# Only this agent's review focus/policy lives here — see Story rodada2-m6.
|
|
235
233
|
usage:
|
|
236
234
|
- Pre-review automated scanning before human QA analysis
|
|
237
235
|
- Security vulnerability detection (SQL injection, XSS, hardcoded secrets)
|
|
@@ -292,26 +290,6 @@ dependencies:
|
|
|
292
290
|
- Set gate decision: FAIL
|
|
293
291
|
- HALT and require human intervention
|
|
294
292
|
|
|
295
|
-
commands:
|
|
296
|
-
qa_pre_review_uncommitted: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t uncommitted'"
|
|
297
|
-
qa_story_review_committed: "wsl bash -c 'cd ${PROJECT_ROOT} && ~/.local/bin/coderabbit --prompt-only -t committed --base main'"
|
|
298
|
-
execution_guidelines: |
|
|
299
|
-
CRITICAL: CodeRabbit CLI is installed in WSL, not Windows.
|
|
300
|
-
|
|
301
|
-
**How to Execute:**
|
|
302
|
-
1. Use 'wsl bash -c' wrapper for all commands
|
|
303
|
-
2. Navigate to project directory in WSL path format (/mnt/c/...)
|
|
304
|
-
3. Use full path to coderabbit binary (~/.local/bin/coderabbit)
|
|
305
|
-
|
|
306
|
-
**Timeout:** 30 minutes (1800000ms) - Full review may take longer
|
|
307
|
-
|
|
308
|
-
**Self-Healing:** Max 3 iterations for CRITICAL and HIGH issues
|
|
309
|
-
|
|
310
|
-
**Error Handling:**
|
|
311
|
-
- If "coderabbit: command not found" → verify wsl_config.installation_path
|
|
312
|
-
- If timeout → increase timeout, review is still processing
|
|
313
|
-
- If "not authenticated" → user needs to run: wsl bash -c '~/.local/bin/coderabbit auth status'
|
|
314
|
-
report_location: docs/qa/coderabbit-reports/
|
|
315
293
|
integration_point: 'Runs automatically in *review and *gate workflows'
|
|
316
294
|
|
|
317
295
|
git_restrictions:
|
|
@@ -185,7 +185,7 @@ Grep(pattern="TODO", head_limit=10)
|
|
|
185
185
|
|
|
186
186
|
## Quick Reference: Context Budget
|
|
187
187
|
|
|
188
|
-
For a 200K token context window:
|
|
188
|
+
For a 200K token context window (example — current frontier windows reach 1M; see token-economy rule):
|
|
189
189
|
|
|
190
190
|
| Allocation | Tokens | % |
|
|
191
191
|
|-----------|--------|---|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# SINAPSE Framework - Livro de Ouro v4.2 (Complete)
|
|
2
2
|
|
|
3
|
+
> **Nota histórica (2026-07-04):** este é um documento de VISÃO da era V2.x. A arquitetura de
|
|
4
|
+
> pacotes com escopo `@sinapse/*` descrita aqui NUNCA foi publicada — o pacote real e único é
|
|
5
|
+
> **`sinapse-ai`** no npm (`npx sinapse-ai install`). Mantido como registro de decisão/visão.
|
|
6
|
+
|
|
3
7
|
## O Sistema Operacional Definitivo para Orquestração de Agentes IA
|
|
4
8
|
|
|
5
9
|
**Versão:** 2.1.0
|
|
@@ -606,10 +610,10 @@ npm install @sinapse/mcp-presets
|
|
|
606
610
|
|
|
607
611
|
```bash
|
|
608
612
|
# New project (Greenfield)
|
|
609
|
-
$ npx
|
|
613
|
+
$ npx sinapse-ai install
|
|
610
614
|
|
|
611
615
|
# Existing project (Brownfield)
|
|
612
|
-
$ npx
|
|
616
|
+
$ npx sinapse-ai update
|
|
613
617
|
```
|
|
614
618
|
|
|
615
619
|
### First Steps
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# 📘 SINAPSE v2.2 - Livro de Ouro (Future Vision)
|
|
2
2
|
|
|
3
|
+
> **Nota histórica (2026-07-04):** documento de VISÃO da era V2.x — o escopo `@sinapse/*` nunca
|
|
4
|
+
> foi publicado; o pacote real é **`sinapse-ai`** (`npx sinapse-ai install`).
|
|
5
|
+
|
|
3
6
|
**Version:** 2.2.0-with-memory-layer
|
|
4
7
|
**Date:** June 2026 (as-if-implemented)
|
|
5
8
|
**Status:** Production Release
|
|
@@ -761,7 +764,7 @@ Features:
|
|
|
761
764
|
1. ✅ Read this summary (done!)
|
|
762
765
|
2. → Review [Memory Layer Architecture](#memory-layer)
|
|
763
766
|
3. → Review [Agent Lightning Details](#agent-lightning)
|
|
764
|
-
4. → Upgrade: `npx
|
|
767
|
+
4. → Upgrade: `npx sinapse-ai update`
|
|
765
768
|
5. → Configure: `sinapse memory setup`
|
|
766
769
|
6. → Enable: `sinapse lightning enable`
|
|
767
770
|
|