AGENT SKILL
rust-fuzzing
Add and operate reproducible Rust fuzzing for Seyal parsers, protocols and other untrusted-input boundaries, retaining minimized failures as regression fixtures.
- License 许可
- Apache-2.0
- 所属仓库
- seyal-org/seyal
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- rust-fuzzing
- description
- Add and operate reproducible Rust fuzzing for Seyal parsers, protocols and other untrusted-input boundaries, retaining minimized failures as regression fixtures.
03 SKILL.md 正文
Rust fuzzing
Use this skill for VT/parser/state-machine changes, IPC/protocol decoders, persistence readers, shell-integration parsers and other byte-oriented or untrusted-input surfaces.
- Identify the trust boundary, invariant and failure class being fuzzed: panic, memory/resource blow-up, invalid state transition, parser desynchronization, data corruption or security failure.
- Prefer
cargo-fuzz/libFuzzer for Rust fuzz targets unless the repository has accepted a different harness for the subsystem. - Keep fuzz harnesses outside production hot paths and avoid feature changes made only to satisfy the harness.
- Seed the corpus with deterministic protocol/VT fixtures, boundary cases, empty/truncated inputs, known regressions and realistic control-sequence fragments.
- Add structured/property fuzz targets where raw bytes alone cannot reach meaningful states efficiently.
- For streaming parsers, vary chunk boundaries and assert equivalence with the same bytes consumed as a single stream where the protocol permits it.
- Enforce invariants after every operation where practical: terminal dimensions/state validity, cursor bounds, mode consistency, ownership/lifecycle rules and bounded resource behavior.
- When a failure is found, preserve the crashing input, minimize it, explain the violated invariant, add a deterministic unit/regression fixture, then fix the permanent implementation.
- Never discard or suppress a valid crash merely to make fuzz CI green. Quarantine only with an explicit linked Issue and rationale.
- Maintain a fast smoke fuzz target suitable for CI and a longer local/nightly campaign when infrastructure exists. Record seed/corpus revision and run duration for material evidence.
- Treat hangs, pathological allocations and unbounded parser work as failures, not only panics.
- Run normal unit/conformance tests after each fix to ensure the minimized solution does not change unrelated terminal semantics.
Fuzzing complements, but never replaces, specification-based fixtures and terminal conformance testing.
04 同仓库更多 Skills
vt-tdd
Claude adapter for Seyal VT test-driven development.
★ 0
visual-regression
Claude adapter for Seyal visual regression review.
★ 0
verification
Claude adapter for Seyal outcome verification.
★ 0
terminal-conformance
Claude adapter for Seyal terminal conformance validation.
★ 0
security-review
Claude adapter for Seyal threat-oriented security review.
★ 0
rust-fuzzing
Claude adapter for Seyal Rust fuzzing.
★ 0