<div dir="ltr">Hi Chandler,<div><br></div><div>I know there's still work left to do to get to a final version but congratulations on getting the CoC this far, and thanks to you and everyone else involved for all the hard work!<div><br></div><div>Cheers,</div></div><div>Lang.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 30, 2016 at 1:27 PM, Chandler Carruth via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: chandlerc<br>
Date: Thu Jun 30 15:27:54 2016<br>
New Revision: 274268<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=274268&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=274268&view=rev</a><br>
Log:<br>
Introduce a *draft* of a code of conduct for the LLVM community and the<br>
associated reporting guide.<br>
<br>
I want to emphasize that at this point these are just drafts!<br>
<br>
This is the result of very extended discussion on the mailing lists on<br>
several different threads:<br>
<a href="http://lists.llvm.org/pipermail/llvm-dev/2015-October/091218.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2015-October/091218.html</a><br>
<a href="http://lists.llvm.org/pipermail/llvm-dev/2016-May/099120.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2016-May/099120.html</a><br>
<a href="http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151019/307070.html" rel="noreferrer" target="_blank">http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151019/307070.html</a><br>
<br>
The reporting guide in particular I anticipate will be shaped somewhat<br>
by the advisory committee when they are selected. But hopefully this<br>
serves as a good starting point and good guidance while the advisory<br>
committee is being sorted out.<br>
<br>
I'd like to thank all the folks who contributed to this. Many, *many*<br>
people worked to help with drafting, wording, suggestions, and edits.<br>
Also, this is based on widely used existing codes of coduct as mentioned<br>
in the text, and the original authors of those deserve many thanks as<br>
well.<br>
<br>
Differential Revision: <a href="http://reviews.llvm.org/D13741" rel="noreferrer" target="_blank">http://reviews.llvm.org/D13741</a><br>
<br>
Added:<br>
    llvm/trunk/docs/CodeOfConduct.rst<br>
    llvm/trunk/docs/ReportingGuide.rst<br>
Modified:<br>
    llvm/trunk/docs/index.rst<br>
<br>
Added: llvm/trunk/docs/CodeOfConduct.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeOfConduct.rst?rev=274268&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CodeOfConduct.rst?rev=274268&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/docs/CodeOfConduct.rst (added)<br>
+++ llvm/trunk/docs/CodeOfConduct.rst Thu Jun 30 15:27:54 2016<br>
@@ -0,0 +1,111 @@<br>
+==============================<br>
+LLVM Community Code of Conduct<br>
+==============================<br>
+<br>
+.. note::<br>
+<br>
+   This document is currently a **DRAFT** document while it is being discussed<br>
+   by the community.<br>
+<br>
+The LLVM community has always worked to be a welcoming and respectful<br>
+community, and we want to ensure that doesn't change as we grow and evolve. To<br>
+that end, we have a few ground rules that we ask people to adhere to:<br>
+<br>
+* `be friendly and patient`_,<br>
+* `be welcoming`_,<br>
+* `be considerate`_,<br>
+* `be respectful`_,<br>
+* `be careful in the words that you choose and be kind to others`_, and<br>
+* `when we disagree, try to understand why`_.<br>
+<br>
+This isn’t an exhaustive list of things that you can’t do. Rather, take it in<br>
+the spirit in which it’s intended - a guide to make it easier to communicate<br>
+and participate in the community.<br>
+<br>
+This code of conduct applies to all spaces managed by the LLVM project or The<br>
+LLVM Foundation. This includes IRC channels, mailing lists, bug trackers, LLVM<br>
+events such as the developer meetings and socials, and any other forums created<br>
+by the project that the community uses for communication. It applies to all of<br>
+your communication and conduct in these spaces, including emails, chats, things<br>
+you say, slides, videos, posters, signs, or even t-shirts you display in these<br>
+spaces. In addition, violations of this code outside these spaces may, in rare<br>
+cases, affect a person's ability to participate within them.<br>
+<br>
+If you believe someone is violating the code of conduct, we ask that you report<br>
+it by emailing <a href="mailto:conduct@llvm.org">conduct@llvm.org</a>. For more details please see our<br>
+:doc:`Reporting Guide <ReportingGuide>`.<br>
+<br>
+.. _be friendly and patient:<br>
+<br>
+* **Be friendly and patient.**<br>
+<br>
+.. _be welcoming:<br>
+<br>
+* **Be welcoming.** We strive to be a community that welcomes and supports<br>
+  people of all backgrounds and identities. This includes, but is not limited<br>
+  to members of any race, ethnicity, culture, national origin, colour,<br>
+  immigration status, social and economic class, educational level, sex, sexual<br>
+  orientation, gender identity and expression, age, size, family status,<br>
+  political belief, religion or lack thereof, and mental and physical ability.<br>
+<br>
+.. _be considerate:<br>
+<br>
+* **Be considerate.** Your work will be used by other people, and you in turn<br>
+  will depend on the work of others. Any decision you take will affect users<br>
+  and colleagues, and you should take those consequences into account. Remember<br>
+  that we're a world-wide community, so you might not be communicating in<br>
+  someone else's primary language.<br>
+<br>
+.. _be respectful:<br>
+<br>
+* **Be respectful.** Not all of us will agree all the time, but disagreement is<br>
+  no excuse for poor behavior and poor manners. We might all experience some<br>
+  frustration now and then, but we cannot allow that frustration to turn into<br>
+  a personal attack. It’s important to remember that a community where people<br>
+  feel uncomfortable or threatened is not a productive one. Members of the LLVM<br>
+  community should be respectful when dealing with other members as well as<br>
+  with people outside the LLVM community.<br>
+<br>
+.. _be careful in the words that you choose and be kind to others:<br>
+<br>
+* **Be careful in the words that you choose and be kind to others.** Do not<br>
+  insult or put down other participants. Harassment and other exclusionary<br>
+  behavior aren't acceptable. This includes, but is not limited to:<br>
+<br>
+  * Violent threats or language directed against another person.<br>
+  * Discriminatory jokes and language.<br>
+  * Posting sexually explicit or violent material.<br>
+  * Posting (or threatening to post) other people's personally identifying<br>
+    information ("doxing").<br>
+  * Personal insults, especially those using racist or sexist terms.<br>
+  * Unwelcome sexual attention.<br>
+  * Advocating for, or encouraging, any of the above behavior.<br>
+<br>
+  In general, if someone asks you to stop, then stop. Persisting in such<br>
+  behavior after being asked to stop is considered harassment.<br>
+<br>
+.. _when we disagree, try to understand why:<br>
+<br>
+* **When we disagree, try to understand why.** Disagreements, both social and<br>
+  technical, happen all the time and LLVM is no exception. It is important that<br>
+  we resolve disagreements and differing views constructively. Remember that<br>
+  we’re different. The strength of LLVM comes from its varied community, people<br>
+  from a wide range of backgrounds. Different people have different<br>
+  perspectives on issues. Being unable to understand why someone holds<br>
+  a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to<br>
+  err and blaming each other doesn’t get us anywhere. Instead, focus on helping<br>
+  to resolve issues and learning from mistakes.<br>
+<br>
+Questions?<br>
+==========<br>
+<br>
+If you have questions, please feel free to contact the LLVM Foundation Code of<br>
+Conduct Advisory Committee by emailing <a href="mailto:conduct@llvm.org">conduct@llvm.org</a>.<br>
+<br>
+<br>
+(This text is based on the `Django Project`_ Code of Conduct, which is in turn<br>
+based on wording from the `Speak Up! project`_.)<br>
+<br>
+.. _Django Project: <a href="https://www.djangoproject.com/conduct/" rel="noreferrer" target="_blank">https://www.djangoproject.com/conduct/</a><br>
+.. _Speak Up! project: <a href="http://speakup.io/coc.html" rel="noreferrer" target="_blank">http://speakup.io/coc.html</a><br>
+<br>
<br>
Added: llvm/trunk/docs/ReportingGuide.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReportingGuide.rst?rev=274268&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReportingGuide.rst?rev=274268&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/docs/ReportingGuide.rst (added)<br>
+++ llvm/trunk/docs/ReportingGuide.rst Thu Jun 30 15:27:54 2016<br>
@@ -0,0 +1,143 @@<br>
+===============<br>
+Reporting Guide<br>
+===============<br>
+<br>
+.. note::<br>
+<br>
+   This document is currently a **DRAFT** document while it is being discussed<br>
+   by the community.<br>
+<br>
+If you believe someone is violating the :doc:`code of conduct <CodeOfConduct>`<br>
+you can always report it to the LLVM Foundation Code of Conduct Advisory<br>
+Committee by emailing <a href="mailto:conduct@llvm.org">conduct@llvm.org</a>. **All reports will be kept<br>
+confidential.** This isn't a public list and only `members`_ of the advisory<br>
+committee will receive the report.<br>
+<br>
+If you believe anyone is in **physical danger**, please notify appropriate law<br>
+enforcement first. If you are unsure what law enforcement agency is<br>
+appropriate, please include this in your report and we will attempt to notify<br>
+them.<br>
+<br>
+If the violation occurs at an event such as a Developer Meeting and requires<br>
+immediate attention, you can also reach out to any of the event organizers or<br>
+staff. Event organizers and staff will be prepared to handle the incident and<br>
+able to help. If you cannot find one of the organizers, the venue staff can<br>
+locate one for you. We will also post detailed contact information for specific<br>
+events as part of each events’ information. In person reports will still be<br>
+kept confidential exactly as above, but also feel free to (anonymously if<br>
+needed) email <a href="mailto:conduct@llvm.org">conduct@llvm.org</a>.<br>
+<br>
+.. note::<br>
+   The LLVM community has long handled inappropriate behavior on its own, using<br>
+   both private communication and public responses. Nothing in this document is<br>
+   intended to discourage this self enforcement of community norms. Instead,<br>
+   the mechanisms described here are intended to supplement any self<br>
+   enforcement within the community. They provide avenues for handling severe<br>
+   cases or cases where the reporting party does not whish to respond directly<br>
+   for any reason.<br>
+<br>
+Filing a report<br>
+===============<br>
+<br>
+Reports can be as formal or informal as needed for the situation at hand. If<br>
+possible, please include as much information as you can. If you feel<br>
+comfortable, please consider including:<br>
+<br>
+* Your contact info (so we can get in touch with you if we need to follow up).<br>
+* Names (real, nicknames, or pseudonyms) of any individuals involved. If there<br>
+  were other witnesses besides you, please try to include them as well.<br>
+* When and where the incident occurred. Please be as specific as possible.<br>
+* Your account of what occurred. If there is a publicly available record (e.g.<br>
+  a mailing list archive or a public IRC logger) please include a link.<br>
+* Any extra context you believe existed for the incident.<br>
+* If you believe this incident is ongoing.<br>
+* Any other information you believe we should have.<br>
+<br>
+What happens after you file a report?<br>
+=====================================<br>
+<br>
+You will receive an email from the advisory committee acknowledging receipt<br>
+within 24 hours (and we will aim to respond much quicker than that).<br>
+<br>
+The advisory committee will immediately meet to review the incident and try to<br>
+determine:<br>
+<br>
+* What happened and who was involved.<br>
+* Whether this event constitutes a code of conduct violation.<br>
+* Whether this is an ongoing situation, or if there is a threat to anyone's<br>
+  physical safety.<br>
+<br>
+If this is determined to be an ongoing incident or a threat to physical safety,<br>
+the working groups' immediate priority will be to protect everyone involved.<br>
+This means we may delay an "official" response until we believe that the<br>
+situation has ended and that everyone is physically safe.<br>
+<br>
+The working group will try to contact other parties involved or witnessing the<br>
+event to gain clarity on what happened and understand any different<br>
+perspectives.<br>
+<br>
+Once the advisory committee has a complete account of the events they will make<br>
+a decision as to how to respond. Responses may include:<br>
+<br>
+* Nothing, if we determine no violation occurred or it has already been<br>
+  appropriately resolved.<br>
+* Providing either moderation or mediation to ongoing interactions (where<br>
+  appropriate, safe, and desired by both parties).<br>
+* A private reprimand from the working group to the individuals involved.<br>
+* An imposed vacation (i.e. asking someone to "take a week off" from a mailing<br>
+  list or IRC).<br>
+* A public reprimand.<br>
+* A permanent or temporary ban from some or all LLVM spaces (mailing lists,<br>
+  IRC, etc.)<br>
+* Involvement of relevant law enforcement if appropriate.<br>
+<br>
+If the situation is not resolved within one week, we'll respond within one week<br>
+to the original reporter with an update and explanation.<br>
+<br>
+Once we've determined our response, we will separately contact the original<br>
+reporter and other individuals to let them know what actions (if any) we'll be<br>
+taking. We will take into account feedback from the individuals involved on the<br>
+appropriateness of our response, but we don't guarantee we'll act on it.<br>
+<br>
+After any incident, the advisory committee will make a report on the situation<br>
+to the LLVM Foundation board. The board may choose to make a public statement<br>
+about the incident. If that's the case, the identities of anyone involved will<br>
+remain confidential unless instructed by those inviduals otherwise.<br>
+<br>
+Appealing<br>
+=========<br>
+<br>
+Only permanent resolutions (such as bans) or requests for public actions may be<br>
+appealed. To appeal a decision of the working group, contact the LLVM<br>
+Foundation board at <a href="mailto:board@llvm.org">board@llvm.org</a> with your appeal and the board will review<br>
+the case.<br>
+<br>
+In general, it is **not** appropriate to appeal a particular decision on<br>
+a public mailing list. Doing so would involve disclosure of information which<br>
+whould be confidential. Disclosing this kind of information publicly may be<br>
+considered a separate and (potentially) more serious violation of the Code of<br>
+Conduct. This is not meant to limit discussion of the Code of Conduct, the<br>
+advisory board itself, or the appropriateness of responses in general, but<br>
+**please** refrain from mentioning specific facts about cases without the<br>
+explicit permission of all parties involved.<br>
+<br>
+.. _members:<br>
+<br>
+Members of the Code of Conduct Advisory Committee<br>
+=================================================<br>
+<br>
+The members serving on the advisory committee are listed here with contact<br>
+information in case you are more comfortable talking directly to a specific<br>
+member of the committee.<br>
+<br>
+.. note::<br>
+<br>
+   FIXME: When we form the initial advisory committee, the members names and private contact info need to be added here.<br>
+<br>
+<br>
+<br>
+(This text is based on the `Django Project`_ Code of Conduct, which is in turn<br>
+based on wording from the `Speak Up! project`_.)<br>
+<br>
+.. _Django Project: <a href="https://www.djangoproject.com/conduct/" rel="noreferrer" target="_blank">https://www.djangoproject.com/conduct/</a><br>
+.. _Speak Up! project: <a href="http://speakup.io/coc.html" rel="noreferrer" target="_blank">http://speakup.io/coc.html</a><br>
<br>
Modified: llvm/trunk/docs/index.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/index.rst?rev=274268&r1=274267&r2=274268&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/index.rst?rev=274268&r1=274267&r2=274268&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/docs/index.rst (original)<br>
+++ llvm/trunk/docs/index.rst Thu Jun 30 15:27:54 2016<br>
@@ -87,7 +87,9 @@ representation.<br>
    GetElementPtr<br>
    Frontend/PerformanceTips<br>
    MCJITDesignAndImplementation<br>
+   CodeOfConduct<br>
    CompileCudaWithLLVM<br>
+   ReportingGuide<br>
<br>
 :doc:`GettingStarted`<br>
    Discusses how to get up and running quickly with the LLVM infrastructure.<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>