@evomap/evolver 1.79.1 → 1.80.1

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 (46) hide show
  1. package/README.md +3 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
  4. package/src/adapters/hookAdapter.js +3 -1
  5. package/src/adapters/opencode.js +199 -0
  6. package/src/evolve/guards.js +1 -0
  7. package/src/evolve/pipeline/collect.js +1 -0
  8. package/src/evolve/utils.js +1 -0
  9. package/src/evolve.js +1 -1
  10. package/src/gep/.integrity +0 -0
  11. package/src/gep/a2aProtocol.js +1 -1
  12. package/src/gep/candidateEval.js +1 -1
  13. package/src/gep/candidates.js +1 -1
  14. package/src/gep/contentHash.js +1 -1
  15. package/src/gep/crypto.js +1 -1
  16. package/src/gep/curriculum.js +1 -1
  17. package/src/gep/deviceId.js +1 -1
  18. package/src/gep/envFingerprint.js +1 -1
  19. package/src/gep/explore.js +1 -1
  20. package/src/gep/hubReview.js +1 -1
  21. package/src/gep/hubSearch.js +1 -1
  22. package/src/gep/hubVerify.js +1 -1
  23. package/src/gep/integrityCheck.js +1 -1
  24. package/src/gep/learningSignals.js +1 -1
  25. package/src/gep/memoryGraph.js +1 -1
  26. package/src/gep/memoryGraphAdapter.js +1 -1
  27. package/src/gep/mutation.js +1 -1
  28. package/src/gep/narrativeMemory.js +1 -1
  29. package/src/gep/personality.js +1 -1
  30. package/src/gep/policyCheck.js +1 -1
  31. package/src/gep/prompt.js +1 -1
  32. package/src/gep/reflection.js +1 -1
  33. package/src/gep/selector.js +1 -1
  34. package/src/gep/shield.js +1 -1
  35. package/src/gep/skillDistiller.js +1 -1
  36. package/src/gep/solidify.js +1 -1
  37. package/src/gep/strategy.js +1 -1
  38. package/src/gep/validator/index.js +85 -2
  39. package/src/gep/validator/reporter.js +86 -0
  40. package/src/gep/validator/sandboxExecutor.js +44 -0
  41. package/assets/gep/candidates.jsonl +0 -2
  42. package/assets/gep/capsules.json +0 -4
  43. package/assets/gep/events.jsonl +0 -0
  44. package/assets/gep/failed_capsules.json +0 -4
  45. package/assets/gep/genes.json +0 -201
  46. package/assets/gep/genes.jsonl +0 -0
@@ -1,201 +0,0 @@
1
- {
2
- "version": 2,
3
- "genes": [
4
- {
5
- "type": "Gene",
6
- "id": "gene_gep_repair_from_errors",
7
- "category": "repair",
8
- "signals_match": [
9
- "error",
10
- "exception",
11
- "failed",
12
- "unstable"
13
- ],
14
- "preconditions": [
15
- "signals contains error-related indicators"
16
- ],
17
- "strategy": [
18
- "Extract structured signals from logs and user instructions",
19
- "Select an existing Gene by signals match (no improvisation)",
20
- "Estimate blast radius (files, lines) before editing",
21
- "Apply smallest reversible patch",
22
- "Validate using declared validation steps; rollback on failure",
23
- "Solidify knowledge: append EvolutionEvent, update Gene/Capsule store"
24
- ],
25
- "constraints": {
26
- "max_files": 20,
27
- "forbidden_paths": [
28
- ".git",
29
- "node_modules"
30
- ]
31
- },
32
- "validation": [
33
- "node scripts/validate-modules.js ./src/evolve ./src/gep/solidify ./src/gep/policyCheck ./src/gep/selector ./src/gep/memoryGraph ./src/gep/assetStore",
34
- "node scripts/validate-suite.js"
35
- ]
36
- },
37
- {
38
- "type": "Gene",
39
- "id": "gene_gep_optimize_prompt_and_assets",
40
- "category": "optimize",
41
- "signals_match": [
42
- "protocol",
43
- "gep",
44
- "prompt",
45
- "audit",
46
- "reusable"
47
- ],
48
- "preconditions": [
49
- "need stricter, auditable evolution protocol outputs"
50
- ],
51
- "strategy": [
52
- "Extract signals and determine selection rationale via Selector JSON",
53
- "Prefer reusing existing Gene/Capsule; only create if no match exists",
54
- "Refactor prompt assembly to embed assets (genes, capsules, parent event)",
55
- "Reduce noise and ambiguity; enforce strict output schema",
56
- "Validate by running node index.js run and ensuring no runtime errors",
57
- "Solidify: record EvolutionEvent, update Gene definitions, create Capsule on success"
58
- ],
59
- "constraints": {
60
- "max_files": 20,
61
- "forbidden_paths": [
62
- ".git",
63
- "node_modules"
64
- ]
65
- },
66
- "validation": [
67
- "node scripts/validate-modules.js ./src/evolve ./src/gep/prompt ./src/gep/contentHash ./src/gep/skillDistiller",
68
- "node scripts/validate-suite.js"
69
- ]
70
- },
71
- {
72
- "type": "Gene",
73
- "id": "gene_gep_innovate_from_opportunity",
74
- "category": "innovate",
75
- "signals_match": [
76
- "user_feature_request",
77
- "user_improvement_suggestion",
78
- "perf_bottleneck",
79
- "capability_gap",
80
- "stable_success_plateau",
81
- "external_opportunity",
82
- "bounty_task"
83
- ],
84
- "preconditions": [
85
- "at least one opportunity signal is present",
86
- "no active log_error signals (stability first)"
87
- ],
88
- "strategy": [
89
- "Extract opportunity signals and identify the specific user need or system gap",
90
- "Search existing Genes and Capsules for partial matches (avoid reinventing)",
91
- "Design a minimal, testable implementation plan (prefer small increments)",
92
- "Estimate blast radius; innovate changes may touch more files but must stay within constraints",
93
- "Implement the change with clear validation criteria",
94
- "Validate using declared validation steps; rollback on failure",
95
- "Solidify: record EvolutionEvent with intent=innovate, create new Gene if pattern is novel, create Capsule on success"
96
- ],
97
- "constraints": {
98
- "max_files": 25,
99
- "forbidden_paths": [
100
- ".git",
101
- "node_modules"
102
- ]
103
- },
104
- "validation": [
105
- "node scripts/validate-modules.js ./src/evolve ./src/gep/solidify ./src/gep/policyCheck ./src/gep/mutation ./src/gep/personality",
106
- "node scripts/validate-suite.js"
107
- ]
108
- },
109
- {
110
- "type": "Gene",
111
- "id": "gene_gep_optimize_tool_usage",
112
- "summary": "Optimize tool execution patterns by reducing redundant exec calls, improving tool selection strategy, and enforcing tool-use constraints to prevent bypass.",
113
- "category": "optimize",
114
- "signals_match": [
115
- "high_tool_usage:exec",
116
- "repeated_tool_usage:exec",
117
- "tool_bypass",
118
- "tool_loop",
119
- "high_tool_usage"
120
- ],
121
- "preconditions": [
122
- "agent repeatedly invokes the same tool (especially exec) without progress",
123
- "tool execution bypass patterns detected",
124
- "no active error signals (errors would take repair priority)"
125
- ],
126
- "strategy": [
127
- "Analyze tool usage patterns to identify the root cause of repetition (wrong tool, missing context, or lack of guardrails)",
128
- "Introduce strategy-level guardrails: prefer single-shot commands, batch related operations, add explicit retry limits",
129
- "If tool_bypass detected, strengthen constraint enforcement in prompt assembly or tool routing",
130
- "Estimate blast radius; changes should target tool routing, prompt constraints, or signal deduplication logic",
131
- "Validate by confirming no regressions in existing tool tests and signal extraction accuracy",
132
- "Solidify: record EvolutionEvent with intent=optimize, update Capsule on success"
133
- ],
134
- "constraints": {
135
- "max_files": 15,
136
- "forbidden_paths": [
137
- ".git",
138
- "node_modules"
139
- ]
140
- },
141
- "validation": [
142
- "node scripts/validate-modules.js ./src/gep/signals ./src/evolve",
143
- "node scripts/validate-suite.js"
144
- ]
145
- },
146
- {
147
- "type": "Gene",
148
- "id": "gene_distilled_s2g-env-vars",
149
- "summary": "Vercel environment variable expert guidance. Use when working with .env files, vercel env commands, OIDC tokens, or managing environment-specific configuration.",
150
- "category": "optimize",
151
- "signals_match": [
152
- "use_when_working_with",
153
- "env_files",
154
- "vercel_env_commands",
155
- "oidc_tokens",
156
- "vercel_env_pull",
157
- "env_local_overwrite",
158
- "oidc_token_expiry",
159
- "dotenv_cli"
160
- ],
161
- "preconditions": [
162
- "Skill env-vars has just been executed locally"
163
- ],
164
- "strategy": [
165
- "Identify the dominant trigger signals from the Skill description.",
166
- "Apply the smallest targeted change that satisfies the Skill workflow.",
167
- "Run the Skill validation commands and abort if any fails."
168
- ],
169
- "constraints": {
170
- "max_files": 12,
171
- "forbidden_paths": [
172
- ".git",
173
- "node_modules"
174
- ]
175
- },
176
- "validation": [
177
- "node --version"
178
- ],
179
- "schema_version": "1.6.0",
180
- "_source": {
181
- "kind": "skill2gep",
182
- "skill_name": "env-vars",
183
- "skill_platform": "vercel",
184
- "skill_hash": "ba0bdb4db2",
185
- "rationale_paper": "Wang, Ren, Zhang. From Procedural Skills to Strategy Genes. arXiv:2604.15097",
186
- "paper_scope": "code-science (arXiv:2604.15097, 45 tasks, Gemini 3.1 Pro/Flash Lite)",
187
- "claims_outside_scope": "assumption",
188
- "quality_heuristics": {
189
- "strategy_steps": 0,
190
- "avoid_count": 0,
191
- "validation_declared_count": 0,
192
- "validation_runnable_count": 0,
193
- "validation_fallback_used": true,
194
- "signals_extracted": 4,
195
- "preconditions_extracted": 0
196
- }
197
- },
198
- "asset_id": "sha256:4fa74fe34d19564416dfd8e63f3012a1672e86f39c4bff85d1c70524e06b5a2e"
199
- }
200
- ]
201
- }
File without changes