|
1 | 1 | # CONTRIBUTING |
2 | 2 |
|
3 | | -Contributions to this repo are free, open-source, and follow the process outlined below: |
| 3 | +The work of the [XRP Ledger](https://xrpl.org) community is open, collaborative, and welcoming of all contributors participating in good faith. Part of that effort involves standardization, and this document outlines how anyone can contribute to that process. |
4 | 4 |
|
5 | | -Any XRPL-Standards document can be referred to interchangeably as an "XLS", "XRPL Standard", or "document". |
| 5 | +## Licensing |
6 | 6 |
|
7 | | -## Summary |
| 7 | +Any XRPL Standards document can be referred to interchangeably as an "XLS", "XRPL Standard", or "document". Copyright on all content is subject to the terms of this [license](LICENSE), and all contributors grant everyone a royalty-free license to use their contributions, including the following grants: |
8 | 8 |
|
9 | | -Copyright on all content is subject to the terms of the [license](LICENSE). |
| 9 | +- Copyright: a royalty-free license to anyone to use any contributions submitted to this repository. |
| 10 | +- Patent: a commitment to license on a royalty-free basis any essential patent claims relating to any contributions in this repository. |
10 | 11 |
|
11 | | -All contributors grant everyone: |
| 12 | +## Specification Process |
12 | 13 |
|
13 | | -Copyright: a royalty-free license to use the copyrights for their contributions. |
14 | | -Patent: a commitment to license on a royalty-free basis their essential patent claims reading on their contributions. |
| 14 | +### 1. Start a Discussion & Gather Feedback |
15 | 15 |
|
16 | | -## Background |
| 16 | +Before opening a PR with any kind of formal proposal, please first gather community input by starting a [Discussion](https://github.com/XRPLF/XRPL-Standards/discussions). Discussions are suitable for early work-in-progress: ask, suggest, add, and make sweeping changes. Collecting such feedback helps to refine your concept, and is required in order to move forward in the specification process. |
17 | 17 |
|
18 | | -The work of the XRP Ledger community is open source, collaborative, and welcoming of all contributors participating in good faith. [Learn more about the XRP Ledger at XRPL.org](https://xrpl.org/). |
| 18 | +#### Discussion Title |
19 | 19 |
|
| 20 | +When creating a new discussion for your idea, the discussion title should follow the naming convention `XLS-{0000}d {Title}`, where `{0000}` is a unique number for the XLS, `d` indicates that the document is a Draft (i.e., work in progress), and `{Title}` is a descriptive title for the proposed document. |
20 | 21 |
|
21 | | -## Process |
| 22 | +#### Specification Number |
22 | 23 |
|
23 | | -The XRPL-Standards process attempts to be easy to use, but also rigorous enough that there are permalinks to revisions of documents for reference purposes. |
| 24 | +Use the next number that has not yet been used. If a conflict occurs, it will be fixed by a maintainer or editor. Maintainers or editors also reserve the right to remove or re-number proposals as necessary. The number is important, as it will be used to reference features and ideas throughout the community. |
24 | 25 |
|
25 | | -### Gathering Feedback Before Submitting |
| 26 | +### 2. Closing a Discussion |
26 | 27 |
|
27 | | -Please gather community input before opening a PR. Collecting such feedback helps to refine your concept. This step is required. |
| 28 | +When a discussion has produced a well-refined standard, authors should post a comment to the discussion noting that the discussion will be closed in a few days. This allows time (for those engaged with the discussion) to submit final commentary. |
28 | 29 |
|
29 | | -Start a [Discussion](https://github.com/XRPLF/XRPL-Standards/discussions) under this repo. |
| 30 | +Once this waiting period has elapsed, the standard's author may close the discussion from further comment, and then move the discussion to a [**specification pull request**](#3-specification-pull-requests) to add the standard into the repository as a markdown file (see below for specification formats). |
30 | 31 |
|
31 | | -The title should follow the naming convention `XLS-0000d {Title}`, where `0000` is a unique number for the XLS, `d` indicates that the document is a Draft (in progress), and `{Title}` is a descriptive title for the proposed document. |
| 32 | +Next, the discussion author should edit the discussion to include a link to the PR. The last comment on the discussion should also be a link to the PR. |
32 | 33 |
|
33 | | -Use the next number that has not yet been used. If a conflict occurs, it will be fixed by a maintainer or editor. Maintainers or editors also reserve the right to remove or re-number proposals as necessary. |
| 34 | +The intention of this workflow is that the discussion be closed from further comments, with further comments instead being posted on the PR for fine-tuning and alignment with implementation or adoption, as appropriate. |
34 | 35 |
|
35 | | -The number is important, as it will be used to reference features and ideas throughout the community. |
| 36 | +### 3. Specification Pull Requests |
36 | 37 |
|
37 | | -Discussions are suitable for early work-in-progress: ask, suggest, add, and make sweeping changes. |
| 38 | +When opening a specification PR, there are two document types: _Drafts_ and _Candidate Specifications_. The type and status of any particular document has no bearing on the priority of that document. Typically, the further along in the process, the more likely it is that any particular XLS will be implemented or adopted. |
38 | 39 |
|
39 | | -When a discussion has produced a well-refined standard, authors should post a comment to the discussion noting that it will be closed in a few days. This allows time (for those engaged with the discussion) to submit any final commentary. |
40 | | - |
41 | | -When the fair notice time has elapsed, the author should move from discussion to Draft by opening a PULL REQUEST. |
42 | | - |
43 | | - |
44 | | -The standard's author must edit and replace the post with a summary and a link to the PR. |
45 | | - |
46 | | -The last comment on the discussion should also be a link to the PR. |
47 | | - |
48 | | -Finally, the discussion should be closed from further comments, with further comments instead being posted on the PR for fine-tuning and alignment with implementation or adoption (as appropriate). |
49 | | - |
50 | | -When opening a PR, there are two document types: *Drafts* and *Candidate Specifications*. The type and status of any particular document has no bearing on the priority of that document. Typically, the further along in the process, the more likely it is that any particular XLS will be implemented or adopted. |
51 | | - |
52 | | -### Drafts |
| 40 | +#### Drafts |
53 | 41 |
|
54 | 42 | A _Draft_ is a document that proposes some new feature, protocol or idea related to the XRP Ledger. The criteria for getting the document merged is minimal: project maintainers will review the document to ensure style conformance and applicability, but will otherwise not require editorial fixes before allowing it to be published. |
55 | 43 |
|
56 | | -A document does not need to have an implementation in order to become a Draft. A Draft may or may not have implementation(s) available; no code is required prior to the Draft being published. |
| 44 | +A document does not need to have an implementation in order to become a Draft. A Draft may or may not have implementation(s) available and no code is required prior to the Draft being published. |
| 45 | + |
57 | 46 | A Draft is often stable enough for people to experiment with, but has not necessarily been endorsed by the entire community. When there are competing Drafts that address the same problem in different ways, all such Drafts can continue to be refined, promoted, and used independently, without any blocking. Implementors can create software to implement this type of standard into their codebase to explore how it works in a real world setting. |
58 | 47 |
|
59 | | -Any, or all, competing Drafts may graduate into a Candidate Specification. |
| 48 | +Any, or all, competing Drafts _may_ graduate into a Candidate Specification. |
60 | 49 |
|
61 | 50 | Notice that a Draft is not a [rubber-stamp](https://idioms.thefreedictionary.com/rubber-stamp) of the content in any particular document. Documents can still undergo significant changes and potentially be discarded all together. |
62 | 51 |
|
63 | | -#### Publishing a Draft |
| 52 | +##### Publishing a Draft |
| 53 | + |
| 54 | +To publish a new Draft, submit a Pull Request to this repo with a new folder and a new Markdown file. The folder MUST follow the naming convention `XLS-{0000}d-{title}` where `{0000}` is the unique number referencing the XLS, `d` indicates that the document is a Draft, and `{title}` is a lower case title with spaces replaced by hyphens (`-`). The submission should have front-matter (similar to GitHub pages rendered from Markdown) specifying at least a `title` and `type`. The `type` MUST have the value `draft`. |
64 | 55 |
|
65 | | -To publish a new Draft, submit a Pull Request to this repo with a new folder and a new Markdown file. The folder MUST follow the naming convention `XLS-0000d-{title}`, `0000` is the unique number referencing the XLS, `d` indicates that the document is a Draft, and `title` is a lower case title with spaces replaced by hyphens (`-`). The submission should have front-matter (similar to GitHub pages rendered from Markdown) specifying at least a `title` and `type`. The `type` MUST have the value `draft`. |
| 56 | +An example draft name is: `XLS-20d-non-fungible-token-support-native` |
66 | 57 |
|
67 | 58 | Use the following template when creating the Markdown file: [xls-template.md](./xls-template.md) |
68 | 59 |
|
69 | 60 | Assuming there is consensus to publish, one of the project maintainers will review the submission and confirm the document's XLS number, often making a follow-up commit to the PR which renames the file as appropriate. |
70 | 61 |
|
71 | | -### Candidate Specifications |
| 62 | +#### Candidate Specifications |
72 | 63 |
|
73 | | -A _Candidate Specification_ is a document that was previously a Draft that is considered stable enough by the community such that no further changes are required. Once an XLS becomes a Candidate Specification, no further substantive changes are allowed under the same XLS number. |
| 64 | +A _Candidate Specification_ is a document that was previously a Draft, but is considered stable enough by the community such that no further changes are required. Once an XLS becomes a Candidate Specification, no further substantive changes are allowed under the same XLS number. |
74 | 65 |
|
75 | | -#### Publishing a Candidate Specification |
| 66 | +Refinements in detail are still allowed and recommended. For example, you can clarify exact error cases and define the error codes and transaction result codes that occur in those cases. |
76 | 67 |
|
77 | | -When a Draft is considered stable, there is a call for review from the community to publish the document as a Candidate Specification by making a PR to remove the `d` from the document folder name and update the `type` to `candidate-specification`. |
| 68 | +##### Publishing a Candidate Specification |
78 | 69 |
|
| 70 | +When a Draft is considered stable, there is a call for review from the community to publish the document as a Candidate Specification by making a PR to remove the `d` from the document folder name and update the `type` to `candidate-specification`. |
79 | 71 |
|
80 | 72 | Once published as a Candidate Specification, no further substantive changes are allowed under the same XLS number. |
81 | 73 |
|
|
0 commit comments