55 Commits
Author SHA1 Message Date
nanobot 10939c7da5 deploy: include matrix channel in dependency + channel gates
Test Suite / Detect changes (push) Canceled after 0s
Test Suite / Python (Windows, 3.14) (push) Canceled after 0s
Test Suite / Python (minimum, 3.11) (push) Canceled after 0s
Test Suite / Python (latest, 3.14 + coverage) (push) Canceled after 0s
Test Suite / Python (Windows process compatibility) (push) Canceled after 0s
Test Suite / Python (Windows installer compatibility) (push) Canceled after 0s
Test Suite / WebUI static checks (push) Canceled after 0s
Test Suite / WebUI production build (push) Canceled after 0s
Test Suite / WebUI unit and coverage (push) Canceled after 0s
Test Suite / WebUI browser (1/4) (push) Canceled after 0s
Test Suite / WebUI browser (2/4) (push) Canceled after 0s
Test Suite / WebUI browser (3/4) (push) Canceled after 0s
Test Suite / WebUI browser (4/4) (push) Canceled after 0s
Test Suite / webui (push) Canceled after 0s
Test Suite / Terminal UI (Windows) (push) Canceled after 0s
Test Suite / Terminal UI (push) Canceled after 0s
Test Suite / Native package acceptance (push) Canceled after 0s
Test Suite / docker (push) Canceled after 0s
Test Suite / CI required (push) Canceled after 0s
(cherry picked from commit c07543386d)
2026-11-22 19:00:13 +08:00
nanobot beccb382df deploy: match Unknown-channel warnings by pipeline format
Agent tool-call echoes also hit this journal and can contain the literal
string; require '| WARNING | - | Unknown channel:' to avoid false
positives in the channel check.

(cherry picked from commit 4c0a1c2812)
2026-11-22 19:00:13 +08:00
nanobot 84d8e6069f deploy: channel-dependency gate + post-restart channel check
2026-09-03 incident: a silently-failed pip install (Tsinghua mirror
transient) left the gateway WebSocket-only for 3.5 days while /health
stayed green. New gates:
- dep gate: verify venv imports (telegram, websockets) BEFORE restart;
  abort without touching the service on failure, one reinstall attempt
  Tsinghua -> PyPI (explicit package names; 'telegram' on PyPI is squat)
- channel check: post-restart journal must have no 'Unknown channel'
  and 'Channels enabled:' must list every required channel, else
  auto-rollback (also applied on rollback path)

(cherry picked from commit d8fc220c8b)
2026-11-22 19:00:13 +08:00
nanobot fa2c33636a fix(deploy): bypass proxy in health checks
Loopback health checks inherited http_proxy from /etc/environment and
were routed through v2rayA, failing spuriously (2026-08-28 incident).

(cherry picked from commit aabad78df9)
2026-11-22 19:00:13 +08:00
nanobot d75c4c7cfd feat: add deploy/rollback supervisor script
Git-checkout-based deployment with health checks and automatic rollback.
Usage: deploy.sh <commit> | deploy.sh rollback | deploy.sh status

(cherry picked from commit 4176122d26)
2026-11-22 19:00:13 +08:00
Xubin Ren 0dc8679edc ci: publish accepted releases to PyPI in one click 2026-11-21 20:11:34 +08:00
chengyongru 7782095a85 perf(ci): speed up full WebUI regression gates (#6684)
* perf(ci): speed up full WebUI regression gates

* perf(ci): balance browser shards with measured hosted timings
2026-11-17 10:26:45 +08:00
Xubin Ren d2e03d23a0 refactor(tools): route file operations through scoped execution 2026-11-14 22:09:21 +08:00
Xubin Ren c539da9269 refactor(tools): separate regular file execution from tool identity 2026-11-14 22:09:21 +08:00
Xubin Renandchengyongru 96c48c96bf Add trusted PyPI publishing for approved releases (#6642)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-11-14 14:54:23 +08:00
Xubin Ren 90d69e7a11 refactor(exec): share the sandbox launch path with settings checks (#6645)
* refactor(exec): share the sandbox launch path with settings checks

* refactor(sandbox): remove duplicate platform and path bookkeeping
2026-11-13 15:29:01 +08:00
Xubin Ren 0f5e56edd4 refactor(execution): share bounded HTTP redirects (#6637) 2026-11-13 14:55:07 +08:00
Xubin Renandchengyongru 8607b6445c refactor(exec): centralize process-tree lifecycle (#6623)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-11-12 11:44:48 +08:00
chengyongru 62c05e7f7e test(ci): isolate flaky scenarios and retain failure diagnostics (#6622)
* test(ci): isolate HTTP stubs and retain failure diagnostics

* test(agent): scope compaction watchdogs to each phase

* test(webui): isolate settings skeleton scenarios

* test(webui): await rendered rail content before scroll checks
2026-11-10 13:53:51 +08:00
Xubin Ren 220d5e6970 refactor(api)!: remove the standalone API server (#6614) 2026-11-10 10:46:14 +08:00
chengyongruandPatrick Veverka 86c98c8cf2 fix(render): invoke entrypoint in deployment command
Co-authored-by: Patrick Veverka <296341601+patrickatrender@users.noreply.github.com>
2026-11-09 15:19:28 +08:00
Xubin Ren cdaae66c89 chore(release): prepare 0.4.1 (#6570)
Prepare version 0.4.1 and document the retained legacy upgrade path.

Avoid false busy update handoffs from disabled or not-yet-due idle scans. Keep real work, maintenance, lease and data-protection checks intact.

Retain safe package-failure diagnostics and cancellable test-controller progress checks. Reduce Windows installer startup contention without changing command deadlines or behavioral assertions.

Validated on the reviewed head with all required PR checks and the exact five-platform candidate. Historical package and recovery coverage remains as documented in the release acceptance record. Publication is separate; this merge does not create a tag, release, upload or feed change.
2026-11-06 20:48:57 +08:00
chengyongru 812b92d734 Revert "refactor: remove legacy history and proxy migrations (#6518)"
This reverts commit cb3ba45317.

Keep JSONL history and legacy proxy migration available throughout 0.4.x. Mark their removal for 0.5.0 in code and release guidance, preserving later context graph, archive and recovery changes.
2026-11-06 10:58:10 +08:00
Xubin Ren 65b6fd03ce ci(release): share manual and opt-in daily candidate preparation 2026-11-04 13:58:24 +08:00
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
chengyongru cb3ba45317 refactor: remove legacy history and proxy migrations (#6518) 2026-10-29 18:28:44 +08:00
chengyongru 2a3d29ce73 refactor(webui): centralize outbound delivery (NAN-365) 2026-10-28 22:17:53 +08:00
Xubin Ren 2cfb2b6d2c test(release): verify retained-volume upgrades from the real Docker release 2026-10-28 16:54:41 +08:00
Xubin Ren 656f124fe9 test(release): resolve real historical baseline dependencies 2026-10-28 16:54:41 +08:00
Xubin Ren 91972b0e4f fix(release): preserve candidate source across artifact transport 2026-10-28 16:54:41 +08:00
Xubin Ren 30c66c1719 test(release): make native macOS acceptance reproducible 2026-10-28 16:54:41 +08:00
Xubin Ren 19c18aaafd fix(release): verify final candidates and refresh SVG parser 2026-10-28 16:54:41 +08:00
Xubin Ren 4574a9b859 fix(release): support zero-patch candidates in upgrade acceptance 2026-10-28 16:54:41 +08:00
chengyongru 32ee2810a1 chore(skills): remove obsolete update-setup skill 2026-10-28 14:37:52 +08:00
chengyongru d045285ced ci: reuse isolated pip seeds and parallelize native acceptance (#6395)
* ci: reuse isolated pip seeds and parallelize native acceptance

* test: retain native controller tree ownership after exit

* ci: retain proven Windows integration worker budgets

* test: keep stdlib creation for seeded integration environments

* fix(ci): constrain stylesheet scans and installer discovery

(cherry picked from commit 3c7a880b1e266a722b7c0075154fd0fc11a6b667)

* test(linear): make rate-limit timing deterministic
2026-10-23 13:45:14 +08:00
chengyongru b45048d415 fix(ci): classify known test fixtures by validation consumers (NAN-331) 2026-10-22 14:28:20 +08:00
chengyongru 67fc220c8a ci: scope native acceptance and bind release candidate artifacts (#6378)
* ci: scope native acceptance and bind release candidate artifacts

* ci: isolate Windows installers and use portable Git tree fixtures

* test: preserve installer subprocess diagnostics on timeout
2026-10-21 23:50:58 +08:00
Xubin Renandchengyongru fbb61a373f feat(update): integrate managed installs and recoverable in-app updates (#6168)
Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback.

Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers.

This code integration does not publish packages, enable signing or advance the public update channel.

Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
2026-10-21 19:16:56 +08:00
chengyongru f284749d2f ci: reduce Python test overhead and Windows latency (#6357)
* test: merge overlapping semantic contract coverage

Consolidate the six confirmed NAN-310 overlap groups while preserving replay, usage, generation kwargs, archive metadata, inspect fields, and subagent crash/redelivery assertions.

* test: lighten history seeds and layer runner progress rules

* ci: defer test storage setup and record phase timings

Close each listener-owned binary bridge before waiting for its TCP server; retain active upload and undecided-connection regressions. Avoid consuming readiness twice and run the repository import scan once in its static gate. NAN-310.

* test: scope filesystem mocks and observe consumed socket prefixes

* test: publish subprocess readiness files atomically

* ci: isolate external tool discovery and use three Windows workers
2026-10-21 14:47:55 +08:00
chengyongru f57018aa7f feat(webui): render Mermaid diagrams with Pele (#6302)
* feat(webui): render Mermaid diagrams with Pele

* fix(webui): reserve diagram replacement capacity

* fix(webui): prebundle lazy diagram worker dependencies

* fix(webui): account diagram capacity by encoded size

* fix(webui): use shared hover hints for diagram actions

* docs(webui): focus diagram guide on usage
2026-10-19 17:16:20 +08:00
chengyongru 103840171b fix(docker): preserve explicit config selectors during bootstrap
Only initialize the Compose default instance when no --config/-c selector is present. Preserve all CLI-supported selector spellings and cover gateway/API startup against selected persisted settings in the Docker smoke test.
2026-10-19 13:02:26 +08:00
chengyongru 3ab8082118 test(docker): read persisted configuration as UTF-8 on Windows 2026-10-19 13:02:26 +08:00
chengyongru de8fbc3ad2 fix(api): keep unconfigured services running and preserve Docker onboarding 2026-10-19 13:02:26 +08:00
chengyongru e20737a509 fix(docker): validate and atomically save first-boot configuration 2026-10-19 13:02:26 +08:00
chengyongru 8f6a5594fb refactor(session): centralize state ownership in SQLite (#5943)
* fix(session): move persistence off event loop

* refactor(session): isolate async persistence boundary

* refactor(session): keep a single session manager

* refactor(session): use stateless async adapters

* fix(session): serialize local persistence without file-lock contention

* refactor(session): own async persistence and snapshot commits

* refactor(session): narrow persistence changes to async adapters

* refactor(session): remove redundant async forwarding helpers

* fix(command): offload compact session persistence

* fix(session): adapt idle compaction to current main

* fix(webui): offload session metadata persistence

* refactor(session): centralize state ownership in SQLite

* fix(session): skip storage for non-recoverable followups

* test(webui): honor the full gateway event deadline

* perf(session): persist incremental changes and reuse owner snapshots

* test(agent): allow durable worker shutdown in burst test

* fix(gateway): drain session storage on Windows console shutdown

* fix(session): enforce bounded ownership and lifecycle-safe persistence

* fix: reject unresolved home paths and stabilize platform tests

* fix(session): preserve request context compatibility and owner-backed tests

* docs: focus configuration guide on user-facing behavior

* fix(session): adapt goal admission to async ownership after rebase

* fix(session): integrate current gateway and subagent contracts

* fix(session): align rebased workspace admission and async tests

* fix(session): support compatible SQLite schema evolution

* test(agent): use session owner in workspace context regressions

* test: stabilize Windows lifecycle and browser checks

* refactor(session): remove premature JSONL file export

* ci: bound Windows full-suite worker concurrency

* chore: remove session state refactor notes

* fix(session): queue writes and retain worker connections

* perf(webui): read detached metadata for session and task lists

* perf(agent): bound prompt preparation and local token counting

* docs: remove internal session storage guide

* perf(session): skip archived transcripts during idle scans

* fix(session): coordinate turns and isolate legacy session data

Bind WebUI input generations to the execution session and serialize idle
and SDK compaction with turns. Keep turn drafts through preparation so the
latest channel route persists.

Move imported workspace JSONL and checkpoints to durable private backups
before gateway admission, resuming cleanup after interruptions. Remove
committed child sessions when task creation is cancelled.

Validation: focused Python and frontend regressions, Ruff, BasedPyright,
import boundaries, WebUI build, and isolated gateway/browser flows.

* fix(agent): keep cancellation hooks independent of prompt preparation

* fix(session): preserve admission, delivery, and migration contracts

* fix(agent): preserve cancellation settlement after rebase

* fix(session): preserve request attribution through async ownership
2026-10-16 17:28:47 +08:00
chengyongru 328e933d36 refactor: isolate runtime contracts and enforce import boundaries (#6166)
* test: enforce Python import ownership boundaries

* test: protect client import boundaries and rehome shared UI contracts

* refactor: remove gateway and client dependency inversions

* fix: detect dynamic imports in conditional expressions

* refactor(tools): keep configuration contracts with their owners

* docs: keep design guidance focused on ownership and checks

* fix: preserve default threaded turn delivery
2026-10-13 13:56:28 +08:00
chengyongru cd2a863710 feat(skills): explain nanobot usage from bundled documentation (#6176)
* feat(skills): add nanobot documentation guide with bundled docs

* docs: prefer graphical setup and align bundled guides with runtime

* docs: lead provider setup with built-in endpoint defaults

* fix: preserve documentation packaging and lookup across install paths

* fix(skills): narrow documentation loading to relevant sections

* refactor(skills): keep documentation guidance concise

* fix(docs): complete first-use workflows and clarify runtime boundaries

* style(docs): remove manual paragraph wrapping

* docs: guide first-run users to conversational setup help

* docs: fold README installation alternatives and details

* docs: separate README alert marker from its body

* docs: clarify README onboarding and runtime boundaries
2026-10-13 00:44:25 +08:00
chengyongru 66d48fcb7f docs: refresh contributors and preserve historical credits (#5951)
* docs: refresh contributors and preserve historical credits

* fix: rank retained contributors by recovered commit counts

* chore: remove contributor updater tests

* docs: remove contributor history introduction
2026-09-28 14:38:51 +08:00
Xubin Ren d8efb852da build: bundle native TUI in platform wheels 2026-09-16 02:38:34 +08:00
Xubin Ren 3852956a71 docs: include all community contributors 2026-08-23 00:49:26 +08:00
Xubin Ren e21e71c55b docs: make contributor wall responsive 2026-08-23 00:49:26 +08:00
Xubin Ren cfe75dbb8d docs: present maintainers separately 2026-08-23 00:49:26 +08:00
Xubin Ren 7afc6a1b33 docs: refresh team and contributor credits 2026-08-23 00:49:26 +08:00
Xubin Ren 7384fbfffc fix(packaging): keep source clients in lockstep 2026-08-17 20:56:10 +08:00
chengyongru 393d429e0a fix(ci): stabilize and speed up CI (#5145) 2026-07-28 22:55:59 +08:00