overmind-mcp 1.0.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/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/.claude/sessions.json +4 -0
- package/dist/bin/cli.d.ts +3 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +22 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/btc_enrichment.sql +42 -0
- package/dist/btc_enrichments_2026-02-05.json +57 -0
- package/dist/btc_pattern_2026-02-05_0523.json +24 -0
- package/dist/btc_pattern_enrichments.sql +69 -0
- package/dist/btc_pattern_enrichments_batch2.sql +78 -0
- package/dist/btc_pattern_enrichments_batch3.sql +93 -0
- package/dist/btc_pattern_enrichments_batch4.sql +58 -0
- package/dist/btc_pattern_enrichments_batch5.sql +113 -0
- package/dist/btc_pattern_enrichments_batch6.sql +42 -0
- package/dist/btc_sequence_0549_0553_2026-02-05.json +64 -0
- package/dist/btc_sequence_0621_0622_2026-02-05.json +36 -0
- package/dist/btc_sequence_enrichment_20260205.sql +59 -0
- package/dist/btc_sequence_enrichment_20260205_0557-0558.sql +45 -0
- package/dist/btc_sequence_volatility_collapse_2026-02-05.json +58 -0
- package/dist/btc_vector_analysis_2026-02-05.json +96 -0
- package/dist/check_schema.js +23 -0
- package/dist/check_schema_fa.js +22 -0
- package/dist/embed-analytics.json +1 -0
- package/dist/enrich_119847.js +121 -0
- package/dist/enrich_119850.js +105 -0
- package/dist/enrich_btc.js +57 -0
- package/dist/enrich_btc_batch5.js +95 -0
- package/dist/enrich_btc_batch6_sequence_0557_0558.js +78 -0
- package/dist/enrich_btc_batch_live.js +187 -0
- package/dist/enrich_btc_final.js +141 -0
- package/dist/enrich_btc_patterns.js +134 -0
- package/dist/enrich_pattern.js +48 -0
- package/dist/enrich_pattern.sql +26 -0
- package/dist/enrich_pattern_119857.js +54 -0
- package/dist/enrich_pattern_121084.js +57 -0
- package/dist/enrich_pattern_121086.js +66 -0
- package/dist/enrich_patterns.js +114 -0
- package/dist/enrich_patterns.sql +4 -0
- package/dist/enrichment.sql +17 -0
- package/dist/enrichments_data.js +36 -0
- package/dist/example.test.js +6 -0
- package/dist/import_pattern_enrichments_2026-02-05_volatility_collapse.sql +66 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/insert_enrichments.js +69 -0
- package/dist/insert_enrichments.mjs +94 -0
- package/dist/lib/config.d.ts +26 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +31 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/sessions.d.ts +3 -0
- package/dist/lib/sessions.d.ts.map +1 -0
- package/dist/lib/sessions.js +40 -0
- package/dist/lib/sessions.js.map +1 -0
- package/dist/nul +0 -0
- package/dist/pattern_enrichment_119807.sql +34 -0
- package/dist/pattern_enrichment_119811.sql +22 -0
- package/dist/pattern_enrichment_119812.sql +23 -0
- package/dist/pattern_enrichment_119821_119822_exhaustion.sql +35 -0
- package/dist/pattern_enrichment_119826.sql +31 -0
- package/dist/pattern_enrichment_119847.sql +58 -0
- package/dist/pattern_enrichment_119848.sql +34 -0
- package/dist/pattern_enrichment_119853.sql +41 -0
- package/dist/pattern_enrichment_119856.sql +42 -0
- package/dist/pattern_enrichment_119857.sql +38 -0
- package/dist/pattern_enrichment_121027.sql +36 -0
- package/dist/pattern_enrichment_121067.sql +38 -0
- package/dist/pattern_enrichment_121086.sql +40 -0
- package/dist/pattern_enrichment_121090.sql +41 -0
- package/dist/pattern_enrichment_121138.sql +46 -0
- package/dist/pattern_enrichment_121172.sql +31 -0
- package/dist/pattern_enrichment_121189.sql +31 -0
- package/dist/pattern_enrichment_121195.sql +32 -0
- package/dist/pattern_enrichment_121207.sql +15 -0
- package/dist/pattern_enrichment_121214.sql +15 -0
- package/dist/pattern_enrichment_121217.sql +15 -0
- package/dist/pattern_enrichment_121221.sql +15 -0
- package/dist/pattern_enrichment_121314.sql +14 -0
- package/dist/pattern_enrichment_121316.sql +31 -0
- package/dist/pattern_enrichment_121325.sql +31 -0
- package/dist/pattern_enrichment_121327.sql +15 -0
- package/dist/pattern_enrichments_batch.sql +70 -0
- package/dist/pattern_enrichments_batch_2026-02-05.json +81 -0
- package/dist/prompts/agent_prompts.d.ts +2 -0
- package/dist/prompts/agent_prompts.d.ts.map +1 -0
- package/dist/prompts/agent_prompts.js +25 -0
- package/dist/prompts/agent_prompts.js.map +1 -0
- package/dist/run_enrichments.js +72 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +62 -0
- package/dist/server.js.map +1 -0
- package/dist/services/AgentManager.d.ts +22 -0
- package/dist/services/AgentManager.d.ts.map +1 -0
- package/dist/services/AgentManager.js +163 -0
- package/dist/services/AgentManager.js.map +1 -0
- package/dist/services/ClaudeRunner.d.ts +19 -0
- package/dist/services/ClaudeRunner.d.ts.map +1 -0
- package/dist/services/ClaudeRunner.js +160 -0
- package/dist/services/ClaudeRunner.js.map +1 -0
- package/dist/services/PromptManager.d.ts +16 -0
- package/dist/services/PromptManager.d.ts.map +1 -0
- package/dist/services/PromptManager.js +54 -0
- package/dist/services/PromptManager.js.map +1 -0
- package/dist/start_bot.d.ts +2 -0
- package/dist/start_bot.d.ts.map +1 -0
- package/dist/start_bot.js +26 -0
- package/dist/start_bot.js.map +1 -0
- package/dist/tools/create_agent.d.ts +19 -0
- package/dist/tools/create_agent.d.ts.map +1 -0
- package/dist/tools/create_agent.js +49 -0
- package/dist/tools/create_agent.js.map +1 -0
- package/dist/tools/manage_agents.d.ts +35 -0
- package/dist/tools/manage_agents.d.ts.map +1 -0
- package/dist/tools/manage_agents.js +121 -0
- package/dist/tools/manage_agents.js.map +1 -0
- package/dist/tools/manage_prompts.d.ts +27 -0
- package/dist/tools/manage_prompts.d.ts.map +1 -0
- package/dist/tools/manage_prompts.js +66 -0
- package/dist/tools/manage_prompts.js.map +1 -0
- package/dist/tools/run_claude.d.ts +19 -0
- package/dist/tools/run_claude.d.ts.map +1 -0
- package/dist/tools/run_claude.js +66 -0
- package/dist/tools/run_claude.js.map +1 -0
- package/package.json +67 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeaMoN888
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# 🧠 OverMind-MCP
|
|
2
|
+
|
|
3
|
+
_Orchestrateur universel agents IA multi-modeles via MCP pour piloter Claude-Code, Gemini, Qwen, Kilo/Cline, OpenClaw, GLM, Minimax, Kimi, Ollama et plus sans limite._
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## 👋 C'est quoi ?
|
|
8
|
+
|
|
9
|
+
**OverMind-MCP** est une conscience supérieure conçue pour orchestrer, commander et automatiser une flotte illimitée d'agents IA. Compatible avec **Claude-Code, Gemini-cli, Qwen-cli, Kilo/Cline, OpenClaw**, et prêt pour **GLM, Minimax, Kimi, Ollama** et bien d'autres. Plus qu'un simple runner, c'est le **Cortex Central** de votre infrastructure IA.
|
|
10
|
+
|
|
11
|
+
Il transforme les outils CLI isolés en une force coordonnée, pilotable par API ou par MCP, capable d'exécuter des missions complexes en 2 secondes chrono.
|
|
12
|
+
|
|
13
|
+
## ✨ Ce que ça fait
|
|
14
|
+
|
|
15
|
+
- **🔌 Contrôle Total** : Lancez des missions complexes via MCP ou directement via le code.
|
|
16
|
+
- **🏗️ Architecture Pro** : Basé sur des services (`AgentManager`, `ClaudeRunner`, `PromptManager`) pour une stabilité maximale.
|
|
17
|
+
- **🛠️ Capacités Étendues** : L'agent piloté peut utiliser VOS outils (Base de données, Scrapers, etc.).
|
|
18
|
+
- **🤖 Multi-Agents** : Créez, configurez et gérez des personnalités d'agents isolées (Prompts & Settings dédiés).
|
|
19
|
+
- **📦 Prêt pour l'Intégration** : Importable comme un module NPM dans vos autres projets.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 🚀 Commencer (Guide Facile)
|
|
24
|
+
|
|
25
|
+
### 1. Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Installe les dépendances
|
|
29
|
+
pnpm install
|
|
30
|
+
|
|
31
|
+
# Build le projet (Génère les types TS et le code JS)
|
|
32
|
+
pnpm run build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Configuration MCP
|
|
36
|
+
|
|
37
|
+
Pour que l'agent puisse voir vos autres serveurs MCP, copiez le fichier d'exemple :
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
cp .mcp.json.example .mcp.json
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 3. Lancer le Serveur Standalone
|
|
44
|
+
|
|
45
|
+
Le serveur peut être lancé via le CLI dédié :
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Lancement standard
|
|
49
|
+
pnpm start
|
|
50
|
+
|
|
51
|
+
# Ou via le binaire directement (si installé via npm link)
|
|
52
|
+
overmind
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 📦 Utilisation comme Bibliothèque
|
|
58
|
+
|
|
59
|
+
Vous pouvez désormais importer le moteur du runner dans vos propres scripts :
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import { createServer, AgentManager, ClaudeRunner } from 'overmind-mcp';
|
|
63
|
+
|
|
64
|
+
// 1. Gérer les agents programmatiquement
|
|
65
|
+
const manager = new AgentManager();
|
|
66
|
+
await manager.createAgent('expert-seo', 'Tu es un expert SEO...', 'claude-3-5-sonnet');
|
|
67
|
+
|
|
68
|
+
// 2. Lancer une exécution sans passer par MCP
|
|
69
|
+
const runner = new ClaudeRunner();
|
|
70
|
+
const result = await runner.runAgent({
|
|
71
|
+
agentName: 'expert-seo',
|
|
72
|
+
prompt: 'Analyse le site example.com',
|
|
73
|
+
autoResume: true,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
console.log(result.result);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## 🛠️ Configuration MCP (Client)
|
|
82
|
+
|
|
83
|
+
Pour connecter ce runner à un client (Cursor, Claude Desktop, etc.), pointez vers le nouvel entrypoint CLI :
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"overmind": {
|
|
89
|
+
"command": "node",
|
|
90
|
+
"args": ["/CHEMIN_VERS_PROJET/dist/bin/cli.js"]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 📂 Structure du Projet
|
|
99
|
+
|
|
100
|
+
- `src/services/` : Le cœur du système (Logique métier isolée en services).
|
|
101
|
+
- `src/tools/` : Les outils MCP qui appellent les services.
|
|
102
|
+
- `src/bin/cli.ts` : Le point d'entrée exécutable pour le terminal.
|
|
103
|
+
- `src/server.ts` : La définition du serveur FastMCP.
|
|
104
|
+
- `src/index.ts` : Les exports publics (API de la bibliothèque).
|
|
105
|
+
- `.claude/` : Stockage des agents (Prompts `.md` et Settings `.json`).
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
_Projet propulsé par DeaMoN888 - 2026_
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":""}
|
package/dist/bin/cli.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createServer } from '../server.js';
|
|
3
|
+
import { updateConfig } from '../lib/config.js';
|
|
4
|
+
const cliArgs = process.argv.slice(2);
|
|
5
|
+
let settingsPath, mcpPath;
|
|
6
|
+
for (let i = 0; i < cliArgs.length; i++) {
|
|
7
|
+
if (cliArgs[i] === '--settings' && cliArgs[i + 1]) {
|
|
8
|
+
settingsPath = cliArgs[i + 1];
|
|
9
|
+
i++;
|
|
10
|
+
}
|
|
11
|
+
else if (cliArgs[i] === '--mcp-config' && cliArgs[i + 1]) {
|
|
12
|
+
mcpPath = cliArgs[i + 1];
|
|
13
|
+
i++;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (settingsPath || mcpPath) {
|
|
17
|
+
updateConfig(settingsPath, mcpPath);
|
|
18
|
+
console.error(`🔧 Config surchargée : Settings=${settingsPath}, MCP=${mcpPath}`);
|
|
19
|
+
}
|
|
20
|
+
const server = createServer();
|
|
21
|
+
server.start({ transportType: 'stdio' });
|
|
22
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtC,IAAI,YAAY,EAAE,OAAO,CAAC;AAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;IACxC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,YAAY,IAAI,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAClD,YAAY,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9B,CAAC,EAAE,CAAC;IACN,CAAC;SAAM,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,cAAc,IAAI,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3D,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,CAAC,EAAE,CAAC;IACN,CAAC;AACH,CAAC;AAED,IAAI,YAAY,IAAI,OAAO,EAAE,CAAC;IAC5B,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACpC,OAAO,CAAC,KAAK,CAAC,mCAAmC,YAAY,SAAS,OAAO,EAAE,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;AAC9B,MAAM,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
-- BTC PATTERNS ENRICHMENT - Batch 2026-02-05
|
|
2
|
+
-- Séquence : Distribution bearish après extension bullie
|
|
3
|
+
|
|
4
|
+
-- PATTERN 1: Point de Pivot (Distribution)
|
|
5
|
+
-- ID: 119779 | Time: 2026-02-05T05:30:00Z
|
|
6
|
+
-- Conviction: 0.00 (Alerte structurelle)
|
|
7
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
8
|
+
VALUES (
|
|
9
|
+
119779,
|
|
10
|
+
'BTC Distribution Pivot: Transition bull→bear après extension (Kelt 0.98→0.75). Momentum momentum decay (0.818→0.738) avec slope peak (0.026). Signal de distribution avant effondrement. Conviction nulle indique incertitude structurelle - zone de décision critique.',
|
|
11
|
+
'v1.0-sequences',
|
|
12
|
+
'{"asset": "BTCUSDT_PERP_BINANCE", "pattern_type": "distribution_pivot", "trend_transition": "bull_to_bear", "slope_peak": 0.0268662, "bb_position": 0.781701, "keltner_decay": 0.751931, "signal_strength": "critical", "expected_move": "bearish_continuation"}'::jsonb
|
|
13
|
+
)
|
|
14
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
15
|
+
narrative = EXCLUDED.narrative,
|
|
16
|
+
metadata = EXCLUDED.metadata;
|
|
17
|
+
|
|
18
|
+
-- PATTERN 2: Confirmation Bearish (Accélération)
|
|
19
|
+
-- ID: 119782 | Time: 2026-02-05T05:33:00Z
|
|
20
|
+
-- Conviction: 1.00 (Forte confiance)
|
|
21
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
22
|
+
VALUES (
|
|
23
|
+
119782,
|
|
24
|
+
'BTC Bearish Acceleration: Confirmation post-pivot. Keltner collapse (0.43→0.13) + Momentum breakdown (0.64→0.50). Slope near-zero (0.002) confirms momentum exhaustion. Strong conviction bearish signal - short setup with tight stop above 05:30 high.',
|
|
25
|
+
'v1.0-sequences',
|
|
26
|
+
'{"asset": "BTCUSDT_PERP_BINANCE", "pattern_type": "bearish_acceleration", "keltner_collapse": 0.138651, "momentum_breakdown": 0.504379, "slope_exhaustion": 0.00219977, "conviction": 1.0, "signal_strength": "strong", "actionable": "short_entry_candidate"}'::jsonb
|
|
27
|
+
)
|
|
28
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
29
|
+
narrative = EXCLUDED.narrative,
|
|
30
|
+
metadata = EXCLUDED.metadata;
|
|
31
|
+
|
|
32
|
+
-- VALIDATION QUERY
|
|
33
|
+
-- Vérifier l'enrichissement des 2 patterns
|
|
34
|
+
SELECT
|
|
35
|
+
semantic_context_id,
|
|
36
|
+
substring(narrative, 1, 80) || '...' as narrative_preview,
|
|
37
|
+
metadata->>'pattern_type' as pattern_type,
|
|
38
|
+
metadata->>'signal_strength' as signal_strength,
|
|
39
|
+
metadata->>'conviction' as conviction
|
|
40
|
+
FROM pattern_enrichments
|
|
41
|
+
WHERE semantic_context_id IN (119779, 119782)
|
|
42
|
+
ORDER BY semantic_context_id DESC;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enrichments": [
|
|
3
|
+
{
|
|
4
|
+
"semantic_context_id": "119786",
|
|
5
|
+
"timestamp": "2026-02-05T05:37:00.000Z",
|
|
6
|
+
"pattern_type": "distribution_bearish",
|
|
7
|
+
"narrative": "Point bas de distribution bearish. Momentum épuisé (0.35), prix en bas de bande (0.26). Volume élevé avec volatilité haute typique d'une phase de distribution contrôlée. Structure cohérente avec patterns précédents.",
|
|
8
|
+
"model_version": "sonnet-4-5-sequence-analyser",
|
|
9
|
+
"confidence": "high",
|
|
10
|
+
"metadata": {
|
|
11
|
+
"sequence_position": "5th_bearish_consecutive",
|
|
12
|
+
"vector_analysis": "Trend=0(Vol=0.8)_HighVol_Distribution",
|
|
13
|
+
"actionable": "hold_or_accumulate"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"semantic_context_id": "119792",
|
|
18
|
+
"timestamp": "2026-02-05T05:43:00.000Z",
|
|
19
|
+
"pattern_type": "regime_transition",
|
|
20
|
+
"narrative": "POST-TRANSITION: Confirmation du nouveau régime haussier. Vector [0.5,0.2] indique Trend+ avec volatilité réduite. Momentum en réaccumulation (0.42→0.56 attendu). Gap structurel 05:38 suggère saut de liquidité. Zone d'indécision (Conviction 0.00) normale post-changement de régime.",
|
|
21
|
+
"model_version": "sonnet-4-5-sequence-analyser",
|
|
22
|
+
"confidence": "medium",
|
|
23
|
+
"metadata": {
|
|
24
|
+
"sequence_position": "4th_post_transition",
|
|
25
|
+
"vector_analysis": "Trend=0.5(Vol=0.2)_Reaccumulation",
|
|
26
|
+
"actionable": "monitor_breakout",
|
|
27
|
+
"critical_event": "regime_shift_0537_0539"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"semantic_context_id": "sequence_transition_0537_0539",
|
|
32
|
+
"timestamp": "2026-02-05T05:37:00.000Z",
|
|
33
|
+
"pattern_type": "critical_regime_shift",
|
|
34
|
+
"narrative": "TRANSITION CRITIQUE: Basculement de régime bearish→haussier entre 05:37 et 05:39. Changement vectoriel [0,0.8]→[0.5,0.2] = Distribution→Absorption. Conviction passe de 1.00→0.00 (réinitialisation). Gap temporel 05:38 indique saut microstructurel (probable liquidité sweep). Momentum double (0.35→0.51) en 2 minutes = absorption agressive. SIGNAL: Entrée en phase d'accumulation.",
|
|
35
|
+
"model_version": "sonnet-4-5-sequence-analyser",
|
|
36
|
+
"confidence": "high",
|
|
37
|
+
"metadata": {
|
|
38
|
+
"transition_type": "distribution_to_absorption",
|
|
39
|
+
"vector_delta": "[0,0.8]→[0.5,0.2]",
|
|
40
|
+
"conviction_reset": "1.00→0.00",
|
|
41
|
+
"momentum_surge": "+45%_2min",
|
|
42
|
+
"actionable": "bullish_entry_signal",
|
|
43
|
+
"risk_level": "medium_post_transition"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"summary": {
|
|
48
|
+
"total_patterns_analyzed": 10,
|
|
49
|
+
"significant_enriched": 3,
|
|
50
|
+
"noise_filtered": 7,
|
|
51
|
+
"dominant_regime": "transition_bearish_to_bullish",
|
|
52
|
+
"health_score": "healthy_movement",
|
|
53
|
+
"key_insight": "Distribution contrôlée suivie d'absorption agressive. Gap structurel 05:38 = probable sweep de liquidité avant retournement."
|
|
54
|
+
},
|
|
55
|
+
"generated_at": "2026-02-05T05:45:00.000Z",
|
|
56
|
+
"analyzer": "claude-3.5-sonnet-batch-sequence"
|
|
57
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2026-02-05T05:23:00Z",
|
|
3
|
+
"symbol": "BTCUSDT_PERP_BINANCE",
|
|
4
|
+
"vector": [
|
|
5
|
+
0.5,
|
|
6
|
+
0.8,
|
|
7
|
+
0.594077,
|
|
8
|
+
0.842538,
|
|
9
|
+
0.942008,
|
|
10
|
+
0.00849743,
|
|
11
|
+
1,
|
|
12
|
+
0
|
|
13
|
+
],
|
|
14
|
+
"pattern": "EXPLOSIVE_MOMENTUM_PRE_REVERSAL",
|
|
15
|
+
"action": "LONG_SCALP",
|
|
16
|
+
"confidence": 0.87,
|
|
17
|
+
"rationale": "Momentum explosion (0.84) + RSI extreme (0.94) = final bullish leg before pullback",
|
|
18
|
+
"entry": "Breakout confirmation",
|
|
19
|
+
"stop_loss": "Tight - ATR based 0.5%",
|
|
20
|
+
"take_profit": "Scalp 30-50bps",
|
|
21
|
+
"risk_reward": "1:2 minimum",
|
|
22
|
+
"horizon": "15-60min",
|
|
23
|
+
"alert": "Spread widened 80x - expect slippage"
|
|
24
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
-- ============================================
|
|
2
|
+
-- BTC PATTERN ENRICHMENTS - BATCH 2026-02-05
|
|
3
|
+
-- ============================================
|
|
4
|
+
-- Generated from sequence analysis: 119772-119777
|
|
5
|
+
-- Market regime: Bullish acceleration with high volatility
|
|
6
|
+
-- ============================================
|
|
7
|
+
|
|
8
|
+
-- PATTERN 1: Starting baseline (05:23)
|
|
9
|
+
-- Conviction faible mais initialise la structure de mouvement
|
|
10
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
11
|
+
VALUES (
|
|
12
|
+
119772,
|
|
13
|
+
'BTC bullish baseline setup: High vol (0.8) with initial positive slope (0.0085). Price positioned at upper Keltner (0.942) suggesting existing uptrend strength. This pattern marks the pre-acceleration phase.',
|
|
14
|
+
'v1-batch-2026-02-05',
|
|
15
|
+
jsonb_build_object(
|
|
16
|
+
'vector', '[0.5,0.8,0.842538,0.842538,0.942008,0.00849743,1,0]',
|
|
17
|
+
'timestamp', '2026-02-05T05:23:00.000Z',
|
|
18
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
19
|
+
'regime', 'bullish_baseline',
|
|
20
|
+
'trade_idea', 'LONG entry on continuation above current level',
|
|
21
|
+
'confidence', 'medium'
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
25
|
+
narrative = EXCLUDED.narrative,
|
|
26
|
+
metadata = EXCLUDED.metadata;
|
|
27
|
+
|
|
28
|
+
-- PATTERN 2: Maximum acceleration point (05:28) ⚠ CRITICAL
|
|
29
|
+
-- C'est le sommet de la séquence : surchauffe avec slope max
|
|
30
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
31
|
+
VALUES (
|
|
32
|
+
119777,
|
|
33
|
+
'BTC OVERHEATED ACCELERATION: Maximum slope (0.0185) + extreme BB position (0.943) + Keltner near top (0.988). Momentum (0.813) confirms strong continuation. This represents the climax of the 5-min bullish surge. High probability of either: (a) continuation breakout, or (b) mean reversion pullback. Monitor for divergence.',
|
|
34
|
+
'v1-batch-2026-02-05',
|
|
35
|
+
jsonb_build_object(
|
|
36
|
+
'vector', '[0.5,0.8,0.812717,0.943214,0.987781,0.0185129,1,0]',
|
|
37
|
+
'timestamp', '2026-02-05T05:28:00.000Z',
|
|
38
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
39
|
+
'regime', 'bullish_climax',
|
|
40
|
+
'trade_idea', 'HIGH RISK: Consider partial profits or tight stops. Breakout continuation if 0.988 Keltner breaks.',
|
|
41
|
+
'confidence', 'high',
|
|
42
|
+
'alert_level', 'warning'
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
46
|
+
narrative = EXCLUDED.narrative,
|
|
47
|
+
metadata = EXCLUDED.metadata;
|
|
48
|
+
|
|
49
|
+
-- ============================================
|
|
50
|
+
-- PATTERNS IGNORÉS (BRUIT):
|
|
51
|
+
-- 119773 (05:24): Dip de momentum - récupération normale
|
|
52
|
+
-- 119774 (05:25): Point bas de compression - accumulation
|
|
53
|
+
-- 119775 (05:26): Début de réaccélération - transition
|
|
54
|
+
-- 119776 (05:27): Continuation intermédiaire - pas de signal
|
|
55
|
+
-- ============================================
|
|
56
|
+
|
|
57
|
+
-- Summary statistics
|
|
58
|
+
SELECT
|
|
59
|
+
COUNT(*) as enriched_patterns,
|
|
60
|
+
jsonb_agg(
|
|
61
|
+
jsonb_build_object(
|
|
62
|
+
'id', semantic_context_id,
|
|
63
|
+
'regime', metadata->>'regime',
|
|
64
|
+
'confidence', metadata->>'confidence'
|
|
65
|
+
)
|
|
66
|
+
) as summary
|
|
67
|
+
FROM pattern_enrichments
|
|
68
|
+
WHERE semantic_context_id IN (119772, 119777)
|
|
69
|
+
AND model_version = 'v1-batch-2026-02-05';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
-- ============================================
|
|
2
|
+
-- BTC PATTERN ENRICHMENTS - BATCH 2 (2026-02-05)
|
|
3
|
+
-- ============================================
|
|
4
|
+
-- Generated from sequence analysis: 119773-119782
|
|
5
|
+
-- Market regime: BEARISH REVERSAL - Major trend shift
|
|
6
|
+
-- ============================================
|
|
7
|
+
|
|
8
|
+
-- PATTERN 1: Bearish Reversal Trigger (05:29) ⚠ CRITICAL
|
|
9
|
+
-- Point de retournement majeur : Trend bascule, Strength explose, Momentum s'effondre
|
|
10
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
11
|
+
VALUES (
|
|
12
|
+
119778,
|
|
13
|
+
'BTC BEARISH REVERSAL TRIGGER: Major regime shift detected. Trend flips from neutral (0.5) to bearish (0) while Strength EXPLODES from 0 to 1 (major signal). Momentum collapses (0.819→0.818) with BB position plummeting (0.891→0.927 = false breakout). This creates a classic "bull trap" pattern where late buyers get trapped. Conviction drops to 0.00 indicating market confusion before clarity.',
|
|
14
|
+
'v1-batch-2026-02-05-reversal',
|
|
15
|
+
jsonb_build_object(
|
|
16
|
+
'vector', '[0.5,0.8,0.818848,0.891001,0.927256,0.0237598,1,0]',
|
|
17
|
+
'timestamp', '2026-02-05T05:29:00.000Z',
|
|
18
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
19
|
+
'regime', 'bearish_reversal_trigger',
|
|
20
|
+
'trade_idea', 'SHORT setup: False breakout at 0.927 Keltner. Target mean reversion to 0.5 BB. Stop above recent high.',
|
|
21
|
+
'confidence', 'high',
|
|
22
|
+
'alert_level', 'critical',
|
|
23
|
+
'pattern_type', 'reversal',
|
|
24
|
+
'strength_signal', 'explosive_0_to_1'
|
|
25
|
+
)
|
|
26
|
+
)
|
|
27
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
28
|
+
narrative = EXCLUDED.narrative,
|
|
29
|
+
metadata = EXCLUDED.metadata;
|
|
30
|
+
|
|
31
|
+
-- PATTERN 2: Maximum Bearish Acceleration (05:33) ⚠ CRITICAL
|
|
32
|
+
-- Accélération baissière maximale : Momentum et BBPos en chute libre
|
|
33
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
34
|
+
VALUES (
|
|
35
|
+
119782,
|
|
36
|
+
'BTC MAXIMUM BEARISH ACCELERATION: Confirmation of downtrend with conviction locked at 1.00. Momentum in freefall (0.739→0.504) with BB position collapsing (0.752→0.139 = DEEP OVERSOLD). Price rejected from upper bands, now accelerating through mean. Slope weakening (0.027→0.002) suggests initial climax of selling pressure. This is the "sweet spot" for short entries or panic buying bottoms.',
|
|
37
|
+
'v1-batch-2026-02-05-reversal',
|
|
38
|
+
jsonb_build_object(
|
|
39
|
+
'vector', '[0,0.8,0.504379,0.338151,0.138651,0.00219977,1,1]',
|
|
40
|
+
'timestamp', '2026-02-05T05:33:00.000Z',
|
|
41
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
42
|
+
'regime', 'bearish_acceleration_max',
|
|
43
|
+
'trade_idea', 'OPTIMAL ENTRY: BB at 0.139 (deep oversold). Two scenarios: (a) Short continuation if 0.139 breaks, (b) Reversal play if momentum stalls. High R/R.',
|
|
44
|
+
'confidence', 'very_high',
|
|
45
|
+
'alert_level', 'critical',
|
|
46
|
+
'pattern_type', 'acceleration',
|
|
47
|
+
'bb_position', 'deep_oversold_0.139'
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
51
|
+
narrative = EXCLUDED.narrative,
|
|
52
|
+
metadata = EXCLUDED.metadata;
|
|
53
|
+
|
|
54
|
+
-- ============================================
|
|
55
|
+
-- PATTERNS IGNORÉS (BRUIT):
|
|
56
|
+
-- 119773-119777 (05:24-05:28): Phase de transition / confusion
|
|
57
|
+
-- - Trend neutre (0.5), Strength nulle (0)
|
|
58
|
+
-- - Momentum fluctuant sans direction claire
|
|
59
|
+
-- - Pas de signal exploitable, juste du bruit de marché
|
|
60
|
+
-- 119779-119781 (05:30-05:32): Phase de confirmation
|
|
61
|
+
-- - Patterns intermédiaires de la cascade baissière
|
|
62
|
+
-- - Informations redondantes avec 119782 (point final)
|
|
63
|
+
-- ============================================
|
|
64
|
+
|
|
65
|
+
-- Summary statistics
|
|
66
|
+
SELECT
|
|
67
|
+
COUNT(*) as enriched_patterns,
|
|
68
|
+
jsonb_agg(
|
|
69
|
+
jsonb_build_object(
|
|
70
|
+
'id', semantic_context_id,
|
|
71
|
+
'regime', metadata->>'regime',
|
|
72
|
+
'confidence', metadata->>'confidence',
|
|
73
|
+
'pattern_type', metadata->>'pattern_type'
|
|
74
|
+
)
|
|
75
|
+
) as summary
|
|
76
|
+
FROM pattern_enrichments
|
|
77
|
+
WHERE semantic_context_id IN (119778, 119782)
|
|
78
|
+
AND model_version = 'v1-batch-2026-02-05-reversal';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
-- ============================================
|
|
2
|
+
-- BTC PATTERN ENRICHMENTS - BATCH 3 (2026-02-05)
|
|
3
|
+
-- ============================================
|
|
4
|
+
-- Generated from sequence analysis: 119773-119782
|
|
5
|
+
-- Market regime: BRUTAL REVERSAL - Bull exhaustion to bear collapse
|
|
6
|
+
-- ============================================
|
|
7
|
+
|
|
8
|
+
-- PATTERN 1: Bullish trend exhaustion (05:30)
|
|
9
|
+
-- Dernier point haut avant l'effondrement
|
|
10
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
11
|
+
VALUES (
|
|
12
|
+
119779,
|
|
13
|
+
'BTC BULL EXHAUSTION: Trend weakens (0.5) while momentum peaks (0.739) with extreme Keltner position (0.752). Paradoxical divergence - price extends while conviction collapses to 0.00. This indicates a distribution phase where smart money exits into retail liquidity. Critical reversal signal.',
|
|
14
|
+
'v1-batch-2026-02-05-reversal',
|
|
15
|
+
jsonb_build_object(
|
|
16
|
+
'vector', '[0.5,0.8,0.738994,0.781701,0.751931,0.0268662,1,0]',
|
|
17
|
+
'timestamp', '2026-02-05T05:30:00.000Z',
|
|
18
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
19
|
+
'regime', 'distribution_top',
|
|
20
|
+
'trade_idea', 'SHORT signal on breakdown below 0.75 Keltner. Target mean reversion.',
|
|
21
|
+
'confidence', 'high',
|
|
22
|
+
'alert_level', 'critical',
|
|
23
|
+
'pattern_type', 'reversal_entry'
|
|
24
|
+
)
|
|
25
|
+
)
|
|
26
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
27
|
+
narrative = EXCLUDED.narrative,
|
|
28
|
+
metadata = EXCLUDED.metadata;
|
|
29
|
+
|
|
30
|
+
-- PATTERN 2: Reversal confirmation (05:31)
|
|
31
|
+
-- Collapse confirmé avec conviction bascule
|
|
32
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
33
|
+
VALUES (
|
|
34
|
+
119780,
|
|
35
|
+
'BTC REVERSAL CONFIRMED: Trend collapses to flat (0), momentum decays (0.647) while conviction flips to HIGH (1.00). This confirms the structural breakdown - the 0→1 conviction signal with trend plat indicates a regime shift from speculative pump to organized distribution. Slope still positive (0.019) suggests trapped longs.',
|
|
36
|
+
'v1-batch-2026-02-05-reversal',
|
|
37
|
+
jsonb_build_object(
|
|
38
|
+
'vector', '[0,0.8,0.647364,0.587041,0.431451,0.0192297,1,1]',
|
|
39
|
+
'timestamp', '2026-02-05T05:31:00.000Z',
|
|
40
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
41
|
+
'regime', 'bear_rollback',
|
|
42
|
+
'trade_idea', 'SHORT entry active. Stop above 0.65 BB. Target 0.43 Keltner support.',
|
|
43
|
+
'confidence', 'very_high',
|
|
44
|
+
'alert_level', 'critical',
|
|
45
|
+
'pattern_type', 'reversal_confirmed'
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
49
|
+
narrative = EXCLUDED.narrative,
|
|
50
|
+
metadata = EXCLUDED.metadata;
|
|
51
|
+
|
|
52
|
+
-- PATTERN 3: New bearish regime stabilized (05:33)
|
|
53
|
+
-- Nouveau régime établi
|
|
54
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
55
|
+
VALUES (
|
|
56
|
+
119782,
|
|
57
|
+
'BTC BEARISH REGIME: Trend flat (0), momentum weak (0.504) with conviction high (1.00). Price compressed to lower Keltner (0.139) - the pullback is accelerating. Minimal slope (0.002) confirms loss of bullish energy. This is NOT noise - it''s a structured regime change with high conviction bearish positioning.',
|
|
58
|
+
'v1-batch-2026-02-05-reversal',
|
|
59
|
+
jsonb_build_object(
|
|
60
|
+
'vector', '[0,0.8,0.504379,0.338151,0.138651,0.00219977,1,1]',
|
|
61
|
+
'timestamp', '2026-02-05T05:33:00.000Z',
|
|
62
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
63
|
+
'regime', 'bear_established',
|
|
64
|
+
'trade_idea', 'SHORT momentum trade. Target further compression to 0.10 Keltner. Watch for divergence.',
|
|
65
|
+
'confidence', 'high',
|
|
66
|
+
'alert_level', 'watch',
|
|
67
|
+
'pattern_type', 'trend_continuation'
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
71
|
+
narrative = EXCLUDED.narrative,
|
|
72
|
+
metadata = EXCLUDED.metadata;
|
|
73
|
+
|
|
74
|
+
-- ============================================
|
|
75
|
+
-- PATTERNS IGNORÉS (BRUIT/TRANSITION):
|
|
76
|
+
-- 119773-119778 (05:24-05:29): Trend haussier stable sans signal
|
|
77
|
+
-- 119781 (05:32): Pattern intermédiaire de continuation
|
|
78
|
+
-- ============================================
|
|
79
|
+
|
|
80
|
+
-- Summary statistics
|
|
81
|
+
SELECT
|
|
82
|
+
COUNT(*) as enriched_patterns,
|
|
83
|
+
jsonb_agg(
|
|
84
|
+
jsonb_build_object(
|
|
85
|
+
'id', semantic_context_id,
|
|
86
|
+
'regime', metadata->>'regime',
|
|
87
|
+
'confidence', metadata->>'confidence',
|
|
88
|
+
'pattern_type', metadata->>'pattern_type'
|
|
89
|
+
)
|
|
90
|
+
) as summary
|
|
91
|
+
FROM pattern_enrichments
|
|
92
|
+
WHERE semantic_context_id IN (119779, 119780, 119782)
|
|
93
|
+
AND model_version = 'v1-batch-2026-02-05-reversal';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
-- ============================================
|
|
2
|
+
-- BTC PATTERN ENRICHMENTS - BATCH 4 (2026-02-05)
|
|
3
|
+
-- ============================================
|
|
4
|
+
-- Generated from sequence analysis: 119788-119792
|
|
5
|
+
-- Market regime: COMPRESSION/COILING - Low vol, momentum degradation
|
|
6
|
+
-- ============================================
|
|
7
|
+
|
|
8
|
+
-- PATTERN 1: Critical compression setup (05:41)
|
|
9
|
+
-- Divergence slope/momentum avec BB position élevée
|
|
10
|
+
INSERT INTO pattern_enrichments (semantic_context_id, narrative, model_version, metadata)
|
|
11
|
+
VALUES (
|
|
12
|
+
119790,
|
|
13
|
+
'BTC COMPRESSION SETUP: Critical divergence detected. Slope collapses to near-zero (0.001) while momentum maintains elevated level (0.490). BB position at upper band (0.725) with low volatility (0.2) creates coiled spring configuration. This compression pattern often precedes directional breakouts. The sequence shows momentum degradation from 119788 (0.511) to 119792 (0.423), indicating weakening bullish pressure despite elevated BB position. Watch for breakdown confirmation.',
|
|
14
|
+
'v1-batch-2026-02-05-compression',
|
|
15
|
+
jsonb_build_object(
|
|
16
|
+
'vector', '[0.5,0.2,0.48972,0.725154,0.771961,0.00139409,0.25,0]',
|
|
17
|
+
'timestamp', '2026-02-05T05:41:00.000Z',
|
|
18
|
+
'symbol', 'BTCUSDT_PERP_BINANCE',
|
|
19
|
+
'regime', 'compression_coiling',
|
|
20
|
+
'trade_idea', 'WAIT for breakout confirmation. SHORT on breakdown below 0.70 BB. LONG on breakout above 0.75 with volume.',
|
|
21
|
+
'confidence', 'medium',
|
|
22
|
+
'alert_level', 'watch',
|
|
23
|
+
'pattern_type', 'compression_breakout_setup',
|
|
24
|
+
'slope_momentum_divergence', true,
|
|
25
|
+
'bb_position', 'elevated',
|
|
26
|
+
'volatility_state', 'suppressed'
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
ON CONFLICT (semantic_context_id) DO UPDATE SET
|
|
30
|
+
narrative = EXCLUDED.narrative,
|
|
31
|
+
metadata = EXCLUDED.metadata;
|
|
32
|
+
|
|
33
|
+
-- ============================================
|
|
34
|
+
-- PATTERNS IGNORÉS (BRUIT/TRANSITION):
|
|
35
|
+
-- 119788 (05:39): Pattern de début de séquence, pas de signal
|
|
36
|
+
-- 119789 (05:40): Pattern intermédiaire de consolidation
|
|
37
|
+
-- 119791 (05:42): Continuation de dégradation momentum
|
|
38
|
+
-- 119792 (05:43): Pattern de fin de séquence, pas de signal
|
|
39
|
+
-- ============================================
|
|
40
|
+
-- RATIONALE: Seul 119790 présente une divergence significative
|
|
41
|
+
-- slope/momentum avec BB position extrême et volatilité faible.
|
|
42
|
+
-- Les autres patterns sont du bruit de consolidation sans edge.
|
|
43
|
+
-- ============================================
|
|
44
|
+
|
|
45
|
+
-- Summary statistics
|
|
46
|
+
SELECT
|
|
47
|
+
COUNT(*) as enriched_patterns,
|
|
48
|
+
jsonb_agg(
|
|
49
|
+
jsonb_build_object(
|
|
50
|
+
'id', semantic_context_id,
|
|
51
|
+
'regime', metadata->>'regime',
|
|
52
|
+
'confidence', metadata->>'confidence',
|
|
53
|
+
'pattern_type', metadata->>'pattern_type'
|
|
54
|
+
)
|
|
55
|
+
) as summary
|
|
56
|
+
FROM pattern_enrichments
|
|
57
|
+
WHERE semantic_context_id IN (119790)
|
|
58
|
+
AND model_version = 'v1-batch-2026-02-05-compression';
|