Skip to content

Merge feat/3.1.0 into release: per-tenant model sharing and settings snapshot (F005) - #2881

Merged
jieyuhuayang merged 18 commits into
releasefrom
feat/3.1.0
Dec 3, 2026
Merged

jieyuhuayang merged 18 commits into
releasefrom
feat/3.1.0

Conversation

@jieyuhuayang

Copy link
Copy Markdown
Collaborator

Merge feat/3.1.0 into release. The new changes are F005 and the recent fixes on 3.1.

F005 (features/v3.1.0/005-tenant-model-share-snapshot):

  • Root model providers are shared with child tenants that an admin selects. Saving a shorter list shows the impact first and clears the provider's models from the removed tenants' system model settings.
  • A new child tenant gets a copy of Root's system model settings when it is mounted. After that, the two do not sync. The mount dialog selects the providers to share.
  • The sharing coverage view, the inheritance diagnostics and "restore inheritance" are removed.

Upgrade: run scripts/snapshot_child_model_defaults.py --operator-user-id <root super admin> --apply once. See features/v3.1.0/005-tenant-model-share-snapshot/upgrade.md.

🤖 Generated with Claude Code

codesstar and others added 18 commits December 3, 2026 15:00
Importing images or videos from FTP / SFTP / S3 saves the dataset version and
its catalog row together, then returns the version after the session closes.
MySQL has no INSERT ... RETURNING, so the version's server-generated timestamps
were still unloaded and reading them failed with "not bound to a Session"
(HTTP 500 on 116). Refresh the version in the same session, and make the
repository test behave like MySQL so it covers this.
…and child model snapshot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005 T010/T011: model default resolution no longer falls back to Root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005 T012/T013.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005 T020-T027.

- Save a provider's share list as the exact set of active children.
  Inactive receivers keep their share. The sharing intent records
  whether the list is non-empty.
- After each sharing save, remove the provider's models from the
  settings of every active child that lost it. Do not fill the slots.
- Add POST /api/v1/llm/{id}/sharing-preview. It reports the settings
  slots that a save clears and the sources that reference the
  provider, per removed child.
- Mount shares only the providers the admin selects, then copies
  Root's settings to the child. A retry finishes the missing shares
  and copies only the keys the child does not have.
- Remove the sharing-status endpoint, the restore-inheritance
  endpoint, the inheritance impact, and the share reconcile on
  tenant activation.

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

F005 T028/T029. Preview by default; --apply copies only the settings keys
a child has not configured. The report lists the empty slots per tenant.
Add the upgrade guide and the scripts README entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005. Add GET /api/v1/llm?root_only=true (global super admin only). A
share list may also keep a receiver that was disabled after the form
was opened; the provider lock now checks the selection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005 T030-T034.
- Replace the share switch with a child tenant list on the provider page.
- Before a save removes child tenants, show what they lose and ask the
  admin to confirm.
- Let the mount dialog pick Root providers, and warn about empty system
  model settings of the new tenant.
- Remove the sharing coverage, inheritance diagnostics and inheritance
  badges, and change the scope banner copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F005 T040. Update the multi-tenant architecture doc and the customer
guide, and record in F025 which acceptance criteria F005 replaces.

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

fix(finetune): load the saved version before returning a remote import

Refresh the dataset version before closing the session so remote image/video
imports can serialize server-generated timestamps on MySQL. Cover the missing
INSERT RETURNING behavior in the catalog regression test.

Validation: 319 finetune tests passed; the regression was reproduced on
feat/3.1.0 before the fix.
@jieyuhuayang
jieyuhuayang merged commit 66c46fd into release Dec 3, 2026
1 of 3 checks passed
jieyuhuayang added a commit that referenced this pull request Dec 3, 2026
…#2882)

Regenerated `requestScopeRoutes.json` after F005 changed the LLM routes
(tenant-context-quality failed on #2881).

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

3 participants