Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
docs: remove nightly branch guidance
chengyongru6e6470daa05c
diff --git a/.agent/design.md b/.agent/design.mdindex e8cef12fc..75ea7607b 100644--- a/.agent/design.md+++ b/.agent/design.md@@ -18,7 +18,7 @@ Channels and providers are allowed to repeat similar logic (send retries, media## Minimal change that solves the real problem-Fix bugs by changing only what is necessary. Do not bundle unrelated refactors or clean-ups into a feature or bugfix PR. If a refactor is genuinely required, it should be a separate PR targeting `nightly`.+Fix bugs by changing only what is necessary. Do not bundle unrelated refactors or clean-ups into a feature or bugfix PR. If a refactor is genuinely required, it should be a separate, clearly scoped PR.## Keep PRs reviewablediff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7deda73db..93baed56a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -2,9 +2,9 @@ name: Test Suiteon:push:- branches: [main, nightly]+ branches: [main]pull_request:- branches: [main, nightly]+ branches: [main]concurrency:group: ${{ github.workflow }}-${{ github.ref }}diff --git a/AGENTS.md b/AGENTS.mdindex d925f32c6..814661b31 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -61,9 +61,9 @@ Messages flow through an async `MessageBus` (`nanobot/bus/queue.py`) that decoup- Security boundaries: [`.agent/security.md`](.agent/security.md)- Common gotchas: [`.agent/gotchas.md`](.agent/gotchas.md)-## Branching Strategy+## Contribution Flow-See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for the full two-branch model (`main` vs `nightly`) and PR guidelines.+See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for contribution flow and PR guidelines.## Code Stylediff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 9b15f384c..c897514fc 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -14,42 +14,30 @@ software together: with care, clarity, and respect for the next person reading tMaintainers are community stewards who help review, organize, and maintain the project. The list below describes each maintainer's current open-source project responsibilities.-| Maintainer | Focus |-|------------|-------|-| [@re-bin](https://github.com/re-bin) | Project lead, `main` branch |-| [@chengyongru](https://github.com/chengyongru) | `nightly` branch, experimental features |+| Maintainer | Role |+|------------|------|+| [@re-bin](https://github.com/re-bin) | Project lead; reviews community PRs and handles merges |+| [@chengyongru](https://github.com/chengyongru) | Reviews community PRs and may approve them; merges are handled by the project lead |-## Branching Strategy+## Contribution Flow-We use a two-branch model to balance stability and exploration:+### What Should I Open a PR For?-| Branch | Purpose | Stability |-|--------|---------|-----------|-| `main` | Stable releases | Production-ready |-| `nightly` | Experimental features | May have bugs or breaking changes |--### Which Branch Should I Target?--**Target `nightly` if your PR includes:**+PRs are welcome for:- New features or functionality-- Refactoring that may affect existing behavior-- Changes to APIs or configuration--**Target `main` if your PR includes:**-- Bug fixes with no behavior changes- Documentation improvements- Minor tweaks that don't affect functionality+- Refactoring that is clearly scoped and easy to review+- Changes to APIs or configuration, when the impact is documented-**When in doubt, target `nightly`.** It is easier to move a stable idea from `nightly`-to `main` than to undo a risky change after it lands in the stable branch.+For riskier or larger changes, please open an issue or draft PR early so the+shape of the work can be discussed before the implementation grows too large.### Starting Work-Before making changes, sync the target branch and create a topic branch from it.-For stable bug fixes and documentation-only changes, start from the latest `main`.-For experimental work, start from the latest `nightly`.+Before making changes, sync your local checkout and create a topic branch.```bashgit fetch upstream@@ -65,28 +53,6 @@ Keep unrelated local changes out of the topic branch. If your checkout already hwork in progress, use a separate worktree or finish that work before starting anew branch.-### How Does Nightly Get Merged to Main?--We don't merge the entire `nightly` branch. Instead, stable features are **cherry-picked** from `nightly` into individual PRs targeting `main`:--```-nightly ──┬── feature A (stable) ──► PR ──► main- ├── feature B (testing)- └── feature C (stable) ──► PR ──► main-```--This happens approximately **once a week**, but the timing depends on when features become stable enough.--### Quick Summary--| Your Change | Target Branch |-|-------------|---------------|-| New feature | `nightly` |-| Bug fix | `main` |-| Documentation | `main` |-| Refactoring | `nightly` |-| Unsure | `nightly` |-## Development SetupKeep setup boring and reliable. The goal is to get you into the code quickly:@@ -106,9 +72,9 @@ pytestruff check nanobot/# Format code — optional. The existing tree predates `ruff format`,-# so running it across `nanobot/` produces a large unrelated diff-# (E501 is ignored, so many existing lines exceed the 100-char setting).-# Format only files you've actually touched, not the whole package.+# so running it broadly produces large unrelated diffs.+# Do not mix mechanical formatting churn into a functional PR.+# Use formatting only for the exact code your change intentionally touches.ruff format <files-you-changed>```@@ -137,6 +103,9 @@ In practice:- Async: uses `asyncio` throughout; pytest with `asyncio_mode = "auto"`- Prefer readable code over magical code- Prefer focused patches over broad rewrites+- Do not mix mechanical formatting, line wrapping, import sorting, or quote churn+ into a feature or bugfix PR. If formatting cleanup is needed, make it a+ separate formatting-only PR.- If a new abstraction is introduced, it should clearly reduce complexity rather than move it around## Modifying CI Workflowsdiff --git a/README.md b/README.mdindex e07956b1e..ab0aa43cc 100644--- a/README.md+++ b/README.md@@ -316,14 +316,10 @@ Browse the [repo docs](./docs/README.md) for the latest features and GitHub devePRs welcome! The codebase is intentionally small and readable. 🤗-### Branching Strategy+### Contribution Flow-| Branch | Purpose |-|--------|---------|-| `main` | Stable releases — bug fixes and minor improvements |-| `nightly` | Experimental features — new features and breaking changes |--**Unsure which branch to target?** See [CONTRIBUTING.md](./CONTRIBUTING.md) for details.+See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup, review, and contribution+guidelines.**Roadmap** — Pick an item and [open a PR](https://github.com/HKUDS/nanobot/pulls)!