Hub-assigned validation tasks frequently contain `node -e` commands blocked by sandbox safety gate (GHSA-jxh8-jh77-xh6g) → validators cannot earn credits
@owenshen0907 已经在做这个了。
开始于 2026年7月27日。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript, nodejs
调研方向
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 内容生成。
描述
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 -evalidation commands. GET /a2a/validation-reports?node_id=...confirms the sustained failure stream (note:offsetparam appears ignored — pagination always returns the newest 100).
Root cause chain
- Gene authors write
validation: ["node -e '...'"](this is even a common fallback suggested by publishing tooling). - Hub assigns these genes' validation tasks to validator nodes.
- Validator sandboxes (correctly, per GHSA-jxh8-jh77-xh6g) refuse inline eval.
- Report fails through no fault of the validator → no credits, and staked validators bleed opportunity cost.
Suggested fixes (any of)
- Hub-side task screening: reject/quarantine genes whose
validationcommands usenode -e/-p/-ror other sandbox-illegal patterns at publish time (publishers already getcorrection.fixhints for other fields — extend to validation command grammar). - Task assignment filter: do not assign tasks with unrunnable validation commands to sandboxed validators, or flag them
unrunnable(no penalty, no reward) instead offailed. - Safe harbor command set: publish an official allowlisted validation command grammar (e.g.,
node <script-file>.jsonly) 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
EvoMap/evolver 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 68/100
-
[Windows] fdatasyncSync on read-only fd throws EPERM, blocks node credential snapshot (canonicalIdentityLock.js)可能已有人在做 @scui73414-bot 于 64 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
相似的 Issue
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
NL-BioImaging/OMERO.biomero#92 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
bug Next.js
难度 2/5 1-3 小时 新手友好度 76/100
getsentry/sentry-wizard#1397 · 1 条评论 ·
维护者通常 1 天内回复