P3-6.2: Adversarial, collusion, and Sybil test suite
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- solidity
- 领域
- blockchain, security, testing
调研方向
The issue specifies a Forge test file, P3Adversarial.t.sol, and names PRs #146 and #149 as prerequisites. Read those contracts after they are merged, then map each listed collusion, Sybil, liveness, and dispute scenario to its relevant contract behavior. Done means every listed scenario has an attack narrative comment and the full test suite passes.
由索引模型根据 Issue 内容生成。
描述
Context
Raised as a blocker in discussion #150. Roadmap ref: P3-6.2.
The adversarial test suite has not been started. It cannot be written meaningfully until PRs #146 (S1/S2/S5/S6 slashing) and #149 (S4 dispute second phase) are reviewed and merged — those contracts are what the tests exercise. Once they land, estimated one week to produce the full scenario suite.
Scope
The test suite should cover at minimum:
Collusion scenarios
- Model owner + aggregator collude to suppress a dispute: owner steers the recomputation subgroup (tests the BL-11 commit-reveal fix from issue #151)
- Auditor colluding with aggregator to pass a bad T2 model: S1 slash path
Sybil scenarios
- Single operator spinning up multiple validators under different keys to capture a subgroup
- Sybil validators all voting the same way in an audit to pass a bad model
Liveness attack scenarios
- Aggregator consistently missing T1/T2 submission deadlines (S2 slash)
- Auditor consistently missing vote deadlines (S1 slash)
- Recidivism escalation to full slash + jail (S5)
- No-participation counter threshold (S6)
Dispute lifecycle edge cases
- Dispute raised, recomputation confirms original result (
settleRecomputation(confirmed=true)) — disputer bond forfeited - Dispute raised, recomputation overturns result (
settleRecomputation(confirmed=false)) — aggregator slashed, disputer bond returned - Resolution window expires before
settleRecomputationis called (expireDispute) — disputer bond partially refunded - Frivolous dispute (disputer forfeits bond)
Acceptance criteria
- Forge test file
P3Adversarial.t.sol(or equivalent) covering all scenarios above - All tests pass with PRs #146 and #149 merged
- Scenarios are documented with attack narrative comments so future readers understand what is being tested
Blocked on
PRs #146 and #149 must be reviewed and merged before this work can begin.
Related
- Discussion #150
- PR #146 (S1/S2/S5/S6 slashing)
- PR #149 (S4 dispute second phase)
- Issue #151 (BL-11 commit-reveal)
- 主要语言
- Python
- 星标
- 4
- 派生
- 7
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 33
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InfiniteZeroFoundation/DevNet 的其他 Issue
-
ROADMAP.md: refresh "What is still open for P3" (several items were fixed in October)可能已有人在做 @umermjd11 于 4 天前认领。 未关闭documentation good first issue
难度 2/5 1-3 小时 新手友好度 74/100
InfiniteZeroFoundation/DevNet#285 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Update the 25 translated organisation READMEs to match the English version可能已有人在做 @mrCabez 于 2 天前认领。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 76/100
InfiniteZeroFoundation/DevNet#277 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Update the client-service guide to explain training and uploading separately可能已有人在做 @Santiagocetran 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
InfiniteZeroFoundation/DevNet#266 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Few questions related to GI2 aggregator可能已有人在做 @Abidoyesimze 于 1 天前认领。 未关闭
InfiniteZeroFoundation/DevNet#307 · 1 个 reaction · 已指派 4 人 ·
维护者通常 1 天内回复
-
bug python
难度 4/5 3-5 天 新手友好度 52/100
InfiniteZeroFoundation/DevNet#306 ·
维护者通常 1 天内回复
查看 InfiniteZeroFoundation/DevNet 的全部 Issue
相似的 Issue
-
_chunk_scan_fwd launches its Triton kernel without a device guard: NaN when a model is split across GPUs可能已有人在做 @toddwbucy 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
state-spaces/mamba#1072 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
loopj/aiovantage#414 ·
维护者通常 1 天内回复
-
power_mismatch_deline docstring: the rear-to-total RMAD conversion has an extra bifaciality factor未关闭
难度 1/5 1 小时以内 新手友好度 85/100
pvlib/pvlib-python#2929 ·
维护者通常 1 天内回复
-
data good first issue launch-day unverified
难度 2/5 1-3 小时 新手友好度 78/100
BradGroux/wow-forever-mission-control#8 ·
维护者通常 1 天内回复
-
check bilibili falsely reports read/subtitle as broken: live_test fixture BV1GJ411x7h7 is gone (404)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Panniantong/Agent-Reach#889 ·
维护者通常 2 天内回复