* ci: streamline pull request checks and run the full matrix daily
Refs #3055
* ci: run runtime contracts only on affected Core checks
* test(ci): distinguish SDK checks from SDK publication
* fix(ci): retain legacy regressions and scope production image builds
* docs(ci): clarify focused regressions and production image selection
* test(artifact): cover mixed media, isolation and native retention
Exercise real Core, Runtime and Runner with mixed attachments and retention. Keep deterministic checks separate from native 30-hour soak and credentialed provider acceptance.
* test(artifact): isolate compaction evidence in shared SQLite suite
* test(artifact): exercise native media compaction and scheduled GC under load
* test(artifact): allow native GC scheduler grace at soak finish
Run affected persistence/network, permission lifecycle and production-image upgrade/replacement acceptance before the existing required Core smoke status. Share persistence acceptance with Daily Endurance and fail the required status for missing, unsuccessful or cancelled P0 results.
Add authorization and content boundary tests and record a bounded mutation evaluation: 102 selected variants, with 87 killed and 15 explained survivors, stable across two executions. Product implementation and application dependencies are unchanged.
* build(docker): cut the image from 2.25 GB to 1.28 GB (LANG-422)
- Build the Python venv in a separate stage with --no-dev and no uv cache,
so gcc/libc6-dev, moto/pytest/coverage and the uv cache stay out of the
final image.
- Move mypy, ruff and pre-commit from runtime dependencies to the dev group.
- Replace Debian's ffmpeg (~200 packages, ~400 MB incl. Mesa/LLVM) with an
audio-only ffmpeg 7.1.5 cross-compiled from the signed release tarball
(opus, mp3lame, opencore-amr). This also adds the libopencore_amrnb
encoder that Debian's build lacks, so AMR output now works.
- Copy node/npm from the official node:22 image instead of NodeSource, which
pulled in python3.13 and 65 MB of headers.
- Exclude docs, tests, dev-docs, tools, skills and examples from the context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* build(docker): publish SeekDB as a separate -seekdb image variant (LANG-422)
- The default image no longer installs the optional seekdb extra, nor
ChromaDB's ONNX MiniLM / Kubernetes client stack (onnxruntime, sympy,
kubernetes, ...). LangBot always passes its own embeddings to Chroma
and only uses the embedded PersistentClient, so they are never used.
- New `langbot-seekdb` build target: the default image plus one layer
with the seekdb extra. Releases push rockchin/langbot:<tag>-seekdb,
latest-seekdb and beta-seekdb next to the plain tags.
- Docs (zh/en/ja): Docker, Kubernetes, settings and embedding model pages
point SeekDB users to the -seekdb tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* build(deps): make Milvus and Valkey Search optional extras like SeekDB (LANG-422)
- pyproject: pymilvus moves to a `milvus` extra and valkey-glide to a
`valkey` extra; drop the unused direct pandas dependency (only pymilvus
needs it). Core imports pymilvus lazily and raises an install hint,
matching the SeekDB and Valkey Search backends.
- Dockerfile: replace the langbot-seekdb target with a generic
`langbot-extra` target (`--build-arg LANGBOT_EXTRA=seekdb|milvus|valkey`),
one layer on top of the default image.
- Release workflow publishes <tag>, <tag>-seekdb, <tag>-milvus and
<tag>-valkey (plus latest-*/beta-*); the tag test now checks every build.
- fnOS packages keep installing all three extras, as before.
- Docs (zh/en/ja): Docker, Kubernetes, settings, source and package
install pages describe the extras and image tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* chore(sdk): import langbot-plugin-sdk v0.7.24 snapshot into sdk/ (LANG-420)
Snapshot of langbot-app/langbot-plugin-sdk at 76443bb8 (tag v0.7.24),
without history. The repository's .github/ workflows are not imported;
they are replaced by sdk-*.yml workflows in the next commit. The root
.gitignore keeps the template .vscode/launch.json.example tracked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(sdk): move the plugin SDK into the monorepo with independent releases (LANG-420)
- CI: sdk-tests.yml / sdk-box-docker.yml run the SDK suite from sdk/ in
its own environment (Python 3.10-3.12); run-tests.yml gains a
"Core with in-tree SDK" job that overlays sdk/ on Core's venv.
- Releases: sdk-publish.yml publishes langbot-plugin from sdk/vX.Y.Z tag
pushes and never creates a GitHub Release. Core release workflows now
only accept v* tags, and scripts/check_sdk_release_pin.py blocks a Core
PyPI/Docker release whose langbot-plugin pin differs from the released,
unchanged sdk/.
- Packaging: Core still installs the PyPI pin. Core wheel/sdist, git
export, Docker context, release ZIP and fnOS package exclude sdk/.
- Generator/tests: generate_plugin_workspace_api.py writes sdk/ directly;
the SDK's generator drift tests now run instead of skipping.
- Docs: AGENTS/ARCHITECTURE, sdk/ guides (+ RELEASING.md, SOURCE.json),
agent skills and lbs probes, public docs (zh/en/ja) and dev-docs
point at sdk/ instead of the sibling langbot-plugin-sdk checkout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
Restricting Build Dev Image to master (f8487471c) still left every master
push publishing a permanent rockchin/langbot:sha-<sha> tag, about ten a day.
A push now only moves the master tag. The immutable sha-<sha> tag used for
Cloud promotion is published only by workflow_dispatch (immutable_tag input,
default true), and each run writes the pushed index digest to the job summary.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(runner): keep host execution leases proportional to in-flight work
Lease maintenance walked every active Workspace binding on each pass. On
cloud (~3k Workspaces) one pass took ~150s, longer than the 120s lease,
so the host reaped its own live runs; finalize_run then failed with
"Cannot transition terminal run ... from failed to completed" and users
got "Request failed" after the reply was generated (LANG-326).
- Add the global execution_lease_scopes(owner, workspace) registry,
written before any leased row. Each tick renews this host's scopes in
one statement, renews rows only in its own active Workspaces and reaps a
bounded batch of expired scopes (dead hosts). Nothing scans all
Workspaces, so cost no longer grows with tenant count.
- Migration 0046 creates the table and backfills already-leased rows.
- finalize_run lets the owning process replace its own interrupted state.
- Warn when a tick exceeds a third of the lease.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(runner): guard lease scope backfill on partial schemas and update table fixtures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* test(runner): include lease scopes in runner timestamp Postgres fixtures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(plugins): generalize OASlackBridge into HandoffBridge
Rename langbot-team/OASlackBridge to langbot-team/HandoffBridge (人工客服
转接 / Human Handoff Bridge) 0.1.0 and make it platform-neutral:
- customer side: any bot (source_bot); staff side: any bot whose
send_message returns message_id and whose inbound replies carry a Quote
(Slack, Lark, QQ OneBot v11), posting to a group/channel or a private chat
- staff can reply to (quote) the request or any forwarded message; every
forwarded message is mapped and all mappings are removed on close
- Slack escaping/decoding only when the staff bot is Slack (bot.read)
- the WeChat 48-hour rule becomes reply_window_hours (0 = no limit)
- components renamed to handoff (EventListener) and staff_reply (Runner)
READMEs rewritten for users, including how to find group IDs on each
platform and how to migrate from OASlackBridge. Misc plugin CI now uses
any plugin's own requirements-dev.txt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(HandoffBridge): platform-neutral handoff between any customer and staff bots
Content changes for the rename in the previous commit: generic config
(source_bot, staff_bot, staff_target_type/id, reply_window_hours),
per-message reply references, Slack formatting only for Slack staff bots,
user-facing READMEs, catalog/index/CI updates and tests for non-Slack and
private-chat staff targets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
- Add the workspace operation and assistant workspace-tool strings missing
from zh-Hant, ja-JP, es-ES, ru-RU, th-TH and vi-VN, so the i18n key check
passes again.
- Treat Context7's "too-early" refresh reply as a skipped refresh rather
than a failure; the next docs push after the cooldown refreshes again.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every branch push published a permanent rockchin/langbot:sha-<sha> tag plus a
branch-name tag, leaving 678 live Docker Hub tags across 265 branches. Restrict
push triggers to master; other branches stay buildable via workflow_dispatch.
Co-authored-by: multica-agent <github@multica.ai>
The packaging job pinned langbot-plugin 0.7.18 while Core runs 0.7.19, so it
would validate archives with a CLI that no longer matches the SDK contracts the
plugins are shipped against. Follow the Core pin.
Co-authored-by: multica-agent <github@multica.ai>
Context7 only re-indexes on its own popularity schedule, which is why the
existing /langbot-app/langbot-docs entry had already drifted before this
migration. Add the refresh call documented in Context7's GitHub Actions
integration so a docs change reaches the index on the same push.
The job is inert until a CONTEXT7_API_KEY secret exists, so it cannot fail
the build while the library registration is pending.
Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
The migrated workflows required LANGBOT_WIKI_PUSH_TOKEN, which only exists in
the langbot-docs repository. The existing RELEASE_UPLOAD_GITHUB_TOKEN was
verified to authenticate as the owner with repo scope plus push/admin on
LangBot, langbot-docs, langbot-landing-page and the production fork, and it can
push the Wiki, so publication now falls back to it when the dedicated secret is
absent. Also retarget the cutover notes at the master branch.
Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
LangBot's default branch is master, so the landing-submodule, wiki and blog
sync workflows would never have triggered and would have pushed to a
non-existent main. Also restore the wiki clone URL that was truncated in the
mirror copy of sync-github-wiki.yml.
Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Move the 27 internal design docs (87 tracked files) from docs/ to dev-docs/
to make room for the public documentation site, adjust Docker/fnOS ignores,
refresh the README/AGENTS/ARCHITECTURE references, and land the docs
workflows ahead of the subtree import so they cannot diverge from mirror.
Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Apply group response rules before busy-session steering. Initialize usable private-message and group-mention routes for new bots, including Wizard-created pipelines, and preserve member-configured rules across saves and retries.
Fix empty pipeline configuration, refresh the processor sidebar after automatic creation, and show creation feedback. Align routing regressions and use Node 24 for the browser CI job.
Correct the task's erroneous agent attribution while preserving every code tree and the original human contribution.
Co-authored-by: multica-agent <github@multica.ai>