deps | ||
inbox | ||
resources | ||
texml-xsl | ||
tools | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
archive.sh | ||
checkdeadlinks.py | ||
dbupdate.py | ||
deferred.py | ||
Dockerfile | ||
examples.xsl | ||
fo.xsl | ||
LICENSE.txt | ||
Makefile | ||
prettify.css | ||
prettify.js | ||
protopage.xsl | ||
protopagegen.sh | ||
README.md | ||
ref.xsl | ||
xep2texml.xsl | ||
xep-0001.xml | ||
xep-0002.xml | ||
xep-0003.xml | ||
xep-0004.xml | ||
xep-0005.xml | ||
xep-0006.xml | ||
xep-0007.xml | ||
xep-0008.xml | ||
xep-0009.xml | ||
xep-0010.xml | ||
xep-0011.xml | ||
xep-0012.xml | ||
xep-0013.xml | ||
xep-0014.xml | ||
xep-0015.xml | ||
xep-0016.xml | ||
xep-0017.xml | ||
xep-0018.xml | ||
xep-0019.xml | ||
xep-0020.xml | ||
xep-0021.xml | ||
xep-0022.xml | ||
xep-0023.xml | ||
xep-0024.xml | ||
xep-0025.xml | ||
xep-0026.xml | ||
xep-0027.xml | ||
xep-0028.xml | ||
xep-0029.xml | ||
xep-0030.xml | ||
xep-0031.xml | ||
xep-0032.xml | ||
xep-0033.xml | ||
xep-0034.xml | ||
xep-0035.xml | ||
xep-0036.xml | ||
xep-0037.xml | ||
xep-0038.xml | ||
xep-0039.xml | ||
xep-0040.xml | ||
xep-0041.xml | ||
xep-0042.xml | ||
xep-0043.xml | ||
xep-0044.xml | ||
xep-0045.xml | ||
xep-0046.xml | ||
xep-0047.xml | ||
xep-0048.xml | ||
xep-0049.xml | ||
xep-0050.xml | ||
xep-0051.xml | ||
xep-0052.xml | ||
xep-0053.xml | ||
xep-0054.xml | ||
xep-0055.xml | ||
xep-0056.xml | ||
xep-0057.xml | ||
xep-0058.xml | ||
xep-0059.xml | ||
xep-0060.xml | ||
xep-0061.xml | ||
xep-0062.xml | ||
xep-0063.xml | ||
xep-0064.xml | ||
xep-0065.xml | ||
xep-0066.xml | ||
xep-0067.xml | ||
xep-0068.xml | ||
xep-0069.xml | ||
xep-0070.xml | ||
xep-0071.xml | ||
xep-0072.xml | ||
xep-0073.xml | ||
xep-0074.xml | ||
xep-0075.xml | ||
xep-0076.xml | ||
xep-0077.xml | ||
xep-0078.xml | ||
xep-0079.xml | ||
xep-0080.xml | ||
xep-0081.xml | ||
xep-0082.xml | ||
xep-0083.xml | ||
xep-0084.xml | ||
xep-0085.xml | ||
xep-0086.xml | ||
xep-0087.xml | ||
xep-0088.xml | ||
xep-0089.xml | ||
xep-0090.xml | ||
xep-0091.xml | ||
xep-0092.xml | ||
xep-0093.xml | ||
xep-0094.xml | ||
xep-0095.xml | ||
xep-0096.xml | ||
xep-0097.xml | ||
xep-0098.xml | ||
xep-0099.xml | ||
xep-0100.xml | ||
xep-0101.xml | ||
xep-0102.xml | ||
xep-0103.xml | ||
xep-0104.xml | ||
xep-0105.xml | ||
xep-0106.xml | ||
xep-0107.xml | ||
xep-0108.xml | ||
xep-0109.xml | ||
xep-0110.xml | ||
xep-0111.xml | ||
xep-0112.xml | ||
xep-0113.xml | ||
xep-0114.xml | ||
xep-0115.xml | ||
xep-0116.xml | ||
xep-0117.xml | ||
xep-0118.xml | ||
xep-0119.xml | ||
xep-0120.xml | ||
xep-0121.xml | ||
xep-0122.xml | ||
xep-0123.xml | ||
xep-0124.xml | ||
xep-0125.xml | ||
xep-0126.xml | ||
xep-0127.xml | ||
xep-0128.xml | ||
xep-0129.xml | ||
xep-0130.xml | ||
xep-0131.xml | ||
xep-0132.xml | ||
xep-0133.xml | ||
xep-0134.xml | ||
xep-0135.xml | ||
xep-0136.xml | ||
xep-0137.xml | ||
xep-0138.xml | ||
xep-0139.xml | ||
xep-0140.xml | ||
xep-0141.xml | ||
xep-0142.xml | ||
xep-0143.xml | ||
xep-0144.xml | ||
xep-0145.xml | ||
xep-0146.xml | ||
xep-0147.xml | ||
xep-0148.xml | ||
xep-0149.xml | ||
xep-0150.xml | ||
xep-0151.xml | ||
xep-0152.xml | ||
xep-0153.xml | ||
xep-0154.xml | ||
xep-0155.xml | ||
xep-0156.xml | ||
xep-0157.xml | ||
xep-0158.xml | ||
xep-0159.xml | ||
xep-0160.xml | ||
xep-0161.xml | ||
xep-0162.xml | ||
xep-0163.xml | ||
xep-0164.xml | ||
xep-0165.xml | ||
xep-0166.xml | ||
xep-0167.xml | ||
xep-0168.xml | ||
xep-0169.xml | ||
xep-0170.xml | ||
xep-0171.xml | ||
xep-0172.xml | ||
xep-0173.xml | ||
xep-0174.xml | ||
xep-0175.xml | ||
xep-0176.xml | ||
xep-0177.xml | ||
xep-0178.xml | ||
xep-0179.xml | ||
xep-0180.xml | ||
xep-0181.xml | ||
xep-0182.xml | ||
xep-0183.xml | ||
xep-0184.xml | ||
xep-0185.xml | ||
xep-0186.xml | ||
xep-0187.xml | ||
xep-0188.xml | ||
xep-0189.xml | ||
xep-0190.xml | ||
xep-0191.xml | ||
xep-0192.xml | ||
xep-0193.xml | ||
xep-0194.xml | ||
xep-0195.xml | ||
xep-0196.xml | ||
xep-0197.xml | ||
xep-0198.xml | ||
xep-0199.xml | ||
xep-0200.xml | ||
xep-0201.xml | ||
xep-0202.xml | ||
xep-0203.xml | ||
xep-0204.xml | ||
xep-0205.xml | ||
xep-0206.xml | ||
xep-0207.xml | ||
xep-0208.xml | ||
xep-0209.xml | ||
xep-0210.xml | ||
xep-0211.xml | ||
xep-0212.xml | ||
xep-0213.xml | ||
xep-0214.xml | ||
xep-0215.xml | ||
xep-0216.xml | ||
xep-0217.xml | ||
xep-0218.xml | ||
xep-0219.xml | ||
xep-0220.xml | ||
xep-0221.xml | ||
xep-0222.xml | ||
xep-0223.xml | ||
xep-0224.xml | ||
xep-0225.xml | ||
xep-0226.xml | ||
xep-0227.xml | ||
xep-0228.xml | ||
xep-0229.xml | ||
xep-0230.xml | ||
xep-0231.xml | ||
xep-0232.xml | ||
xep-0233.xml | ||
xep-0234.xml | ||
xep-0235.xml | ||
xep-0236.xml | ||
xep-0237.xml | ||
xep-0238.xml | ||
xep-0239.xml | ||
xep-0240.xml | ||
xep-0241.xml | ||
xep-0242.xml | ||
xep-0243.xml | ||
xep-0244.xml | ||
xep-0245.xml | ||
xep-0246.xml | ||
xep-0247.xml | ||
xep-0248.xml | ||
xep-0249.xml | ||
xep-0250.xml | ||
xep-0251.xml | ||
xep-0252.xml | ||
xep-0253.xml | ||
xep-0254.xml | ||
xep-0255.xml | ||
xep-0256.xml | ||
xep-0257.xml | ||
xep-0258.xml | ||
xep-0259.xml | ||
xep-0260.xml | ||
xep-0261.xml | ||
xep-0262.xml | ||
xep-0263.xml | ||
xep-0264.xml | ||
xep-0265.xml | ||
xep-0266.xml | ||
xep-0267.xml | ||
xep-0268.xml | ||
xep-0269.xml | ||
xep-0270.xml | ||
xep-0271.xml | ||
xep-0272.xml | ||
xep-0273.xml | ||
xep-0274.xml | ||
xep-0275.xml | ||
xep-0276.xml | ||
xep-0277.xml | ||
xep-0278.xml | ||
xep-0279.xml | ||
xep-0280.xml | ||
xep-0281.xml | ||
xep-0282.xml | ||
xep-0283.xml | ||
xep-0284.xml | ||
xep-0285.xml | ||
xep-0286.xml | ||
xep-0287.xml | ||
xep-0288.xml | ||
xep-0289.xml | ||
xep-0290.xml | ||
xep-0291.xml | ||
xep-0292.xml | ||
xep-0293.xml | ||
xep-0294.xml | ||
xep-0295.xml | ||
xep-0296.xml | ||
xep-0297.xml | ||
xep-0298.xml | ||
xep-0299.xml | ||
xep-0300.xml | ||
xep-0301.xml | ||
xep-0302.xml | ||
xep-0303.xml | ||
xep-0304.xml | ||
xep-0305.xml | ||
xep-0306.xml | ||
xep-0307.xml | ||
xep-0308.xml | ||
xep-0309.xml | ||
xep-0310.xml | ||
xep-0311.xml | ||
xep-0312.xml | ||
xep-0313.xml | ||
xep-0314.xml | ||
xep-0315.xml | ||
xep-0316.xml | ||
xep-0317.xml | ||
xep-0318.xml | ||
xep-0319.xml | ||
xep-0320.xml | ||
xep-0321.xml | ||
xep-0322.xml | ||
xep-0323.xml | ||
xep-0324.xml | ||
xep-0325.xml | ||
xep-0326.xml | ||
xep-0327.xml | ||
xep-0328.xml | ||
xep-0329.xml | ||
xep-0330.xml | ||
xep-0331.xml | ||
xep-0332.xml | ||
xep-0333.xml | ||
xep-0334.xml | ||
xep-0335.xml | ||
xep-0336.xml | ||
xep-0337.xml | ||
xep-0338.xml | ||
xep-0339.xml | ||
xep-0340.xml | ||
xep-0341.xml | ||
xep-0342.xml | ||
xep-0343.xml | ||
xep-0344.xml | ||
xep-0345.xml | ||
xep-0346.xml | ||
xep-0347.xml | ||
xep-0348.xml | ||
xep-0349.xml | ||
xep-0350.xml | ||
xep-0351.xml | ||
xep-0352.xml | ||
xep-0353.xml | ||
xep-0354.xml | ||
xep-0355.xml | ||
xep-0356.xml | ||
xep-0357.xml | ||
xep-0358.xml | ||
xep-0359.xml | ||
xep-0360.xml | ||
xep-0361.xml | ||
xep-0362.xml | ||
xep-0363.xml | ||
xep-0364.xml | ||
xep-0365.xml | ||
xep-0366.xml | ||
xep-0367.xml | ||
xep-0368.xml | ||
xep-0369.xml | ||
xep-0370.xml | ||
xep-0371.xml | ||
xep-0372.xml | ||
xep-0373.xml | ||
xep-0374.xml | ||
xep-0375.xml | ||
xep-0376.xml | ||
xep-0377.xml | ||
xep-0378.xml | ||
xep-0379.xml | ||
xep-0380.xml | ||
xep-0381.xml | ||
xep-0382.xml | ||
xep-0383.xml | ||
xep-0384.xml | ||
xep-0385.xml | ||
xep-0386.xml | ||
xep-0387.xml | ||
xep-0388.xml | ||
xep-0389.xml | ||
xep-0390.xml | ||
xep-0391.xml | ||
xep-0392.xml | ||
xep-0393.xml | ||
xep-0394.xml | ||
xep-0395.xml | ||
xep-0396.xml | ||
xep-0397.xml | ||
xep-0398.xml | ||
xep-0399.xml | ||
xep-0400.xml | ||
xep-0401.xml | ||
xep-0402.xml | ||
xep-README.xml | ||
xep-template.xml | ||
xep.dtd | ||
xep.ent | ||
xep.xsd | ||
xep.xsl | ||
xepinfo.py | ||
xeputil.py | ||
xmpp.css |
XMPP Extension Protocols (XEPs)
This repository is used to manage work on XMPP Extension Protocols (XEPs), which are the specifications produced by the XMPP Standards Foundation (XSF). See http://xmpp.org/ for details. The rendered documents can be found here:
Please use this repository to raise issues and submit pull requests:
https://github.com/xsf/xeps/issues https://github.com/xsf/xeps/pulls
For in-depth technical discussion, please post to the standards@xmpp.org email list:
http://mail.jabber.org/mailman/listinfo/standards
To submit a new proposal for consideration as a XEP, please read this page:
https://xmpp.org/about/standards-process.html#submitting-a-xep
XEP-0001: XMPP Extension Protocols defines the standards process followed by the XMPP Standards Foundation.
Building XEPs
To build a single XEP as HTML simply run:
make xep-xxxx.html
To build PDFs, you'll need to install TeXML (probably in a Python 2 virtual environment). You can then build PDFs with:
make xep-xxxx.pdf
To change the output directory, set the variable OUTDIR
, eg.
OUTDIR=/tmp/xeps make all
For more information try make help
.
Using Docker
A full set of HTML and PDFs can be generated inside a docker container, with no
dependencies on the host other than Docker itself, and served by nginx in the
container. To build the template make docker
, to run it make testdocker
(serves on http://localhost:3080), and to stop/delete it afterwards make stopdocker
Gardening (Issue triaging by non-editors)
For new PRs, anyone with permission may perform gardening tasks. The Go wiki sumarizes "gardening" as:
the background maintenance tasks done to keep the project healthy & growing & nice looking.
In this repo, gardening is mostly triaging issues.
An issue is considered triaged when an editor has been assigned to it.
Untriaged issues that are in need of attention can be found using the following
filter: is:open is:pr no:assignee
To triage new issues or PRs:
- Is the issue a duplicate? Close it (referencing the original issue).
- Is the issue a question and not an issue? Close it, pointing them at the mailing list or chat room.
- Is the PR a new ProtoXEP? Add the "ProtoXEP" label and ensure that the file is in the "inbox/" tree and does not start with "xep-" (if not, leave a comment asking for it to be moved).
- Is the issue a specific change to an existing XEP or a few XEPs (eg. not whitespace changes to many XEPs, use your judgement)? Make sure the title starts with "XEP-XXXX:" or "XEP-XXXX, XEP-YYYY:".
- Finally, assign an editor (pick one at random, or pick the one with the least issues already assigned to them; we may re-assign it later so don't feel bad). The list of active editors can be found here: https://xmpp.org/about/xsf/editor-team
Editor
The XMPP Extensions Editor (or, for short, XEP Editor) manages the XMPP extensions process as defined in XMPP Extension Protocols (XEP-0001). In addition, the XEP Editor functions as the XMPP Registrar as defined in XMPP Registrar Function (XEP-0053). Read those documents first, since this README focuses on mechanics instead of philosophy or policy.
All PRs
For all PRs, start by ensuring that the IP release has been signed and that CI has run and no issues were detected before merging.
Triaging a PR
If the PR is not touching a XEP, this guide does not apply. If the PR touches multiple XEPs, go through the steps for each XEP and exit at the first which applies.
-
Is the PR a ProtoXEP?
-
Does the PR touch existing XEPs? Close as [invalid] and ask the Opener to split the two things.
-
Add the ProtoXEP and Ready to Merge labels.
-
Stop.
-
-
Are the changes for all XEPs purely editorial?
- Add the Editorial Change and Ready to Merge labels.
- Stop.
-
Is the XEP not in Experimental state?
(Changes to Non—Experimental XEPs need approval by the approving body as defined in the XEP file itself.)
- Add the Needs Council/Needs Board label.
- Put the PR in the Council Trello project.
- Stop.
-
Is the XEP in Experimental state and the PR opener is not an author of the XEP?
-
If the issue has not been discussed on the standards list or if the authors have not been involved in the discussion:
- Make sure the standards@ discussion (if it exists) is linked in the PR.
- Add the Needs Author label.
- Put the PR in the Editor Trello project.
- Stop.
-
-
Mark the PR as Ready to Merge.
Discussions
Technical discussions SHOULD NOT happen in the xeps repository. If you see a discussion evolve into technical (as opposed to editorial) matters, do the following (I haven’t tried that myself yet, so feel especially free to improve the process):
-
Lock the conversation.
-
Copy the technical discussion parts into an email to standards@. My preferred format for this would be something along the lines of:
Subject: XEP-1234: [insert PR subject here, or something more appropriate] There was some discussion on the xeps repository an XEP-1234, which got technical. I moved this discussion to standards@ so that the whole community is aware of the issue and can participate. @user1 wrote: > quote user1 here ... @user2 wrote: > quote user2 here ...
Remove clearly editorial discussion and mark the removal with
[…]
. -
Add the Needs List Discussion label to the PR and link the standards@ thread you just created. Remove other labels (such as Needs Author).
-
Monitor the thread; when the discussion is resolved, the PR opener will usually prepare an update. Unlock the conversation to allow editorial discussion to continue, if needed. Remove the Needs List Discussion label and re-triage the PR as described above.
Note: The locking is mostly used here as a tool to avoid a race condition, not to exclude people from participating. (It would be unfortunate if you had to add more comments to your already-sent email.) Feel free to unlock at some point during the list discussion when you’re sure that all participants have taken note of the move.
General notes on making changes
This section has some hints on the python scripts which help you doing the more tedious tasks of sending emails and properly archiving XEPs.
Before you start working on merging a Pull Request:
-
Ideally, you have the xep-attic repository cloned next to the xeps repository.
-
Before starting to prepare a merge and push, ensure that you have the XEP metadata up-to-date locally:
$ make build/xeplist.xml
-
Make a copy of the metadata:
$ cp build/xeplist.xml tools/old-xeplist.xml
(avoid putting random XML files in the xeps root directory, the build tooling might mistake them as XEPs; so we put it somewhere else.)
While you’re working on a Pull Request:
- Use the lokal docker build to ensure that everything is syntactically correct. The process is described above in "Using Docker".
When you have merged the Pull Request and the change went through to the webserver (see also the Docker Build to track the build progress):
-
Send out the emails. First ensure that the new metadata is up-to-date:
$ make build/xeplist.xml
Check that the emails which will be sent are correct (the
--dry-run
switch prevents the tool from actually sending emails):$ ./tools/send-updates.py --dry-run tools/old-xeplist.xml build/xeplist.xml standards@xmpp.org
(See also the
--help
output for more information.)Once you’ve verified that the correct emails will be sent, actually send them using (note the missing
--dry-run
flag):$ ./tools/send-updates.py tools/old-xeplist.xml build/xeplist.xml standards@xmpp.org
A few tips:
-
Don’t forget to archive the new versions of the XEPs. If you have the xep-attic cloned next to the xeps repository, you can simply run:
$ ./tools/archive.py tools/old-xeplist.xml build/xeplist.xml
Otherwise, you will have to explicitly give the path to the attic:
$ ./tools/archive.py --attic /path/to/xep-attic/content/ tools/old-xeplist.xml build/xeplist.xml
(note that the path must point to the
content
subdirectory of the xep-attic.)Don’t forget to commit & push the changes to xep-attic.
New ProtoXEPs
- Make sure the protoxep is in the
inbox/
tree and has a name that does not start with "xep-" (you may change this or ask the author to change it). - Make sure the version is
0.0.1
and the status isProtoXEP
(you may fix this or ask the author to fix it). - You may want to build the protoxep locally and ensure the HTML and PDF look okay.
- Merge the PR as described in "Merging a PR". Once the email has been sent, continue here.
- Create a card for the protoxep on the Council Trello under "Proposed Agendums".
- Attach the PR to the card and link the generated HTML.
- Comment on the PR with a link to the card, thanking the author for their submission and letting them know that their XEP will be voted on within the next two weeks.
- If the council forgets and doesn't vote on the protoxep, pester them until they do.
- If the council rejects the XEP, you're done (leave the XEP in the inbox and inform the author of the councils decision). Otherwise, see "Promoting a ProtoXEP".
Promoting a ProtoXEP
- It is easiest to start a new branch, in case you screw something up on the way.
- Once the council approves a ProtoXEP, copy it out of the inbox and into the root, assigning it the next available number in the XEP series.
- Modify the
<number/>
element in the XML file to match. - Set the version to
0.1
and the initials toXEP Editor: xyz
(replacing "xyz" with your own initials). - Remove the
<interim/>
element from the XML file if it is included. - Set the status to
Experimental
. - Add a reference to the XEP in
xep.ent
. - Make a commit.
- Treat your branch as you would treat a Ready to Merge PR in "Merging a PR". (you don’t need to create another branch though.)
Promoting XEPs
Ensure that the following sections exist (if not, ask the author to add them before promoting the XEP):
- Security Considerations
- IANA Considerations
- XMPP Registrar Considerations
- XML Schema (for protocol specifications)
You can also refer to xep-template.xml
for a recommended list of sections and
whether or not they are required.
For a helpful graph of how XEP promotion works, see XEP-0001.
Deferring XEPs
Before Deferring XEPs, read the "General notes on making changes" section.
XEPs get deferred after 12 months of inactivity. There is a tool which handles that process automatically, if it is invoked regularly.
First of all, you need an up-to-date xeplist.xml
:
make build/xeplist.xml
To get a list of XEPs which need to be deferred (without changing anything), run:
./tools/deferrals.py -v
To apply the deferrals, make a new feature branch and execute:
./tools/deferrals.py -m 'initials'
where you replace initials
with your editor initials so that it is obvious
who made the change (those initials will be used in the revision block).
This will modify the XEPs in-place. It uses heuristics for incrementing the
version number, finding and inserting the revision block as well as changing
the status. Yes, it involves regular expressions (because we don’t want to
fully re-write the XML to keep the diffs minimal). It is thus vital that you
use git diff
to ensure that the changes are sane. If the changes
are sane, make a commit and merge to master as described in "Merging a PR",
in accordance with the "General notes on making changes".
Merging a PR
Before Merging a PR, read the "General notes on making changes" section.
When you get to the point that the PR is Ready to Merge, do the following:
-
Create a new branch off master called
feature/xep-1234
(if the PR touches multiple XEPs, I call itfeature/xep-0678,xep-0789
). -
Merge all Ready to Merge PRs which affect the XEP(s) into that branch.
-
Resolve conflicts.
-
If the PRs introduced multiple revision blocks, squash it down to a single revision block. Set "XEP Editor (initials)" as author of the revision block and add the initials of the original PR authors to the changelog entries. (If that doesn’t make sense to you, you’ll find plenty examples in the XEPs.)
-
Ensure that everything builds by performing a full docker build (see above).
(Once the docker build reaches the point where the XEPs are built, you can switch branches and work on another PR.)
-
If the build passes, check that the generated files look sane by running the docker container.
-
Merge the PR into master. If you are working on independent changes to multiple XEPs, you can merge them all in one go.
-
If you merged multiple things into master, re-do the docker build check.
-
Push.
-
Go back to "General notes on making changes".