Commit Graph
231 Commits
Author SHA1 Message Date
huanghuoguoguo 1f227f7aa8 ci: scope PR checks and run the complete matrix daily (#3056)
* 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
2026-11-17 17:31:50 +08:00
huanghuoguoguo 3d67a88025 test(artifact): remove native 30-hour soak mode (#3066) 2026-11-17 16:40:15 +08:00
huanghuoguoguo 2c4c74131c test(artifact): cover mixed media, isolation and native retention (#3064)
* 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
2026-11-17 16:00:14 +08:00
huanghuoguoguo 8cc2143ced test(ci): add P0 acceptance and evaluate mutation protection (#3053)
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.
2026-11-17 10:24:43 +08:00
huanghuoguoguo 832e3eb0da ci(deploy): build production images without publishing 2026-11-16 16:30:42 +08:00
huanghuoguoguo 7b1e231d2a build(core): install the bundled SDK for source deployments 2026-11-16 15:19:30 +08:00
huanghuoguoguo 89e79c8a86 feat(core): migrate legacy content before network defaults 2026-11-16 14:27:47 +08:00
huanghuoguoguo e9881f7c69 fix(ci): resolve actual Box sessions and pin MinIO release binary 2026-11-16 10:33:36 +08:00
huanghuoguoguo 2edfbb9c13 feat(skills): execute and publish through network Box workspaces 2026-11-16 10:33:36 +08:00
huanghuoguoguo c4758c5a6b Merge pull request #3030 from langbot-app/test/job-baselines-and-recovery-20261113
fix(core): validate mixed load and prevent Runner terminal timeouts
2026-11-15 13:01:21 +08:00
huanghuoguoguo 0da7c2de96 test(tools): exercise mixed business load with observed concurrency 2026-11-14 21:24:00 +08:00
huanghuoguoguo 5489e860ff feat(box): cache verified network artifacts with session-aware GC 2026-11-13 17:23:26 +08:00
huanghuoguoguo 53115d17d5 fix(ci): target external consumer environments explicitly 2026-11-13 17:06:16 +08:00
huanghuoguoguo 72e880aae9 ci(test): exercise downstream SDK contracts and daily recovery 2026-11-13 16:59:54 +08:00
0ec248a91b build(docker): slim the image to 308 MB; SeekDB/Milvus/Valkey as optional extras and image variants (LANG-422) (#2996)
* 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>
2026-11-12 13:01:45 +08:00
huanghuoguoguo cfa905a444 fix(n8n): fail runs on streaming workflow errors (#2994) 2026-11-12 10:13:09 +08:00
huanghuoguoguo 57ff889c61 ci: collect coverage in the Python 3.12 unit run (#2995) 2026-11-12 00:03:16 +08:00
0d84c334ba feat(sdk): move the plugin SDK into the monorepo with independent releases (LANG-420) (#2993)
* 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>
2026-11-11 23:12:53 +08:00
huanghuoguoguo 5d5647b317 test(ci): catch shared-provider concurrency regressions (#2992)
* test(ci): guard shared-provider concurrency and fixed-count workloads

* test(e2e): update memory fixture model helper calls
2026-11-11 22:58:00 +08:00
huanghuoguoguo 1eed4241af fix(ci): unblock daily plugin fixtures and cover them before merge (#2989)
* fix(ci): unblock daily plugin fixtures and cover them before merge

* fix(ci): preserve the required smoke status context
2026-11-11 20:34:17 +08:00
058427a49b ci: stop publishing sha-* dev image tags on every master push (LANG-417) (#2990)
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>
2026-11-11 19:55:18 +08:00
RockChinQandClaude Opus 5.5 1d8abc4f5b ci: notify release agent to sync langbot.app changelog on stable releases (#2985)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:32:40 +08:00
RockChinQandmultica-agent 927a719454 fix(persistence): accept SQLAlchemy 2.1 tenant upserts (#2975)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-11 12:31:23 +08:00
5ef31d965d fix(runner): keep host execution leases proportional to in-flight work (#2924)
* 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>
2026-11-07 02:50:38 +08:00
4ddb350a9f feat(plugins): generalize OASlackBridge into HandoffBridge (any platform → any platform) (#2917)
* 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>
2026-11-06 18:00:23 +08:00
RockChinQandmultica-agent 045a7ccd8e LANG-313: register OASlackBridge Slack reply processor (#2887)
* feat(plugins): register OASlackBridge Slack reply processor

Co-authored-by: multica-agent <github@multica.ai>

* fix(plugins): keep pipeline open on bridge permission denial

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-11-05 19:48:19 +08:00
RockChinQandClaude Opus 5.5 55be792a3d fix(ci): restore i18n key parity and tolerate Context7 refresh cooldown (#2883)
- 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>
2026-11-05 17:06:11 +08:00
532b8ce204 feat(agent): add cross-platform interactive cards for QQ, WeCom, Feishu and DingTalk (#2787)
* feat(agent): add cross-platform interactive card tool

* fix(agent): create pipelines with selected runner defaults

* fix(agent): enable reliable cross-platform card interactions

* feat(dingtalk): deliver A2UI cards and restore agent replies

* Fix DingTalk A2UI form submissions and agent replies

* Restore LangBot branding on DingTalk A2UI cards

* Use compatible Markdown link in DingTalk A2UI branding

* Place LangBot branding above DingTalk card content

* Stream DingTalk replies without a source message

* Move DingTalk branding into compact card footer

* fix(wecombot): handle native select card callbacks

* fix(wecombot): stream replies after HITL cards

* fix(dingtalk): show submitted HITL choices in cards

* fix(lark): stream replies after HITL submissions

* fix(plugins): refresh LocalAgent source hashes

* fix(dify): merge HITL resume streaming into in-tree plugin

* feat(interactions): resume runner in place after card submission

* fix(interactions): respect live adapter APIs and preserve deadlines

* fix(ci): lock blocking interaction SDK for dependent checks

* test(runner): keep legacy SDK probe importable

* fix(interactions): align adapter manifests and close timed-out streams

* fix(agent): avoid duplicate replies and enable LocalAgent cards

* chore(plugins): sync LocalAgent catalog version

* refactor(agent): unify blocking interaction callbacks and adapters

* chore(deps): pin blocking interaction SDK revision

* test(agent): remove obsolete async fixture mark

* test(interaction): update legacy admission assertions

* fix(qqofficial): keep card callbacks responsive

* fix(runner): keep blocking card interactions alive

* ci(plugins): expect SDK 0.7.20 in Runner workflows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* ci(plugins): test coding Runners against SDK 0.7.20

Claude Code and Codex now call ctx.request_interaction, first released in 0.7.20.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(discord): deliver guild interaction cards to the originating channel

Pipeline group conversations are keyed by guild id, so send_interaction
targeted the guild and Discord returned Unknown Channel. Resolve the channel
from the message being answered, edit cards in that channel, and report the
card's conversation on callbacks so the Host scope check matches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: RockChinQ <rockchinq@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-03 21:45:49 +08:00
Mikaandmultica-agent f8487471cd ci: build the dev image only on master and manual dispatch
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>
2026-11-02 08:59:58 +00:00
d6bd73aee6 ci(platform): notify maintainers when PRs change platform adapter files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-01 15:55:12 +00:00
huanghuoguoguo 8ee321f8c1 test(n8n): exercise latest DefaultRunner in daily regression (#2830)
* fix(n8n): validate runner timeout values

* fix(n8n): validate runner timeout values

* test(n8n): add latest DefaultRunner regression

* test(n8n): add latest DefaultRunner regression

* test(n8n): add latest DefaultRunner regression

* test(n8n): fix latest Runner response assertion
2026-10-31 22:24:22 +08:00
huanghuoguoguo f750bb96ac test(ci): add daily Dify Cloud Agent regression
Add daily Dify Cloud Agent regression via Runner
2026-10-31 15:35:55 +08:00
huanghuoguoguo 7ff04002a2 refactor(tools): organize regression harness packages (#2828)
Reorganize regression tools into explicit packages and update all repository references.
2026-10-31 12:17:04 +08:00
Chin Rockandmultica-agent a9ad6ac00b ci(plugins): build plugin packages with the current SDK CLI
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>
2026-10-29 13:40:29 +00:00
huanghuoguoguo f5924164d2 ci(daily): run API contracts alongside endurance 2026-10-29 11:00:11 +08:00
huanghuoguoguo 0ce6eee2f4 Merge pull request #2784 from langbot-app/ci/daily-endurance
ci(regression): exercise monorepo plugins in daily functional cycles
2026-10-28 21:45:12 +08:00
huanghuoguoguo 21be11766b ci(regression): build monorepo plugins and exercise local command and page APIs 2026-10-28 20:46:53 +08:00
huanghuoguoguo b21d150c4c fix(localagent): test against the latest stable SDK 2026-10-28 20:31:31 +08:00
huanghuoguoguo f684d7f3f1 ci(regression): run daily functional cycles with selectable scenarios 2026-10-28 20:01:13 +08:00
RockChinQandmultica-agent 3a77306c3c feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 17:32:24 +08:00
RockChinQ 569ab92ea2 Merge pull request #2785 from langbot-app/agent/mika/lang-168-context7-refresh
ci(context7): refresh the Context7 library when the English docs change
2026-10-27 18:48:00 +08:00
926f4162dd ci(context7): refresh the Context7 library when the English docs change
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>
2026-10-27 09:20:41 +00:00
Chin Rockandmultica-agent fe8fa51b50 fix(docs): publish directly from LangBot before archiving docs repository
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 16:54:17 +08:00
9b3bb30445 fix(ci): fall back to the existing repo PAT for docs publication
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>
2026-10-27 08:22:16 +00:00
c3249a8852 fix(ci): target LangBot's master branch in the migrated docs workflows
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>
2026-10-27 08:17:36 +00:00
0582d1b3d4 chore: rename internal docs/ to dev-docs/ and prepare docs site merge
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>
2026-10-27 08:04:20 +00:00
huanghuoguoguo 5ec41f15a1 test(ci): add a 60-second core smoke gate and regression jobs (#2711)
* test(tools): add deterministic lbctl regression job

* test(tools): simulate persistent multi-group conversations

* test(tools): add finite core smoke with terminal run and file oracles

* test(tools): expand smoke coverage across execution stages

* ci: add a timed real core smoke and lightweight tool checks

* fix(ci): keep infrastructure failures visible in smoke verdicts
2026-10-23 16:24:26 +08:00
huanghuoguoguo 7a410bcb31 test(core): strengthen handler contracts and report source quality (#2632) 2026-10-22 17:33:09 +08:00
RockChinQandmultica-agent d13ae56ea5 fix: bot routing setup and busy-session response checks (#2728)
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>
2026-10-20 21:22:53 +08:00
彼方 1baba1b9f9 Merge pull request #2725 from langbot-app/fix/session-summary-persistence
fix(monitoring): persist session summaries to avoid history scans
2026-10-20 11:53:06 +08:00