Commit Graph
732 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 a7d63a15c9 Merge master into phase-four Skill Artifact resources 2026-11-17 16:02:57 +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 2a3c76ccbf fix(artifact): reuse bounded package cache and reap soak descendants 2026-11-16 23:50:59 -08:00
huanghuoguoguo 9cd50c9c19 fix(artifact): preserve continuation budgets and isolate process acceptance 2026-11-17 07:48:33 +00:00
huanghuoguoguo 1df989eb20 feat(artifact): reference fixed skill package resources without copying 2026-11-17 07:48:33 +00:00
huanghuoguoguo 01f6cde569 test(artifact): exercise authorized output lifecycle under sustained load 2026-11-17 12:32:17 +08:00
huanghuoguoguo ad3b559ff5 Merge remote-tracking branch 'origin/master' into feat/3051-artifact-run-outputs 2026-11-17 12:29:31 +08:00
huanghuoguoguo b919333426 test(artifact): account for publication operations in catalog contracts 2026-11-17 12:29:30 +08:00
huanghuoguoguo 7a5c9985f9 feat(artifact): authorize publication and release of run outputs 2026-11-17 12:26:46 +08:00
huanghuoguoguo 3afc31d385 fix(artifact): expire exports closed during source cleanup 2026-11-17 11:30:02 +08:00
huanghuoguoguo 278667d690 feat(artifact): persist run output files behind authorized handles 2026-11-17 11:10:54 +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 d83294ec08 test(artifact): cover released SDK and refresh contract fixtures 2026-11-16 21:39:23 +08:00
huanghuoguoguo 33dd118872 feat(artifact): add run-scoped on-demand attachment reads 2026-11-16 21:24:36 +08:00
b05872e8e1 refactor(boot): stop pip-installing dependencies at startup (LANG-511) (#3049)
Startup used pip.main to install missing packages into whatever environment
Core was running in, then exited asking for a restart. Every supported install
(Docker image, uv venv, uvx, lbctl-managed native) ships a locked dependency
set, so this only mutated ephemeral or foreign environments.

- check_deps stays as a diagnostic; missing packages now print reinstall
  guidance and exit 1 instead of being installed.
- Remove the unused precheck_plugin_deps (legacy plugins/ requirements) and
  utils/pkgmgr.py, which only served it and hardcoded the Tsinghua index.
- Remove the unmaintained docker/deploy-k8s-test.sh helper.

The pip runtime dependency stays: the plugin runtime installs plugin
requirements with `python -m pip`.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 20:25:27 +08:00
huanghuoguoguo b01af050ff feat(artifact): add authorized asset service and lifecycle APIs 2026-11-16 19:41:11 +08:00
huanghuoguoguo fef053f7f5 Merge pull request #3048 from langbot-app/feat/core-network-default
feat(core): migrate legacy content before network defaults
2026-11-16 17:49:02 +08:00
huanghuoguoguo e34f3d5308 fix(deploy): preserve image environment during content migration 2026-11-16 16:02:59 +08:00
RockChinQandmultica-agent de0d8961fd feat(telemetry): report workspace alert usage counters (#3050)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 15:57:33 +08:00
huanghuoguoguo 7b1e231d2a build(core): install the bundled SDK for source deployments 2026-11-16 15:19:30 +08:00
RockChinQandmultica-agent 4e7127d234 LANG-503: add application operations API and API-key plugin confirmation (#3046)
* feat(api): expose application operations and API key plugin confirmation

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

* test(api): include operation transport capability flags

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

* fix: encode operation binary outputs as standard base64

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

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 15:15:02 +08:00
huanghuoguoguo 89e79c8a86 feat(core): migrate legacy content before network defaults 2026-11-16 14:27:47 +08:00
01185b8fc1 feat(web): ask for a GitHub Star after 100 handled executions (#3047)
Show a one-time milestone card once the current Workspace has handled
100 real executions (agent runs + pipeline queries). The answer is kept
per browser; 'Maybe later' snoozes for 7 days, Star/close are final.

The executions endpoint gains summary=false so the count-only probe
skips the dashboard aggregates.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 14:02:05 +08:00
21a743c112 fix(wecomcs): resolve open_kfid for bare external_userid send targets (#3035)
The pipeline launcher id (and anything persisted from it, such as the
HumanTakeover plugin's session target) is the customer's external_userid
only, while WeComCS send_message required "external_userid|open_kfid".
Manual replies therefore failed with
"ValueError: WeComCS target_id must be formatted as ...".

send_message now accepts a bare external_userid: it uses the open_kfid the
customer last wrote to, and otherwise falls back to the app's only customer
service account (kf/account/list). Ambiguous or malformed targets still
raise a clear error. Launcher ids are unchanged, so existing sessions,
access-control lists and routing rules keep working.

Fixes #3021

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 13:45:53 +08:00
huanghuoguoguo 018377868f test(box): scope network status cases to compatible SDKs 2026-11-16 11:38:18 +08:00
huanghuoguoguo b83ca2624c fix(box): preserve legacy backend readiness checks 2026-11-16 10:52:47 +08:00
huanghuoguoguo d967601129 fix(box): preserve control responsiveness during large file transfers 2026-11-16 10:33:38 +08:00
huanghuoguoguo f2e3f37f56 perf(skills): reduce verified network transfer and read latency 2026-11-16 10:33:38 +08:00
huanghuoguoguo ff58ad2a34 perf(box): reuse fresh Docker status without probing unused backends 2026-11-16 10:33:38 +08:00
huanghuoguoguo 474b0af169 test(skills): scope draft replacement checks to compatible SDK builds 2026-11-16 10:33:38 +08:00
huanghuoguoguo b6ba77f9c2 perf(skills): reuse verified resource bytes and replace drafts without old archives 2026-11-16 10:33:38 +08:00
huanghuoguoguo 332aaca379 perf(skills): list immutable publication manifests without blob reads 2026-11-16 10:33:37 +08:00
huanghuoguoguo 28191185b6 perf(box): prepare pinned artifacts only on preexecution cache misses 2026-11-16 10:33:37 +08:00
huanghuoguoguo 11ddbefeed perf(box): reuse verified execution leases and metadata transactions 2026-11-16 10:33:37 +08:00
huanghuoguoguo eb24e54127 fix(box): preserve guest and workspace path compatibility 2026-11-16 10:33:37 +08:00
huanghuoguoguo 8552e1b02a perf(box): archive drafts in Runtime and reclaim owned workspaces 2026-11-16 10:33:37 +08:00
huanghuoguoguo 5e44084da1 perf(skills): avoid redundant archive restoration and workspace preparation 2026-11-16 10:33:37 +08:00
huanghuoguoguo 0241812b95 test(box): require network workspace support in artifact fixtures 2026-11-16 10:33:36 +08:00
huanghuoguoguo d80f78afdb test(skills): retain released SDK collection compatibility 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
8c7ed88a0f fix(alerts): keep alerts opt-in on LangBot Cloud too (LANG-429) (#3043)
Reverts the Cloud default-on from #3012: in two days it mailed about 2.3k
alerts, mostly bot_offline bursts caused by platform-side capacity errors.
Workspaces without saved settings now have alerts off everywhere.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 09:29:50 +08:00
RockChinQandmultica-agent ec7355f2bc fix(telemetry): publish resolved HTTP request context (#3042)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 04:17:38 +08:00
RockChinQandmultica-agent 156820e381 feat(telemetry): add heartbeat usage counters (#3041)
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 02:55:06 +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
32d70dd756 perf(cloud): cut event-loop hotspots found by profiling Cloud Core (#3036)
Cloud Core's main thread sat at 100% of one core while the 8-core node
was ~77% idle. A py-spy profile of production showed four avoidable
hotspots, each of which scaled with the number of Workspaces:

- Model list serializers scanned the whole runtime LLM cache (~125k
  models across ~3.4k Workspaces) once per model. Resolve the
  Workspace's runtime models once via the per-scope key index.
- Cloud model catalog sync reconciled every Workspace on every directory
  change. Directory-triggered passes now skip Workspaces whose desired
  state (catalog + owner key) is unchanged; a full reconcile still runs
  every sync interval to repair drift.
- Inline media TTL cleanup selected agent_run_event candidates globally,
  so every Workspace walked 100 other Workspaces' old events per hour,
  one transaction each. Candidates now come from the Workspace's own
  expired runs and only rows that can contain an inline image are
  visited.
- An unset storage.media_cache key logged two warnings per Workspace on
  every maintenance pass.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-15 00:50:20 +08:00
e551b0d15b fix(utils): refuse non-global addresses in the outbound URL guard (#3029)
_reject_reason missed 100.64.0.0/10 (shared address space), which holds
the Alibaba Cloud metadata endpoint 100.100.100.200. ipaddress does not
mark it private or reserved, only not global.

Fixes #3028

Co-authored-by: goranai <goranai@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:25:21 +08:00
482c47d5da fix(auth): stop logging Cloud users out on transient server failures; plugin detail upload button (#3033)
* fix(auth): stop logging Cloud users out on transient server failures

On Cloud, valid sessions were bounced to /login: authentication that
failed for infrastructure reasons (BlockingWorkCapacityError from the
2-thread DNS pool, socket.gaierror, database blips) answered 401, and the
WebUI tears down the session on any 401. Production logs showed 47
capacity and 2 DNS failures answered as 401 in one hour.

- Transient authentication failures now answer 503
  'authentication_unavailable' with Retry-After; credential failures keep 401.
- The resolver pool scales with the main pool (64 workers -> 16 DNS
  workers / 256 queued, minimum 4 / 64) instead of a fixed 2 / 32.
- WebUI retries a request once on that 503, and on a 401 confirms with
  /user/check-token before clearing the session.

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

* feat(plugins): upload button on the plugin detail page

Debug, local and GitHub installs get the same 'Upload to marketplace'
action on their detail page as on the installed-plugin card.

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-14 23:49:09 +08:00
huanghuoguoguo 7cfdfc3240 test(core): synchronize cancellation with the Host ledger read 2026-11-14 23:03:43 +08:00