sinapse-ai 1.14.0 → 1.16.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/.sinapse-ai/data/entity-registry.yaml +66 -16
- package/.sinapse-ai/development/tasks/spec-analyze.md +460 -0
- package/.sinapse-ai/development/tasks/spec-clarify.md +374 -0
- package/.sinapse-ai/development/templates/chrome-brain/rules/chrome-brain-autoload.md +4 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-brain-log.cjs +78 -0
- package/.sinapse-ai/development/templates/chrome-brain/scripts/chrome-ensure.cjs +108 -0
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +121 -7
- package/.sinapse-ai/install-manifest.yaml +34 -14
- package/.sinapse-ai/product/templates/spec-tmpl.md +18 -0
- package/.sinapse-ai/product/templates/statusline/agent-badges.json +862 -0
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +36 -2
- package/.sinapse-ai/product/templates/statusline/track-agent.cjs +119 -9
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +2 -6
- package/bin/commands/install.js +22 -44
- package/bin/lib/header.js +14 -10
- package/bin/lib/setup-statusline.js +12 -1
- package/bin/modules/chrome-brain-installer.js +124 -199
- package/package.json +1 -1
- package/scripts/gen-agent-badges.js +105 -0
|
@@ -4,8 +4,10 @@ workflow:
|
|
|
4
4
|
version: "1.0"
|
|
5
5
|
description: >-
|
|
6
6
|
Pipeline completo que transforma requisitos informais em especificações
|
|
7
|
-
executáveis. Orquestra
|
|
8
|
-
Adapta as fases baseado na complexidade do requisito.
|
|
7
|
+
executáveis. Orquestra as fases: Gather → Assess → Research → Write → Clarify →
|
|
8
|
+
Critique → Plan → Analyze. Adapta as fases baseado na complexidade do requisito.
|
|
9
|
+
Clarify desambigua a spec antes do QA gate; Analyze faz a consistência cruzada
|
|
10
|
+
(read-only) antes da implementação.
|
|
9
11
|
|
|
10
12
|
Part of the Auto-Claude ADE (Autonomous Development Engine) infrastructure.
|
|
11
13
|
|
|
@@ -51,11 +53,21 @@ workflow:
|
|
|
51
53
|
action: run_phase
|
|
52
54
|
phase: spec
|
|
53
55
|
|
|
56
|
+
- event: command
|
|
57
|
+
command: "*clarify-spec"
|
|
58
|
+
action: run_phase
|
|
59
|
+
phase: clarify
|
|
60
|
+
|
|
54
61
|
- event: command
|
|
55
62
|
command: "*critique-spec"
|
|
56
63
|
action: run_phase
|
|
57
64
|
phase: critique
|
|
58
65
|
|
|
66
|
+
- event: command
|
|
67
|
+
command: "*analyze-spec"
|
|
68
|
+
action: run_phase
|
|
69
|
+
phase: analyze
|
|
70
|
+
|
|
59
71
|
# ═══════════════════════════════════════════════════════════════════════════════════
|
|
60
72
|
# CONFIGURATION
|
|
61
73
|
# ═══════════════════════════════════════════════════════════════════════════════════
|
|
@@ -86,15 +98,17 @@ workflow:
|
|
|
86
98
|
|
|
87
99
|
phases:
|
|
88
100
|
# SIMPLE: Minimal pipeline for straightforward tasks
|
|
101
|
+
# Includes clarify (cheap, avoids rework) but skips analyze.
|
|
89
102
|
SIMPLE:
|
|
90
103
|
description: "Tarefa direta, padrões existentes"
|
|
91
104
|
steps:
|
|
92
105
|
- gather
|
|
93
106
|
- spec
|
|
107
|
+
- clarify
|
|
94
108
|
- critique
|
|
95
109
|
estimated_time: "30-60 min"
|
|
96
110
|
|
|
97
|
-
# STANDARD: Full pipeline for moderate complexity
|
|
111
|
+
# STANDARD: Full pipeline for moderate complexity (clarify + analyze)
|
|
98
112
|
STANDARD:
|
|
99
113
|
description: "Complexidade moderada, alguma pesquisa necessária"
|
|
100
114
|
steps:
|
|
@@ -102,11 +116,13 @@ workflow:
|
|
|
102
116
|
- assess
|
|
103
117
|
- research
|
|
104
118
|
- spec
|
|
119
|
+
- clarify
|
|
105
120
|
- critique
|
|
106
121
|
- plan
|
|
122
|
+
- analyze
|
|
107
123
|
estimated_time: "2-4 hours"
|
|
108
124
|
|
|
109
|
-
# COMPLEX: Extended pipeline with revision loop
|
|
125
|
+
# COMPLEX: Extended pipeline with revision loop (clarify + analyze)
|
|
110
126
|
COMPLEX:
|
|
111
127
|
description: "Alta complexidade, múltiplas iterações"
|
|
112
128
|
steps:
|
|
@@ -114,10 +130,12 @@ workflow:
|
|
|
114
130
|
- assess
|
|
115
131
|
- research
|
|
116
132
|
- spec
|
|
133
|
+
- clarify
|
|
117
134
|
- critique_1
|
|
118
135
|
- revise
|
|
119
136
|
- critique_2
|
|
120
137
|
- plan
|
|
138
|
+
- analyze
|
|
121
139
|
estimated_time: "4-8 hours"
|
|
122
140
|
flags:
|
|
123
141
|
- "Architectural review recommended"
|
|
@@ -293,12 +311,54 @@ workflow:
|
|
|
293
311
|
|
|
294
312
|
on_success:
|
|
295
313
|
log: "📝 Specification written: docs/stories/{storyId}/spec/spec.md"
|
|
296
|
-
next:
|
|
314
|
+
next: clarify
|
|
297
315
|
|
|
298
316
|
on_failure:
|
|
299
317
|
action: halt
|
|
300
318
|
error: "Failed to write specification"
|
|
301
319
|
|
|
320
|
+
# ═════════════════════════════════════════════════════════════════════════════════
|
|
321
|
+
# PHASE 4b: CLARIFY SPECIFICATION
|
|
322
|
+
# ═════════════════════════════════════════════════════════════════════════════════
|
|
323
|
+
|
|
324
|
+
- step: clarify
|
|
325
|
+
phase: "4b"
|
|
326
|
+
phase_name: "Clarify Specification"
|
|
327
|
+
agent: pm
|
|
328
|
+
|
|
329
|
+
description: >-
|
|
330
|
+
Interactive ambiguity resolution BEFORE the QA gate. Scans the spec across a
|
|
331
|
+
9-category coverage taxonomy, asks at most 5 questions (one at a time, guided by
|
|
332
|
+
Impact × Uncertainty), and integrates each answer atomically into spec.md
|
|
333
|
+
(## Clarifications section). Reduces costly downstream rework.
|
|
334
|
+
|
|
335
|
+
task: spec-clarify.md
|
|
336
|
+
|
|
337
|
+
inputs:
|
|
338
|
+
storyId: "{storyId}"
|
|
339
|
+
spec: "docs/stories/{storyId}/spec/spec.md"
|
|
340
|
+
requirements: "docs/stories/{storyId}/spec/requirements.json"
|
|
341
|
+
|
|
342
|
+
outputs:
|
|
343
|
+
- spec.md (updated)
|
|
344
|
+
|
|
345
|
+
elicit: true # Requires user interaction
|
|
346
|
+
|
|
347
|
+
gate: true # Order gate: complete BEFORE plan
|
|
348
|
+
blocking: false # Skippable with explicit rework-risk warning
|
|
349
|
+
|
|
350
|
+
on_success:
|
|
351
|
+
log: "💬 Clarification complete: {clarify.questionsAsked} questions resolved"
|
|
352
|
+
next: critique
|
|
353
|
+
|
|
354
|
+
on_skip:
|
|
355
|
+
log: "⚠️ Clarification skipped - downstream rework risk increases"
|
|
356
|
+
next: critique
|
|
357
|
+
|
|
358
|
+
on_failure:
|
|
359
|
+
action: continue
|
|
360
|
+
fallback: "Proceed to critique; flag open ambiguities as risks"
|
|
361
|
+
|
|
302
362
|
# ═════════════════════════════════════════════════════════════════════════════════
|
|
303
363
|
# PHASE 5: CRITIQUE SPECIFICATION
|
|
304
364
|
# ═════════════════════════════════════════════════════════════════════════════════
|
|
@@ -435,7 +495,50 @@ workflow:
|
|
|
435
495
|
|
|
436
496
|
on_success:
|
|
437
497
|
log: "📋 Implementation plan created"
|
|
438
|
-
|
|
498
|
+
next: analyze
|
|
499
|
+
|
|
500
|
+
# ═════════════════════════════════════════════════════════════════════════════════
|
|
501
|
+
# PHASE 7: ANALYZE CROSS-CONSISTENCY (final, READ-ONLY)
|
|
502
|
+
# ═════════════════════════════════════════════════════════════════════════════════
|
|
503
|
+
|
|
504
|
+
- step: analyze
|
|
505
|
+
phase: 7
|
|
506
|
+
phase_name: "Analyze Cross-Consistency"
|
|
507
|
+
agent: qa
|
|
508
|
+
|
|
509
|
+
description: >-
|
|
510
|
+
READ-ONLY cross-consistency gate. Cross-references spec ↔ plan ↔ tasks ↔ constitution
|
|
511
|
+
in 6 detection passes (Duplication, Ambiguity, Underspecification, Constitution Alignment,
|
|
512
|
+
Coverage Gaps, Inconsistency) and emits a findings table + coverage metrics. Does not
|
|
513
|
+
modify any file. CRITICAL findings (any constitution conflict) block implementation.
|
|
514
|
+
|
|
515
|
+
condition: "complexity.result !== 'SIMPLE'" # SIMPLE skips analyze
|
|
516
|
+
|
|
517
|
+
task: spec-analyze.md
|
|
518
|
+
|
|
519
|
+
inputs:
|
|
520
|
+
storyId: "{storyId}"
|
|
521
|
+
spec: "docs/stories/{storyId}/spec/spec.md"
|
|
522
|
+
plan: "docs/stories/{storyId}/spec/plan.json"
|
|
523
|
+
tasks: "docs/stories/{storyId}/spec/tasks.md"
|
|
524
|
+
constitution: ".sinapse-ai/constitution.md"
|
|
525
|
+
|
|
526
|
+
outputs:
|
|
527
|
+
- analyze-report.json
|
|
528
|
+
|
|
529
|
+
gate: true # Blocking gate
|
|
530
|
+
read_only: true # Never mutates artifacts
|
|
531
|
+
|
|
532
|
+
on_verdict:
|
|
533
|
+
PASS:
|
|
534
|
+
log: "✅ Analyze PASS (coverage: {analyze.metrics.coveragePct}%, 0 CRITICAL)"
|
|
535
|
+
action: continue
|
|
536
|
+
complete: true
|
|
537
|
+
|
|
538
|
+
BLOCKED:
|
|
539
|
+
log: "🛑 Analyze BLOCKED: {analyze.metrics.criticalCount} CRITICAL finding(s)"
|
|
540
|
+
action: halt
|
|
541
|
+
escalate_to: "@architect"
|
|
439
542
|
|
|
440
543
|
# ═══════════════════════════════════════════════════════════════════════════════════
|
|
441
544
|
# WORKFLOW COMPLETION
|
|
@@ -458,6 +561,7 @@ workflow:
|
|
|
458
561
|
• docs/stories/{storyId}/spec/research.json
|
|
459
562
|
• docs/stories/{storyId}/spec/spec.md
|
|
460
563
|
• docs/stories/{storyId}/spec/critique.json
|
|
564
|
+
• docs/stories/{storyId}/spec/analyze-report.json
|
|
461
565
|
|
|
462
566
|
📌 Next Steps:
|
|
463
567
|
• Review spec.md
|
|
@@ -470,11 +574,13 @@ workflow:
|
|
|
470
574
|
- research.json
|
|
471
575
|
- spec.md
|
|
472
576
|
- critique.json
|
|
577
|
+
- analyze-report.json
|
|
473
578
|
|
|
474
579
|
next_steps:
|
|
475
580
|
- "Review specification: docs/stories/{storyId}/spec/spec.md"
|
|
476
581
|
- "Start development: @developer *develop {storyId}"
|
|
477
582
|
- "View critique: docs/stories/{storyId}/spec/critique.json"
|
|
583
|
+
- "View analyze report: docs/stories/{storyId}/spec/analyze-report.json"
|
|
478
584
|
|
|
479
585
|
# ═══════════════════════════════════════════════════════════════════════════════════
|
|
480
586
|
# ERROR HANDLING
|
|
@@ -519,15 +625,21 @@ workflow:
|
|
|
519
625
|
state: research_complete
|
|
520
626
|
- after: spec
|
|
521
627
|
state: spec_written
|
|
628
|
+
- after: clarify
|
|
629
|
+
state: clarification_complete
|
|
522
630
|
- after: critique
|
|
523
631
|
state: critique_complete
|
|
632
|
+
- after: plan
|
|
633
|
+
state: plan_complete
|
|
524
634
|
|
|
525
635
|
resume_from:
|
|
526
636
|
requirements_gathered: assess
|
|
527
637
|
complexity_assessed: research
|
|
528
638
|
research_complete: spec
|
|
529
|
-
spec_written:
|
|
639
|
+
spec_written: clarify
|
|
640
|
+
clarification_complete: critique
|
|
530
641
|
critique_complete: plan
|
|
642
|
+
plan_complete: analyze
|
|
531
643
|
|
|
532
644
|
# ═══════════════════════════════════════════════════════════════════════════════════
|
|
533
645
|
# INTEGRATION
|
|
@@ -568,7 +680,9 @@ workflow:
|
|
|
568
680
|
- spec-assess-complexity.md
|
|
569
681
|
- spec-research-dependencies.md
|
|
570
682
|
- spec-write-spec.md
|
|
683
|
+
- spec-clarify.md
|
|
571
684
|
- spec-critique.md
|
|
685
|
+
- spec-analyze.md
|
|
572
686
|
tags:
|
|
573
687
|
- spec-pipeline
|
|
574
688
|
- workflow
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 1.
|
|
10
|
+
version: 1.16.0
|
|
11
11
|
generator: scripts/generate-install-manifest.js
|
|
12
|
-
file_count:
|
|
12
|
+
file_count: 1152
|
|
13
13
|
files:
|
|
14
14
|
- path: cli/commands/config/index.js
|
|
15
15
|
hash: sha256:bfa83cb1dc111b0b30dd298dc0abc2150b73f939b6cd4458effa8e6d407bc9e2
|
|
@@ -1344,9 +1344,9 @@ files:
|
|
|
1344
1344
|
type: data
|
|
1345
1345
|
size: 9602
|
|
1346
1346
|
- path: data/entity-registry.yaml
|
|
1347
|
-
hash: sha256:
|
|
1347
|
+
hash: sha256:5afcfac2ecfcbda210a85f77a18829c23a0dd80a0be5fc42c5081d419a3ac73b
|
|
1348
1348
|
type: data
|
|
1349
|
-
size:
|
|
1349
|
+
size: 549348
|
|
1350
1350
|
- path: data/learned-patterns.yaml
|
|
1351
1351
|
hash: sha256:1a4cd045c087b9dfd7046ff1464a9d2edb85fba77cf0b6fba14f4bb9004c741e
|
|
1352
1352
|
type: data
|
|
@@ -2547,10 +2547,18 @@ files:
|
|
|
2547
2547
|
hash: sha256:702907ff987ef8db70bc7dba93aadcf40ba9d080321f8305dad7f9e2de10d1b2
|
|
2548
2548
|
type: task
|
|
2549
2549
|
size: 18077
|
|
2550
|
+
- path: development/tasks/spec-analyze.md
|
|
2551
|
+
hash: sha256:5a73974cb88ca58274f907416839e8c864a3e35cf832668d3b2c582de3f6b26a
|
|
2552
|
+
type: task
|
|
2553
|
+
size: 11675
|
|
2550
2554
|
- path: development/tasks/spec-assess-complexity.md
|
|
2551
2555
|
hash: sha256:7ef9f00dad98113dcf6c273e0d56333aece4fa892c91fff8935d3c3c552748ae
|
|
2552
2556
|
type: task
|
|
2553
2557
|
size: 10451
|
|
2558
|
+
- path: development/tasks/spec-clarify.md
|
|
2559
|
+
hash: sha256:e4eee7ea80f146a697433462287aaff138536b148705337f2f32d66d2a83db5c
|
|
2560
|
+
type: task
|
|
2561
|
+
size: 8932
|
|
2554
2562
|
- path: development/tasks/spec-critique.md
|
|
2555
2563
|
hash: sha256:7d0243ab61b08e5c70fdd12ead90a2403b7dd3659ce3a68e54f4274b3347b07a
|
|
2556
2564
|
type: task
|
|
@@ -2708,9 +2716,13 @@ files:
|
|
|
2708
2716
|
type: template
|
|
2709
2717
|
size: 2048
|
|
2710
2718
|
- path: development/templates/chrome-brain/rules/chrome-brain-autoload.md
|
|
2711
|
-
hash: sha256:
|
|
2719
|
+
hash: sha256:ff4eb0dfda916b7441e020ff722336c46d87ef47234f08cb2fef009cb5aaa467
|
|
2720
|
+
type: template
|
|
2721
|
+
size: 2540
|
|
2722
|
+
- path: development/templates/chrome-brain/scripts/chrome-brain-log.cjs
|
|
2723
|
+
hash: sha256:baddce09225c16076a67afc0029e89dafcf9dcebbcef39a51c53dd9e63390710
|
|
2712
2724
|
type: template
|
|
2713
|
-
size:
|
|
2725
|
+
size: 2268
|
|
2714
2726
|
- path: development/templates/chrome-brain/scripts/chrome-brain-log.sh
|
|
2715
2727
|
hash: sha256:d72c54d9b67745fac667f1fb05387f11b9bfc55b8bebb64cca67c9a44171d436
|
|
2716
2728
|
type: template
|
|
@@ -2719,6 +2731,10 @@ files:
|
|
|
2719
2731
|
hash: sha256:5907538f71757df0954533507e5efac4ebb4c18f92fb93cd305b61fa1c379809
|
|
2720
2732
|
type: template
|
|
2721
2733
|
size: 7207
|
|
2734
|
+
- path: development/templates/chrome-brain/scripts/chrome-ensure.cjs
|
|
2735
|
+
hash: sha256:7ff77f28a86fa655e89f292b6b5ebe51a20befb4faf7be99d221b338388472ba
|
|
2736
|
+
type: template
|
|
2737
|
+
size: 3578
|
|
2722
2738
|
- path: development/templates/chrome-brain/scripts/chrome-ensure.sh
|
|
2723
2739
|
hash: sha256:eab2018b622c8550381c6d4555f4496595859b98401dff63a3036abf8433ebfa
|
|
2724
2740
|
type: template
|
|
@@ -2980,9 +2996,9 @@ files:
|
|
|
2980
2996
|
type: workflow
|
|
2981
2997
|
size: 2606
|
|
2982
2998
|
- path: development/workflows/spec-pipeline.yaml
|
|
2983
|
-
hash: sha256:
|
|
2999
|
+
hash: sha256:d0da3844cdf7e71c59a13b22e6c715b23a0ae55337aaa6dfc7248de99bdc6ff4
|
|
2984
3000
|
type: workflow
|
|
2985
|
-
size:
|
|
3001
|
+
size: 28350
|
|
2986
3002
|
- path: development/workflows/story-development-cycle.yaml
|
|
2987
3003
|
hash: sha256:137fc6d2a7aedb50bbebfa045e877c382399604708ce03477f358f282b76727f
|
|
2988
3004
|
type: workflow
|
|
@@ -4180,25 +4196,29 @@ files:
|
|
|
4180
4196
|
type: template
|
|
4181
4197
|
size: 16666
|
|
4182
4198
|
- path: product/templates/spec-tmpl.md
|
|
4183
|
-
hash: sha256:
|
|
4199
|
+
hash: sha256:58207c62ca73c18d9584232bc62ec43ee5f11dc4337d231eee5bf2cc87d15b78
|
|
4184
4200
|
type: template
|
|
4185
|
-
size:
|
|
4201
|
+
size: 4220
|
|
4186
4202
|
- path: product/templates/state-persistence-tmpl.yaml
|
|
4187
4203
|
hash: sha256:3f8bb48230df89cf987330f7c9aff19edbc35a65a9cbff799e28480155dd8919
|
|
4188
4204
|
type: template
|
|
4189
4205
|
size: 6764
|
|
4206
|
+
- path: product/templates/statusline/agent-badges.json
|
|
4207
|
+
hash: sha256:9a926dc37107a34880aef351f540f3425f1ec60e77870f7f319980ee53576ead
|
|
4208
|
+
type: template
|
|
4209
|
+
size: 18475
|
|
4190
4210
|
- path: product/templates/statusline/statusline-script.js
|
|
4191
|
-
hash: sha256:
|
|
4211
|
+
hash: sha256:5860eecf6b02701666ff42f858bf25e3524f124210ef70d2b5243b829e893bb8
|
|
4192
4212
|
type: template
|
|
4193
|
-
size:
|
|
4213
|
+
size: 8748
|
|
4194
4214
|
- path: product/templates/statusline/track-agent-clear.cjs
|
|
4195
4215
|
hash: sha256:3cda606de2463374e60440ba6cae9ca98e39b782b19c6ae39aa7569a1b211f09
|
|
4196
4216
|
type: template
|
|
4197
4217
|
size: 2137
|
|
4198
4218
|
- path: product/templates/statusline/track-agent.cjs
|
|
4199
|
-
hash: sha256:
|
|
4219
|
+
hash: sha256:0194c9a5750ed9e7a11fb5de21060021f64636f21e8b91039543abccaf6a4c86
|
|
4200
4220
|
type: template
|
|
4201
|
-
size:
|
|
4221
|
+
size: 10990
|
|
4202
4222
|
- path: product/templates/story-tmpl.yaml
|
|
4203
4223
|
hash: sha256:43a050de5ef51f53f890fd20f77ac567b297a40597f467b3bc6d00c8193c7fa6
|
|
4204
4224
|
type: template
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
> **Marking uncertainty:** For any point that is genuinely undefined, inline the marker
|
|
11
|
+
> `[NEEDS CLARIFICATION: <the specific question>]` instead of guessing. Ceiling: **3 markers**.
|
|
12
|
+
> If more than 3 are needed, the spec is too ambiguous to proceed — run the clarify gate
|
|
13
|
+
> (`*clarify-spec {story-id}`) before continuing.
|
|
14
|
+
|
|
10
15
|
## 1. Overview
|
|
11
16
|
|
|
12
17
|
### 1.1 Summary
|
|
@@ -63,6 +68,19 @@
|
|
|
63
68
|
- {{this}}
|
|
64
69
|
{{/each}}
|
|
65
70
|
|
|
71
|
+
### 2.5 Success Criteria
|
|
72
|
+
|
|
73
|
+
> Measurable, **technology-agnostic** outcomes — describe the observable result, never the
|
|
74
|
+
> implementation. No tool, framework, or library names here (e.g. "user completes checkout in
|
|
75
|
+
> < 3s", not "Stripe call returns in < 3s").
|
|
76
|
+
|
|
77
|
+
| ID | Success Criterion | How it's measured |
|
|
78
|
+
| ------ | ------------------------------------------ | ----------------- |
|
|
79
|
+
|
|
80
|
+
{{#each success-criteria}}
|
|
81
|
+
| {{id}} | {{criterion}} | {{measure}} |
|
|
82
|
+
{{/each}}
|
|
83
|
+
|
|
66
84
|
---
|
|
67
85
|
|
|
68
86
|
## 3. Technical Approach
|