sinapse-ai 1.20.1 → 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.
Files changed (122) hide show
  1. package/.claude/rules/coderabbit-integration.md +6 -0
  2. package/.claude/rules/documentation-first-reference.md +146 -0
  3. package/.claude/rules/documentation-first.md +27 -119
  4. package/.claude/rules/mandatory-delegation-reference.md +93 -0
  5. package/.claude/rules/mandatory-delegation.md +29 -93
  6. package/.claude/rules/project-intelligence-reference.md +159 -0
  7. package/.claude/rules/project-intelligence.md +37 -155
  8. package/.claude/rules/safe-collaboration-reference.md +163 -0
  9. package/.claude/rules/safe-collaboration.md +32 -173
  10. package/.sinapse-ai/core/doctor/checks/index.js +1 -1
  11. package/.sinapse-ai/core/execution/build-orchestrator.js +4 -3
  12. package/.sinapse-ai/core/execution/subagent-dispatcher.js +2 -2
  13. package/.sinapse-ai/core/ideation/ideation-engine.js +2 -1
  14. package/.sinapse-ai/core/orchestration/brownfield-progress.js +219 -0
  15. package/.sinapse-ai/core/orchestration/cli-commands.js +13 -0
  16. package/.sinapse-ai/core/orchestration/doc-first-resolver.js +96 -2
  17. package/.sinapse-ai/core/orchestration/executors/epic-3-executor.js +15 -2
  18. package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +3 -1
  19. package/.sinapse-ai/core/orchestration/greenfield-handler.js +97 -0
  20. package/.sinapse-ai/core/orchestration/index.js +5 -0
  21. package/.sinapse-ai/core/orchestration/spec-complexity.js +141 -0
  22. package/.sinapse-ai/core/orchestration/workflow-executor.js +17 -1
  23. package/.sinapse-ai/core-config.yaml +30 -0
  24. package/.sinapse-ai/data/entity-registry.yaml +81 -35
  25. package/.sinapse-ai/development/agents/architect.md +3 -15
  26. package/.sinapse-ai/development/agents/data-engineer.md +3 -15
  27. package/.sinapse-ai/development/agents/developer.md +3 -24
  28. package/.sinapse-ai/development/agents/devops.md +4 -25
  29. package/.sinapse-ai/development/agents/quality-gate.md +3 -25
  30. package/.sinapse-ai/development/knowledge-base/token-economy-guide.md +1 -1
  31. package/.sinapse-ai/development/tasks/execute-epic-plan.md +3 -0
  32. package/.sinapse-ai/development/tasks/resolve-github-issue.md +1 -1
  33. package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +16 -0
  34. package/.sinapse-ai/development/workflows/epic-orchestration.yaml +11 -0
  35. package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -2
  36. package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.2-SUMMARY.md +4 -1
  37. package/.sinapse-ai/install-manifest.yaml +58 -50
  38. package/.sinapse-ai/product/templates/story-tmpl.yaml +11 -6
  39. package/.sinapse-ai/quality/judge-calibration/README.md +75 -0
  40. package/.sinapse-ai/quality/judge-calibration/calibration-log.md +70 -0
  41. package/.sinapse-ai/quality/judge-calibration/golden-set.json +105 -0
  42. package/.sinapse-ai/quality/judge-calibration/scenarios.json +90 -0
  43. package/CHANGELOG.md +55 -10
  44. package/README.en.md +1 -1
  45. package/README.md +6 -6
  46. package/bin/sinapse-minimal.js +5 -4
  47. package/docs/community/README-community-snippet-core.md +1 -1
  48. package/docs/community/README-community-snippet-mcp.md +2 -2
  49. package/docs/framework/README.md +2 -2
  50. package/docs/framework/architecture-overview.md +2 -2
  51. package/docs/framework/core-architecture.md +1 -1
  52. package/docs/framework/feature-process.md +5 -5
  53. package/docs/framework/guiding-principles.md +1 -1
  54. package/docs/framework/roadmap.md +4 -4
  55. package/docs/framework/source-tree.md +1 -1
  56. package/docs/framework/versioning-and-releases.md +1 -1
  57. package/docs/getting-started.md +1 -1
  58. package/docs/guides/agent-selection-guide.md +1 -1
  59. package/docs/guides/agents/traces/README.md +1 -1
  60. package/docs/guides/config-migration-guide.md +1 -1
  61. package/docs/guides/development-setup.md +1 -1
  62. package/docs/guides/docker-mcp-setup.md +5 -5
  63. package/docs/guides/getting-started.md +1 -1
  64. package/docs/guides/git-workflow-guide.md +3 -3
  65. package/docs/guides/ide-integration.md +3 -3
  66. package/docs/guides/ide-sync-guide.md +1 -1
  67. package/docs/guides/mcp/desktop-commander.md +2 -2
  68. package/docs/guides/mcp/docker-gateway-tutorial.md +1 -1
  69. package/docs/guides/mcp-global-setup.md +3 -3
  70. package/docs/guides/memory-intelligence-system.md +10 -10
  71. package/docs/guides/meta-agent-commands.md +1 -1
  72. package/docs/guides/quality-gates.md +1 -1
  73. package/docs/guides/security-hardening.md +1 -1
  74. package/docs/guides/service-discovery.md +1 -1
  75. package/docs/guides/squad-examples/README.md +1 -1
  76. package/docs/guides/squads-guide.md +1 -1
  77. package/docs/guides/testing-guide.md +2 -2
  78. package/docs/guides/user-guide.md +22 -22
  79. package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +3 -3
  80. package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +1 -1
  81. package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +2 -2
  82. package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +3 -3
  83. package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +3 -3
  84. package/docs/guides/workflows/pro-developer-workflow.md +2 -2
  85. package/docs/guides/workflows-guide.md +1 -1
  86. package/docs/guides/workflows-overview.md +1 -1
  87. package/docs/installation/npx-install.md +1 -1
  88. package/docs/installation/uninstallation.md +1 -1
  89. package/docs/installation/v4-quick-start.md +1 -1
  90. package/docs/pt/guides/user-guide.md +18 -18
  91. package/docs/pt/security.md +2 -2
  92. package/docs/security/overview.md +2 -2
  93. package/docs/security/security-best-practices.md +1 -1
  94. package/docs/sinapse-agent-flows/architect-system.md +1 -1
  95. package/docs/sinapse-agent-flows/data-engineer-system.md +1 -1
  96. package/docs/sinapse-agent-flows/dev-system.md +1 -1
  97. package/docs/sinapse-agent-flows/devops-system.md +2 -2
  98. package/docs/sinapse-agent-flows/qa-system.md +1 -1
  99. package/docs/sinapse-agent-flows/sm-system.md +2 -2
  100. package/docs/sinapse-agent-flows/snps-orqx-system.md +4 -4
  101. package/docs/sinapse-agent-flows/squad-creator-system.md +1 -1
  102. package/docs/sinapse-workflows/README.md +2 -2
  103. package/docs/sinapse-workflows/brownfield-discovery-workflow.md +3 -3
  104. package/docs/sinapse-workflows/brownfield-service-workflow.md +3 -3
  105. package/docs/sinapse-workflows/greenfield-ui-workflow.md +2 -2
  106. package/docs/sinapse-workflows/spec-pipeline-workflow.md +3 -3
  107. package/docs/sinapse-workflows/story-development-cycle-workflow.md +3 -3
  108. package/docs/troubleshooting.md +1 -1
  109. package/package.json +7 -1
  110. package/scripts/calibrate-judge.js +134 -0
  111. package/scripts/eval-e2e.js +149 -0
  112. package/scripts/validate-all.js +8 -0
  113. package/scripts/validate-article-iv.js +289 -0
  114. package/scripts/validate-constitution.js +58 -0
  115. package/scripts/validate-evals.js +9 -2
  116. package/scripts/validate-story-acs.js +174 -0
  117. package/scripts/validate-tool-descriptions.js +128 -0
  118. package/scripts/wave-gate.js +207 -0
  119. package/squads/claude-code-mastery/agents/project-integrator.md +3 -10
  120. package/squads/claude-code-mastery/knowledge-base/context-window-optimization.md +2 -2
  121. package/squads/claude-code-mastery/knowledge-base/memory-systems-reference.md +1 -1
  122. package/squads/squad-copy/knowledge-base/ai-copy-human-loop-canon.md +1 -1
@@ -1,7 +1,7 @@
1
1
  metadata:
2
2
  version: 1.0.0
3
- lastUpdated: '2026-07-03T06:58:13.504Z'
4
- entityCount: 813
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:bf8fe3e86235e6971c44d2a3e9e1036f21c2d6653ac878af441097e8c3e8bd48
653
- lastVerified: '2026-06-15T01:36:42.621Z'
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
@@ -2959,8 +2959,8 @@ entities:
2959
2959
  score: 0.8
2960
2960
  constraints: []
2961
2961
  extensionPoints: []
2962
- checksum: sha256:a505eb0429e05d6c38e0836d7d60e98815aa70f10c855c0936dfde6731682343
2963
- lastVerified: '2026-07-03T06:55:48.479Z'
2962
+ checksum: sha256:222b56327fd175c90bea4c89e3a1b82e27e94c28085a74530489682483038edd
2963
+ lastVerified: '2026-07-03T09:35:03.116Z'
2964
2964
  export-design-tokens-dtcg:
2965
2965
  path: .sinapse-ai/development/tasks/export-design-tokens-dtcg.md
2966
2966
  layer: L2
@@ -5033,8 +5033,8 @@ entities:
5033
5033
  score: 0.8
5034
5034
  constraints: []
5035
5035
  extensionPoints: []
5036
- checksum: sha256:e4773924e8452f0d55712eca51ed1168c916f1864e1d2791830c926bfe9ae167
5037
- lastVerified: '2026-06-15T00:26:26.290Z'
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:43a050de5ef51f53f890fd20f77ac567b297a40597f467b3bc6d00c8193c7fa6
7332
- lastVerified: '2026-06-15T00:26:26.326Z'
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:56bbde48aaa4eb0de3ea7c95d5d1584a9ec8b753931097102fa696fb72d11848
9799
- lastVerified: '2026-07-02T22:41:00.573Z'
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:c291a8d9dea32273577b5c726626f4bc7a94b6aa67a52c9f312d6448ca6ab910
9890
- lastVerified: '2026-06-18T04:29:34.042Z'
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:e4973a25c61101d278f102e4ed449421e50d876a274b2c4c2b150d00df97cb39
10978
- lastVerified: '2026-06-28T23:34:42.375Z'
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
@@ -11582,6 +11582,27 @@ entities:
11582
11582
  extensionPoints: []
11583
11583
  checksum: sha256:d4ad190353fc751e874bad5b3013137dcccfc84100edd6cead80c8fa5e83af11
11584
11584
  lastVerified: '2026-06-30T18:30:20.187Z'
11585
+ brownfield-progress:
11586
+ path: .sinapse-ai/core/orchestration/brownfield-progress.js
11587
+ layer: L1
11588
+ type: module
11589
+ purpose: Entity at .sinapse-ai\core\orchestration\brownfield-progress.js
11590
+ keywords:
11591
+ - brownfield
11592
+ - progress
11593
+ usedBy:
11594
+ - workflow-executor
11595
+ dependencies:
11596
+ - doc-first-resolver
11597
+ externalDeps: []
11598
+ plannedDeps: []
11599
+ lifecycle: production
11600
+ adaptability:
11601
+ score: 0.4
11602
+ constraints: []
11603
+ extensionPoints: []
11604
+ checksum: sha256:919fa899b32e584842f370df84cfefdc5d450136f13699c1916d82f3e1833b7d
11605
+ lastVerified: '2026-07-03T08:52:22.751Z'
11585
11606
  build-command:
11586
11607
  path: .sinapse-ai/core/orchestration/build-command.js
11587
11608
  layer: L1
@@ -11642,8 +11663,8 @@ entities:
11642
11663
  score: 0.4
11643
11664
  constraints: []
11644
11665
  extensionPoints: []
11645
- checksum: sha256:a3fc11597f2dd2098ffa0b30acbe283506c4e64132c198ddf5c233c9791ab2b0
11646
- lastVerified: '2026-07-02T22:41:00.588Z'
11666
+ checksum: sha256:55fe402101964487a8ad91c99a3cf1f2af3832a58bda294244cf5abb46fd8654
11667
+ lastVerified: '2026-07-06T05:44:51.134Z'
11647
11668
  condition-evaluator:
11648
11669
  path: .sinapse-ai/core/orchestration/condition-evaluator.js
11649
11670
  layer: L1
@@ -11732,13 +11753,15 @@ entities:
11732
11753
  path: .sinapse-ai/core/orchestration/doc-first-resolver.js
11733
11754
  layer: L1
11734
11755
  type: module
11735
- purpose: Entity at .sinapse-ai\core\orchestration\doc-first-resolver.js
11756
+ purpose: /^#{1,4}\s*(description|descri[cç][aã]o)/im,
11736
11757
  keywords:
11737
11758
  - doc
11738
11759
  - first
11739
11760
  - resolver
11740
11761
  usedBy:
11762
+ - brownfield-progress
11741
11763
  - build-command
11764
+ - greenfield-handler
11742
11765
  - route-command
11743
11766
  dependencies:
11744
11767
  - greenfield-handler
@@ -11749,8 +11772,8 @@ entities:
11749
11772
  score: 0.4
11750
11773
  constraints: []
11751
11774
  extensionPoints: []
11752
- checksum: sha256:92a4170f3ed0b6b214608c80e17c8c6b1769a50b849532af4ae34db070a6931f
11753
- lastVerified: '2026-06-27T21:56:17.335Z'
11775
+ checksum: sha256:70ed2b0522825e74cdd229ee2e5c9a3908a026f229a7803edfee9aa7c8a69ec5
11776
+ lastVerified: '2026-07-06T05:44:51.137Z'
11754
11777
  epic-context-accumulator:
11755
11778
  path: .sinapse-ai/core/orchestration/epic-context-accumulator.js
11756
11779
  layer: L1
@@ -11825,6 +11848,7 @@ entities:
11825
11848
  usedBy: []
11826
11849
  dependencies:
11827
11850
  - epic-executor
11851
+ - spec-complexity
11828
11852
  externalDeps: []
11829
11853
  plannedDeps: []
11830
11854
  lifecycle: experimental
@@ -11832,8 +11856,8 @@ entities:
11832
11856
  score: 0.4
11833
11857
  constraints: []
11834
11858
  extensionPoints: []
11835
- checksum: sha256:da06c2b492104e453a8b18b1333bd2fd24123efb4933ab623045bff657b6d1d2
11836
- lastVerified: '2026-06-15T00:26:26.405Z'
11859
+ checksum: sha256:adbf4790f4381727be0a5e6842d05471f92bbf6475495a1241f8799a95559add
11860
+ lastVerified: '2026-07-06T05:44:51.138Z'
11837
11861
  epic-4-executor:
11838
11862
  path: .sinapse-ai/core/orchestration/executors/epic-4-executor.js
11839
11863
  layer: L1
@@ -11855,8 +11879,8 @@ entities:
11855
11879
  score: 0.4
11856
11880
  constraints: []
11857
11881
  extensionPoints: []
11858
- checksum: sha256:ffb124ce4751d3b6189cf03210eac9ee93be3754b760cfdb0188880f03ed928f
11859
- lastVerified: '2026-07-02T22:41:00.590Z'
11882
+ checksum: sha256:9cf89dad552b9ea369fd9274fe1d14d3860f5150154c73d30a7883c18ce89931
11883
+ lastVerified: '2026-07-06T05:44:51.139Z'
11860
11884
  epic-5-executor:
11861
11885
  path: .sinapse-ai/core/orchestration/executors/epic-5-executor.js
11862
11886
  layer: L1
@@ -11954,6 +11978,7 @@ entities:
11954
11978
  - bob-orchestrator
11955
11979
  - doc-first-resolver
11956
11980
  dependencies:
11981
+ - doc-first-resolver
11957
11982
  - workflow-executor
11958
11983
  - surface-checker
11959
11984
  - session-state
@@ -11964,8 +11989,8 @@ entities:
11964
11989
  score: 0.4
11965
11990
  constraints: []
11966
11991
  extensionPoints: []
11967
- checksum: sha256:330be2c76c3eb5a9a1f1c975837308802b8fc6fb871f9b584787ae4e2aa8fcb1
11968
- lastVerified: '2026-06-30T18:30:20.192Z'
11992
+ checksum: sha256:5f40108470bf2602e9ccb72c241ece5d1b9e801ba83e1864b8b1d5f34ae3e9e7
11993
+ lastVerified: '2026-07-03T08:39:26.309Z'
11969
11994
  lock-manager:
11970
11995
  path: .sinapse-ai/core/orchestration/lock-manager.js
11971
11996
  layer: L1
@@ -12144,6 +12169,26 @@ entities:
12144
12169
  extensionPoints: []
12145
12170
  checksum: sha256:321eee21d44c8c2548a4a989b4fd9bd13782dc95f917098d67c514e0886000f5
12146
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'
12147
12192
  subagent-prompt-builder:
12148
12193
  path: .sinapse-ai/core/orchestration/subagent-prompt-builder.js
12149
12194
  layer: L1
@@ -12247,6 +12292,7 @@ entities:
12247
12292
  - executor-assignment
12248
12293
  - session-state
12249
12294
  - gate-evaluator
12295
+ - brownfield-progress
12250
12296
  externalDeps: []
12251
12297
  plannedDeps: []
12252
12298
  lifecycle: production
@@ -12254,8 +12300,8 @@ entities:
12254
12300
  score: 0.4
12255
12301
  constraints: []
12256
12302
  extensionPoints: []
12257
- checksum: sha256:c7aca8a292efcf20185cd30d6a582c6239a55a9871e4e63ed1c49a6aebf35f7a
12258
- lastVerified: '2026-06-30T18:30:20.195Z'
12303
+ checksum: sha256:aa21bf15ac3fec1170b6bf5a446051c93718c069b5afa44d75ed5557427597a6
12304
+ lastVerified: '2026-07-03T08:52:22.755Z'
12259
12305
  workflow-orchestrator:
12260
12306
  path: .sinapse-ai/core/orchestration/workflow-orchestrator.js
12261
12307
  layer: L1
@@ -14202,8 +14248,8 @@ entities:
14202
14248
  score: 0.3
14203
14249
  constraints: []
14204
14250
  extensionPoints: []
14205
- checksum: sha256:9c566f77c11e95edc5537e13c5f5fda65949c4cef6a1f142f81d7b35347b808b
14206
- lastVerified: '2026-07-03T06:55:48.571Z'
14251
+ checksum: sha256:c0aa3c0b60809ef2fbbe4d7b27ae44e48817d5a7266b6c5d7d5f1d313329a2a0
14252
+ lastVerified: '2026-07-05T02:51:22.469Z'
14207
14253
  product-lead:
14208
14254
  path: .sinapse-ai/development/agents/product-lead.md
14209
14255
  layer: L2
@@ -15059,8 +15105,8 @@ entities:
15059
15105
  score: 0.4
15060
15106
  constraints: []
15061
15107
  extensionPoints: []
15062
- checksum: sha256:6de267f13f4fd996450ed228ac6bb109d4d75f91eef515c946d5885e464f4fc9
15063
- lastVerified: '2026-06-15T00:26:26.478Z'
15108
+ checksum: sha256:1cda821dcfd9dde90c00a9566588a6d5155d6265deaf926caf3477d9f8def921
15109
+ lastVerified: '2026-07-03T08:52:22.790Z'
15064
15110
  brownfield-fullstack:
15065
15111
  path: .sinapse-ai/development/workflows/brownfield-fullstack.yaml
15066
15112
  layer: L2
@@ -15206,8 +15252,8 @@ entities:
15206
15252
  score: 0.4
15207
15253
  constraints: []
15208
15254
  extensionPoints: []
15209
- checksum: sha256:f795fafa52113f199a186bbb00624c1d93491363f5198d46b6793fb9fee63a5d
15210
- lastVerified: '2026-07-03T06:55:48.584Z'
15255
+ checksum: sha256:fd22d105cfce45cf7202d947fcc145987ed07b8503ec8dfdd260fa5a43886345
15256
+ lastVerified: '2026-07-03T09:35:03.241Z'
15211
15257
  fast-track:
15212
15258
  path: .sinapse-ai/development/workflows/fast-track.yaml
15213
15259
  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
- installation_mode: wsl
283
- wsl_config:
284
- distribution: Ubuntu
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
- installation_mode: wsl
310
- wsl_config:
311
- distribution: Ubuntu
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 (15 checks + governance)
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
- installation_mode: wsl
231
- wsl_config:
232
- distribution: Ubuntu
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
  |-----------|--------|---|
@@ -835,6 +835,9 @@ Each story spawns the full development-cycle:
835
835
  ### epic-orchestration.yaml (template)
836
836
  Provides the generic wave pattern that this task instantiates with project-specific data from the EXECUTION.yaml.
837
837
 
838
+ ### Wave gate executável (scripts/wave-gate.js)
839
+ Gate determinístico por wave: para cada diretório de story, verifica testes verdes E arquivos de produto realmente escritos (um plano não é implementação) → APPROVED/NEEDS_WORK com exit code. Uso: `node scripts/wave-gate.js --stories <dir1> <dir2> [--test-cmd "..."]`. **Nota de honestidade (medição 2026-07-03):** o wrapper autônomo de waves foi REPROVADO pelo protocolo pré-registrado (ver `docs/epics/epic-onda3-estrutural/CHECKPOINT-waves-2026-07-03.md`) — para multi-story prefira o caminho nativo; o gate permanece como utilitário de verificação por lote.
840
+
838
841
  ### po-epic-context.md
839
842
  Used by @product-lead during story validation to understand accumulated changes across the epic.
840
843
 
@@ -340,7 +340,7 @@ steps:
340
340
 
341
341
  {body - what was changed and why}
342
342
 
343
- Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
343
+ Co-Authored-By: Claude <noreply@anthropic.com>
344
344
  type_map:
345
345
  BUG: fix
346
346
  FEATURE: feat
@@ -17,6 +17,22 @@ workflow:
17
17
  metadata:
18
18
  elicit: true
19
19
  confirmation_required: true
20
+ # Onda3-S3 (AF-20260702 item 3.3): phases 1-3 are declared parallelizable —
21
+ # their artifacts are independent (system/db/frontend). Autonomous fan-out
22
+ # of these phases is GATED on a measured pilot (same pre-registered gate as
23
+ # epic waves — docs/epics/epic-onda3-estrutural/README.md): until a
24
+ # measurement shows fan-out beating sequential handoff, execution stays
25
+ # manual per-agent. Deterministic progress + the Phase 7 QA gate come from
26
+ # core/orchestration/brownfield-progress.js (attached to the executeWorkflow
27
+ # handoff): resume points and the APPROVED/NEEDS WORK loop (max 2 reworks,
28
+ # then escalate) are measured from disk, not from prose.
29
+ parallelizable_phases: [1, 2, 3]
30
+ qa_gate:
31
+ phase: 7
32
+ review_artifact: docs/reviews/qa-review.md
33
+ verdicts: [APPROVED, NEEDS_WORK]
34
+ max_rework_cycles: 2
35
+ evaluator: .sinapse-ai/core/orchestration/brownfield-progress.js
20
36
  action_types:
21
37
  task-reference: "Action references an existing task file in .sinapse-ai/development/tasks/"
22
38
  agent-command: "Action references an agent-level command (e.g., *create-front-end-spec)"
@@ -35,6 +35,17 @@ workflow:
35
35
  metadata:
36
36
  elicit: true
37
37
  confirmation_required: true
38
+ # HONESTIDADE (Onda3-S5, medido 2026-07-03): este template descreve o
39
+ # PATTERN de waves, mas não existe executor de waves em produção — e o
40
+ # piloto medido (docs/epics/epic-onda3-estrutural/CHECKPOINT-waves-2026-07-03.md)
41
+ # REPROVOU o wrapper de waves pelo critério pré-registrado (empate em
42
+ # correctness, ~2x o custo vs caminho nativo). Para multi-story, use o
43
+ # caminho nativo. O gate determinístico de wave existe como utilitário
44
+ # standalone: scripts/wave-gate.js (testes verdes + arquivos realmente
45
+ # escritos, por story). Reabertura só via novo piloto pelo mesmo protocolo
46
+ # (tests/evals/epic-gates/PROTOCOL.md).
47
+ production_status: pattern-only-no-executor
48
+ wave_gate_utility: scripts/wave-gate.js
38
49
 
39
50
  # ═══════════════════════════════════════════════════════════════════════════════════
40
51
  # EXECUTION MODES
@@ -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 @caioimori/sinapse@latest init
613
+ $ npx sinapse-ai install
610
614
 
611
615
  # Existing project (Brownfield)
612
- $ npx @caioimori/sinapse migrate v2.0-to-v4.0.4
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 @caioimori/sinapse upgrade v2.2`
767
+ 4. → Upgrade: `npx sinapse-ai update`
765
768
  5. → Configure: `sinapse memory setup`
766
769
  6. → Enable: `sinapse lightning enable`
767
770