@evomap/evolver 1.67.6 → 1.68.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evomap/evolver",
3
- "version": "1.67.6",
3
+ "version": "1.68.0-beta.1",
4
4
  "description": "A GEP-powered self-evolution engine for AI agents. Features automated log analysis and Genome Evolution Protocol (GEP) for auditable, reusable evolution assets.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -84,6 +84,23 @@ const SELF_PR_TIMEOUT_MS = envInt('EVOLVER_SELF_PR_TIMEOUT_MS', 30000);
84
84
 
85
85
  const LEAK_CHECK_MODE = envStr('EVOLVER_LEAK_CHECK', 'warn');
86
86
 
87
+ // --- Validator mode (opt-in) ---
88
+ // Opt-in node role: when enabled, the evolver periodically fetches assigned
89
+ // validation tasks from the Hub, runs the commands in an isolated sandbox,
90
+ // and submits ValidationReports. Default is OFF for backward compatibility.
91
+
92
+ const VALIDATOR_ENABLED = (function () {
93
+ const v = String(process.env.EVOLVER_VALIDATOR_ENABLED || '').toLowerCase().trim();
94
+ return v === '1' || v === 'true' || v === 'yes' || v === 'on';
95
+ })();
96
+ const VALIDATOR_STAKE_AMOUNT = envInt('EVOLVER_VALIDATOR_STAKE_AMOUNT', 100);
97
+ const VALIDATOR_MAX_TASKS_PER_CYCLE = envInt('EVOLVER_VALIDATOR_MAX_TASKS_PER_CYCLE', 2);
98
+ const VALIDATOR_FETCH_TIMEOUT_MS = envInt('EVOLVER_VALIDATOR_FETCH_TIMEOUT_MS', 8000);
99
+ const VALIDATOR_REPORT_TIMEOUT_MS = envInt('EVOLVER_VALIDATOR_REPORT_TIMEOUT_MS', 10000);
100
+ const VALIDATOR_STAKE_TIMEOUT_MS = envInt('EVOLVER_VALIDATOR_STAKE_TIMEOUT_MS', 10000);
101
+ const VALIDATOR_CMD_TIMEOUT_MS = envInt('EVOLVER_VALIDATOR_CMD_TIMEOUT_MS', 60000);
102
+ const VALIDATOR_BATCH_TIMEOUT_MS = envInt('EVOLVER_VALIDATOR_BATCH_TIMEOUT_MS', 180000);
103
+
87
104
  module.exports = {
88
105
  // Network
89
106
  HELLO_TIMEOUT_MS,
@@ -136,6 +153,15 @@ module.exports = {
136
153
  SELF_PR_TIMEOUT_MS,
137
154
  // Security
138
155
  LEAK_CHECK_MODE,
156
+ // Validator (opt-in role)
157
+ VALIDATOR_ENABLED,
158
+ VALIDATOR_STAKE_AMOUNT,
159
+ VALIDATOR_MAX_TASKS_PER_CYCLE,
160
+ VALIDATOR_FETCH_TIMEOUT_MS,
161
+ VALIDATOR_REPORT_TIMEOUT_MS,
162
+ VALIDATOR_STAKE_TIMEOUT_MS,
163
+ VALIDATOR_CMD_TIMEOUT_MS,
164
+ VALIDATOR_BATCH_TIMEOUT_MS,
139
165
  // Helpers
140
166
  envInt,
141
167
  envFloat,