3 This document details the duties and processes on maintaining the Tor code
6 The first section describes who is the current Tor maintainer and what are the
7 responsibilities. Tor has one main single maintainer but does have many
8 committers and subsystem maintainers.
10 The second third section describes how the **alpha and main** branches are
11 maintained and by whom.
13 Finally, the last section describes how the **stable** branches are maintained
16 This document does not cover how Tor is released, please see
17 [ReleasingTor.md](ReleasingTor.md) for that information.
21 The current maintainer is Nick Mathewson <nickm@torproject.org>.
23 The maintainer takes final decisions in terms of engineering, architecture and
24 protocol design. Releasing Tor falls under their responsibility.
26 ## Alpha and Master Branches
28 The Tor repository always has at all times a **main** branch which contains
29 the upstream ongoing development.
31 It may also contain a branch for a released feature freezed version which is
32 called the **alpha** branch. The git tag and version number is always
33 postfixed with `-alpha[-dev]`. For example: `tor-0.3.5.0-alpha-dev` or
36 Tor is separated into subsystems and some of those are maintained by other
37 developers than the main maintainer. Those people have commit access to the
38 code base but only commit (in most cases) into the subsystem they maintain.
40 Upstream merges are restricted to the alpha and main branches. Subsystem
41 maintainers should never push a patch into a stable branch which is the
42 responsibility of the [stable branch maintainer](#stable-branches).
46 In alphabetical order, the following people have upstream commit access and
47 maintain the following subsystems:
49 - David Goulet <dgoulet@torproject.org>
50 * Onion Service (including Shared Random).
51 ***keywords:*** *[tor-hs]*
52 * Channels, Circuitmux, Connection, Scheduler.
53 ***keywords:*** *[tor-chan, tor-cmux, tor-sched, tor-conn]*
54 * Cell Logic (Handling/Parsing).
55 ***keywords:*** *[tor-cell]*
57 ***keywords:*** *[tor-thread]*
59 - George Kadianakis <asn@torproject.org>
60 * Onion Service (including Shared Random).
61 ***keywords:*** *[tor-hs]*
63 ***keywords:*** *[tor-guard]*
64 * Pluggable Transport (excluding Bridge networking).
65 ***keywords:*** *[tor-pt]*
69 These are the tasks of a subsystem maintainer:
71 1. Regularly go over `merge_ready` tickets relevant to the related subsystem
72 and for the current alpha or development (main branch) Milestone.
74 2. A subsystem maintainer is expected to contribute to any design changes
75 (including proposals) or large patch set about the subsystem.
77 3. Leave their ego at the door. Mistakes will be made but they have to be
78 taking care of seriously. Learn and move on quickly.
82 These are few important items to follow when merging code upstream:
84 1. To merge code upstream, the patch must have passed our CI (currently
85 github.com/torproject), have a corresponding ticket and reviewed by
86 **at least** one person that is not the original coder.
88 Example A: If Alice writes a patch then Bob, a Tor network team member,
89 reviews it and flags it `merge_ready`. Then, the maintainer is required
90 to look at the patch and makes a decision.
92 Example B: If the maintainer writes a patch then Bob, a Tor network
93 team member, reviews it and flags it `merge_ready`, then the maintainer
94 can merge the code upstream.
96 2. Maintainer makes sure the commit message should describe what was fixed
97 and, if it applies, how was it fixed. It should also always refer to
100 3. Trivial patches such as comment change, documentation, syntax issues or
101 typos can be merged without a ticket or reviewers.
103 4. Tor uses the "merge forward" method, that is, if a patch applies to the
104 alpha branch, it has to be merged there first and then merged forward
107 5. Maintainer should always consult with the network team about any doubts,
108 mis-understandings or unknowns of a patch. Final word will always go to the
113 (Currently being drafted and reviewed by the network team.)