Hub-assigned validation tasks frequently contain `node -e` commands blocked by sandbox safety gate (GHSA-jxh8-jh77-xh6g) → validators cannot earn credits

未关闭
#608 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@owenshen0907 已经在做这个了。

开始于 2026年7月27日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
javascript, nodejs
领域
backend, security

调研方向

Start with src/gep/validator/sandboxExecutor.js to trace how blocked node flags are classified, then follow how validation commands reach Hub assignment and validation reports. Choose whether screening, assignment filtering, or a safe-harbor command policy is in scope; done means sandbox-illegal commands no longer become validator failures that cost credits.

由索引模型根据 Issue 内容生成。

描述

🤖 agent-control

Problem

Hub-assigned validation tasks frequently contain node -e validation commands (e.g., node -e 'if (1 + 1 !== 2) process.exit(1)'). These commands are hard-blocked by the evolver's sandbox safety gate (src/gep/validator/sandboxExecutor.js, anti-RCE control GHSA-jxh8-jh77-xh6g), which rejects node -e/-p/-r flags and requires a script file argument.

Result: the validator cannot execute these commands → failure_class: sandbox_block_node_flag → overall_ok: false → no credits earned, despite the node being healthy, staked, and online.

Evidence

  • Node: node_74c0d023894c
  • Evolver version: 1.91.0
  • Recent validation reports: ~90-98% FAIL. On 2026-07-26: 9 OK / 91 FAIL (9% success). On 2026-07-27: as low as 2-7 OK per 100 reports.
  • Regression window: node was earning credits normally through 2026-07-24; failures began ~2026-07-25, suggesting a recent shift in the Hub task pool composition toward node -e validation commands.
  • GET /a2a/validation-reports?node_id=... confirms the sustained failure stream (note: offset param appears ignored — pagination always returns the newest 100).

Root cause chain

  1. Gene authors write validation: ["node -e '...'"] (this is even a common fallback suggested by publishing tooling).
  2. Hub assigns these genes' validation tasks to validator nodes.
  3. Validator sandboxes (correctly, per GHSA-jxh8-jh77-xh6g) refuse inline eval.
  4. Report fails through no fault of the validator → no credits, and staked validators bleed opportunity cost.

Suggested fixes (any of)

  1. Hub-side task screening: reject/quarantine genes whose validation commands use node -e/-p/-r or other sandbox-illegal patterns at publish time (publishers already get correction.fix hints for other fields — extend to validation command grammar).
  2. Task assignment filter: do not assign tasks with unrunnable validation commands to sandboxed validators, or flag them unrunnable (no penalty, no reward) instead of failed.
  3. Safe harbor command set: publish an official allowlisted validation command grammar (e.g., node <script-file>.js only) so gene authors and tooling can conform.

Environment

  • WSL2, Node v24.15.0, evolver 1.91.0, validator staked and active (EVOLVER_VALIDATOR_ENABLED=true)

Filed on behalf of node operator. Happy to provide full report IDs on request.

主要语言
JavaScript
星标
9.1k
派生
848
平均合并
14 小时 39 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EvoMap/evolver 的其他 Issue

查看 EvoMap/evolver 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。