From 08804086b3496d1045cb64a105ed0895d93bc98a Mon Sep 17 00:00:00 2001 From: scttbnsn <80784472+scttbnsn@users.noreply.github.com> Date: Sun, 16 Aug 2026 21:43:33 -0400 Subject: [PATCH 1/2] docs(community): add org-default code of conduct and community checklist items CODE_OF_CONDUCT.md is Contributor Covenant 2.0 (drydock's tuned copy) with the org contact security@codeswhat.com, cascading to every repo without a local one. Onboarding checklist gains the cascade-first rule and the Discussions on/off split for product vs meta repos. --- CODE_OF_CONDUCT.md | 128 +++++++++++++++++++++++++++++++++++++++ REPOSITORY_ONBOARDING.md | 8 +++ 2 files changed, 136 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..8d99e9f --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +**** (monitored for both security and conduct reports). +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +. Translations are available at +. diff --git a/REPOSITORY_ONBOARDING.md b/REPOSITORY_ONBOARDING.md index 8929480..f0bfd3b 100644 --- a/REPOSITORY_ONBOARDING.md +++ b/REPOSITORY_ONBOARDING.md @@ -48,6 +48,14 @@ repositories. Language-specific tests do not. planning details in it. - [ ] Add `CONTRIBUTING.md` when the repository accepts contributions. It must agree with `AGENTS.md` about commands, branches, reviews, tests, and commits. +- [ ] Rely on this repository's org-default community-health files + (CONTRIBUTING baseline, `SECURITY.md`, issue forms, PR template, + `CODE_OF_CONDUCT.md`). Add a local override only when the repository needs + repo-specific content, never as a reflex copy. +- [ ] Public product repositories: enable GitHub Discussions and state the + routing in the README's Community section (durable bugs and feature + requests go to Issues, open-ended Q&A and ideas to Discussions, chat to + Discord). Meta and infrastructure repositories keep Discussions off. - [ ] Add tool-specific contributor instructions only when the tool is used. For example, `CLAUDE.md` can supplement `AGENTS.md`, but it does not replace the required `AGENTS.md`. From 7631aa75e582d98c9e9419de65c33498179661b6 Mon Sep 17 00:00:00 2001 From: scttbnsn <80784472+scttbnsn@users.noreply.github.com> Date: Sun, 16 Aug 2026 21:46:57 -0400 Subject: [PATCH 2/2] test(community): assert the code of conduct in the community-health contract --- .github/tests/community_health_contract_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/tests/community_health_contract_test.py b/.github/tests/community_health_contract_test.py index 7d36a25..69c2020 100644 --- a/.github/tests/community_health_contract_test.py +++ b/.github/tests/community_health_contract_test.py @@ -13,6 +13,7 @@ def test_required_default_files_exist(self): required = ( "SECURITY.md", "CONTRIBUTING.md", + "CODE_OF_CONDUCT.md", ".github/CODEOWNERS", ".github/markdownlint-profile.yaml", ".github/ISSUE_TEMPLATE/bug_report.yml", @@ -66,6 +67,17 @@ def test_contributor_guide_matches_org_workflow(self): ): self.assertIn(expected, guide) + def test_code_of_conduct_has_org_contact_and_attribution(self): + conduct = self.read_text("CODE_OF_CONDUCT.md") + + for expected in ( + "Contributor Covenant", + "security@codeswhat.com", + "monitored for both security and conduct reports", + "## Enforcement", + ): + self.assertIn(expected, conduct) + def test_issue_forms_have_unique_ids_and_required_reproduction_fields(self): bug_report = self.read_text(".github/ISSUE_TEMPLATE/bug_report.yml") feature_request = self.read_text(