对抗性边界测试
verify-edge
在预算范围内构建对抗性 I/O 与边界测试工具(harness),必须能够捕获真实故障。
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- verify-edge
- description
- Budgeted hostile I/O and edge harnesses that must catch real faults.
03 SKILL.md 正文
Objective
Prove trust-boundary I/O (parsers, APIs, configs, uploads) fails closed under hostile or extreme input. A fuzz or edge pass that finds nothing and never catches a planted fault is inadequate detection, not proof of safety; "ran fuzz for N minutes" never passes without invariants and discrimination.
PASS requires:
- targets limited to the highest-blast-radius surfaces (default at most 3);
- at least one harness with a seed, a budget, and shrink-on-fail;
- at least one discrimination check: a known-bad input or injected fault is rejected or handled without corruption;
- findings classified by severity, with Critical/High fixed or the claim narrowed.
Procedure
-
Rank surfaces by blast radius: parsers and deserializers at trust boundaries; auth, token, path, and config-merge inputs; public write APIs and file or path operations; multi-tenant or multi-agent shared state. Take the top 3 unless the user expands scope; never fuzz everything.
-
Build harnesses with repo-native property or fuzz tools (
fast-check,hypothesis,cargo fuzz,go test -fuzz). Each records its entry point and invariant ("never panic", "never corrupt store", "always DomainError"), seed, and time or iteration budget (default at most 5 minutes unless the user sets one), and shrinks failures to the smallest failing input. -
Run only the fault classes that apply, each with a command and result (an OWASP laundry list is not evidence):
Class Examples Structural empty, huge, truncated, wrong types Boundary MAX_INT±1, NaN, unicode/RTL, long strings Injection path escape, SQLi/command where inputs reach sinks Merge/clobber sibling-key preservation, hostile JSONC/YAML shapes Resource bounded large payload within a local sandbox -
Optional environment chaos, when network, disk, or memory claims exist: dependency latency or timeout, permission denied or missing file, and full disk only in disposable environments. Contain the blast radius (local, staging, containers) and inject only into the resolved target the task or live environment selection names; before a production fault, bound the blast radius, define abort conditions, and verify rollback.
-
Discriminate before PASS: plant or reuse one known-bad input the contract says must be rejected and confirm the harness or suite detects it instead of reporting success. An accepted bad case, or one that corrupts state, is FAIL.
Hand suite-wide oracle quality to verify-coverage and shipped journeys to verify-prove.
Output
# EDGE / HOSTILE I/O REPORT
## Targets
- <surface>: why high blast radius
## Harnesses
- <name>: tool, seed, budget, invariant
## Results
- <case>: pass|fail — minimized input — severity
## Discrimination
- known-bad input: <desc> → rejected|ACCEPTED (ACCEPT = FAIL)
## Verdict
PASS|FAIL|BLOCKED
04 同仓库更多 Skills
工作流运行时验证
workflow-runtime
在将 CLI、扩展、提供程序或模型分配给工作流角色之前,先验证技能或工作流的发现能力、完全自主的工具执行能力,以及任务形态的具体化。
工作流成果审查
workflow-reviewer
依据 BOSS 规格说明和证据,审查批量实现的输出。
工作流故障修复
workflow-rescue
通过一次果断的行动解决反复出现的工作流失败。
多智能体工作流编排
workflow-orchestrator
运行风险自适应的开发、评审、多智能体和发布工作流,具备运行时预检、有限重试、存活检查、写入隔离以及有证据支撑的交接能力。
工作流失败仲裁
workflow-judger
仲裁反复出现的任务失败,并决定是合并、返工还是升级处理。
工作流状态验证
workflow-doctor
在任何角色对活动工作流状态执行操作之前,先对其进行验证。