lading-optimize-validate

Generate property tests and attempt Kani proofs to validate optimization bugs.

98|16|Updated Mar 3, 2021
One-click install
npx skills add https://github.com/DataDog/lading --skill lading-optimize-validate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lading-optimize-validate
Source: https://github.com/DataDog/lading/tree/main/.claude/skills/lading-optimize-validate
Command: npx skills add https://github.com/DataDog/lading --skill lading-optimize-validate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures bugs discovered during optimization hunting are thoroughly validated with reproducible tests and regression checks, providing an auditable path from discovery to verified fixes.

Core Features & Use Cases

  • Property tests (proptest) to capture invariants and reproduce bugs across inputs.
  • Kani proofs when feasible to provide exhaustive verification of critical paths.
  • Validation workflow includes documenting, recording, and updating assets/db.yaml to track validated fixes and enable team review.

Quick Start

Run the skill to validate a discovered bug by generating property tests and attempting Kani proofs. Then review the generated tests and, if feasible, add a Kani proof and a regression test to assets/db.yaml.

Frequently Asked Questions about lading-optimize-validate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Rust bugs and prevent regressions after an optimization hunt?

Property testing in Rust uses proptest to generate random inputs that capture invariants and reproduce bugs across diverse scenarios. It validates discovered bugs by confirming fixes hold under varied conditions, preventing regressions in optimization workflows like hunting and review.

How does Kani prove bug fixes in Rust code?

Kani proves bug fixes in Rust code by attempting exhaustive verification of critical execution paths. When feasible, it provides mathematical proofs that confirm the fix holds across all possible inputs, ensuring the regression is fully eliminated.

Do I need the Rust toolchain and cargo to run property tests and Kani proofs?

Yes, you need the Rust toolchain and cargo to run property tests and Kani proofs. The validation workflow requires proptest for property test generation, while Kani is optional and used only when feasible to provide exhaustive verification of critical paths.

What's the best way to track validated bug fixes in a Rust optimization workflow?

The best way to track validated bug fixes is updating assets/db.yaml when validation completes. This records and documents the generated property tests and Kani proofs, enabling team review and maintaining an auditable path from discovery to verified fixes.

Can I use proptest and Kani together for Rust regression testing?

Yes, you can use proptest and Kani together for Rust regression testing. Proptest captures invariants and reproduces bugs across random inputs, while Kani attempts exhaustive proofs on critical paths, providing layered verification from probabilistic to mathematical certainty.