Skip to content

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.md adds agent-specific behaviour on top.

  1. Fork the repo (external) or branch it (member).
  2. Work on a branch that matches our branch-naming rules.
  3. 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.

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>
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.

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): …).

  • PR title is linted against Conventional Commits by the pr-title-lint workflow.
  • 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.

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:

Terminal window
git config --global commit.gpgsign true
# For SSH signing, also set:
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub

A commit is “verified” only if the signing key is registered on your GitHub account as a signing key (distinct from an authentication key).


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. Use git commit -s -S (or set commit.gpgsign = true and pass -s).


Branches in org repos follow <type>/<short-kebab-description> where <type> is one of the Conventional Commit types above. Examples:

feat/login-mfa
fix/auth-refresh-token
docs/readme-cleanup
chore/bump-deps-2026-q2
refactor/extract-session-store

Additional 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.


  • 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.
  • Title: Conventional Commits format. The PR title is what becomes the commit message on main for 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.

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 any repo-ci checks 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.

  • 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.

Every release follows the org policy (#80):

  • Trunk-based, main only. There is no staging branch.
  • A merge to main titled fix:, chore:, docs: or ci: is a PATCH (x.y.z → x.y.z+1). It is tagged automatically.
  • A merge to main titled feat: 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_dispatch on a release workflow takes bump: patch|minor|major as a manual override.

There are no version labels. Released versions are never renumbered. The calculator is .github/actions/next-version.


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.

  • New runtime dependencies need justification in the PR description — name, version, license, why this one and not a built-in.
  • The dependency-review workflow blocks PRs that introduce known-vulnerable dependencies or dependencies with licenses incompatible with the repo’s own LICENSE.
  • 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 opens PRs automatically on a weekly Monday cadence (one grouped PR per ecosystem). When you see a Dependabot PR:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

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 NOTICE files 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.


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:

  1. 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).
  2. Draft the PR with the exact text changes, the changelog entry, and a reference to the amendment issue (Implements #<issue>).
  3. 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).
  4. Merge — the Founder approves amendments under NA-01 Article 17. This supersedes the normal reviewer-count posture.

  • 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.