cadmium-docs-legacy/CPEs/accepted/CPE1 - CPE (Cadmium Protocol Extension) flow.md

90 lines
5.0 KiB
Markdown
Raw Normal View History

2020-09-14 21:05:30 +00:00
# CPE#1 - Cadmium Protocol Extensions flow
## Introduction
2020-09-14 21:05:30 +00:00
This proposal about regulating whole flow of creating Cadmium Protocol Extensions. Also this proposal is an example of extension composition.
## Message type identifiers
This proposal adds no identifiers to message types.
## Glossary
2020-09-14 21:05:30 +00:00
There is no terms to define that specific to this extension.
## Use Cases
### Initial proposal discussion
2020-09-14 21:05:30 +00:00
Initial proposal discussion should take it's place at [our GitHub repo](https://github.com/ChronosX88/cadmium-docs) by creating new issue. So even before extension will be ready you MUST create an issue with tag "extension" about your extension.
2020-09-14 21:05:30 +00:00
Issue body SHOULD contain complete body for your extension, not just something like "let's use SMTP as connectivity channel" but rather complete description of your extension (even in free form) with technical details which can be used for discussion.
This step is required to proceed to next stage.
2020-09-14 21:05:30 +00:00
This stage SHOULD take two (2) weeks maximum counting from issue creation date. It also might take even 1 minute before proceeding to next stage if extension was discussed before using other channels (email, chats, etc.).
#### Voting
2020-09-14 21:05:30 +00:00
**TODO: NEED TO REWRITE WHOLE SECTION**
Voting about giving green or red light for extension SHOULD be taken using:
* "Thumbs up" icon in proposal issue in YouTrack (it's located near issue title in the very right corner). This will show community interest in this proposal and might speed up core team and developers acceptance.
* Using comments in proposal issue. This is acceptable only for core team and developers to distinguish them from community votes. Also this is a "counter" which shows who voted from these groups. All other "thumbs up/down" posts will be removed from YouTrack and author of such posts may be banned.
After that you will receive "green light" to create pull request to [documentational project in git](https://git.cadmium.im/cadmium/documentation) with numeric ID to use for your proposal or "red light" if community and/or core team and developers won't accept your proposal. In case of denial complete reason SHOULD be specified in comments to this issue.
When issue is closed - there is no possibility to reopen it.
2020-09-14 21:05:30 +00:00
### Proposing your extension
2020-09-14 21:05:30 +00:00
When preliminary stage is over and you've received "green light" for creating pull request to [documentational project in git](https://github.com/ChronosX88/cadmium-docs) you SHOULD:
2020-09-14 21:05:30 +00:00
1. Ask for extension ID to use in issue's comments or in one of our chats from core developers. Core developer should also specify given ID in comments in issue on our YouTrack instance.
2. Clone documentational repository to your local machine.
3. Create new branch named same as YouTrack issue (e.g. ``SPEC-111``). You should create new branch using ``master`` branch as starting point.
2020-09-14 21:05:30 +00:00
4. Create file in ``CPEs/proposed`` directory named like ``CPE123 - Your super enchancement proposal.md``. See examples in directories placed under ``CPEs``.
5. Use template from ``cadmium-extension-document-format.md`` placed in ``CPEs`` directory to describe your proposal in file created at step #3.
6. Push branch to git and create pull request to ``master`` branch.
To attach your commits into YouTrack issue please add full YouTrack issue ID (e.g. ``SPEC-123``) into commit message, otherwise commit might be lost and proposal might be eventually denied.
2020-09-14 21:05:30 +00:00
**Please note that CPE ID you'll receive from core developer might not be the very same as issue ID in YouTrack.**
This stage could take up to 2 (two) months. You should take this time and polish your proposal as much as possible and to receive as much votes as possible.
This two-months-period is a maximum time range that can be used for discussing and polishing your proposal. This means that:
* If you're done in 2 weeks - your CPP may be accepted.
* If you're done in 1.5 months - your CPP may be accepted.
* If you're done in ``$(two months - 1 day)`` - your CPP may be accepted.
* If you haven't done in two months - your CPP WILL BE rejected.
2020-09-14 21:05:30 +00:00
### Actions for accepted extension
2020-09-14 21:05:30 +00:00
When proposal is accepted it should be moved to ``accepted`` directory from ``proposed`` keeping it's CPE ID. This SHOULD be done by proposer himself. Failing to do so might result in banning from future proposals discussions.
After moving proposal's pull request SHOULD be merged in master. Right after that proposal considered as part of protocol and core developers SHOULD update protocol documentation to reflect changes.
### Rejected proposals
If proposal was rejected - YouTrack issue should be closed as well as pull request on Gitea without merging into master branch.
## Error Codes
This proposal adds no error codes to protocol.
## Business Rules
This proposal describes no business rules for protocol or applications but rather for community and developers.
## Security Considerations
This proposal have no security considerations.
## Acknowledgements
This document heavily inspired by Medium RFC#1 (which was also written by me) which was inspired by IETF RFCs.