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
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
ac0b1eaac5
feat: workspace sandbox selection, lightweight validation and limits ( #2882 )
...
* feat: configure workspace sandbox backends and E2B templates
* fix: accept user supplied E2B templates without listing API
* feat: separate sandbox test runs and add workspace resource limits
* feat(box): pin workspace backends and validate E2B templates
* fix(box): validate user templates without modifying E2B services
* feat(box): lightweight E2B validation and workspace limit enforcement
* test(box): retain identity cleanup guard for workspace backends
* style(box): satisfy checks on migrated sandbox tests
* fix(box): preserve SDK startup and pin MCP sandbox configuration
* fix(box): retain legacy bound-session execution contract
* fix(mcp): reject untrusted sandbox selection overrides
* test(web): match Workspace settings heading exactly
* test(runner): wait for the managed runtime handshake
* test(runner): align boot fixture with runtime readiness
* fix(box): keep default configuration usable with the published SDK
* fix(box): preserve E2B proxy routing on sandbox reconnect
2026-11-12 21:13:45 +08:00
RockChinQ
14b5bdb8c2
feat(cloud): enforce plan policies and refine workspace interface
2026-10-15 05:31:04 +00:00
Hyu
e29fd27f02
feat(i18n): localize backend messages by workspace language
2026-10-15 05:31:04 +00:00
Hyu
33ea03701a
test: update adapter and monitoring regression fixtures
2026-10-11 01:10:40 +08:00
RockChinQ
273b1ea3cf
Merge master into dev/4.11.x and preserve plugin runner architecture
...
Reconcile migration branches without rewriting published revisions; retain additive Codex, monitoring, provider and platform fixes. Keep dynamic runner schemas and Host ownership, restore compatibility regressions, and preserve safe model-test error handling.
2026-09-16 08:13:07 +00:00
RockChinQ
d1c79a35e8
fix(4.11): align omni adapters and EventProcessor marketplace support
2026-09-10 15:06:57 +08:00
Hyu and dadachann
0f216a0d4d
feat(provider): support Codex subscriptions with ChatGPT sign-in ( #2513 )
...
* feat(provider): support Codex subscriptions with ChatGPT sign-in
* style: format Codex live integration test
* fix(provider): preserve Codex identity in temporary model tests
* fix(web): portal provider selector without dialog overflow
* fix(web): allow native scrolling in provider dropdown
* fix(provider): surface safe Codex quota and upstream errors
* fix(web): provide reliable Codex copy feedback in dialogs
* feat(provider): confirm cascade deletion from edit dialog
* fix(persistence): discard connections after failed commit
* fix(web): polish provider loading and confirmation motion
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-09-06 23:31:02 +08:00
huanghuoguoguo
679b8346cb
Merge remote-tracking branch 'origin/master' into dev/4.11.x
...
# Conflicts:
# pyproject.toml
# src/langbot/pkg/pipeline/controller.py
# uv.lock
# web/src/app/home/bots/components/bot-form/BotForm.tsx
# web/src/app/home/components/home-sidebar/HomeSidebar.tsx
# web/src/app/home/components/home-sidebar/SidebarDataContext.tsx
# web/src/app/home/plugin-pages/page.tsx
# web/src/app/infra/entities/api/index.ts
2026-08-04 12:16:27 +08:00
Hyu and dadachann
1e6e4c0ca7
fix(cloud): show owner model balance and enforce single owner ( #2384 ) ( #2385 )
...
* fix(cloud): show owner model balance and enforce single owner
* fix(migrations): create owner index idempotently
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-08-03 02:14:43 +08:00
huanghuoguoguo
55f42a4ebc
chore(merge): sync master into dev/4.11.x
2026-07-31 19:29:38 +08:00
RockChinQ and dadachann
e1ac5e0fc8
feat(tenancy): add Workspace multi-tenant foundation ( #2353 )
...
* Document multi-tenant workspace architecture
* Add OSS and commercial workspace boundaries
* docs: redesign multi-tenant workspace architecture
* feat(tenancy): implement workspace isolation
* docs(tenancy): record verification evidence
* docs(tenancy): revise single-instance SaaS topology
* docs(tenancy): refine architecture options
* docs: finalize cloud v2 multi-tenant decisions
* feat(tenancy): establish cloud isolation foundations
* feat(tenancy): harden shared cloud runtime boundaries
* docs(tenancy): record final isolation verification
* fix(tenancy): close isolation and permission gaps
* docs(tenancy): record final isolation verification
* feat(tenancy): connect cloud workspace control plane
* fix(build): install git for pinned SDK
* docs(cloud): update control plane verification
* chore: update multi-tenant SDK pin
* fix(cloud): skip legacy model sync during startup
* test(cloud): preserve minimal model manager fixtures
* fix(cloud): preserve authenticated account context
* fix(cloud): reuse authenticated account for user info
* feat(cloud): complete Workspace settings navigation
* test(web): cover Workspace dropdown menu
* feat(web): place workspace controls in sidebar
* refactor(web): streamline workspace controls
* style(web): format workspace layout test
* fix(cloud): surface runtime and workspace plan status
* fix(plugin): keep runtime identity stable across restarts
* fix(ui): widen and center workspace switcher
* fix(ui): hide roles from workspace switcher
* fix(ui): align workspace switcher with sidebar entries
* feat(workspace): add in-product collaboration and direct Cloud launch
* style: format collaboration changes
* fix(workspace): bind collaboration APIs to tenant UoW
* fix(cloud): preserve Core-owned collaboration state
* test(cloud): require Space identity for invite registration
* feat(cloud): complete secure invitation experience
* style(web): format invitation flows
* fix(cloud): recover box runtime without unscoped skill reload
* feat(oss): enforce invitation account and owner billing flows
* style: format OSS account service
* test(oss): cover invitation logout handoff
* fix(oss): resolve workspace owner in scoped session
* feat(cloud): harden multi-tenant runtime resources
* fix(cloud): bound runtime restart storms
* fix(cloud): eliminate periodic runtime CPU spikes
* fix(cloud): enforce instance capacity ceilings
* fix(cloud): scope public login capability discovery
* fix(cloud): bound tenant maintenance and monitoring work
* fix(runtime): bound tenant resource amplification
* fix(deps): pin green multi-tenant plugin SDK
* fix(cloud): handle unavailable skill capability
* fix(security): require authentication for image file endpoint (H-2)
- Changed /api/v1/files/image from AuthType.NONE to USER_TOKEN_OR_API_KEY
- Added Permission.RESOURCE_VIEW requirement
- Prevents unauthenticated cross-tenant file access via leaked keys
- Fixes HIGH severity finding from multi-tenant security review
docs: add comprehensive database migration guide
- Complete migration steps for OSS → multi-tenant
- Backup, execution, verification procedures
- Rollback scenarios and recovery plans
- Performance tuning recommendations
* test: add comprehensive cross-tenant isolation tests
Added 7 critical test scenarios for multi-tenant boundaries:
- Cross-tenant bot access prevention
- Viewer role read-only enforcement
- Removed member immediate access revocation
- Model provider credential isolation
- WebSocket message isolation
- Invitation token workspace scoping
- Multi-workspace context validation
These tests address P0-2 coverage gaps for:
- workspaces.py (membership & invitation flows)
- user.py (authentication & authorization)
- websocket_chat.py (real-time isolation)
- plugins.py (resource access control)
docs: finalize database migration guide
* fix(security): resolve M-1, M-2, M-3 security findings
M-1: WebSocket authorization TOCTOU race (FIXED)
- Changed _revalidate_websocket_authorization to return RequestContext
- Ensures validated context is used immediately without race window
- Prevents removed members from sending messages during revalidation gap
M-2: Model Manager cache workspace isolation (VERIFIED)
- Confirmed _CacheKey already uses 4-tuple: (instance, workspace, generation, resource)
- Cache is properly scoped per workspace, no cross-tenant leakage possible
- No code change needed, documented as working correctly
M-3: Invitation lock workspace scoping (FIXED)
- Changed lock key from token_digest to workspace_uuid:token_digest
- Prevents DoS where attacker locks token in Workspace A to block Workspace B
- Locks now isolated per workspace
All MEDIUM severity findings from security review now resolved.
* fix(cloud): unblock tenant CI and enforce knowledge quotas
* fix(tenancy): scope rerank model sync
---------
Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com >
2026-07-30 21:43:35 +08:00
Junyan Qin and Claude Opus 4.8
7d801cfb68
feat(eba): consolidate event bindings, fix command.tsx pointer-events
...
- Replace legacy pipeline binding card + RoutingRulesEditor with unified
EventBindingsEditor; remove use_pipeline_uuid/pipeline_routing_rules
from bot form schema and API update handler
- Add _augment_event_data() to botmgr for filter virtual fields
(message_text, message_element_types, chat_type)
- Add alembic migration 0009: migrate use_pipeline_uuid and
pipeline_routing_rules into event_bindings on first run
- Fix command.tsx: data-[disabled] -> data-[disabled=true] so cmdk 1.x
items (data-disabled=false) are not pointer-events:none
- EventBindingsEditor: onSelect on CommandItems, filter conditions panel,
disabled bindings section, dnd reorder
- i18n: add filter/condition keys for zh-Hans and en-US
- Update tests to match new bot service behavior
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-19 22:41:30 +08:00
huanghuoguoguo
ec61459619
fix(api): avoid mutating bot update payload ( #2194 )
2026-05-16 11:31:59 +08:00