最后更新:2026-10-19
本文件是唯一贡献入口。
- Read AGENTS.md first. It is the project rule SSOT.
- Read docs/developer-quickstart.md for local setup.
- Start from the latest
master: create afeat/<topic>(ordocs/<topic>) branch, or use a.worktrees/worktree.master禁直接 push,全部通过 PR squash merge(分支、worktree 与 squash 规则以 AGENTS.md 为 SSOT)。
- One branch owns one issue or one coherent slice. Use
feat/,fix/,refactor/,test/,ci/,docs/, orchore/plus a short topic; do not create long-liveddev/*integration branches. - Branch, worktree, rebase, and merge rules live in AGENTS.md §「Git 和 worktree」. Open the PR once the slice is reviewable; the PR title and eventual squash commit use the same Conventional Commit form.
type(scope): 中文摘要
Allowed types (SSOT: scripts/verify/verify-commit-messages.sh): init|feat|fix|docs|refactor|chore|test|perf|ci|revert.
Common scopes: client|edge|api|docs|desktop|web|hub|shared|ci.
命令速查见 docs/developer-quickstart.md §测试速查;目标语义以根 Makefile 为准。改动文件对应的最窄 gate 优先;宣称 merge-ready 前跑对应完整 gate(分层与 CI 映射见 AGENTS.md 的“测试分层(L0-L4)”)。
- Keep PRs scoped to one issue or one coherent change.
- State evidence honestly: fixture, Playwright UI, Visual QA, stubbed Hub, observed-local, approved-real, backend/API, performance/leak, or packaged-release.
- Do not claim real login, real model/API spend, packaged Desktop, signing, installer, release upload, or production deploy unless the matching approved gate ran.
- Run the focused checks named by the touched files and include command evidence in the PR body.
- Before requesting merge, run
git diff --check, confirmgit status --short --branchis understood, generated artifacts are ignored, and no unrelated WIP is included. - 行为准则见 CODE_OF_CONDUCT.md;发现安全漏洞请按 SECURITY.md 的私密渠道报告,不要公开 issue。
Apache-2.0. By contributing, you agree to license your work under the same terms.