Skip to content

[Feat]: Introduce new designed AgentScope Service implementation. - #3080

Merged
oss-maintainer merged 43 commits into
agentscope-ai:mainfrom
chickenlj:agentscope-service-v5
Sep 9, 2026
Merged

oss-maintainer merged 43 commits into
agentscope-ai:mainfrom
chickenlj:agentscope-service-v5

Conversation

@chickenlj

Copy link
Copy Markdown
Collaborator

No description provided.

# Conflicts:
#	agentscope-service/aistio/internal/store/memory/collaboration.go
Improve Harness task outcomes, subagent ownership, acceptance handling, and result retention. Update conversation lifecycle, runtime capacity and provider support, workspace and marketplace flows, frontend coverage, migrations, and release documentation.
Copilot AI lite review requested due to automatic review settings September 9, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A few introduced files/configs are invalid or inconsistent (notably the placeholder pnpm workspace config and root package-lock without a root package.json), and there are header/style issues that should be corrected before merge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR introduces a redesigned “AgentScope Service” implementation across the stack (backend services, Aistio control-plane/runtime, frontend console, Helm/Docker deployment, and v2 docs), aligning defaults around the 18080 gateway and expanding Service-focused documentation/navigation.

Changes:

  • Adds/updates v2 Service documentation (EN/ZH), docs site navigation, and link checks in the docs workflow.
  • Refines service behavior/security (internal /api/internal/** protection, environment type handling, schema init cleanup, session event recovery settings) and introduces new Service deployment artifacts (Helm chart, Dockerfile, Postgres init).
  • Expands console UX + test scaffolding (new pages/utilities, Playwright configs), plus Aistio store/runtime evolutions with many Postgres migrations and related controller/adapter updates.
File summaries
File Description
package-lock.json Adds a root npm lockfile (see review note: repo root has no package.json).
docs/v2/zh/service/sessions.md New Service docs (sessions/tasks/approvals) in ZH.
docs/v2/zh/service/automation.md New Service docs (automation/channels) in ZH.
docs/v2/zh/service/access.md New Service docs (accounts/namespaces/access) in ZH.
docs/v2/zh/docs/index.md Adds AgentScope Service entry to ZH v2 index.
docs/v2/zh/blogs/agentscope-service-release.md Links to Service docs from release blog.
docs/v2/zh/blogs/agentscope-service-release-tech.md Fixes Service doc links in tech blog.
docs/v2/en/service/workspaces.md New Service docs (workspaces/environments) in EN.
docs/v2/en/service/teams.md New Service docs (issues/teams) in EN.
docs/v2/en/service/sessions.md New Service docs (sessions/tasks/approvals) in EN.
docs/v2/en/service/concepts.md New Service docs (core concepts) in EN.
docs/v2/en/service/automation.md New Service docs (automation/channels) in EN.
docs/v2/en/service/access.md New Service docs (accounts/namespaces/access) in EN.
docs/v2/en/docs/index.md Adds AgentScope Service entry to EN v2 index.
docs/v2/en/blogs/agentscope-service-release.md Links to Service docs from release blog.
docs/_config.yml Adds “service” section to docs nav config.
agentscope-service/service-scheduler/.../HandsWorkerMain.java Updates default base URL to 18080.
agentscope-service/service-scheduler/.../SchedulerSecurityConfig.java Permits channel callbacks and protects /api/internal/**.
agentscope-service/service-dataplane/.../EnvironmentSpecFactoryE2bTest.java Adds tests for env type handling (no local fallback).
agentscope-service/service-dataplane/.../application.yml Adds session-event recovery/notification tuning knobs.
agentscope-service/service-dataplane/.../MemoryDocumentStore.java Adds a managed memory document store interface.
agentscope-service/service-dataplane/.../ManagedTurnContext.java Adds managed turn context record.
agentscope-service/service-dataplane/.../ManagedSessionIdentity.java Adds managed session identity record.
agentscope-service/service-dataplane/.../EnvironmentSpecFactory.java Removes implicit local fallback; throws on unsupported env types.
agentscope-service/service-dataplane/.../DpSchemaInitializer.java Drops legacy HITL constraint/index defensively.
agentscope-service/service-dataplane/.../DataSecurityConfig.java Restricts /api/internal/** to internal token authority.
agentscope-service/service-dataplane/.../SessionResolveResult.java Adds executionContext to resolve result.
agentscope-service/service-dataplane/pom.xml Updates dependency comment / intent.
agentscope-service/service-common/.../JpaUserStore.java Adds seedUsers flag to disable default seeding.
agentscope-service/service-common/.../JpaPersistenceConfig.java Wires builder.seed-users into JpaUserStore.
agentscope-service/service-common/pom.xml Adds PostgreSQL driver dependency.
agentscope-service/release/requirements.txt Adds Python release tooling requirements.
agentscope-service/helm/agentscope-service/... Introduces Service Helm chart metadata/helpers/notes.
agentscope-service/frontend/vite.config.ts Updates dev proxy target to 18080.
agentscope-service/frontend/src/pages/LoginPage.tsx Redirects post-login to /control/overview.
agentscope-service/frontend/src/pages/AgentSettingsPage.tsx Adds section prop and forces form remount on section changes.
agentscope-service/frontend/src/lib/auth.ts Caches account identity from /api/auth/me; refactors role checks (see review notes).
agentscope-service/frontend/src/features/** Adds/adjusts navigation/redirect utilities + unit tests.
agentscope-service/frontend/src/components/** Adds small UX/util helpers and tweaks empty state styling.
agentscope-service/frontend/src/api/** Adds namespace scoping headers and a few response shape updates.
agentscope-service/frontend/playwright*.config.ts Adds Playwright config variants for e2e runs.
agentscope-service/docs/** Updates Service guides (ports, SSE semantics, environments) and adds planning/docs pages.
agentscope-service/docker/Dockerfile.service Adds a multi-stage Docker build for Service modules.
agentscope-service/deploy/postgres-init.sql Adds initial schema creation for cp/rt/dp.
agentscope-service/aistio/** Removes AgentTeam CRD wiring, evolves store/session/runtime behavior, adds features gates, and adds many Postgres migrations.
agentscope-harness/** Extends tool filtering semantics, task callback suppression, MCP error type, and related tests.
agentscope-extensions/** Adds channel message IDs to inbound metadata; adds task suppression hook; adjusts tests.
agentscope-examples/** Adds tenant config alignment for transcript tenancy.
agentscope-core/.../McpClientManager.java Adds tool name prefix support for MCP tool registration.
.gitignore Adds Service release hygiene ignores and exceptions.
.github/workflows/website.yml Adds PR/docs link checking; restricts deploy to main push.
.github/workflows/service-source-check.yml Adds Service-focused PR checks (hygiene + unit tests).
Review details
  • Files reviewed: 167/1306 changed files
  • Comments generated: 5
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +15 to +17
allowBuilds:
esbuild: set this to true or false
protobufjs: set this to true or false
Comment on lines +17 to +21
/*
* Copyright 2024-2026 the original author or authors.
* Licensed under the Apache License, Version 2.0.
*/
package io.agentscope.extensions.aistio.adapter;
Comment on lines +15 to +18
// Copyright 2024-2026 the original author or authors.
// Licensed under the Apache License, Version 2.0.

package httpapi
Comment on lines +15 to +16
// Copyright 2024-2026 the original author or authors.
// Licensed under the Apache License, Version 2.0.
Comment on lines +65 to 69
export function getRoles(): string[] { return getAccountIdentity(getToken())?.roles || []; }

export function isAdmin(): boolean {
try {
const token = getToken();
if (!token) return false;
const payload = JSON.parse(atob(token.split('.')[1]));
const roles: string[] = payload.roles || [];
return roles.map((r) => r.toLowerCase()).includes('admin');
} catch {
return false;
}
return getRoles().map((role) => role.toLowerCase()).includes('admin');
}
@oss-maintainer
oss-maintainer merged commit be41da4 into agentscope-ai:main Sep 9, 2026
7 checks passed
@chickenlj
chickenlj deleted the agentscope-service-v5 branch September 9, 2026 17:00
dargoner added a commit to dargoner/agentscope-java that referenced this pull request Sep 12, 2026
合并 main 时误保留了 agentscope-ai#3080 之前的 SessionTurnRunner,删除了控制面执行范围、围栏式租约准入、心跳与权限确认等上游实现,导致 SessionTurnAdmissionTest 与 DataAppContextLoadTest 失败。

现恢复上游实现,仅在其上保留本分支的文本处置能力:订阅前包裹 AgentEventStreams.withTextOutputDisposition,预览帧按 streamType 处理 EVENT_UPDATE 属性,并延续顶层来源判定。
dargoner added a commit to dargoner/agentscope-java that referenced this pull request Sep 12, 2026
合并 main 时误保留了 agentscope-ai#3080 之前的 SessionTurnRunner,删除了控制面执行范围、围栏式租约准入、心跳与权限确认等上游实现,导致 SessionTurnAdmissionTest 与 DataAppContextLoadTest 失败。

现恢复上游实现,仅在其上保留本分支的文本处置能力:订阅前包裹 AgentEventStreams.withTextOutputDisposition,预览帧按 streamType 处理 EVENT_UPDATE 属性,并延续顶层来源判定。
xzxiaoshan added a commit that referenced this pull request Oct 14, 2026
Follow-up to #3526, from the same CI build-time investigation.

## Summary

- Build both the Linux and Windows jobs in parallel with `-T1C` (one
thread per core) using the standard Maven preinstalled on both runners,
replacing the single-threaded `-T1` (Windows previously ran mvnd pinned
to `-T1`, so it never actually built in parallel).
- Drop mvnd entirely from the Windows job: `MVND_VERSION`, the `Cache
mvnd` / `Install mvnd` steps, `mvnd-cache-path` in the matrix, and
`-Dmvnd.maxLostKeepAlive=120`.
- Companion commit (deliberately separate from the workflow change):
raise the hardcoded 10s `.block(...)` timeout in
`AnthropicChatModelAuthenticationTest.assertExchange` to 30s. This was
the only failure observed under heavy parallel test load (32 concurrent
test JVMs) — a test-robustness issue unrelated to build correctness, but
one that would pollute the CI signal under `-T1C`.

## Why `-T1` can be lifted

- `-T1` was introduced in #910 to keep reactor order so agentscope-core
is built before the modules that resolve it. That rationale does not
hold: `clean verify` never installs anything, and Maven's parallel
builder schedules modules by the dependency graph, so reactor ordering
is guaranteed at any thread count.
- The failure `-T1` actually papered over was spotless lock contention
under mvnd's parallel execution (`spotless-maven-plugin:check failed:
Could not acquire lock(s)`, about a dozen modules). Reproduced locally
on the #910 tree with mvnd 1.0.3 at default parallelism; the same tree
with standard Maven at `-T1C` (32 threads) builds clean, and spotless
3.3.0/3.4.0 under 12-way standard-Maven concurrency shows no lock
errors. The module that originally triggered it was removed in cc3b2ee
(2026-06).
- Linux already builds with standard Maven because of mvnd problems (the
embedded distribution broke Surefire IPC, #3080). Moving Windows to
standard `mvn` removes the remaining mvnd-specific failure sources plus
the mvnd install/cache overhead.

## Rollback

Workflow/command-line-level change only — no artifact content changes;
reverting the commit fully rolls back.
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