Kani is an open-source verification tool that uses automated reasoning to analyze Rust programs. In order to integrate feedback from developers and users on future changes to Kani, we decided to follow a light-weight "RFC" (request for comments) process.
You should create an RFC in one of two cases:
- The change you are proposing would be a "one way door": e.g. a change to the public API, a new feature that would be difficult to modify once released, deprecating a feature, etc.
- The change you are making has a significant design component, and would benefit from a design review.
Bugs and smaller improvements to existing features do not require an RFC. If you are in doubt, feel free to create a feature request and discuss the next steps in the new issue. Your PR reviewer may also request an RFC if your change appears to fall into category 1 or 2.
You do not necessarily need to create an RFC immediately. It is our experience that it is often best to write some "proof of concept" code to test out possible ideas before writing the formal RFC.
This is the overall workflow for the RFC process:
Create RFC ──> Receive Feedback ──> Accepted?
│ ∧ │ Y
∨ │ ├───> Implement ───> Test + Feedback ───> Stabilize?
Revise │ N │ Y
└───> Close PR ├───> RFC Stable
│ N
└───> Remove feature
- Create an RFC
- Create a tracking issue for your RFC (e.g.: Issue-1588).
- Start from a fork of the Kani repository.
- Copy the template file (
rfc/src/template.md
) torfc/src/<ID_NUMBER><my-feature>.md
. - Fill in the details according to the template instructions.
- Submit a pull request.
- Build consensus and integrate feedback.
- RFCs should get approved by at least 2 Kani developers.
- Once the RFC has been approved, update the RFC status and merge the PR.
- If the RFC is not approved, close the PR without merging.
- Feature implementation.
- Start implementing the new feature in your fork.
- It is OK to implement it incrementally over multiple PRs. Just ensure that every pull request has a testable end-to-end flow and that it is properly tested.
- In the implementation stage, the feature should only be accessible if the user explicitly passes
--enable-unstable
as an argument to Kani. - Document how to use the feature.
- Keep the RFC up-to-date with the decisions you make during implementation.
- Test and Gather Feedback.
- Fix major issues related to the new feature.
- Gather user feedback and make necessary adjustments.
- Add lots of tests.
- Stabilization.
- Propose to stabilize the feature when feature is well tested and UX has received positive feedback.
- Create a new PR that removes the
--enable-unstable
guard and that marks the RFC status as "STABLE".- Make sure the RFC reflects the final implementation and user experience.
- In some cases, we might decide not to incorporate a feature (E.g.: performance degradation, bad user experience, better alternative). In those cases, please update the RFC status to "CANCELLED as per <PR_LINK | ISSUE_LINK>" and remove the code that is no longer relevant.
- Close the tracking issue.