Skip to content

[Bug] Validation script hardcoded path ./src/evolve fails in OpenClaw environment #305

@Cocoas-s1

Description

@Cocoas-s1

内容:

Bug Description

The evolver's validation script uses a hardcoded path ./src/evolve which doesn't exist in the OpenClaw environment.

In OpenClaw, the evolver skill is located at skills/evolver/ (not src/), so the validation always fails with:

Error: Cannot find module '/home/gem/workspace/agent/src/evolve'

Environment

  • OpenClaw workspace: /home/gem/workspace/agent/
  • Evolver location: /home/gem/workspace/agent/skills/evolver/
  • Node.js: v22.22.1
  • Evolver version: 1.39.0

Expected Behavior

Validation should use a relative path that works regardless of where the evolver is installed, or use __dirname to resolve paths dynamically.

Actual Behavior

The hardcoded ./src/evolve path resolves to an absolute path /home/gem/workspace/agent/src/evolve which doesn't exist, causing validation to fail every time.

Workaround Attempted

Created a symlink /home/gem/workspace/agent/src -> /home/gem/workspace/agent/skills/evolver/src, but the issue persists because the evolver's internal Gene (gene_gep_repair_from_errors) has recorded this error in its history, creating an infinite loop of failed repair attempts.

复制以上内容直接粘贴到 GitHub issue 里就行 🦞

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions