Skip to content

Feat/3.1.0 - #2822

Merged
dolphin0618 merged 49 commits into
releasefrom
feat/3.1.0
Nov 27, 2026
Merged

dolphin0618 merged 49 commits into
releasefrom
feat/3.1.0

Conversation

@dolphin0618

Copy link
Copy Markdown
Collaborator

What

简要描述做了什么改动。

Why

为什么需要这个改动?

How

实现方式、设计决策(如有)。

Test

  • 本地测试通过
  • 114 测试服务器验证通过

Related

  • Issue/ticket:

jieyuhuayang and others added 30 commits November 16, 2026 14:17
Brings the F132 feature branch (feat/v3.0.0/132-long-term-memory @ f20d7be)
onto the 3.1.0 line, cut from feat/3.1.0-beta1. Conflicts were resolved
against beta1's newer request-scope, tenant-scope and reference-fence code:

- memory router mounted with request_scope=TENANT
- assistant memory_enabled goes through _persist_assistant_changes
- workflow publish checks memory nodes inside validate_version
- assistant and workflow websockets pass memory_register next to
  conversation_persistence / execution_user
- memory_llm joins the system-model reference extractor and target repository
- alembic: v310b2_merge_f132_memory_heads joins f132 with beta1's head
  (same revision id as the earlier 3.1 merge, so stamped databases stay valid)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…em models

Registers memory_llm as an auto-fill slot. It takes the first selectable
workbench model, the same model consolidation already falls back to, so the
admin page shows the model actually in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 78e2982)
Editing or AI-revising a memory keeps its source scene and only switches
origin to manual, but the label treated origin=manual as "added by hand",
so a chat-born item read 手动添加 after any change. The label now follows
the scene alone; items added by hand still carry scene=manual (AC-88).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 1fd2c41)
beta1 routes assistant runs through source admission, workflow saves and
publishes through the reference-binding unit, and checks the flow tenant
in the worker. The F132 tests stubbed the older seams, so they now stub
the new ones; the memory behaviour asserted is unchanged.

- assistant: stub _require_current_source in the agent helper; the update
  test stubs _persist_assistant_changes (edit check, then field writes)
- workflow: run worker entry points inside the flow tenant; publish and
  save stub transition_current_version / the binding unit
- memory_llm: assert it through the model-default reference extractor;
  inheritance through the admitted read
- workstation / linsight: stub the content-safety session write, the task
  invite check, the shared model catalog (from 2e0c7dc), project_id
- client: mock prepareBrowserHeaders in the memory SSE test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Regenerate requestScopeRoutes.json so the F132 /api/v1/memory routes carry
their tenant scope, and let the dispatch test stub accept memory_register.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both lines carried F132 long-term memory through separate merges; conflicts
take beta2's newer adaptation (memory_llm in workbench settings, F025 model
inheritance, reference-fenced test seams). Kept from 3.1.0:
- requestScopeRoutes.json regenerated so /api/v1/memory routes carry scope
  (beta2 lacked 8f108a4).
- workflow publish runs check_memory_nodes_for_publish once (both sides had
  added it at different places).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ne (F025)

Squashes the work from feat/multimodal-finetune-3.1.0-beta1 onto the current
feat/3.1.0-beta1 (4bfe411):

- Contract v2 training: capability catalog from the training service,
  preflight, LoRA / freeze / full methods, artifact checks and clean-process
  inference validation with new samples.
- Immutable dataset versions: local uploads up to 2 GiB with a stored preview,
  and FTP / FTPS / SFTP / S3 imports that record a plan so the training service
  downloads the files from the source itself; source secrets are typed again
  for each job and never stored.
- Delivery to the training service by pull or push, chosen per submission.
- New error codes 10127-10133, migration v310b1_f025_multimodal_finetune,
  nginx routes for large uploads, SDD docs under features/v3.1.0-beta1/025.

Merged with the upstream fine-tuning authorization work: every new task
endpoint uses the model-menu gate (get_finetune_user), jobs are read through
_get_job so the training service must still belong to the tenant, the create
page lists services from /finetune/server/options, and service management
stays admin-only.
Preserve credit billing controls and tool ledgers while bringing forward beta2 model visibility, operator accounting, task workspaces and workflow error handling. Adapt affected regression fixtures to the merged contracts.

Validation: backend 95 passed, 2 skipped; frontend 20 passed, 1 inherited assistant-stop trace timeout reproduced on beta2; conflict-file Ruff, architecture guard, ESLint and shared Python undefined-name checks passed.
Preserve F025 text, image and video fine-tuning while integrating the latest release changes. Keep tenant-safe service inputs with endpoint validation, merge the migration heads without rewriting history, regenerate route scope metadata, and preserve all three locale translations and tool pricing copy.

Validation: backend fine-tuning, migration and route registry regressions 301 passed; frontend fine-tuning regressions 33 passed; locale generation, Python/JSON parsing, shared undefined-name checks and conflict-file architecture/Ruff checks passed.
Restore paid tool execution, preserve and replay pending settlements, and recover mixed usage ledgers. Keep tool pricing tenant-scoped and retain drafts after version conflicts. Merge the F001 and F005 Alembic heads and add targeted regression coverage.
Use a focusable button to open collapsed search and hide the inactive input from keyboard and assistive navigation. Preserve input focus when clearing, respect disabled controls and allow localized clear-button labels.

Import the class-name helper directly to avoid pulling the utilities barrel into the reusable field.
Add localized name search to the knowledge home page. Start a nonempty search across all spaces, retain its keyword when narrowing categories and update tab counts to reflect matches.

Reset scrolling and batched rendering when the keyword changes. Keep the current category when clearing and display a matching empty state. Add English, Japanese and Chinese labels plus keyboard, filtering and later-batch regression coverage.
Resolved src/backend/bisheng/linsight/domain/task_exec.py: kept the
3.1.0 credit-billing scope around the resume, continue and fresh paths
(the resume path keeps _get_llm with no second quota probe) and added
beta2's login_user to the three init_linsight_tools calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… prefix

The workbench system prompt becomes the custom system prompt
(customSystemPrompt). It holds the persona and business requirements
only, leads the system prompt of daily chat and deep research, and
replaces the saved systemPrompt: existing values are not read after the
upgrade. Platform abilities move into code. Per-turn values stay in the
user message, and the image-viewing rules are always present.

upgrade.md section 8 tells operators to copy customised prompts before
the upgrade and re-enter only the persona and business requirements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- customSystemPrompt replaces systemPrompt in the workbench config. The
  legacy key is ignored and drops out on the next save. An empty value
  gives the built-in persona with the deployment's brand name.
- The custom system prompt is the first section of the main graph's
  system prompt in both profiles. The main prompts no longer state an
  identity of their own.
- No {cur_date} substitution and no rewrite of saved citation rules in
  the system prompt. The current time is already in each turn's user
  message. The legacy rewrite helpers are deleted.
- Grounding rules for knowledge and web results go with the citation
  rules in both profiles. The ECharts rule goes into the daily-chat
  prompt.
- The knowledge image-viewing rules are appended on every model call, so
  the first retrieved picture does not change the prompt mid-thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rompt

The daily-chat config field is now 自定义系统提示词 (customSystemPrompt)
with a hint that lists the built-in platform abilities. An empty field
shows the new persona-only default instead of the old template with
citation, date and chart rules. The zh-Hans, en-US and ja texts are
updated, and systemPrompt2 is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep disabled danger text icon buttons transparent with neutral icons while preserving the shared disabled foreground and border rules. Update the button examples and component specification to match.
Add an opt-in scroll frame that measures scroll edges and scrollbar dimensions. Render edge shadows beside pinned columns, update them on scrolling or resizing, and preserve the existing table wrapper for consumers without shadow options.
KinyooZ and others added 19 commits November 26, 2026 15:12
Allow confirmation titles to shrink and wrap inside the flex header so long role and permission-template names fit the dialog.
Move role descriptions and actions into the shared header, group workbench and admin menu controls, and tune the role table widths and pinned columns. Preserve role menus, quota editing and role operations.

Localize clearer deletion confirmations and global-role impact descriptions in all three languages.
Present role and permission configuration in two tabs. Replace the template detail editor with an editable permission matrix supporting create, copy, delete, enablement, same-level granting and unsaved-change prompts.

Move action risk levels into a configuration dialog and retain draft, blocker, expiry and publish confirmation handling. Keep built-in template action changes local because the existing API only accepts their same-level granting policy.

Refresh English, Japanese and Chinese copy and regression coverage for the revised permission workflow.
The model sometimes writes a source handle in lower case ([s1]). The
handle grammar only accepted an upper-case "S", so the backend did not
convert the handle to a citation marker. The answer then showed the
literal "[s1]" and the handle was not reported as unknown.

Seen on 109:13001 with gpt-6.1 (message 1633): the tool result and the
system prompt both showed upper-case handles, and the next turn in the
same chat wrote [S1] correctly.

- Accept "S" or "s" in the handle grammar and in the streaming hold-back
  pattern.
- Add run_handles(), which upper-cases handles before the table lookup.
  Daily chat, task mode and the workspace export all use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preserve release pricing locales, regenerate request scope metadata from merged routes, and join the existing catalog and release migration histories with an empty merge revision.

Validation: 343 backend regression tests, 49 frontend regression tests, 7 request-scope and migration checks, frontend lint/typecheck/locales/i18n/platform build, and per-file architecture guard passed.
Role and permission configuration now uses two focused tabs, an editable
template matrix, and a separate risk-level dialog. Sticky columns,
scroll-edge shadows and shared-header actions keep wide permission
tables usable.

## Changes

- Reorganize role creation/editing, grouped workspace/admin menu
controls, quotas and localized deletion confirmations. Preserve
tenant/shared role scope and existing menu dependencies.
- Create permission templates from scratch or by copying a row; edit
names, actions, enablement and same-level granting in the matrix. Guard
unsaved edits and keep the built-in template API restriction: action
edits remain local, while the existing same-level policy can still be
saved.
- Configure action risk levels in a dialog, retain legacy
unassigned-action handling, and publish through the existing
draft/impact flow with blockers, expiry, failure feedback and focus
restoration.
- Add optional table scroll shadows beside pinned columns; keep the
existing wrapper for consumers that do not opt in. Allow long
confirmation titles to wrap.
- Keep disabled danger text icon buttons transparent with neutral icons,
and update both button documentation pages.
- Update English, Japanese and Chinese copy and the permission workflow
regression tests.

## Validation

- Frontend workspace lint and typecheck passed.
- Shared UI strict typecheck and translation checks passed.
- Focused permission, role-menu and confirmation tests: 100 passed, 1
failed across 12 suites.
- The failure is pre-existing: `f048PermissionApi.test.ts` expects a
one-argument request call, but the unchanged API wrapper passes an
additional optional `undefined` argument. The same assertion failure was
reproduced in a clean source copy of base commit `ae9583cb8d`, without
these UI changes.
- Git whitespace checks passed. All 22 local files, including the button
documentation and new table scroll frame, are included.
@dolphin0618
dolphin0618 merged commit 87328bc into release Nov 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants