@evomap/evolver 1.87.0 → 1.87.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 (43) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
  3. package/src/adapters/hookAdapter.js +19 -4
  4. package/src/evolve/guards.js +1 -1
  5. package/src/evolve/pipeline/collect.js +1 -1
  6. package/src/evolve/pipeline/dispatch.js +1 -1
  7. package/src/evolve/pipeline/enrich.js +1 -1
  8. package/src/evolve/pipeline/hub.js +1 -1
  9. package/src/evolve/pipeline/select.js +1 -1
  10. package/src/evolve/pipeline/signals.js +1 -1
  11. package/src/evolve/utils.js +1 -1
  12. package/src/evolve.js +1 -1
  13. package/src/gep/a2aProtocol.js +1 -1
  14. package/src/gep/candidateEval.js +1 -1
  15. package/src/gep/candidates.js +1 -1
  16. package/src/gep/contentHash.js +1 -1
  17. package/src/gep/crypto.js +1 -1
  18. package/src/gep/curriculum.js +1 -1
  19. package/src/gep/deviceId.js +1 -1
  20. package/src/gep/envFingerprint.js +1 -1
  21. package/src/gep/epigenetics.js +1 -1
  22. package/src/gep/explore.js +1 -1
  23. package/src/gep/hash.js +1 -1
  24. package/src/gep/hubFetch.js +1 -1
  25. package/src/gep/hubReview.js +1 -1
  26. package/src/gep/hubSearch.js +1 -1
  27. package/src/gep/hubVerify.js +1 -1
  28. package/src/gep/learningSignals.js +1 -1
  29. package/src/gep/memoryGraph.js +1 -1
  30. package/src/gep/memoryGraphAdapter.js +1 -1
  31. package/src/gep/mutation.js +1 -1
  32. package/src/gep/narrativeMemory.js +1 -1
  33. package/src/gep/openPRRegistry.js +1 -1
  34. package/src/gep/personality.js +1 -1
  35. package/src/gep/policyCheck.js +1 -1
  36. package/src/gep/prompt.js +1 -1
  37. package/src/gep/recallVerifier.js +1 -1
  38. package/src/gep/reflection.js +1 -1
  39. package/src/gep/selector.js +1 -1
  40. package/src/gep/skillDistiller.js +1 -1
  41. package/src/gep/solidify.js +1 -1
  42. package/src/gep/strategy.js +1 -1
  43. package/src/gep/workspaceKeychain.js +1 -1
package/index.js CHANGED
@@ -390,11 +390,11 @@ async function main() {
390
390
  // own env, since verification can run with HubMirror off (verifier
391
391
  // events are local-only on first ship).
392
392
  try {
393
- const enabled = String(process.env.EVOLVE_RECALL_VERIFY || '1') !== '0';
393
+ const enabled = String(process.env.EVOLVE_RECALL_VERIFY || '0') === '1';
394
394
  const sampleRateRaw = Number(process.env.EVOLVE_RECALL_VERIFY_SAMPLE_RATE);
395
395
  const sampleRate = Number.isFinite(sampleRateRaw) && sampleRateRaw >= 0 && sampleRateRaw <= 1 ? sampleRateRaw : 1.0;
396
396
  if (!enabled) {
397
- console.log('[RecallVerify] DISABLED — set EVOLVE_RECALL_VERIFY=1 to verify published assets round-trip via Hub Phase 2 lookup.');
397
+ console.log('[RecallVerify] DISABLED (default) opt-in observability only. Set EVOLVE_RECALL_VERIFY=1 to verify published assets round-trip via Hub Phase 2 lookup.');
398
398
  } else {
399
399
  console.log(`[RecallVerify] ENABLED — verifying published assets via Hub Phase 2 lookup, sample_rate=${sampleRate}. Set EVOLVE_RECALL_VERIFY=0 to disable.`);
400
400
  }
@@ -451,7 +451,7 @@ async function main() {
451
451
  // RecallVerify worker: starts once per process; drains the publish-
452
452
  // verification queue with backoff. unref'd so it never blocks exit.
453
453
  try {
454
- if (String(process.env.EVOLVE_RECALL_VERIFY || '1') !== '0') {
454
+ if (String(process.env.EVOLVE_RECALL_VERIFY || '0') === '1') {
455
455
  require('./src/gep/recallVerifier').startWorker();
456
456
  }
457
457
  } catch (rvStartErr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evomap/evolver",
3
- "version": "1.87.0",
3
+ "version": "1.87.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": {
@@ -153,12 +153,21 @@ function assertNotSymlink(p, label) {
153
153
 
154
154
  function copyHookScripts(destDir, evolverRoot) {
155
155
  const scriptsDir = path.join(evolverRoot || __dirname, 'scripts');
156
- // _runtimePaths.js is required by the two session-* scripts via
157
- // `require('./_runtimePaths')`, which resolves relative to the *destination*
158
- // (__dirname after copy). It MUST be copied alongside or both hooks crash
159
- // with MODULE_NOT_FOUND at runtime. Caught in PR #94 review.
156
+ // Every helper required by the entry-point hooks via `require('./_xxx')`
157
+ // resolves relative to the *destination* (`__dirname` after copy), so
158
+ // every such helper MUST appear here or the hook crashes with
159
+ // MODULE_NOT_FOUND at runtime. Two regressions of this shape have shipped
160
+ // already:
161
+ // - PR #94 review caught `_runtimePaths.js` missing from this list.
162
+ // - Issue #547 (rendigua, v1.87.0): `_memoryFiltering.js` was added to
163
+ // evolver-session-start.js but not here, so fresh installs failed
164
+ // immediately on `node .codex/hooks/evolver-session-start.js`.
165
+ // To keep future helpers from re-living this, the regression test in
166
+ // test/adapters.test.js scans every `require('./_*')` in the source
167
+ // adapter scripts and asserts the target file is in this list.
160
168
  const scripts = [
161
169
  '_runtimePaths.js',
170
+ '_memoryFiltering.js',
162
171
  'evolver-session-start.js',
163
172
  'evolver-signal-detect.js',
164
173
  'evolver-session-end.js',
@@ -235,8 +244,14 @@ function removeEvolverHooks(filePath, { markerKey = '_evolver_managed' } = {}) {
235
244
  }
236
245
 
237
246
  function removeHookScripts(hooksDir) {
247
+ // Must mirror the install list above. If install copies a helper but
248
+ // uninstall doesn't remove it, `setup-hooks --uninstall` leaves orphan
249
+ // files behind that the user then has to clean up by hand (#547 fix
250
+ // would have introduced exactly this gap if only the install side
251
+ // had been updated).
238
252
  const scripts = [
239
253
  '_runtimePaths.js',
254
+ '_memoryFiltering.js',
240
255
  'evolver-session-start.js',
241
256
  'evolver-signal-detect.js',
242
257
  'evolver-session-end.js',