Contributing
Thank you for contributing to the Nyuchi Web Services
ecosystem. This page is the organization-wide default — every
repository inherits it unless it ships its own CONTRIBUTING.md. The CONTRIBUTING.md in nyuchi/.github is a short health file that links here.
Individual repositories may add stricter rules on top of these, but nothing in a repo may relax the rules below.
If you are reading this for the first time, also read:
CODE_OF_CONDUCT.md— how we treat each other.SECURITY.md— how to report vulnerabilities.SUPPORT.md— where to get help.AGENTS.md— rules for AI-assisted contributions. Everything in this file still applies;AGENTS.mdadds agent-specific behaviour on top.
Quick start
Section titled “Quick start”- Fork the repo (external) or branch it (member).
- Work on a branch that matches our branch-naming rules.
- Open a PR with a Conventional Commits title, signed commits, and a DCO sign-off. Green CI and resolved review threads, and we’ll merge it.
Commit conventions
Section titled “Commit conventions”Every commit and every PR title on every repo in the org must follow Conventional Commits 1.0:
<type>(<optional scope>)<!>: <short imperative summary>
<optional body, wrapped at ~72 chars>
<optional footers>Allowed types
Section titled “Allowed types”| Type | Use for |
|---|---|
feat |
A user-visible new feature. |
fix |
A user-visible bug fix. |
perf |
A change that improves performance. |
refactor |
A code change that is neither a fix nor a feature. |
docs |
Documentation only. |
test |
Adding or correcting tests. |
build |
Build system, packaging, bundlers, dependencies. |
ci |
CI configuration, workflows, GitHub Actions. |
chore |
Maintenance that doesn’t fit above. |
revert |
Reverting a previous commit. |
style |
Formatting only; no logic change. |
Breaking changes
Section titled “Breaking changes”Indicate breaking changes either with a ! after the type/scope
or with a BREAKING CHANGE: footer:
feat(api)!: drop support for Node 18
BREAKING CHANGE: minimum supported Node version is now 20.Breaking changes must be called out in the PR description.
Scope is optional but strongly encouraged in monorepos — use the
package or module name (feat(ui): …, fix(ntl/transport): …).
Two things enforced by CI
Section titled “Two things enforced by CI”- PR title is linted against Conventional Commits by the
pr-title-lintworkflow. - Every commit message on the branch is expected to follow the same format. Squash-merges use the PR title as the final commit, so in practice the PR title is the one that must be right; but please keep individual commits conformant too — it helps review.
Signed commits (required)
Section titled “Signed commits (required)”Every commit merged to main on every repo must be signed and
verified by GitHub. This is policy, not a ruleset: the org ruleset
(see [org settings](/engineering/org-settings/))
has no required_signatures rule, so reviewers check it.
Either GPG or SSH signing is accepted. Configure once:
To sign by default:
git config --global commit.gpgsign true# For SSH signing, also set:git config --global gpg.format sshgit config --global user.signingkey ~/.ssh/id_ed25519.pubA commit is “verified” only if the signing key is registered on your GitHub account as a signing key (distinct from an authentication key).
Developer Certificate of Origin (DCO)
Section titled “Developer Certificate of Origin (DCO)”By contributing, you certify that you wrote the code (or have the right to submit it) under the terms of the Developer Certificate of Origin 1.1.
Every commit must include a Signed-off-by trailer. The easiest
way is git commit -s, which appends:
Signed-off-by: Your Name <you@example.com>The email must match the email on your Git config. The DCO check runs on every PR and blocks merges if any commit is missing the trailer.
Signing (
-S) and signing-off (-s) are different things. You need both. Usegit commit -s -S(or setcommit.gpgsign = trueand pass-s).
Branch naming
Section titled “Branch naming”Branches in org repos follow <type>/<short-kebab-description> where
<type> is one of the Conventional Commit types above. Examples:
feat/login-mfafix/auth-refresh-tokendocs/readme-cleanupchore/bump-deps-2026-q2refactor/extract-session-storeAdditional reserved prefixes:
release/<version>— release prep branches.hotfix/<short-desc>— urgent production fixes.claude/<topic>-<suffix>— branches created by Claude Code assistants. Treat these like any other branch; they still need signed commits, DCO, and a Conventional Commit PR title.
Branch names must be lowercase, kebab-case, and under 50 characters. No personal names, no ticket-number-only branches.
Pull requests
Section titled “Pull requests”Before opening
Section titled “Before opening”- Rebase onto the latest default branch; do not merge the default branch into your feature branch.
- Run the repo’s local checks (
pnpm test,cargo test,uv run pytest, etc.) and make sure they pass. - If your change is user-visible, update the relevant docs in the same PR.
When opening
Section titled “When opening”- Title: Conventional Commits format. The PR title is what
becomes the commit message on
mainfor squash-merges. - Description: explain the why, not just the what. Link to
the issue it resolves (
Closes #123) or to any related discussion. - Checklist: the repo’s PR template will prompt you through it — fill it honestly.
- Small is better: aim for PRs under ~400 lines of diff. Split large changes into a stack of reviewable PRs.
Before merging
Section titled “Before merging”All of the following must be true. The org ruleset enforces the required checks, resolved conversations and an up-to-date branch; the rest is policy:
- Conventional Commits PR title (lint passes).
- All commits signed and verified.
- DCO sign-off on every commit.
- All required CI checks green (the five
lint / …checks, plus anyrepo-cichecks the repository adds). - No unresolved review comments.
- Up to date with the base branch.
Required approving reviews are 0 during the solo-developer phase (see [org settings](/engineering/org-settings/)). That rises to 1 when a second engineer with merge rights joins.
Merge strategy
Section titled “Merge strategy”- Squash or rebase. The org ruleset allows both and requires linear history. Squash is the default; the PR title becomes the commit message. A release PR that contains a merge commit must be squash-merged.
- Merge commits are disabled.
Versioning
Section titled “Versioning”Every release follows the org policy (#80):
- Trunk-based,
mainonly. There is nostagingbranch. - A merge to
maintitledfix:,chore:,docs:orci:is a PATCH (x.y.z → x.y.z+1). It is tagged automatically. - A merge to
maintitledfeat:is a MINOR (x.y.z → x.y+1.0). - A MAJOR is manual only: the owner runs the release workflow with
bump: major. Automation never makes one. - Minor and patch have no upper limit: patch 999 is followed by patch 1000, minor 999 by minor 1000. Only a major is manual.
workflow_dispatchon a release workflow takesbump: patch|minor|majoras a manual override.
There are no version labels. Released versions are never renumbered.
The calculator is
.github/actions/next-version.
Code style and quality
Section titled “Code style and quality”Every repo ships its own formatter/linter config (Prettier/Biome, rustfmt/clippy, ruff/mypy, clang-format, etc.). We do not document style rules here — the config files in each repo are the source of truth.
- Do not disable checks (
eslint-disable,# type: ignore,#[allow(...)]) without a comment explaining why on the same line. - Do not commit generated or secret files.
.env, build artifacts, lockfiles for libraries, etc. - Do not drop existing tests when refactoring. Port them.
Dependencies
Section titled “Dependencies”- New runtime dependencies need justification in the PR description — name, version, license, why this one and not a built-in.
- The
dependency-reviewworkflow blocks PRs that introduce known-vulnerable dependencies or dependencies with licenses incompatible with the repo’s ownLICENSE. - Pin versions the way the repo’s ecosystem expects (exact in
Cargo.toml, pnpm lockfile,uv.lock, etc.). Don’t mix styles within a repo.
Dependabot PRs
Section titled “Dependabot PRs”Dependabot opens PRs automatically on a weekly Monday cadence (one grouped PR per ecosystem). When you see a Dependabot PR:
- Check CI green. If any test or lint job fails, investigate before merging — a failing Dependabot PR usually means the upgrade is a breaking change, not a CI flake.
- Security-advisory bumps. These arrive outside the weekly cadence
and are labelled
security. Merge them per the SLA in NA-03 §7.1.2 — Critical within 24 h, High within 5 working days. - Major-version upgrades. Dependabot groups all minor/patch changes into one PR but opens a separate PR for each major upgrade. Review these manually against the package’s changelog; they are not auto-mergeable.
- GitHub Actions SHA bumps. Dependabot updates pinned SHAs in workflow files. These are safe to merge once CI is green — the SHA comment shows the new version.
- Never approve a Dependabot PR that introduces a prohibited dependency: Flutter, Couchbase / Couchbase Capella, Databricks, Cloudflare D1 or Capacitor (the Nyuchi Architecture, §16). MongoDB is not prohibited; it is the non-relational source of truth.
Licensing
Section titled “Licensing”The Nyuchi Web Services org uses a mix of licenses across
repositories — MIT, Apache 2.0, and (rarely) GPL. The
authoritative license for any file is the one declared in that
repository’s LICENSE file.
When you contribute:
- You may not introduce code under a license that is incompatible with the repo’s own license. If you’re unsure whether a third-party snippet is compatible, ask in the PR.
- For Apache 2.0 repos, preserve and update any
NOTICEfiles as required by the license. - If a repository uses per-file license headers, copy the existing header into any new files.
- Your contribution is licensed under the repo’s existing license. The DCO sign-off above is how you certify that.
Security and the Code of Conduct
Section titled “Security and the Code of Conduct”- Vulnerability? Do not open a public issue. Follow
SECURITY.md. - Behavior issue? See
CODE_OF_CONDUCT.mdfor how to report, and what we’ll do.
Governance amendments
Section titled “Governance amendments”Changes to the organisation’s governance documents — NA-01 Constitution, NA-02 Open Source, NA-03 Engineering Working Agreement, or org settings — follow the same PR process as code but require additional steps:
- Open a Governance Amendment issue using the governance amendment template before opening a PR. The issue documents the current text, proposed text, and rationale, and requires the author to declare whether Board notification is required (NA-01 Article 17).
- Draft the PR with the exact text changes, the changelog entry,
and a reference to the amendment issue (
Implements #<issue>). - Review bar: governance changes require review by
@nyuchi/maintainers. Changes that reduce a security practice, relax the privacy filter, or alter a frontier default additionally require a comment from the Founder confirming the Board has been notified (per NA-03 §13). - Merge — the Founder approves amendments under NA-01 Article 17. This supersedes the normal reviewer-count posture.
Getting help
Section titled “Getting help”- How do I use this project? →
SUPPORT.md. - Where’s the discussion? → GitHub Discussions on each repo.
- Who reviews PRs? → The CODEOWNERS file in each repo.
Thanks for contributing. The Ubuntu philosophy we build around — I am because we are — applies to the code too. Everyone’s work here is possible because someone else contributed first.