@saulwade/swl-ses 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +2 -2
- package/README.md +4 -4
- package/agentes/_intent-spec.md +73 -0
- package/agentes/auto-evolucion-swl.md +24 -0
- package/agentes/cloud-infra-swl.md +25 -0
- package/agentes/datos-swl.md +23 -0
- package/agentes/devops-ci-swl.md +24 -0
- package/agentes/migrador-swl.md +22 -0
- package/agentes/pagos-swl.md +25 -0
- package/agentes/release-manager-swl.md +24 -0
- package/agentes/sre-swl.md +24 -0
- package/comandos/swl/planear-fase.md +16 -0
- package/habilidades/aprender-de-git-diff/SKILL.md +288 -0
- package/habilidades/diseno-herramientas-agente/SKILL.md +17 -1
- package/habilidades/meta-skills-estandar/SKILL.md +6 -0
- package/habilidades/meta-skills-estandar/recursos/skill-judge-rubrica.md +281 -0
- package/habilidades/proceso-autoverificacion-evidencias/SKILL.md +258 -0
- package/habilidades/proceso-confianza-pre-implementacion/SKILL.md +246 -0
- package/habilidades/proceso-ddia-fundamentos/SKILL.md +255 -0
- package/habilidades/proceso-ddia-streaming/SKILL.md +231 -0
- package/habilidades/proceso-intent-engineering/SKILL.md +269 -0
- package/habilidades/reducir-entropia/SKILL.md +219 -0
- package/hooks/lib/task-budget.js +218 -0
- package/hooks/validar-intent-spec.js +222 -0
- package/manifiestos/hooks-config.json +9 -0
- package/manifiestos/modulos.json +11 -2
- package/manifiestos/skills-lock.json +90 -41
- package/package.json +2 -2
- package/plugin.json +9 -2
- package/reglas/fragmentos-compartidos.md +26 -0
- package/reglas/intent-engineering.md +214 -0
- package/reglas/registro-componentes-nuevos.md +38 -0
- package/schemas/agent-frontmatter.schema.json +294 -167
- package/schemas/agent-message.schema.json +73 -53
- package/schemas/agent-output-implementacion.schema.json +114 -85
- package/schemas/agent-output-planificacion.schema.json +150 -113
- package/schemas/agent-output-review.schema.json +98 -78
- package/schemas/diary-entry.schema.json +42 -10
- package/schemas/hook-profiles.schema.json +54 -39
- package/schemas/hooks-config.schema.json +89 -74
- package/schemas/instinct.schema.json +152 -115
- package/schemas/modulos.schema.json +38 -29
- package/schemas/perfiles.schema.json +36 -28
- package/schemas/plugin.schema.json +77 -64
- package/schemas/skill-evals.schema.json +119 -95
- package/schemas/skill-frontmatter.schema.json +245 -170
- package/scripts/generar-inventario.js +3 -1
- package/scripts/lib/schema-version.js +164 -0
- package/scripts/validar-manifest.js +1 -1
- package/scripts/validar.js +3 -2
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://swl-ses.dev/schemas/diary-entry.json",
|
|
4
|
+
"$schemaVersion": "1.0.0",
|
|
4
5
|
"title": "SWL Diary Entry",
|
|
5
6
|
"description": "Diario estructurado por sesion. Captura logros, decisiones, challenges y aprendizajes clave en formato consumible por /swl:aprender.",
|
|
6
7
|
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
+
"required": [
|
|
9
|
+
"id",
|
|
10
|
+
"sessionId",
|
|
11
|
+
"date",
|
|
12
|
+
"createdAt"
|
|
13
|
+
],
|
|
8
14
|
"properties": {
|
|
9
15
|
"id": {
|
|
10
16
|
"type": "string",
|
|
@@ -17,7 +23,10 @@
|
|
|
17
23
|
"description": "ID de la sesion de Claude Code que origina el diario"
|
|
18
24
|
},
|
|
19
25
|
"agent": {
|
|
20
|
-
"type": [
|
|
26
|
+
"type": [
|
|
27
|
+
"string",
|
|
28
|
+
"null"
|
|
29
|
+
],
|
|
21
30
|
"description": "Agente principal de la sesion (si aplica)"
|
|
22
31
|
},
|
|
23
32
|
"date": {
|
|
@@ -26,49 +35,72 @@
|
|
|
26
35
|
"description": "Fecha de la sesion en formato YYYY-MM-DD"
|
|
27
36
|
},
|
|
28
37
|
"startTime": {
|
|
29
|
-
"type": [
|
|
38
|
+
"type": [
|
|
39
|
+
"string",
|
|
40
|
+
"null"
|
|
41
|
+
],
|
|
30
42
|
"format": "date-time",
|
|
31
43
|
"description": "Inicio de la sesion en ISO 8601"
|
|
32
44
|
},
|
|
33
45
|
"endTime": {
|
|
34
|
-
"type": [
|
|
46
|
+
"type": [
|
|
47
|
+
"string",
|
|
48
|
+
"null"
|
|
49
|
+
],
|
|
35
50
|
"format": "date-time",
|
|
36
51
|
"description": "Fin de la sesion en ISO 8601 (null si esta abierta)"
|
|
37
52
|
},
|
|
38
53
|
"accomplishments": {
|
|
39
54
|
"type": "array",
|
|
40
55
|
"maxItems": 20,
|
|
41
|
-
"items": {
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"maxLength": 500
|
|
59
|
+
},
|
|
42
60
|
"description": "Logros concretos de la sesion"
|
|
43
61
|
},
|
|
44
62
|
"decisions": {
|
|
45
63
|
"type": "array",
|
|
46
64
|
"maxItems": 20,
|
|
47
|
-
"items": {
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"maxLength": 500
|
|
68
|
+
},
|
|
48
69
|
"description": "Decisiones tomadas con su justificacion breve"
|
|
49
70
|
},
|
|
50
71
|
"challenges": {
|
|
51
72
|
"type": "array",
|
|
52
73
|
"maxItems": 20,
|
|
53
|
-
"items": {
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"maxLength": 500
|
|
77
|
+
},
|
|
54
78
|
"description": "Bloqueos o problemas encontrados"
|
|
55
79
|
},
|
|
56
80
|
"keyLearnings": {
|
|
57
81
|
"type": "array",
|
|
58
82
|
"maxItems": 20,
|
|
59
|
-
"items": {
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"maxLength": 500
|
|
86
|
+
},
|
|
60
87
|
"description": "Aprendizajes clave que alimentan APRENDIZAJES.md o instintos"
|
|
61
88
|
},
|
|
62
89
|
"tags": {
|
|
63
90
|
"type": "array",
|
|
64
91
|
"maxItems": 20,
|
|
65
|
-
"items": {
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"maxLength": 500
|
|
95
|
+
},
|
|
66
96
|
"description": "Etiquetas para clasificacion y busqueda"
|
|
67
97
|
},
|
|
68
98
|
"sourceAgents": {
|
|
69
99
|
"type": "array",
|
|
70
100
|
"uniqueItems": true,
|
|
71
|
-
"items": {
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
72
104
|
"description": "Agentes que contribuyeron a la sesion (cross-agent enrichment)"
|
|
73
105
|
},
|
|
74
106
|
"createdAt": {
|
|
@@ -1,39 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://swl-ses.dev/schemas/hook-profiles.json",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"descripcion"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://swl-ses.dev/schemas/hook-profiles.json",
|
|
4
|
+
"$schemaVersion": "1.0.0",
|
|
5
|
+
"title": "SWL Hook Profiles",
|
|
6
|
+
"description": "Schema para hook-profiles.json del sistema SWL",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"descripcion",
|
|
10
|
+
"perfilActivo",
|
|
11
|
+
"perfiles"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"descripcion": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"perfilActivo": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"minimal",
|
|
21
|
+
"standard",
|
|
22
|
+
"strict",
|
|
23
|
+
"custom"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"perfiles": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": [
|
|
31
|
+
"descripcion",
|
|
32
|
+
"hooks"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"descripcion": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"hooks": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"overrides": {
|
|
45
|
+
"type": "object"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"variablesEntorno": {
|
|
51
|
+
"type": "object"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,74 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://swl-ses.dev/schemas/hooks-config.json",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"descripcion"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"type": "number",
|
|
46
|
-
"minimum": 0
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://swl-ses.dev/schemas/hooks-config.json",
|
|
4
|
+
"$schemaVersion": "1.0.0",
|
|
5
|
+
"title": "SWL Hooks Config",
|
|
6
|
+
"description": "Schema para hooks-config.json del sistema SWL",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"descripcion",
|
|
10
|
+
"hooks"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"descripcion": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"riskThresholds": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [
|
|
19
|
+
"allow",
|
|
20
|
+
"review",
|
|
21
|
+
"confirm"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"allow": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"minimum": 0,
|
|
27
|
+
"maximum": 1
|
|
28
|
+
},
|
|
29
|
+
"review": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"minimum": 0,
|
|
32
|
+
"maximum": 1
|
|
33
|
+
},
|
|
34
|
+
"confirm": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"minimum": 0,
|
|
37
|
+
"maximum": 1
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"costBudget": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"maxUsd": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"maxTokens": {
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
},
|
|
52
|
+
"alertAt": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"minimum": 0,
|
|
55
|
+
"maximum": 1
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"hooks": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"required": [
|
|
64
|
+
"event",
|
|
65
|
+
"description",
|
|
66
|
+
"blocking"
|
|
67
|
+
],
|
|
68
|
+
"properties": {
|
|
69
|
+
"event": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"enum": [
|
|
72
|
+
"PreToolUse",
|
|
73
|
+
"PostToolUse"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"matcher": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"description": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"blocking": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,115 +1,152 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://swl-ses.dev/schemas/instinct.json",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"version"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"type": "string",
|
|
37
|
-
"
|
|
38
|
-
"description": "
|
|
39
|
-
},
|
|
40
|
-
"
|
|
41
|
-
"type": "string",
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"description": "
|
|
99
|
-
},
|
|
100
|
-
"
|
|
101
|
-
"type": "
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"description": "
|
|
105
|
-
},
|
|
106
|
-
"
|
|
107
|
-
"type": "
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://swl-ses.dev/schemas/instinct.json",
|
|
4
|
+
"$schemaVersion": "1.0.0",
|
|
5
|
+
"title": "SWL Instinct",
|
|
6
|
+
"description": "Schema de validacion para instintos YAML del sistema SWL",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"version",
|
|
10
|
+
"instintos"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"version": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"generado": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"total_instintos": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 0
|
|
22
|
+
},
|
|
23
|
+
"instintos": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": [
|
|
28
|
+
"id",
|
|
29
|
+
"pattern",
|
|
30
|
+
"confidence",
|
|
31
|
+
"scope",
|
|
32
|
+
"status"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"id": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^inst-\\d{3,}$",
|
|
38
|
+
"description": "Identificador unico secuencial"
|
|
39
|
+
},
|
|
40
|
+
"pattern": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 10,
|
|
43
|
+
"maxLength": 500,
|
|
44
|
+
"description": "Descripcion del patron observado"
|
|
45
|
+
},
|
|
46
|
+
"confidence": {
|
|
47
|
+
"type": "number",
|
|
48
|
+
"minimum": 0,
|
|
49
|
+
"maximum": 1,
|
|
50
|
+
"description": "Nivel de confianza (0.0 bajo, 1.0 certeza)"
|
|
51
|
+
},
|
|
52
|
+
"scope": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"enum": [
|
|
55
|
+
"project",
|
|
56
|
+
"domain",
|
|
57
|
+
"global"
|
|
58
|
+
],
|
|
59
|
+
"description": "Alcance del instinto"
|
|
60
|
+
},
|
|
61
|
+
"source": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "ID de sesion o 'manual'"
|
|
64
|
+
},
|
|
65
|
+
"evidence_count": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 0,
|
|
68
|
+
"description": "Veces que el patron ha sido observado"
|
|
69
|
+
},
|
|
70
|
+
"last_validated": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Fecha de ultima validacion (YYYY-MM-DD)"
|
|
73
|
+
},
|
|
74
|
+
"contradictions": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"minimum": 0,
|
|
77
|
+
"description": "Veces que el patron ha sido contradicho"
|
|
78
|
+
},
|
|
79
|
+
"status": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": [
|
|
82
|
+
"active",
|
|
83
|
+
"degraded",
|
|
84
|
+
"promoted",
|
|
85
|
+
"archived"
|
|
86
|
+
],
|
|
87
|
+
"description": "Estado actual del instinto"
|
|
88
|
+
},
|
|
89
|
+
"tags": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"description": "Etiquetas para clasificacion"
|
|
95
|
+
},
|
|
96
|
+
"created_at": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Fecha de creacion (YYYY-MM-DD)"
|
|
99
|
+
},
|
|
100
|
+
"decay_half_life_days": {
|
|
101
|
+
"type": "integer",
|
|
102
|
+
"minimum": 1,
|
|
103
|
+
"default": 90,
|
|
104
|
+
"description": "Dias para que la confianza decaiga a la mitad. 90 dias por defecto."
|
|
105
|
+
},
|
|
106
|
+
"helpful_count": {
|
|
107
|
+
"type": "integer",
|
|
108
|
+
"minimum": 0,
|
|
109
|
+
"default": 0,
|
|
110
|
+
"description": "Numero de veces que el instinto fue util en una sesion"
|
|
111
|
+
},
|
|
112
|
+
"harmful_count": {
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"minimum": 0,
|
|
115
|
+
"default": 0,
|
|
116
|
+
"description": "Numero de veces que el instinto guio a un resultado incorrecto"
|
|
117
|
+
},
|
|
118
|
+
"last_validated_at": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"description": "Timestamp ISO o YYYY-MM-DD de la ultima validacion via feedback (sustituye a last_validated en sistemas con scoring)"
|
|
121
|
+
},
|
|
122
|
+
"source_sessions": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"uniqueItems": true,
|
|
128
|
+
"description": "IDs de sesiones que contribuyeron a este instinto (para priorizacion por evidencia multiple)"
|
|
129
|
+
},
|
|
130
|
+
"source_agents": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"uniqueItems": true,
|
|
136
|
+
"description": "Nombres de agentes que validaron este instinto (cross-agent enrichment)"
|
|
137
|
+
},
|
|
138
|
+
"maturity": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"enum": [
|
|
141
|
+
"candidate",
|
|
142
|
+
"established",
|
|
143
|
+
"proven",
|
|
144
|
+
"deprecated"
|
|
145
|
+
],
|
|
146
|
+
"description": "Estado de maduracion derivado (computado, no persistente). Ver scripts/lib/scoring-instintos.js"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|