sinapse-ai 1.20.0 → 1.21.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 (80) hide show
  1. package/.sinapse-ai/core/atlas/render-html.js +10 -8
  2. package/.sinapse-ai/core/orchestration/brownfield-progress.js +219 -0
  3. package/.sinapse-ai/core/orchestration/doc-first-resolver.js +3 -0
  4. package/.sinapse-ai/core/orchestration/greenfield-handler.js +97 -0
  5. package/.sinapse-ai/core/orchestration/workflow-executor.js +17 -1
  6. package/.sinapse-ai/core/registry/service-registry.json +2 -32
  7. package/.sinapse-ai/data/entity-registry.yaml +473 -203
  8. package/.sinapse-ai/development/agents/analyst.md +18 -34
  9. package/.sinapse-ai/development/agents/architect.md +18 -34
  10. package/.sinapse-ai/development/agents/data-engineer.md +15 -28
  11. package/.sinapse-ai/development/agents/developer.md +0 -6
  12. package/.sinapse-ai/development/agents/devops.md +15 -28
  13. package/.sinapse-ai/development/agents/product-lead.md +18 -34
  14. package/.sinapse-ai/development/agents/project-lead.md +18 -34
  15. package/.sinapse-ai/development/agents/quality-gate.md +18 -34
  16. package/.sinapse-ai/development/agents/squad-creator.md +15 -27
  17. package/.sinapse-ai/development/agents/ux-design-expert.md +15 -27
  18. package/.sinapse-ai/development/scripts/populate-entity-registry.js +3 -0
  19. package/.sinapse-ai/development/tasks/execute-epic-plan.md +3 -4
  20. package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +16 -0
  21. package/.sinapse-ai/development/workflows/epic-orchestration.yaml +11 -1
  22. package/.sinapse-ai/git-hooks/lib/staged-secret-scan.js +3 -1
  23. package/.sinapse-ai/install-manifest.yaml +52 -80
  24. package/.sinapse-ai/product/templates/personalized-agent-template.md +3 -5
  25. package/.sinapse-ai/workflow-intelligence/index.js +3 -21
  26. package/AGENTS.md +2 -2
  27. package/CHANGELOG.md +56 -22
  28. package/bin/commands/install.js +5 -4
  29. package/bin/lib/command-generator.js +4 -4
  30. package/bin/lib/fs-utils.js +18 -0
  31. package/bin/lib/setup-statusline.js +3 -1
  32. package/bin/modules/chrome-brain-installer.js +5 -3
  33. package/bin/modules/mcp-installer.js +3 -6
  34. package/bin/postinstall.js +2 -1
  35. package/bin/sinapse-init.js +8 -9
  36. package/bin/sinapse.js +3 -1
  37. package/bin/utils/staged-secret-scan.js +3 -1
  38. package/docs/framework/atlas/OPERATING-ATLAS.md +1 -1
  39. package/docs/framework/atlas/atlas-data.json +22 -22
  40. package/docs/framework/atlas/atlas.html +12 -10
  41. package/docs/framework/source-tree.md +1 -2
  42. package/package.json +3 -1
  43. package/packages/installer/src/config/configure-environment.js +8 -6
  44. package/packages/installer/src/installer/brownfield-upgrader.js +5 -3
  45. package/packages/installer/src/installer/file-hasher.js +29 -21
  46. package/packages/installer/src/installer/manifest-signature.js +61 -49
  47. package/packages/installer/src/installer/post-install-validator.js +24 -17
  48. package/packages/installer/src/merger/parsers/markdown-section-parser.js +3 -2
  49. package/packages/installer/src/updater/index.js +7 -1
  50. package/packages/installer/src/utils/atomic-write.js +35 -0
  51. package/packages/installer/src/wizard/index.js +5 -3
  52. package/packages/sinapse-install/src/capabilities/chrome-brain.js +5 -3
  53. package/packages/sinapse-install/src/installer.js +3 -1
  54. package/packages/sinapse-install/src/utils/atomic-write.js +67 -0
  55. package/scripts/apply-persona-disclaimer.js +2 -1
  56. package/scripts/eval-e2e.js +149 -0
  57. package/scripts/sinapse-patch.js +2 -1
  58. package/scripts/sync-squad-yaml-components.js +2 -1
  59. package/scripts/validate-agents-md.js +2 -1
  60. package/scripts/validate-all.js +3 -0
  61. package/scripts/validate-article-iv.js +289 -0
  62. package/scripts/validate-article-xi.js +10 -8
  63. package/scripts/validate-evals.js +9 -2
  64. package/scripts/validate-no-external-refs.js +14 -8
  65. package/scripts/wave-gate.js +207 -0
  66. package/squads/claude-code-mastery/agents/claude-mastery-chief.md +3 -8
  67. package/squads/claude-code-mastery/agents/config-engineer.md +5 -12
  68. package/squads/claude-code-mastery/agents/hooks-architect.md +5 -11
  69. package/squads/claude-code-mastery/agents/mcp-integrator.md +5 -12
  70. package/squads/claude-code-mastery/agents/project-integrator.md +5 -12
  71. package/squads/claude-code-mastery/agents/roadmap-sentinel.md +5 -12
  72. package/squads/claude-code-mastery/agents/skill-craftsman.md +5 -11
  73. package/squads/claude-code-mastery/agents/swarm-orqx.md +15 -28
  74. package/.sinapse-ai/core/execution/context-injector.js +0 -539
  75. package/.sinapse-ai/core/execution/parallel-executor.js +0 -301
  76. package/.sinapse-ai/core/execution/parallel-monitor.js +0 -432
  77. package/.sinapse-ai/core/execution/semantic-merge-engine.js +0 -1750
  78. package/.sinapse-ai/core/execution/wave-executor.js +0 -403
  79. package/.sinapse-ai/development/tasks/waves.md +0 -205
  80. package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +0 -692
@@ -1,8 +1,6 @@
1
1
  # squad-creator
2
2
 
3
- ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
4
-
5
- CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
3
+ ACTIVATION-NOTICE: This file is your complete agent definition read it in full before acting. No external agent files are needed.
6
4
 
7
5
  ## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
8
6
 
@@ -15,41 +13,31 @@ IDE-FILE-RESOLUTION:
15
13
  - IMPORTANT: Only load these files when user requests specific command execution
16
14
  REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "create squad"→*create-squad, "validate my squad"→*validate-squad), ALWAYS ask for clarification if no clear match.
17
15
  activation-instructions:
18
- - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
16
+ - STEP 1: Read this entire file - it contains your complete persona definition
19
17
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
20
18
  - STEP 3: |
21
19
  Display greeting using native context (zero JS execution):
22
- 0. GREENFIELD GUARD: If gitStatus in system prompt says "Is a git repository: false" OR git commands return "not a git repository":
23
- - For substep 2: skip the "Branch:" append
24
- - For substep 3: show "📊 **Project Status:** Greenfield project — no git repository detected" instead of git narrative
25
- - After substep 6: show "💡 **Recommended:** Run `*environment-bootstrap` to initialize git, GitHub remote, and CI/CD"
26
- - Do NOT run any git commands during activation — they will fail and produce errors
27
- 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + permission badge from current permission mode (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
28
- 2. Show: "**Role:** {persona.role}"
29
- - Append: "Story: {active story from docs/stories/}" if detected + "Branch: `{branch from gitStatus}`" if not main/master
30
- 3. Show: "📊 **Project Status:**" as natural language narrative from gitStatus in system prompt:
31
- - Branch name, modified file count, current story reference, last commit message
32
- 4. Show: "**Available Commands:**" — list commands from the 'commands' section above that have 'key' in their visibility array
20
+ 0. GREENFIELD GUARD: if gitStatus reports no git repository (or git commands fail as "not a git repository"):
21
+ - skip the "Branch:" append and the git-status narrative
22
+ - show "📊 **Project Status:** Greenfield project — no git repository detected" instead
23
+ - after the commands list, show "💡 **Recommended:** Run `*environment-bootstrap` to initialize git, GitHub remote, and CI/CD"
24
+ - do NOT run git commands during activation — they will fail
25
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + current permission badge (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
26
+ 2. Show: "**Role:** {persona.role}" — append active story (docs/stories/) and branch (if not main/master) when detected
27
+ 3. Show: "📊 **Project Status:**" as a natural-language narrative from gitStatus (branch, modified files, active story, last commit)
28
+ 4. Show: "**Available Commands:**" commands from the 'commands' section whose visibility includes 'key'
33
29
  5. Show: "Type `*guide` for comprehensive usage instructions."
34
- 5.5. Check `.sinapse/handoffs/` for most recent unconsumed handoff artifact (YAML with consumed != true).
35
- If found: read `from_agent` and `last_command` from artifact, look up position in `.sinapse-ai/data/workflow-chains.yaml` matching from_agent + last_command, and show: "💡 **Suggested:** `*{next_command} {args}`"
36
- If chain has multiple valid next steps, also show: "Also: `*{alt1}`, `*{alt2}`"
37
- If no artifact or no match found: skip this step silently.
38
- After STEP 4 displays successfully, mark artifact as consumed: true.
30
+ 5.5. Check `.sinapse/handoffs/` for the most recent unconsumed handoff artifact (consumed != true): if found, resolve from_agent + last_command against `.sinapse-ai/data/workflow-chains.yaml` and show "💡 **Suggested:** `*{next_command} {args}`" (plus alternates if any); mark it consumed after displaying. Skip silently if none found.
39
31
  6. Show: "{persona_profile.communication.signature_closing}"
40
32
  # FALLBACK: If native greeting fails, run: node .sinapse-ai/development/scripts/unified-activation-pipeline.js squad-creator
41
33
  - Formats adaptive greeting automatically
42
34
  - STEP 4: Greeting already rendered inline in STEP 3 — proceed to STEP 5
43
35
  - STEP 5: HALT and await user input
44
- - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
45
- - DO NOT: Load any other agent files during activation
46
- - ONLY load dependency files when user selects them for execution via command or request of a task
36
+ - Do not improvise beyond what greeting_levels and Quick Commands specify. Do not load other agent files during activation; load a dependency file only when the user's request actually selects it.
47
37
  - EXCEPTION: STEP 5.5 may read `.sinapse/handoffs/` and `.sinapse-ai/data/workflow-chains.yaml` during activation
48
38
  - The agent.customization field ALWAYS takes precedence over any conflicting instructions
49
- - CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written - they are executable workflows, not reference material
50
- - MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format - never skip elicitation for efficiency
51
- - When listing tasks/templates or presenting options during conversations, always show as numbered options list
52
- - STAY IN CHARACTER!
39
+ - CRITICAL: task/checklist instructions from dependencies are executable workflows, not reference material — follow them exactly as written, including elicit=true steps (user interaction is mandatory there, never skipped for efficiency)
40
+ - When listing tasks/templates or presenting options, always show a numbered list so the user can pick by number
53
41
  - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands. The ONLY deviation from this is if the activation included commands also in the arguments.
54
42
  agent:
55
43
  name: Loom
@@ -1,8 +1,6 @@
1
1
  # ux-design-expert
2
2
 
3
- ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
4
-
5
- CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
3
+ ACTIVATION-NOTICE: This file is your complete agent definition read it in full before acting. No external agent files are needed.
6
4
 
7
5
  ## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
8
6
 
@@ -19,40 +17,30 @@ REQUEST-RESOLUTION:
19
17
  - ALWAYS ask for clarification if no clear match
20
18
 
21
19
  activation-instructions:
22
- - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
20
+ - STEP 1: Read this entire file - it contains your complete persona definition
23
21
  - STEP 2: Adopt the hybrid persona (Mosaic + Brad Frost)
24
22
 
25
23
  - STEP 3: |
26
24
  Display greeting using native context (zero JS execution):
27
- 0. GREENFIELD GUARD: If gitStatus in system prompt says "Is a git repository: false" OR git commands return "not a git repository":
28
- - For substep 2: skip the "Branch:" append
29
- - For substep 3: show "📊 **Project Status:** Greenfield project — no git repository detected" instead of git narrative
30
- - After substep 6: show "💡 **Recommended:** Run `*environment-bootstrap` to initialize git, GitHub remote, and CI/CD"
31
- - Do NOT run any git commands during activation — they will fail and produce errors
32
- 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + permission badge from current permission mode (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
33
- 2. Show: "**Role:** {persona.role}"
34
- - Append: "Story: {active story from docs/stories/}" if detected + "Branch: `{branch from gitStatus}`" if not main/master
35
- 3. Show: "📊 **Project Status:**" as natural language narrative from gitStatus in system prompt:
36
- - Branch name, modified file count, current story reference, last commit message
37
- 4. Show: "**Available Commands:**" — list commands from the 'commands' section above that have 'key' in their visibility array
25
+ 0. GREENFIELD GUARD: if gitStatus reports no git repository (or git commands fail as "not a git repository"):
26
+ - skip the "Branch:" append and the git-status narrative
27
+ - show "📊 **Project Status:** Greenfield project — no git repository detected" instead
28
+ - after the commands list, show "💡 **Recommended:** Run `*environment-bootstrap` to initialize git, GitHub remote, and CI/CD"
29
+ - do NOT run git commands during activation — they will fail
30
+ 1. Show: "{icon} {persona_profile.communication.greeting_levels.archetypal}" + current permission badge (e.g., [⚠️ Ask], [🟢 Auto], [🔍 Explore])
31
+ 2. Show: "**Role:** {persona.role}" — append active story (docs/stories/) and branch (if not main/master) when detected
32
+ 3. Show: "📊 **Project Status:**" as a natural-language narrative from gitStatus (branch, modified files, active story, last commit)
33
+ 4. Show: "**Available Commands:**" commands from the 'commands' section whose visibility includes 'key'
38
34
  5. Show: "Type `*guide` for comprehensive usage instructions."
39
- 5.5. Check `.sinapse/handoffs/` for most recent unconsumed handoff artifact (YAML with consumed != true).
40
- If found: read `from_agent` and `last_command` from artifact, look up position in `.sinapse-ai/data/workflow-chains.yaml` matching from_agent + last_command, and show: "💡 **Suggested:** `*{next_command} {args}`"
41
- If chain has multiple valid next steps, also show: "Also: `*{alt1}`, `*{alt2}`"
42
- If no artifact or no match found: skip this step silently.
43
- After STEP 4 displays successfully, mark artifact as consumed: true.
35
+ 5.5. Check `.sinapse/handoffs/` for the most recent unconsumed handoff artifact (consumed != true): if found, resolve from_agent + last_command against `.sinapse-ai/data/workflow-chains.yaml` and show "💡 **Suggested:** `*{next_command} {args}`" (plus alternates if any); mark it consumed after displaying. Skip silently if none found.
44
36
  6. Show: "{persona_profile.communication.signature_closing}"
45
37
  # FALLBACK: If native greeting fails, run: node .sinapse-ai/development/scripts/unified-activation-pipeline.js ux-design-expert
46
38
  - STEP 4: Greeting already rendered inline in STEP 3 — proceed to STEP 5
47
39
  - STEP 5: HALT and await user input
48
- - IMPORTANT: Do NOT improvise or add explanatory text beyond what is specified in greeting_levels and Quick Commands section
49
- - DO NOT: Load any other agent files during activation
50
- - ONLY load dependency files when user selects them for execution via command
40
+ - Do not improvise beyond what greeting_levels and Quick Commands specify. Do not load other agent files during activation; load a dependency file only when the user's request actually selects it.
51
41
  - The agent.customization field ALWAYS takes precedence over any conflicting instructions
52
- - CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written
53
- - MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format
54
- - When listing tasks/templates or presenting options during conversations, always show as numbered options list
55
- - STAY IN CHARACTER!
42
+ - CRITICAL: task/checklist instructions from dependencies are executable workflows, not reference material — follow them exactly as written, including elicit=true steps (user interaction is mandatory there, never skipped for efficiency)
43
+ - When listing tasks/templates or presenting options, always show a numbered list so the user can pick by number
56
44
  - CRITICAL: On activation, ONLY greet user and then HALT to await user requested assistance or given commands
57
45
 
58
46
  agent:
@@ -22,6 +22,9 @@ const SCAN_CONFIG = [
22
22
  { category: 'templates', basePath: '.sinapse-ai/product/templates', glob: '**/*.{yaml,yml,md}', type: 'template' },
23
23
  { category: 'scripts', basePath: '.sinapse-ai/development/scripts', glob: '**/*.{js,mjs}', type: 'script' },
24
24
  { category: 'modules', basePath: '.sinapse-ai/core', glob: '**/*.{js,mjs}', type: 'module' },
25
+ // DEC-02 (d): workflow-intelligence entra no registry com usedBy real
26
+ // (tasks *next/*patterns) — antes era um buraco (entidade inexistente).
27
+ { category: 'wis-modules', basePath: '.sinapse-ai/workflow-intelligence', glob: '**/*.{js,mjs}', type: 'module' },
25
28
  // Story A.4: restrict to top-level *.md so agent MEMORY.md files under
26
29
  // agents/{name}/MEMORY.md are NOT indexed as agents (they are memory, not
27
30
  // persona definitions). Without this restriction, `extractEntityId`
@@ -835,12 +835,12 @@ 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
 
841
- ### Wave Executor (wave-executor.js)
842
- The JS engine can be used for programmatic wave execution if available. This task provides the AI-driven alternative that works without code changes.
843
-
844
844
  ---
845
845
 
846
846
  ## Output Format
@@ -859,7 +859,6 @@ All actions produce structured output:
859
859
  - `*create-epic` - Create a new epic (PM)
860
860
  - `*epic-context` - Show accumulated epic context (PO)
861
861
  - `*run-workflow development-cycle` - Run single story cycle
862
- - `*waves` - Analyze wave structure of a workflow
863
862
  - `*status` - General workflow status
864
863
 
865
864
  ---
@@ -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
@@ -320,7 +331,6 @@ metadata:
320
331
  tags:
321
332
  - epic-orchestration
322
333
  - parallel-execution
323
- - wave-executor
324
334
  - quality-gates
325
335
  - worktree-isolation
326
336
  - reusable-template
@@ -50,7 +50,9 @@ const SCANNER_SELF_FILES = new Set([
50
50
  'bin/utils/staged-secret-scan.js',
51
51
  '.claude/hooks/secret-scanning.cjs',
52
52
  ]);
53
- const TEST_FILE_PATTERN = /(^|\/)(tests?|__tests__)\/|\.(test|spec)\.[cm]?[jt]s$/i;
53
+ // Each alternative carries its own anchors (grouped explicitly) so neither
54
+ // branch can accidentally match a substring of the other's context.
55
+ const TEST_FILE_PATTERN = /((^|\/)(tests?|__tests__)\/)|(\.(test|spec)\.[cm]?[jt]s$)/i;
54
56
 
55
57
  function isScanExemptPath(filePath) {
56
58
  const norm = String(filePath).replace(/\\/g, '/');
@@ -7,9 +7,9 @@
7
7
  # - SHA256 hashes for change detection
8
8
  # - File types for categorization
9
9
  #
10
- version: 1.20.0
10
+ version: 1.21.0
11
11
  generator: scripts/generate-install-manifest.js
12
- file_count: 1161
12
+ file_count: 1154
13
13
  files:
14
14
  - path: cli/commands/config/index.js
15
15
  hash: sha256:bfa83cb1dc111b0b30dd298dc0abc2150b73f939b6cd4458effa8e6d407bc9e2
@@ -212,9 +212,9 @@ files:
212
212
  type: core
213
213
  size: 2028
214
214
  - path: core/atlas/render-html.js
215
- hash: sha256:d84e928fbaa7f20f4c253758af3af486805683b66027d38d682cc453a5f68a0c
215
+ hash: sha256:630447429b4e0909637c85b6e6e1e92d1e6a49bae969e92ce4e00680fcfba528
216
216
  type: core
217
- size: 11656
217
+ size: 11938
218
218
  - path: core/atlas/render-markdown.js
219
219
  hash: sha256:d47961e50745e31af483fc126fbb3fc3ec60e498ee2f086982b4af388c5257aa
220
220
  type: core
@@ -503,18 +503,6 @@ files:
503
503
  hash: sha256:3b2fe56bf0e1a480f663a02afbb83c6d11cf89fb56815381c7ccafab948a63ae
504
504
  type: core
505
505
  size: 53047
506
- - path: core/execution/context-injector.js
507
- hash: sha256:bc97b8e0ccddb6638e22bd5455c24676d5136b2d0e0fba76392f3665992adb73
508
- type: core
509
- size: 14959
510
- - path: core/execution/parallel-executor.js
511
- hash: sha256:6bdc770710cd23f264b1eccfd0790037c0b3e71eeec83efd0d5a06b099df2322
512
- type: core
513
- size: 8494
514
- - path: core/execution/parallel-monitor.js
515
- hash: sha256:9b9413fb4c42c236e2a7628201f705640c69dcf4643eedbcdc98ca49d403e755
516
- type: core
517
- size: 11686
518
506
  - path: core/execution/rate-limit-manager.js
519
507
  hash: sha256:0d9749bc1ac9b6ed99019af84340e87d2f99d37a3147144896c6ca09560bdbe0
520
508
  type: core
@@ -523,18 +511,10 @@ files:
523
511
  hash: sha256:7d85df76eb252b098bfaf3ed5b7f07d408654a2d0ef9336c722fac1576355d81
524
512
  type: core
525
513
  size: 14652
526
- - path: core/execution/semantic-merge-engine.js
527
- hash: sha256:318cd9e23ac29a3beabc5d0bf98e87a1b7131bbca4e4c16cd13081be0297b857
528
- type: core
529
- size: 52423
530
514
  - path: core/execution/subagent-dispatcher.js
531
515
  hash: sha256:c291a8d9dea32273577b5c726626f4bc7a94b6aa67a52c9f312d6448ca6ab910
532
516
  type: core
533
517
  size: 32197
534
- - path: core/execution/wave-executor.js
535
- hash: sha256:b747c77ac896813844c3f580e0c703f8dbf24159d2b528a816202178ebc0f37e
536
- type: core
537
- size: 11363
538
518
  - path: core/external-executors/delegate-cli.js
539
519
  hash: sha256:e56313ca703a4fccf64e0eec958ceb9f84e5d7a3f1c84c22b12375a9b5b58bc1
540
520
  type: core
@@ -908,9 +888,9 @@ files:
908
888
  type: core
909
889
  size: 10661
910
890
  - path: core/memory/__tests__/active-modules.verify.js
911
- hash: sha256:f9d19b7afe34a3855795bab464dc5a6d23c1926c5eed05192910f898d6bbefec
891
+ hash: sha256:121996da9fcc8c7e3fa0fcfcbc7cf7661e395c498b65f43dc9e8dad9a6ef4848
912
892
  type: core
913
- size: 9619
893
+ size: 5422
914
894
  - path: core/memory/gotchas-memory.js
915
895
  hash: sha256:ef746d1c65d3bbe94a06ebe755ce0777e4e1ddd90867a2b96f6c8544c397fcb3
916
896
  type: core
@@ -943,6 +923,10 @@ files:
943
923
  hash: sha256:d4ad190353fc751e874bad5b3013137dcccfc84100edd6cead80c8fa5e83af11
944
924
  type: core
945
925
  size: 28745
926
+ - path: core/orchestration/brownfield-progress.js
927
+ hash: sha256:919fa899b32e584842f370df84cfefdc5d450136f13699c1916d82f3e1833b7d
928
+ type: core
929
+ size: 7585
946
930
  - path: core/orchestration/build-command.js
947
931
  hash: sha256:b758cfc7c0fad3d0d875460630b9ac7b2c968b82cdec14e9885e0744ee7012d0
948
932
  type: core
@@ -972,9 +956,9 @@ files:
972
956
  type: core
973
957
  size: 10880
974
958
  - path: core/orchestration/doc-first-resolver.js
975
- hash: sha256:92a4170f3ed0b6b214608c80e17c8c6b1769a50b849532af4ae34db070a6931f
959
+ hash: sha256:e309338d1ca98d70953563a2cf92bae261264fac8001f389afdb7fbf968be353
976
960
  type: core
977
- size: 14592
961
+ size: 14762
978
962
  - path: core/orchestration/epic-context-accumulator.js
979
963
  hash: sha256:9f38c7e3b4de7fbcfeae5fe1dc88aa3f0ae38667f1dc1da025519d40b3b9daa9
980
964
  type: core
@@ -1020,9 +1004,9 @@ files:
1020
1004
  type: core
1021
1005
  size: 23437
1022
1006
  - path: core/orchestration/greenfield-handler.js
1023
- hash: sha256:330be2c76c3eb5a9a1f1c975837308802b8fc6fb871f9b584787ae4e2aa8fcb1
1007
+ hash: sha256:5f40108470bf2602e9ccb72c241ece5d1b9e801ba83e1864b8b1d5f34ae3e9e7
1024
1008
  type: core
1025
- size: 40129
1009
+ size: 44211
1026
1010
  - path: core/orchestration/index.js
1027
1011
  hash: sha256:ee215f855804448dcb02375128f4ff1f39e6861f37d1762dde19c80e77b8f4a6
1028
1012
  type: core
@@ -1076,9 +1060,9 @@ files:
1076
1060
  type: core
1077
1061
  size: 16495
1078
1062
  - path: core/orchestration/workflow-executor.js
1079
- hash: sha256:c7aca8a292efcf20185cd30d6a582c6239a55a9871e4e63ed1c49a6aebf35f7a
1063
+ hash: sha256:aa21bf15ac3fec1170b6bf5a446051c93718c069b5afa44d75ed5557427597a6
1080
1064
  type: core
1081
- size: 37636
1065
+ size: 38414
1082
1066
  - path: core/orchestration/workflow-orchestrator.js
1083
1067
  hash: sha256:6e97eec88c8261f15bad79c47b0eafcfe39fbda5c837e156fe803802c3a1c18f
1084
1068
  type: core
@@ -1168,9 +1152,9 @@ files:
1168
1152
  type: core
1169
1153
  size: 5290
1170
1154
  - path: core/registry/service-registry.json
1171
- hash: sha256:c5bdefcd333a9d9ffffb6cb810864fb986e45436120f53b8fc74fd52ab4448ed
1155
+ hash: sha256:ca95afc8a947fdfaef37679a7d01d71c4d22beeb31603b84101bc992a64a8835
1172
1156
  type: core
1173
- size: 292202
1157
+ size: 291505
1174
1158
  - path: core/registry/squad-agent-resolver.js
1175
1159
  hash: sha256:74c4a1fafd2f60eb9db38e9fd82a03b74d47d4e563ccb754fe00824f519c84f8
1176
1160
  type: core
@@ -1380,9 +1364,9 @@ files:
1380
1364
  type: data
1381
1365
  size: 9671
1382
1366
  - path: data/entity-registry.yaml
1383
- hash: sha256:2caa00035d0f021f69c6ac0c1d62b51cc4aa0c0c5bb8d3f032ff7acdce1c611f
1367
+ hash: sha256:c3e211656dbfb4dd5628e403728bc90ace0c1d2a1faa55385d60c8c873e46e08
1384
1368
  type: data
1385
- size: 549471
1369
+ size: 557940
1386
1370
  - path: data/learned-patterns.yaml
1387
1371
  hash: sha256:1a4cd045c087b9dfd7046ff1464a9d2edb85fba77cf0b6fba14f4bb9004c741e
1388
1372
  type: data
@@ -1484,37 +1468,37 @@ files:
1484
1468
  type: development
1485
1469
  size: 5058
1486
1470
  - path: development/agents/analyst.md
1487
- hash: sha256:25c833e36babf8b227321d40105d069fca29e301a4ecedcd7a74ba8dace625b0
1471
+ hash: sha256:17e4b47515862b1e2c44ab59085bac56cc505e10f0b6c8f1751b766f66ddfbec
1488
1472
  type: agent
1489
- size: 16361
1473
+ size: 14918
1490
1474
  - path: development/agents/architect.md
1491
- hash: sha256:43fa59df34a2cd7cc68c8496da7b41d6f65fe0a7a05bd1c0cee2395c0ec5aedb
1475
+ hash: sha256:b25f7a5d927b8645af278828d99af3b46e0d21b2d5dd443dbec0e8af2d195e1c
1492
1476
  type: agent
1493
- size: 25192
1477
+ size: 23749
1494
1478
  - path: development/agents/data-engineer.md
1495
- hash: sha256:c411c75db1c8a67385af3ea1e46d862cfced843f38881004bca801b432f1b16a
1479
+ hash: sha256:8f965782df49716c4d043327f8cdf430980794c0bd4984b1b3fc0dc774b2323c
1496
1480
  type: agent
1497
- size: 24405
1481
+ size: 23210
1498
1482
  - path: development/agents/developer.md
1499
- hash: sha256:2e1f50c1e08f36baa713a62c40f96932758d7969375efc133025ec4853fe8d43
1483
+ hash: sha256:da98be997a4b86f96b8c4f822ae189dcd4d2698d19609c6d1d2b7a56d879eeb8
1500
1484
  type: agent
1501
- size: 28389
1485
+ size: 28149
1502
1486
  - path: development/agents/devops.md
1503
- hash: sha256:81144f100a7ea8ef339a51691d32e7c480e24fef6ab4c3276e927568ba6ba0e4
1487
+ hash: sha256:9c566f77c11e95edc5537e13c5f5fda65949c4cef6a1f142f81d7b35347b808b
1504
1488
  type: agent
1505
- size: 28149
1489
+ size: 26954
1506
1490
  - path: development/agents/product-lead.md
1507
- hash: sha256:a6427801bc1ab8af034d7ca64a9992c918d340503e34105844c657f212b547e7
1491
+ hash: sha256:a0d13d7e04c602000eae91dff54bf4030f11e29b4182e04c763c381086b9e7b7
1508
1492
  type: agent
1509
- size: 16213
1493
+ size: 14770
1510
1494
  - path: development/agents/project-lead.md
1511
- hash: sha256:571533353e320db3be8097960190b9e5fce6a876c58159886fd41ee11b745216
1495
+ hash: sha256:9dfb7b7a4c87ee992025764d1c976f3551a6302ac1493a4de98a8bb4c696b010
1512
1496
  type: agent
1513
- size: 18402
1497
+ size: 16959
1514
1498
  - path: development/agents/quality-gate.md
1515
- hash: sha256:bc99385b3aee34ed5234287f37b53dd57c1f59b7f4cf1bd401447da4562117d4
1499
+ hash: sha256:a2a4ec39d9d75b0f9872104157094f2846453c962974f551fee1d7a2dccfbec1
1516
1500
  type: agent
1517
- size: 23745
1501
+ size: 22302
1518
1502
  - path: development/agents/snps-orqx.md
1519
1503
  hash: sha256:8e4145cdf25f57d366e0f6b3563e907c7a3ba8b2d6d3af0a6e573927f4a0321c
1520
1504
  type: agent
@@ -1524,13 +1508,13 @@ files:
1524
1508
  type: agent
1525
1509
  size: 13053
1526
1510
  - path: development/agents/squad-creator.md
1527
- hash: sha256:80fc6cdfd6d7102803a5c477d576cbfadf96990ffd8f6c7246047603f2a80d33
1511
+ hash: sha256:aa5da75a12797fc06994dc254fc4a35e0eccbfe2f6891acfe5590c81bc019e02
1528
1512
  type: agent
1529
- size: 18180
1513
+ size: 17296
1530
1514
  - path: development/agents/ux-design-expert.md
1531
- hash: sha256:ef221c2ce9dc7b808feab65d04c80e5d0186fe3343e079404d761b1d9ff056a2
1515
+ hash: sha256:c012233be2311a30e2b25526a5e7079af830bb66c8cd51fd8a070754c1af2fb0
1532
1516
  type: agent
1533
- size: 21931
1517
+ size: 21164
1534
1518
  - path: development/checklists/agent-quality-gate.md
1535
1519
  hash: sha256:511d05a2df0e59f3503d882f61131703a5fcecb47d75f99b392086fc3a663433
1536
1520
  type: checklist
@@ -1708,9 +1692,9 @@ files:
1708
1692
  type: script
1709
1693
  size: 35071
1710
1694
  - path: development/scripts/populate-entity-registry.js
1711
- hash: sha256:2232bebc783c13e222c7b80713eae016343406ab2a878b0c6950b0691202d8c1
1695
+ hash: sha256:b3eb148b44675ab7bb837c1baaf5cfbb312ebf2091e9386efa54f857de60a8bf
1712
1696
  type: script
1713
- size: 25928
1697
+ size: 26195
1714
1698
  - path: development/scripts/skill-validator.js
1715
1699
  hash: sha256:9e8decda5a7bf73f05772ba0a315931b55bc61e333efea16901c5170752fb297
1716
1700
  type: script
@@ -2180,9 +2164,9 @@ files:
2180
2164
  type: task
2181
2165
  size: 8809
2182
2166
  - path: development/tasks/execute-epic-plan.md
2183
- hash: sha256:0825d7dcc0649892d3c4a7b8c0a0c15c1c5750c78d35e79ce0b6a984ac86b8c0
2167
+ hash: sha256:222b56327fd175c90bea4c89e3a1b82e27e94c28085a74530489682483038edd
2184
2168
  type: task
2185
- size: 25716
2169
+ size: 26107
2186
2170
  - path: development/tasks/export-design-tokens-dtcg.md
2187
2171
  hash: sha256:ce37d53f78d6ddab720e6d534d9da629497264ed72b620bc4ff1306ad0f6ffeb
2188
2172
  type: task
@@ -2727,10 +2711,6 @@ files:
2727
2711
  hash: sha256:72395f28212ce2742fc9eb282b37cc19aa1fd30b18eb99e3cedb25c35b056802
2728
2712
  type: task
2729
2713
  size: 4951
2730
- - path: development/tasks/waves.md
2731
- hash: sha256:5f8e9a9f5f630232596fc7222d1e06e3d940bab071f152996fa79e7ac0401842
2732
- type: task
2733
- size: 4693
2734
2714
  - path: development/tasks/yolo-toggle.md
2735
2715
  hash: sha256:ebc3ab61085c0d19806b914a60a67e68b64dd1a7db27ad603125bc9d02f697f0
2736
2716
  type: task
@@ -2984,9 +2964,9 @@ files:
2984
2964
  type: workflow
2985
2965
  size: 18594
2986
2966
  - path: development/workflows/brownfield-discovery.yaml
2987
- hash: sha256:6de267f13f4fd996450ed228ac6bb109d4d75f91eef515c946d5885e464f4fc9
2967
+ hash: sha256:1cda821dcfd9dde90c00a9566588a6d5155d6265deaf926caf3477d9f8def921
2988
2968
  type: workflow
2989
- size: 33356
2969
+ size: 34298
2990
2970
  - path: development/workflows/brownfield-fullstack.yaml
2991
2971
  hash: sha256:7be5f76d80bddea70b560c4fe9caa35d0534ec84e4d4ed0e120a99f68b73950d
2992
2972
  type: workflow
@@ -3008,9 +2988,9 @@ files:
3008
2988
  type: workflow
3009
2989
  size: 15633
3010
2990
  - path: development/workflows/epic-orchestration.yaml
3011
- hash: sha256:be5c5c28bb0fb41c6df383952d8aba9efb02dbf58e3521983f65a79212c38d84
2991
+ hash: sha256:fd22d105cfce45cf7202d947fcc145987ed07b8503ec8dfdd260fa5a43886345
3012
2992
  type: workflow
3013
- size: 16973
2993
+ size: 17712
3014
2994
  - path: development/workflows/fast-track.yaml
3015
2995
  hash: sha256:1a4f5665af164b8c6425d2ff3c2e713ff8559a66066aa0c7cbd1c6773aaa8266
3016
2996
  type: workflow
@@ -4172,9 +4152,9 @@ files:
4172
4152
  type: template
4173
4153
  size: 14443
4174
4154
  - path: product/templates/personalized-agent-template.md
4175
- hash: sha256:efb347c5af607bf65e90e3ed10b8626ad560b91f593d52d3394d1263f23cde85
4155
+ hash: sha256:3fbae9bacf8686c4a127ff90d036337ac24408ad6a75d7bf2a3c1be648d4c82c
4176
4156
  type: template
4177
- size: 9361
4157
+ size: 9073
4178
4158
  - path: product/templates/personalized-checklist-template.md
4179
4159
  hash: sha256:4214899ef40e71ea7dc5ceb5feffd66fbf2eb9edce6032185eb6ba355fbbb96a
4180
4160
  type: template
@@ -4587,10 +4567,6 @@ files:
4587
4567
  hash: sha256:4dd26f611a58c0bcd54dc69e1804efe103406ee0c0bda0880a4b39aecf540045
4588
4568
  type: workflow-intelligence
4589
4569
  size: 12789
4590
- - path: workflow-intelligence/__tests__/wave-analyzer.test.js
4591
- hash: sha256:43ff641c47a3583eacc0a7aa432455c48bc5c2dd51f32bebdeaf4c4a3d3abc14
4592
- type: workflow-intelligence
4593
- size: 15056
4594
4570
  - path: workflow-intelligence/__tests__/workflow-registry.test.js
4595
4571
  hash: sha256:d9488e420f584474de920e090068809a220db1bd1d49e96769f6fc3ed7a47dba
4596
4572
  type: workflow-intelligence
@@ -4607,14 +4583,10 @@ files:
4607
4583
  hash: sha256:48739aaa5844cea1264da33e0313c499eaeec854de4d69129dcca8d4ef32ad65
4608
4584
  type: workflow-intelligence
4609
4585
  size: 23448
4610
- - path: workflow-intelligence/engine/wave-analyzer.js
4611
- hash: sha256:bd2d551d933258f88de494b24e1c655105cebba5edd07cce8d7fe73d7549b600
4612
- type: workflow-intelligence
4613
- size: 20336
4614
4586
  - path: workflow-intelligence/index.js
4615
- hash: sha256:e015176daf9001d1d0fdc5533d4a503430ead07fe6eb8d68733530fceef39191
4587
+ hash: sha256:1b6cb4b5e9011acdbc021fa27b9adf47145629b06436344ccbf001d6195095ed
4616
4588
  type: workflow-intelligence
4617
- size: 8194
4589
+ size: 7792
4618
4590
  - path: workflow-intelligence/learning/capture-hook.js
4619
4591
  hash: sha256:9f29c770b5c0ca68f9fe0a21de37367f6b98381608378f1e1cb4e3e4ea1b0e96
4620
4592
  type: workflow-intelligence
@@ -1,8 +1,6 @@
1
1
  # {agent-id}
2
2
 
3
- ACTIVATION-NOTICE: This file contains your full agent operating guidelines. DO NOT load any external agent files as the complete configuration is in the YAML block below.
4
-
5
- CRITICAL: Read the full YAML BLOCK that FOLLOWS IN THIS FILE to understand your operating params, start and follow exactly your activation-instructions to alter your state of being, stay in this being until told to exit this mode:
3
+ ACTIVATION-NOTICE: This file is your complete agent definition read it in full before acting. No external agent files are needed.
6
4
 
7
5
  ## COMPLETE AGENT DEFINITION FOLLOWS - NO EXTERNAL FILES NEEDED
8
6
 
@@ -17,7 +15,7 @@ IDE-FILE-RESOLUTION:
17
15
  REQUEST-RESOLUTION: Match user requests to your commands/dependencies flexibly (e.g., "draft story"→*create→create-next-story task, "make a new prd" would be dependencies->tasks->create-doc combined with the dependencies->templates->prd-tmpl.md), ALWAYS ask for clarification if no clear match.
18
16
 
19
17
  activation-instructions:
20
- - STEP 1: Read THIS ENTIRE FILE - it contains your complete persona definition
18
+ - STEP 1: Read this entire file - it contains your complete persona definition
21
19
  - STEP 2: Adopt the persona defined in the 'agent' and 'persona' sections below
22
20
  - STEP 3: Greet user using the appropriate greeting level (default: named)
23
21
  - STEP 4: Mention `*help` command availability
@@ -27,7 +25,7 @@ activation-instructions:
27
25
  - CRITICAL WORKFLOW RULE: When executing tasks from dependencies, follow task instructions exactly as written
28
26
  - MANDATORY INTERACTION RULE: Tasks with elicit=true require user interaction using exact specified format
29
27
  - When listing tasks/templates or presenting options, always show as numbered options list
30
- - STAY IN CHARACTER! Use your persona_profile vocabulary and tone consistently
28
+ - Use your persona_profile vocabulary and tone consistently
31
29
  - Use standardized output templates (see .sinapse-ai/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md)
32
30
  - CRITICAL: On activation, greet user using greeting_level and HALT to await commands
33
31
 
@@ -2,8 +2,7 @@
2
2
  * @module workflow-intelligence
3
3
  * @description Workflow Intelligence System (WIS) public API
4
4
  * @story WIS-2 - Workflow Registry Enhancement
5
- * @story WIS-4 - Wave Analysis Engine
6
- * @version 1.1.0
5
+ * @version 1.2.0
7
6
  *
8
7
  * @example
9
8
  * const wis = require('./.sinapse-ai/workflow-intelligence');
@@ -20,11 +19,6 @@
20
19
  *
21
20
  * // Get next steps for a state
22
21
  * const nextSteps = wis.getNextSteps('epic_creation', 'stories_created');
23
- *
24
- * // Analyze waves for parallel execution (WIS-4)
25
- * const waves = wis.analyzeWaves('story_development');
26
- * console.log(waves.waves); // Wave groupings
27
- * console.log(waves.criticalPath); // Critical path
28
22
  */
29
23
 
30
24
  'use strict';
@@ -49,14 +43,6 @@ const {
49
43
  LOW_CONFIDENCE_THRESHOLD,
50
44
  } = require('./engine/suggestion-engine');
51
45
 
52
- const {
53
- WaveAnalyzer,
54
- CircularDependencyError,
55
- createWaveAnalyzer,
56
- analyzeWaves,
57
- DEFAULT_TASK_DURATIONS,
58
- } = require('./engine/wave-analyzer');
59
-
60
46
  const outputFormatter = require('./engine/output-formatter');
61
47
 
62
48
  // Learning module (WIS-5)
@@ -297,9 +283,8 @@ module.exports = {
297
283
  invalidateCache,
298
284
  reset,
299
285
 
300
- // Wave Analysis API (WIS-4)
301
- analyzeWaves,
302
- createWaveAnalyzer,
286
+ // Wave Analysis API (WIS-4) removida — DEC-02/DEC-03 (2026-07-03):
287
+ // wave-analyzer seguiu o destino do cluster multi-story órfão.
303
288
 
304
289
  // Pattern Learning API (WIS-5)
305
290
  learning: learningModule,
@@ -313,8 +298,6 @@ module.exports = {
313
298
  WorkflowRegistry,
314
299
  ConfidenceScorer,
315
300
  SuggestionEngine,
316
- WaveAnalyzer,
317
- CircularDependencyError,
318
301
 
319
302
  // Output formatting (for *next task)
320
303
  outputFormatter,
@@ -325,6 +308,5 @@ module.exports = {
325
308
  DEFAULT_PATTERNS_PATH,
326
309
  SUGGESTION_CACHE_TTL,
327
310
  LOW_CONFIDENCE_THRESHOLD,
328
- DEFAULT_TASK_DURATIONS,
329
311
  };
330
312