|
| 1 | +--- |
| 2 | +RFC: RFC0000 |
| 3 | +Author: Mikey Lombardi |
| 4 | +Status: Draft |
| 5 | +SupercededBy: N/A |
| 6 | +Version: 1.0 |
| 7 | +Area: Process |
| 8 | +--- |
| 9 | + |
| 10 | +# DSC RFC Process and Guidelines |
| 11 | + |
| 12 | +A DSC RFC (Request for Comments) is a publication to propose design changes and improvements to |
| 13 | +DSC. This provides the community an opportunity to provide feedback before code is written where it |
| 14 | +becomes harder to change at the risk of compatibility. |
| 15 | + |
| 16 | +This process was adapted from the PowerShell RFC process, which itself was adapted from the Chef |
| 17 | +RFC process and the DMTF.org process. |
| 18 | + |
| 19 | +## Roles |
| 20 | + |
| 21 | +- **Author**: All members of the community are allowed to author new RFCs and can provide feedback |
| 22 | + to any RFC. |
| 23 | +- **DSC Committee**: The design committe that votes to accept or reject an RFC. Currently, the DSC |
| 24 | + committee includes the members of the DSC team. |
| 25 | +- **Committee Member**: An individual member of the DSC Committee. |
| 26 | +- **Working Group (WG)**: A group responsible for deciding whether or not an issue in the |
| 27 | + repository requires a proposal and for providing feedback within an RFC proposal. |
| 28 | + |
| 29 | + For more information about Working Groups, see [Working Groups][01]. |
| 30 | + |
| 31 | +## Submitting an RFC |
| 32 | + |
| 33 | +When submitting an RFC, the Author shall: |
| 34 | + |
| 35 | +- Create a file named `RFCNNNN-<Title>.md` in the `.rfc/drafts` folder. |
| 36 | + |
| 37 | + The Author _shall not_ assign the RFC number. The author shall leave the `NNNN` in the |
| 38 | + filename. |
| 39 | + |
| 40 | + The file must use the [RFC template][02]. |
| 41 | + |
| 42 | + Example: `RFCNNNN-docs-extension.md` |
| 43 | +- Include any additional files, such as code samples, in the `.rfc/draft/RFCNNNN/` folder. |
| 44 | +- Check `Allow edits from maintainers` option when submitting the PR so that the Committee can add |
| 45 | + the RFC number to the draft, update the title, and fix the filename. |
| 46 | +- Submit the PR as a [draft PR][03]. |
| 47 | +- Use the prefix `RFC:` for the PR title. |
| 48 | + |
| 49 | +## RFC Status |
| 50 | + |
| 51 | +An RFC may be in any of the following states: |
| 52 | + |
| 53 | +- [Draft](#draft) |
| 54 | +- [Reviewing](#reviewing) |
| 55 | +- [Accepted](#accepted) |
| 56 | +- [Experimental](#experimental) |
| 57 | +- [Rejected](#rejected) |
| 58 | +- [Withdrawn](#withdrawn) |
| 59 | +- [Final](#final) |
| 60 | + |
| 61 | +### Draft |
| 62 | + |
| 63 | +When an RFC is initially submitted as a draft PR, it's in the `Draft` state. RFCs remain in this |
| 64 | +state until the Author marks the PR as ready for review. |
| 65 | + |
| 66 | +While an RFC is in this state, we encourage contributors and community members to read, discuss, |
| 67 | +and comment on the RFC. Discussion and iteration during the drafting stage provides information |
| 68 | +and context for the committee during the reviewing stage. |
| 69 | + |
| 70 | +After one month, the Author may mark their PR as ready for formal review, taking it out of draft. A |
| 71 | +Committee member will then apply the `RFC - Reviewing` label to the PR. |
| 72 | + |
| 73 | +### Reviewing |
| 74 | + |
| 75 | +After the author marks their PR as ready for review, the RFC moves into the formal review state. |
| 76 | +The RFC remains in this state until one of the following conditions is met: |
| 77 | + |
| 78 | +- The Committee decides to reject the RFC, changing the state to [Rrejected](#rejected). |
| 79 | +- The Committee requests an experimental implementation for the RFC, changing the state to |
| 80 | + [Experimental](#experimental). |
| 81 | +- The Committee decides to accept the RFC as-is, changing the state to [Accepted](#accepted). |
| 82 | +- The Author decides to withdraw their RFC, changing the state to [Withdrawn](#withdrawn). |
| 83 | + |
| 84 | +> [!NOTE] |
| 85 | +> The Committee may be slower to respond to RFCs where the Author has indicated that they don't |
| 86 | +> plan to implement the RFC. |
| 87 | +
|
| 88 | +### Rejected |
| 89 | + |
| 90 | +If the Committee decides not to proceed with the RFC, a Committee member shall close the PR instead |
| 91 | +of merging it. The Committee should also add the `RFC - Rejected` label to denote that the |
| 92 | +Committee rejected the RFC. |
| 93 | + |
| 94 | +In the future, this can be done automatically with GitHub Actions. |
| 95 | + |
| 96 | +### Experimental |
| 97 | + |
| 98 | +Experimental implementations are used to provide a working example of proposed designs in order for |
| 99 | +the Committee and other users to understand real-world usage of the proposal. |
| 100 | + |
| 101 | +If the Committee decides to request an experimental implementation, a Committee member shall: |
| 102 | + |
| 103 | +1. Ensure the `status` in the frontmatter of the RFC document is set to `experimental`. |
| 104 | +1. Apply the label `RFC - Experimental` to the PR. |
| 105 | +1. Update the [RFC History](readme.md#rfc-history) table to reflect the changed status. |
| 106 | +1. Merge the PR. |
| 107 | + |
| 108 | +The Author may be asked to continue to update the RFC as the usage of the experimental feature |
| 109 | +drives new insight into how the feature should be designed. |
| 110 | + |
| 111 | +When the Committee is satisfied with the experimental implementation, a Committee member will start |
| 112 | +the process to finalize the RFC, moving it into the [Final](#final) state. |
| 113 | + |
| 114 | +### Accepted |
| 115 | + |
| 116 | +If the Committee decides to accept the proposal as-is without requesting an experimental |
| 117 | +implementation, a Committee member shall: |
| 118 | + |
| 119 | +1. Ensure the `status` in the frontmatter of the RFC document is set to `accepted`. |
| 120 | +1. Apply the label `RFC - Accepted` to the PR. |
| 121 | +1. Update the [RFC History](readme.md#rfc-history) table to reflect the changed status. |
| 122 | +1. Merge the PR. |
| 123 | + |
| 124 | +When the Committee is satisfied with the implementation, a Committee member will start the process |
| 125 | +to finalize the RFC, moving it into the [Final](#final) state. |
| 126 | + |
| 127 | +### Withdrawn |
| 128 | + |
| 129 | +If an Author decides to withdraw their RFC, either the Author or a Committee member shall close the |
| 130 | +PR without merging it. |
| 131 | + |
| 132 | +A Committee member shall apply the `RFC - Withdrawn` label to the PR, indicating that the author |
| 133 | +withdrew the RFC. |
| 134 | + |
| 135 | +### Final |
| 136 | + |
| 137 | +When the Committee is satisfied with the implementation for an RFC, a Committee member will begin |
| 138 | +the process to finalize the RFC. |
| 139 | + |
| 140 | +To finalize an RFC, a Committee member shall submit a PR which: |
| 141 | + |
| 142 | +1. Ensures the `status` in the frontmatter of the RFC document is set to `final`. |
| 143 | +1. Move the RFC document from the `.rfc/draft` folder to `.rfc/final`. |
| 144 | +1. Update the [RFC History](readme.md#rfc-history) table to reflect the changed status. |
| 145 | + |
| 146 | +Any proposed changes should be made through a new RFC or via an issue in the |
| 147 | +[PowerShell/DSC repository][04]. New RFCs should reference old RFCs where applicable. |
| 148 | + |
| 149 | +## History |
| 150 | + |
| 151 | +v1.0 - Initial draft. |
| 152 | + |
| 153 | +[01]: https://github.com/PowerShell/PowerShell/blob/master/docs/community/working-group.md |
| 154 | +[02]: RFCNNNN-New-RFC-Template.md |
| 155 | +[03]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests |
| 156 | +[04]: https://github.com/powershell/dsc |
0 commit comments