Skip to content

feat: redesign Harness context and unify Service sessions with JEV - #3441

Merged
oss-maintainer merged 26 commits into
mainfrom
harness-context-redesign
Oct 8, 2026
Merged

oss-maintainer merged 26 commits into
mainfrom
harness-context-redesign

Conversation

@chickenlj

@chickenlj chickenlj commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

AgentScope-Java Version

2.0.5-SNAPSHOT

Description

Provide a consistent execution and context model for Harness applications, and expose AgentScope Service tasks through a unified Session API. Applications can use the Harness SDK directly or delegate runtime management to a self-hosted Service whose Managed Agents use the HarnessAgent kernel.

  • Add extensible context sources, context budgets, compaction, structured execution observations and optional task verification. Use the native Session Log and AgentSession for durable inputs, execution ownership, interruption and continuation.

  • Integrate JEV execution modes and budgets, model routing, tool selection, knowledge retrieval, evaluation reports and optional browser adapters, with runnable examples.

  • Replace the Endpoint execution layer with Session APIs for Managed, External and Hosted Agents, Teams and Workflows. Update application scoping, idempotent submissions, interaction responses, files, webhooks, the Python SDK and Console.

  • Rename the Go control-plane component to service-controlplane (display name: Control Plane), including its Go module, server/Runtime Host binaries, Java extension and protobuf packages, Python/DSH SDK names, configuration, deployment charts, release tooling and documentation. Keep the public Session API and ASDP wire package stable.

  • Rename the Service CLI executable and source entry point to as / cmd/as, update task-scoped runtime instructions and release installation examples, and distinguish the CLI from the system assembler during automatic discovery. Remove obsolete internal Service design/API documents.

  • Remove internal development plans, archival source exports and regression notes from the published branch; keep those records locally outside the repository.

  • Reorganize the English and Chinese guides around self-hosted deployment, Managed Agents, task delegation, resource bindings, multi-agent orchestration and scenario examples. Present Console and API as parallel ways to operate the same resources.

  • Make Windows checkout support long archive paths, add missing Apache headers and close the Harness composition test before its temporary workspace is removed.

Validation

All applicable GitHub CI checks passed on the latest head 2198efaf9a1a4dc69cf6c47a95bbb7cd869ebd20:

  • Java verification: Linux and Windows Maven builds, Spotless, aggregate Javadoc, module synchronization and license checks.
  • Service verification: source checks; Go tests with PostgreSQL, vet and server/runtime/CLI builds; as version assertion; Python and DSH SDK checks; Console tests, lint and production build; Control Plane Helm lint/template checks.
  • Documentation validation, dependency submission, CLA and Codecov patch coverage passed.

Local tests and builds were not run at the author's request; execution was verified by GitHub CI. Local formatting and necessary code generation were performed. Tests requiring external services, environment configuration or a particular operating system remain conditionally skipped. Mintlify deployment is intentionally skipped for this PR.

Compatibility and CI fixes

Approval UUID inputs retain their original frozen prefixes in both Go and Java, preserving persisted approval identities and existing fixed UUID assertions after the component rename. DSH and Console lockfiles now use the public npm registry without changing package versions or integrity hashes. Automatic CLI discovery verifies the as version output to avoid selecting the system assembler.

JEV routing records completion and error observations before forwarding terminal signals. A per-call guard prevents duplicate records when cancellation races with termination. Deterministic regression coverage checks completed usage, error delivery and repeated cancellation while retaining existing integration assertions.

Windows Session storage uses SQLite rollback-journal transactions with synchronous acknowledgment and atomic version checks. POSIX storage retains its existing file format, locking, atomic replacement and directory fsync. Regression coverage checks concurrent initialization, competing versioned writes, recovery, discovery, corrupt storage, Windows backend selection and path guards. The Linux and Windows CI jobs finish independently.

Checklist

  • Code has been formatted and Spotless checks passed
  • All applicable CI checks are passing on the current head
  • Javadoc comments and aggregate Javadoc generation checked
  • Related documentation has been updated
  • Code is ready for review

Copilot AI balanced review requested due to automatic review settings October 8, 2026 04:59

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

license-eye has checked 5846 files.

Valid Invalid Ignored Fixed
3531 159 2156 0
Click to see the invalid file list
  • agentscope-core/src/main/java/io/agentscope/core/agent/ExecutionIdentity.java
  • agentscope-core/src/main/java/io/agentscope/core/session/AtomicSessionStorage.java
  • agentscope-core/src/main/java/io/agentscope/core/session/InMemorySessionLogStore.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEvent.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEventCodecRegistry.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEventTypes.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionExportSink.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionHeader.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionHistoryMode.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionInteractions.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionExecution.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionKey.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogException.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLog.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionInbox.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogExporter.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogStore.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionModelPolicy.java
  • agentscope-core/src/main/java/io/agentscope/core/session/JournalSessionLog.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionMigration.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionModels.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionProjection.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionTranscriptExport.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionStateAccess.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionTurns.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionViews.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionRecovery.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionRecorder.java
  • agentscope-core/src/test/java/io/agentscope/core/session/JournalSessionLogTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/ReActSessionLogTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionInboxCrashRecoveryTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionTranscriptExportTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionExecutionIdentityTest.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatApplication.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatController.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatHistory.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatSessions.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/DemoTools.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/DemoChatModel.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatItems.java
  • agentscope-examples/agents/agentscope-chat/src/test/java/io/agentscope/examples/chat/ChatSessionsTest.java
  • agentscope-examples/agents/agentscope-chat/src/test/java/io/agentscope/examples/chat/ChatItemsTest.java
  • agentscope-examples/jev/benchmarks/tool-guard/publish_example.py
  • agentscope-examples/jev/benchmarks/tool-guard/generate_dataset.py
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-2s/warmups.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-60s/warmups.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/summarize.py
  • agentscope-examples/jev/benchmarks/tool-guard/test_summarize.py
  • agentscope-examples/jev/benchmarks/tool-guard/data/refund-v1.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-2s/rows.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-60s/rows.jsonl
  • agentscope-extensions/agentscope-extensions-redis/src/test/java/io/agentscope/extensions/redis/store/RedisSessionStorageIntegrationTest.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/SessionAnswer.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/StoreSessionStorage.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/LocalSessionStorage.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/WorkspaceSessionLogStore.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/AgentSession.java
  • agentscope-harness/src/test/java/io/agentscope/harness/agent/session/WorkspaceSessionLogStoreTest.java
  • agentscope-harness/src/test/java/io/agentscope/harness/agent/session/AgentSessionTest.java
  • agentscope-service/aistio/examples/service-api/client.py
  • agentscope-service/aistio/examples/service-api/bootstrap.py
  • agentscope-service/aistio/examples/service-api/worker.py
  • agentscope-service/aistio/internal/asdp/http_transport_test.go
  • agentscope-service/aistio/internal/asdp/http_transport.go
  • agentscope-service/aistio/internal/controlplane/model/application.go
  • agentscope-service/aistio/internal/httpapi/application_handler.go
  • agentscope-service/aistio/internal/httpapi/application_handler_test.go
  • agentscope-service/aistio/internal/httpapi/legacy_endpoint_routes_test.go
  • agentscope-service/aistio/internal/httpapi/managed_session_start.go
  • agentscope-service/aistio/internal/httpapi/managed_session_start_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_conversation.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_capabilities.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_graph.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_governance.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_handler.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_native.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_native_result_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_command.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_webhook.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_projection.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_webhook_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_auth.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_worker.go
  • agentscope-service/aistio/internal/httpapi/service_postgres_regression_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_events.go
  • agentscope-service/aistio/internal/httpapi/service_session_managed.go
  • agentscope-service/aistio/internal/httpapi/service_session_managed_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_settings.go
  • agentscope-service/aistio/internal/httpapi/service_session_webhooks.go
  • agentscope-service/aistio/internal/httpapi/service_session_resources.go
  • agentscope-service/aistio/internal/httpapi/service_session_handler.go
  • agentscope-service/aistio/internal/httpapi/service_session_test.go
  • agentscope-service/aistio/internal/invocation/contract.go
  • agentscope-service/aistio/internal/invocation/contract_test.go
  • agentscope-service/aistio/internal/invocation/freeze.go
  • agentscope-service/aistio/internal/invocation/journal_test.go
  • agentscope-service/aistio/internal/invocation/result.go
  • agentscope-service/aistio/internal/invocation/view.go
  • agentscope-service/aistio/internal/invocation/runtime.go
  • agentscope-service/aistio/internal/invocation/journal.go
  • agentscope-service/aistio/internal/product/managed_event_mirror.go
  • agentscope-service/aistio/internal/product/service_invocation.go
  • agentscope-service/aistio/internal/sessionapi/session.go
  • agentscope-service/aistio/internal/store/application.go
  • agentscope-service/aistio/internal/store/memory/application.go
  • agentscope-service/aistio/internal/store/postgres/application.go
  • agentscope-service/aistio/internal/store/postgres/service_migration_test.go
  • agentscope-service/aistio/sdk/python/aistio/adapters/executable.py
  • agentscope-service/aistio/sdk/python/aistio/adapters/runners.py
  • agentscope-service/aistio/sdk/python/aistio/management.py
  • agentscope-service/aistio/sdk/python/aistio/transport/http_pull.py
  • agentscope-service/aistio/sdk/python/aistio/service.py
  • agentscope-service/aistio/sdk/python/tests/test_collaboration_retry.py
  • agentscope-service/aistio/sdk/python/tests/test_executable.py
  • agentscope-service/aistio/sdk/python/tests/test_service_examples.py
  • agentscope-service/aistio/sdk/python/tests/test_service_entrypoints.py
  • agentscope-service/aistio/test/e2e/service_api_regression.py
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/managed/LegacySessionEventAdapter.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/managed/SessionEventCursor.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionActionCommandEntity.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionActionCommandRepository.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionExportSourceEntity.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionExportSourceRepository.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionTurnCommandRepository.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionTurnCommandEntity.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionApiErrors.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionBudgetController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionArtifactsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionCheckpointsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionChildrenController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionInputsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionFilesController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionTraceController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionWebhooksController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionTurnsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionEventsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionInput.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionViewStore.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionView.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/CommittedSessionEventProjector.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionCheckpointService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionInputService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionBudgetService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionFileService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsagePricer.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsagePricingConfiguration.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsageService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionWebhookService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionTurnInbox.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/RegressionDataPlaneApplication.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/api/AgentSessionEventsControllerTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/control/PostgresSessionDurabilityTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionResourcesTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionRecoveryTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionViewTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/LegacySessionEventAdapterTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/SessionTurnInboxResumeTest.java
  • internal/jev/verify-guide-snippets.py
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

license-eye has checked 5846 files.

Valid Invalid Ignored Fixed
3531 159 2156 0
Click to see the invalid file list
  • agentscope-core/src/main/java/io/agentscope/core/agent/ExecutionIdentity.java
  • agentscope-core/src/main/java/io/agentscope/core/session/AtomicSessionStorage.java
  • agentscope-core/src/main/java/io/agentscope/core/session/InMemorySessionLogStore.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEvent.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEventCodecRegistry.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionEventTypes.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionExportSink.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionHistoryMode.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionHeader.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionInteractions.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionExecution.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionKey.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogException.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionInbox.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogExporter.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLog.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionLogStore.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionModelPolicy.java
  • agentscope-core/src/main/java/io/agentscope/core/session/JournalSessionLog.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionMigration.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionProjection.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionModels.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionTranscriptExport.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionStateAccess.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionTurns.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionViews.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionRecovery.java
  • agentscope-core/src/main/java/io/agentscope/core/session/SessionRecorder.java
  • agentscope-core/src/test/java/io/agentscope/core/session/JournalSessionLogTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/ReActSessionLogTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionInboxCrashRecoveryTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionTranscriptExportTest.java
  • agentscope-core/src/test/java/io/agentscope/core/session/SessionExecutionIdentityTest.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatApplication.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatHistory.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatController.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatSessions.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/DemoChatModel.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/DemoTools.java
  • agentscope-examples/agents/agentscope-chat/src/main/java/io/agentscope/examples/chat/ChatItems.java
  • agentscope-examples/agents/agentscope-chat/src/test/java/io/agentscope/examples/chat/ChatItemsTest.java
  • agentscope-examples/agents/agentscope-chat/src/test/java/io/agentscope/examples/chat/ChatSessionsTest.java
  • agentscope-examples/jev/benchmarks/tool-guard/generate_dataset.py
  • agentscope-examples/jev/benchmarks/tool-guard/publish_example.py
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-2s/warmups.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-60s/warmups.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/summarize.py
  • agentscope-examples/jev/benchmarks/tool-guard/test_summarize.py
  • agentscope-examples/jev/benchmarks/tool-guard/data/refund-v1.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-2s/rows.jsonl
  • agentscope-examples/jev/benchmarks/tool-guard/results/2026-09-26-60s/rows.jsonl
  • agentscope-extensions/agentscope-extensions-redis/src/test/java/io/agentscope/extensions/redis/store/RedisSessionStorageIntegrationTest.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/SessionAnswer.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/StoreSessionStorage.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/LocalSessionStorage.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/WorkspaceSessionLogStore.java
  • agentscope-harness/src/main/java/io/agentscope/harness/agent/session/AgentSession.java
  • agentscope-harness/src/test/java/io/agentscope/harness/agent/session/WorkspaceSessionLogStoreTest.java
  • agentscope-harness/src/test/java/io/agentscope/harness/agent/session/AgentSessionTest.java
  • agentscope-service/aistio/examples/service-api/client.py
  • agentscope-service/aistio/examples/service-api/bootstrap.py
  • agentscope-service/aistio/examples/service-api/worker.py
  • agentscope-service/aistio/internal/asdp/http_transport_test.go
  • agentscope-service/aistio/internal/asdp/http_transport.go
  • agentscope-service/aistio/internal/controlplane/model/application.go
  • agentscope-service/aistio/internal/httpapi/application_handler.go
  • agentscope-service/aistio/internal/httpapi/application_handler_test.go
  • agentscope-service/aistio/internal/httpapi/legacy_endpoint_routes_test.go
  • agentscope-service/aistio/internal/httpapi/managed_session_start.go
  • agentscope-service/aistio/internal/httpapi/managed_session_start_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_conversation.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_capabilities.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_governance.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_graph.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_handler.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_native.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_native_result_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_command.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_test.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_webhook.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_projection.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_webhook_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_auth.go
  • agentscope-service/aistio/internal/httpapi/service_invocation_worker.go
  • agentscope-service/aistio/internal/httpapi/service_postgres_regression_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_events.go
  • agentscope-service/aistio/internal/httpapi/service_session_managed.go
  • agentscope-service/aistio/internal/httpapi/service_session_managed_test.go
  • agentscope-service/aistio/internal/httpapi/service_session_settings.go
  • agentscope-service/aistio/internal/httpapi/service_session_webhooks.go
  • agentscope-service/aistio/internal/httpapi/service_session_resources.go
  • agentscope-service/aistio/internal/httpapi/service_session_handler.go
  • agentscope-service/aistio/internal/httpapi/service_session_test.go
  • agentscope-service/aistio/internal/invocation/contract.go
  • agentscope-service/aistio/internal/invocation/contract_test.go
  • agentscope-service/aistio/internal/invocation/journal_test.go
  • agentscope-service/aistio/internal/invocation/freeze.go
  • agentscope-service/aistio/internal/invocation/result.go
  • agentscope-service/aistio/internal/invocation/view.go
  • agentscope-service/aistio/internal/invocation/runtime.go
  • agentscope-service/aistio/internal/invocation/journal.go
  • agentscope-service/aistio/internal/product/managed_event_mirror.go
  • agentscope-service/aistio/internal/product/service_invocation.go
  • agentscope-service/aistio/internal/sessionapi/session.go
  • agentscope-service/aistio/internal/store/application.go
  • agentscope-service/aistio/internal/store/memory/application.go
  • agentscope-service/aistio/internal/store/postgres/application.go
  • agentscope-service/aistio/internal/store/postgres/service_migration_test.go
  • agentscope-service/aistio/sdk/python/aistio/adapters/executable.py
  • agentscope-service/aistio/sdk/python/aistio/adapters/runners.py
  • agentscope-service/aistio/sdk/python/aistio/management.py
  • agentscope-service/aistio/sdk/python/aistio/transport/http_pull.py
  • agentscope-service/aistio/sdk/python/aistio/service.py
  • agentscope-service/aistio/sdk/python/tests/test_collaboration_retry.py
  • agentscope-service/aistio/sdk/python/tests/test_executable.py
  • agentscope-service/aistio/sdk/python/tests/test_service_examples.py
  • agentscope-service/aistio/sdk/python/tests/test_service_entrypoints.py
  • agentscope-service/aistio/test/e2e/service_api_regression.py
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/managed/LegacySessionEventAdapter.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/managed/SessionEventCursor.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionActionCommandEntity.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionActionCommandRepository.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionExportSourceRepository.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionExportSourceEntity.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionTurnCommandEntity.java
  • agentscope-service/service-common/src/main/java/io/agentscope/builder/web/persistence/jpa/SessionTurnCommandRepository.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionApiErrors.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionArtifactsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionBudgetController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionCheckpointsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionChildrenController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionInputsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionFilesController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionTraceController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionTurnsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionWebhooksController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/api/AgentSessionEventsController.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionInput.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionViewStore.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/CommittedSessionEventProjector.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/AgentSessionView.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionCheckpointService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionInputService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionBudgetService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionFileService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsagePricer.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsagePricingConfiguration.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionUsageService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionWebhookService.java
  • agentscope-service/service-dataplane/src/main/java/io/agentscope/builder/web/managed/SessionTurnInbox.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/RegressionDataPlaneApplication.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/api/AgentSessionEventsControllerTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/control/PostgresSessionDurabilityTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionRecoveryTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionResourcesTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/AgentSessionViewTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/LegacySessionEventAdapterTest.java
  • agentscope-service/service-dataplane/src/test/java/io/agentscope/builder/web/managed/SessionTurnInboxResumeTest.java
  • internal/jev/verify-guide-snippets.py
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

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

Unresolved journal durability, sandbox execution, conversation isolation, frozen-contract, and revision-selection issues block approval; three nits also remain.

7 open findings
What changed in this PR

Redesigns Harness context and durable execution, unifies Service execution through Session APIs, and integrates JEV capabilities.

Changes:

  • Adds native session logs, context sources, budgets, observations, and verification contracts.
  • Updates Service persistence, orchestration, SDKs, routing, and Console workflows.
  • Reorganizes bilingual documentation, JEV archives, and runnable examples.
File Changes and review findings
internal/​jev/​README.md Defines internal and archived documentation boundaries.
internal/​jev/​documentation-reorganization.md Records documentation restructuring.
internal/​jev/​archive-2026-09-26/​research-and-development/​guides/​support-api.md Archives support API guidance.
internal/​jev/​archive-2026-09-26/​research-and-development/​guides/​memory-api.md Archives memory API guidance.
internal/​jev/​archive-2026-09-26/​research-and-development/​examples/​decision-policy.json.txt Preserves a proposed policy fixture.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​source-manifest.json.txt Preserves benchmark provenance.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-qwen-strict-status-2026-09-26.txt Archives strict Qwen measurements.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-qwen-initial-status-2026-09-26.txt Archives initial Qwen measurements.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-offline-strict-status-2026-09-26.txt Archives strict offline measurements.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-offline-initial-status-2026-09-26.txt Archives initial offline measurements.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-jev-strict-status-2026-09-26.txt Archives strict JEV measurements.
internal/​jev/​archive-2026-09-26/​research-and-development/​evidence/​browser-local-jev-initial-status-2026-09-26.txt Archives initial JEV measurements.
internal/​jev/​archive-2026-09-26/​published-zh-before-reorganization/​guides/​support-api.md Preserves the former Chinese support guide.
internal/​jev/​archive-2026-09-26/​published-zh-before-reorganization/​guides/​memory-api.md Preserves the former Chinese memory guide.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​Usage.java.txt Archives usage source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​SystemOneResult.java.txt Archives response source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​ScoreQuestion.java.txt Archives scoring-question source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​ScoreAnswer.java.txt Archives scoring-answer source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​NoulQuestion.java.txt Archives binary-question source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​NoulAnswer.java.txt Archives binary-answer source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​ChoiceQuestion.java.txt Archives selection-question source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​ChoiceAnswer.java.txt Archives selection-answer source.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​Answer.java.txt Archives the answer interface.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​java/​io/​agentscope/​extensions/​judge/​jev/​NoulAnswer.java.txt Preserves a module-layout source snapshot.
internal/​jev/​archive-2026-09-26/​published-downloads/​source/​agentscope-core/​src/​main/​java/​io/​agentscope/​core/​middleware/​ActingInput.java.txt Archives middleware-input source.
internal/​jev/​archive-2026-09-26/​published-downloads/​examples/​decision-policy.json.txt Preserves the former policy download.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​source-manifest.json.txt Preserves downloadable provenance.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-qwen-strict-status-2026-09-26.txt Preserves strict Qwen evidence.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-qwen-initial-status-2026-09-26.txt Preserves initial Qwen evidence.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-offline-strict-status-2026-09-26.txt Preserves strict offline evidence.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-offline-initial-status-2026-09-26.txt Preserves initial offline evidence.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-jev-strict-status-2026-09-26.txt Preserves strict JEV evidence.
internal/​jev/​archive-2026-09-26/​published-downloads/​evidence/​browser-local-jev-initial-status-2026-09-26.txt Preserves initial JEV evidence.
docs/​v2/​zh/​integration/​session/​overview.md Distinguishes native logs from state stores.
docs/​v2/​zh/​integration/​protocol/​agent-protocol.md Clarifies protocol-agent lifecycle.
docs/​v2/​zh/​blogs/​usecases/​index.md Updates the use-case title.
docs/​v2/​zh/​blogs/​how-to-build-agent-harness/​04-controlled-execution.md Updates the execution diagram. nit, 4 votes: Restore the standalone Mermaid closing fence; the added link causes following explanations and the Action Request example to enter the invalid diagram block.
docs/​v2/​zh/​blogs/​agentscope-v2-coding-agent.md Updates the context-management link.
docs/​v2/​zh/​blogs/​agentscope-service-release-tech.md Updates the Service guide link.
docs/​v2/​en/​integration/​session/​overview.md Explains native-log storage contracts. nit, 2 votes: Use “uses,” not “use,” with the singular mode name LEGACY.
docs/​v2/​en/​integration/​protocol/​agent-protocol.md Clarifies protocol-agent lifecycle.
docs/​v2/​en/​docs/​building-blocks/​message-and-event.md Distinguishes live and durable events.
docs/​v2/​en/​blogs/​usecases/​index.md Updates the use-case title.
docs/​v2/​en/​blogs/​agentscope-v2-coding-agent.md Updates the context-management link.
docs/​v2/​en/​blogs/​agentscope-service-release-tech.md Updates the Service guide link.
docs/​v1/​zh/​docs/​task/​agui.md Updates relocated AG-UI example instructions.
docs/​v1/​en/​docs/​task/​agui.md Updates relocated AG-UI example instructions.
docs/​examples/​service/​sdlc-team/​issue.md.txt Removes the former exercise brief.
docs/​examples/​service/​scheduled-research/​input.json.txt Adds a research-task fixture.
docs/​examples/​service/​presales-team/​product-knowledge.txt Removes the former product fixture.
docs/​examples/​service/​presales-team/​delivery-guide.txt Removes the former delivery fixture.
docs/​examples/​service/​presales-team/​customer-brief.txt Removes the former customer fixture.
docs/​examples/​service/​incident-to-pr/​OrderQuery.java.txt Adds intentionally incomplete repair-exercise source.
docs/​examples/​service/​incident-to-pr/​input.json.txt Adds an incident-repair task fixture.
docs/​examples/​service/​incident-to-pr/​ci.yml.txt Adds exercise acceptance checks.
docs/​examples/​service/​in-product-delivery/​input.json.txt Adds a proposal-delivery fixture.
docs/​examples/​service/​document-verification/​input.json.txt Adds a document-verification fixture.
docs/​examples/​service/​business-assistant/​orders.json.txt Adds synthetic order data.
docs/​examples/​service/​business-assistant/​input.json.txt Adds an assistant-request fixture.
docs/​examples/​service/​agent-as-tool/​input.json.txt Adds a delegated-assessment fixture.
docs/​.mintignore Excludes internal implementation material.
agentscope-service/​service-gateway/​src/​main/​resources/​application.yml Routes Session APIs to the control plane.
agentscope-service/​service-dataplane/​src/​main/​java/​io/​agentscope/​builder/​web/​managed/​SessionUsagePricer.java Adds configurable usage pricing.
agentscope-service/​service-dataplane/​src/​main/​java/​io/​agentscope/​builder/​web/​managed/​DataSessionService.java Stages scoped status events.
agentscope-service/​service-dataplane/​src/​main/​java/​io/​agentscope/​builder/​web/​config/​DataPlaneConfig.java Configures workspace-backed native logs.
agentscope-service/​service-dataplane/​src/​main/​java/​io/​agentscope/​builder/​control/​ControlPlaneSessionEventMirror.java Replaces direct mirroring with outbox staging.
agentscope-service/​service-dataplane/​pom.xml Adds JEV integration dependencies.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionExportSourceRepository.java Adds export-source persistence.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionExportSourceEntity.java Records durable export-source identities.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionEventFenceRepository.java Adds pessimistic fence lookup.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionEventEntityRepository.java Adds bounded event pagination.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionActionCommandRepository.java Adds action-command queries.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​persistence/​jpa/​SessionActionCommandEntity.java Persists interaction-command delivery state.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​managed/​SessionEventTypes.java Adds execution span types.
agentscope-service/​service-common/​src/​main/​java/​io/​agentscope/​builder/​web/​managed/​service/​SessionEventMirror.java Defines transactional mirror staging.
agentscope-service/​frontend/​src/​pages/​SessionsHubPage.tsx Uses lifecycle status for archival state.
agentscope-service/​frontend/​src/​main.tsx Removes the Endpoint detail route.
agentscope-service/​frontend/​src/​features/​teams/​TeamsOverviewPage.tsx Describes Session-based Team invocation.
agentscope-service/​frontend/​src/​features/​teams/​TeamDetailPage.tsx Replaces Endpoint publishing with Session usage.
agentscope-service/​frontend/​src/​features/​orchestration/​DefinitionsPage.tsx Adds revision-aware Session usage. moderate, 2 votes: Changing versions retains the Session frozen to the old revision; key the usage card by workflow and revision to start a fresh Session.
agentscope-service/​frontend/​src/​features/​operate/​ExecutionsPage.tsx Updates task terminology. nit, 4 votes: Use “a Session task,” since “Session” starts with a consonant sound.
agentscope-service/​frontend/​src/​features/​issues/​IssuesPage.tsx Relabels Endpoint jobs as Session tasks.
agentscope-service/​frontend/​src/​features/​conversation/​adapters.test.ts Tests final message-revision rendering.
agentscope-service/​frontend/​src/​features/​build/​deployments/​endpointNavigation.ts Removes obsolete Endpoint navigation helpers.
agentscope-service/​frontend/​src/​features/​build/​agents/​AgentCatalogDetailPage.tsx Adds Agent Session usage.
agentscope-service/​frontend/​src/​components/​SessionTranscript.tsx Uses lifecycle status for archival state.
agentscope-service/​frontend/​src/​app/​AppShell.tsx Removes the Endpoint breadcrumb label.
agentscope-service/​frontend/​src/​api/​collaboration.ts Removes Team Endpoint counters.
agentscope-service/​frontend/​src/​api/​applications.ts Adds application and credential clients.
agentscope-service/​frontend/​src/​api/​agentSessions.test.ts Tests logical-turn outcome classification.
agentscope-service/​docs/​service-api/​public-event-v1.schema.json Defines the public durable-event envelope.
agentscope-service/​aistio/​test/​e2e/​README.md Documents public API regression execution.
agentscope-service/​aistio/​sdk/​python/​tests/​test_bridge.py Selects gRPC explicitly in fixtures.
agentscope-service/​aistio/​sdk/​python/​aistio/​transport/​grpc.py Raises message limits and reports acceptance.
agentscope-service/​aistio/​sdk/​python/​aistio/​event_journal.py Bounds records and exposes pending checks.
agentscope-service/​aistio/​sdk/​python/​aistio/​adapters/​base.py Derives assignment Session identity.
agentscope-service/​aistio/​internal/​taskplane/​service.go Applies frozen task execution context.
agentscope-service/​aistio/​internal/​store/​store.go Exposes the Application repository.
agentscope-service/​aistio/​internal/​store/​postgres/​migrations/​0114_session_api.up.sql Removes obsolete Endpoint foreign keys.
agentscope-service/​aistio/​internal/​store/​postgres/​migrations/​0114_session_api.down.sql Restores Endpoint foreign keys on rollback.
agentscope-service/​aistio/​internal/​store/​postgres/​migrations/​0113_service_application_identity.down.sql Reverts Application identity schema.
agentscope-service/​aistio/​internal/​store/​postgres/​migrations/​0112_service_api_contract.up.sql Adds frozen execution-contract metadata.
agentscope-service/​aistio/​internal/​store/​postgres/​migrations/​0112_service_api_contract.down.sql Removes execution-contract metadata.
agentscope-service/​aistio/​internal/​store/​postgres/​collaboration_tasks.go Releases query connections before loading inputs.
agentscope-service/​aistio/​internal/​store/​memory/​store.go Initializes Application storage.
agentscope-service/​aistio/​internal/​store/​application.go Defines Application persistence operations.
agentscope-service/​aistio/​internal/​scheduler/​scheduler.go Resolves frozen runtime policies.
agentscope-service/​aistio/​internal/​runtimebinding/​resolver.go Applies frozen dispatch context and policy.
agentscope-service/​aistio/​internal/​product/​managed_definition.go Supports pinned runtime definitions.
agentscope-service/​aistio/​internal/​product/​handlers_sessions.go Allows JEV Session overrides.
agentscope-service/​aistio/​internal/​orchestration/​team.go Uses frozen Team configuration. moderate, 1 vote: A contract missing the requested Team falls back to its mutable live roster; fail closed when the Team ID is absent.
agentscope-service/​aistio/​internal/​orchestration/​materialize.go Loads frozen Workflow revisions.
agentscope-service/​aistio/​internal/​orchestration/​engine.go Resolves frozen nested revisions.
agentscope-service/​aistio/​internal/​invocation/​view.go Adds public invocation projection.
agentscope-service/​aistio/​internal/​httpapi/​team_detail_handler.go Removes Team Endpoint statistics.
agentscope-service/​aistio/​internal/​httpapi/​service_invocation_native_result_test.go Tests canonical native final answers.
agentscope-service/​aistio/​internal/​httpapi/​scope_handler.go Preserves Session file-upload bodies.
agentscope-service/​aistio/​internal/​httpapi/​dataplane_handler.go Normalizes advertised capabilities.
agentscope-service/​aistio/​internal/​httpapi/​agent_catalog_handler.go Accepts named registration capabilities.
agentscope-service/​aistio/​internal/​controlplane/​model/​types.go Converts capability names to flags.
agentscope-service/​aistio/​go.sum Records JSON Schema dependency checksums.
agentscope-service/​aistio/​go.mod Adds a JSON Schema validator.
agentscope-service/​aistio/​examples/​service-api/​.gitignore Ignores generated demo state.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​tool/​AgentSpawnToolOrphanCancelTest.java Checks observed child cancellation.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​testing/​HarnessQuiescence.java Updates background-task documentation.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​PlanModeSubagentPropagationTest.java Tests inherited plan-context rendering.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​WorkspaceContextMiddlewareSandboxPromptTest.java Uses centralized prompt rendering.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​SandboxLifecycleMiddlewareReleaseOrderTest.java Tests cleanup across copied contexts.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​SandboxLifecycleConcurrencyReproTest.java Tests rejection of released sandbox bindings.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​MemoryMiddlewareThrottleIsolationTest.java Updates maintenance middleware setup.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​MemoryMaintenanceMiddlewareAsyncGateTest.java Updates asynchronous maintenance setup.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​middleware/​HarnessSkillManageNamespaceTest.java Supplies explicit in-memory native logs.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​HarnessAgentIntegrationExampleTest.java Checks redesigned context rendering.
agentscope-harness/​src/​test/​java/​io/​agentscope/​harness/​agent/​HarnessAgentDistributedSandboxTest.java Makes legacy storage validation explicit.
agentscope-harness/​src/​main/​resources/​io/​agentscope/​harness/​context-conventions.md Defines context authority and interpretation.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​workspace/​WorkspaceConstants.java Removes legacy history filenames.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​verification/​StoredVerification.java Adds retained verification audit records.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​session/​SessionAnswer.java Adds typed interaction responses.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​sandbox/​SandboxAcquireResult.java Shares release state across context copies.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​observation/​StoredActionObservation.java Adds retained action evidence.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​middleware/​SandboxLifecycleMiddleware.java Makes acquisition cleanup single-owner.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​memory/​MemoryBackgroundTasks.java Updates background-task lifecycle documentation.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​sandbox/​SandboxBackedFilesystem.java Rejects released sandbox acquisitions.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​RoutedSandboxFilesystem.java Delegates native storage capability.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​remote/​store/​InMemoryStore.java Advertises atomic storage support.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​remote/​store/​BaseStore.java Adds explicit atomic-storage opt-in.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​remote/​RemoteFilesystem.java Exposes namespaced journal storage.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​OverlayFilesystem.java Uses upper-layer journal storage.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​local/​LocalFilesystem.java Adds local journal storage and path guarding. critical, 2 votes: Symlink aliases and recursive delete(".") bypass journal protection; protect canonical targets and reserved descendants, or move journals outside the writable tree.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​CompositeFilesystem.java Selects the routed journal backend.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​BakedContextFilesystem.java Preserves baked storage context.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​filesystem/​AbstractFilesystem.java Defines optional atomic storage. critical, 1 vote: Default EVENT_LOG execution fails for sandbox-only filesystems inheriting the throwing capability; provide durable journal storage or require validated configuration before building.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​context/​SourceFailurePolicy.java Defines source-loading failure modes.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​context/​ContextSource.java Defines reactive context-source loading.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​context/​ContextRequest.java Carries immutable context-request identity.
agentscope-harness/​src/​main/​java/​io/​agentscope/​harness/​agent/​context/​ContextBudgetExceededException.java Adds explicit local budget rejection.
agentscope-extensions/​agentscope-extensions-sandbox/​agentscope-extensions-sandbox-agentrun/​src/​main/​java/​io/​agentscope/​extensions/​sandbox/​agentrun/​AgentRunSandbox.java Clarifies shared-channel shutdown ownership.
agentscope-extensions/​agentscope-extensions-redis/​src/​main/​java/​io/​agentscope/​extensions/​redis/​store/​RedisStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-postgresql/​src/​main/​java/​io/​agentscope/​extensions/​postgresql/​store/​PostgresBaseStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-mysql/​src/​main/​java/​io/​agentscope/​extensions/​mysql/​store/​JdbcStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-mongodb/​src/​main/​java/​io/​agentscope/​extensions/​mongodb/​store/​MongoBaseStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​resources/​META-INF/​jev-references/​jevals-LICENSE Includes the reference-project license.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​resources/​META-INF/​jev-references/​jev-ultrafast-LICENSE Includes the reference-project license.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​resources/​META-INF/​jev-references/​jev-review-LICENSE Includes the reference-project license.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​resources/​META-INF/​jev-references/​foreman-LICENSE Includes the reference-project license.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​resources/​META-INF/​jev-references/​fast-jev-compaction-LICENSE Includes the reference-project license.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​src/​main/​java/​io/​agentscope/​extensions/​judge/​jev/​JevClient.java Exposes injected-backend validation.
agentscope-extensions/​agentscope-extensions-judge/​agentscope-extensions-jev/​pom.xml Adds optional browser and Harness dependencies.
agentscope-extensions/​agentscope-extensions-jdbc/​src/​main/​java/​io/​agentscope/​extensions/​jdbc/​store/​JdbcStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-aistio/​src/​main/​java/​io/​agentscope/​extensions/​aistio/​store/​ControlPlaneBaseStore.java Advertises atomic journal capability.
agentscope-extensions/​agentscope-extensions-aistio/​src/​main/​java/​io/​agentscope/​extensions/​aistio/​SessionBridge.java Adds acknowledged native-event ingestion. critical, 1 vote: Appended records over 16 MiB are acknowledged but rejected during recovery, losing them and subsequent records; enforce the reader limit before append or acknowledgment so exports remain retryable.
agentscope-extensions/​agentscope-extensions-aistio/​src/​main/​java/​io/​agentscope/​extensions/​aistio/​adapter/​AgentScopeAdapter.java Forwards committed native events.
agentscope-examples/​README.md Introduces standalone Session Chat.
agentscope-examples/​pom.xml Updates consolidated example modules.
agentscope-examples/​jev/​benchmarks/​tool-guard/​results/​2026-09-26-60s/​summary.md Records long-budget benchmark results.
agentscope-examples/​jev/​benchmarks/​tool-guard/​results/​2026-09-26-60s/​provenance.json Records long-budget provenance.
agentscope-examples/​jev/​benchmarks/​tool-guard/​results/​2026-09-26-2s/​summary.md Records short-budget benchmark results.
agentscope-examples/​jev/​benchmarks/​tool-guard/​results/​2026-09-26-2s/​provenance.json Records short-budget provenance.
agentscope-examples/​jev/​benchmarks/​tool-guard/​.gitignore Ignores Python cache files.
agentscope-examples/​documentation/​src/​main/​resources/​copilotkit/​logback.xml Adds isolated CopilotKit logging.
agentscope-examples/​documentation/​src/​main/​resources/​copilotkit/​application.yml Selects CopilotKit static resources.
agentscope-examples/​documentation/​src/​main/​resources/​agui/​logback.xml Adds isolated AG-UI logging.
agentscope-examples/​documentation/​src/​main/​resources/​agui/​application.yml Selects AG-UI static resources.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​jev/​JevToolSelectionMiddlewareTest.java Uses explicit enforced JEV execution.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​jev/​JevModelRouterMiddlewareTest.java Uses explicit enforced JEV execution.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​jev/​JevAutoModeMiddlewareTest.java Uses explicit enforced JEV execution.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​WorkbenchTools.java Updates relocated package references.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​WorkbenchStateRegistry.java Relocates the state registry.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​WorkbenchState.java Relocates workbench state.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​WorkbenchEventMiddleware.java Relocates event middleware.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​WorkbenchAguiEventConverter.java Relocates the event converter.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​workbench/​RefundOrderTool.java Relocates the refund tool.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​service/​PersistingAgentEventEnricher.java Updates relocated enrichment references.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​service/​InMemoryAgentEventStore.java Relocates the event store.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​service/​DemoThreadStore.java Updates relocated thread-store references.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​service/​CopilotKitRuntimeService.java Updates relocated runtime references.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​service/​AgentEventAguiReplayer.java Updates relocated replay references.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​model/​CopilotKitModels.java Relocates API models.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​CopilotKitExampleApplication.java Loads example-specific configuration.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​config/​CopilotKitRouteConfiguration.java Updates relocated route dependencies.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​WorkbenchCatalog.java Relocates the A2UI catalog.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​DashScopeA2uiModelClient.java Relocates the model client.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​BundledA2uiSchemaSource.java Relocates the bundled schema source.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiSurface.java Relocates the surface model.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiSchemaSource.java Relocates the schema-source interface.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiOperations.java Relocates A2UI operations.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiModelClient.java Relocates the client interface.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiFallbackSurface.java Relocates the fallback surface.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​copilotkit/​a2ui/​A2uiComposer.java Relocates the composer.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​agui/​tools/​ExampleTools.java Relocates AG-UI tools.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​agui/​config/​AgentConfiguration.java Updates relocated agent configuration.
agentscope-examples/​documentation/​src/​main/​java/​io/​agentscope/​examples/​documentation2/​agui/​AguiExampleApplication.java Loads example-specific configuration.
agentscope-examples/​documentation/​README.md Documents consolidated example layout.
agentscope-examples/​documentation/​guides/​agui.md Documents AG-UI build and launch.
agentscope-examples/​documentation/​frontend/​copilotkit/​vite.config.ts Moves frontend output to generated resources.
agentscope-examples/​documentation/​frontend/​copilotkit/​tsconfig.node.json Configures Vite TypeScript checking.
agentscope-examples/​documentation/​frontend/​copilotkit/​tsconfig.json Configures frontend TypeScript checking.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​vite-env.d.ts Adds frontend environment declarations.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​main.tsx Initializes CopilotKit and A2UI integration.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​lib/​utils.ts Adds CSS-class composition.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​components/​ui/​separator.tsx Adds a separator component.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​components/​StatusPill.tsx Adds status display.
agentscope-examples/​documentation/​frontend/​copilotkit/​src/​components/​PanelTitle.tsx Adds panel headings.
agentscope-examples/​documentation/​frontend/​copilotkit/​index.html Adds the frontend entry document.
agentscope-examples/​documentation/​frontend/​copilotkit/​components.json Configures UI component tooling.
agentscope-examples/​documentation/​frontend/​copilotkit/​.gitignore Ignores frontend build artifacts.
agentscope-examples/​agents/​agentscope-paw/​src/​main/​java/​io/​agentscope/​claw2/​web/​config/​AistioRegistrationConfig.java Switches to native Session history.
agentscope-examples/​agents/​agentscope-paw/​src/​main/​java/​io/​agentscope/​claw2/​runtime/​ClawBootstrap.java Clarifies stable native identity.
agentscope-examples/​agents/​agentscope-chat/​src/​main/​resources/​application.properties Configures local Session Chat defaults.
agentscope-distribution/​agentscope-all/​pom.xml Supplies Playwright for aggregate Javadoc.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​tool/​subagent/​SubAgentTool.java Bypasses legacy persistence for native agents. moderate, 1 vote: Bind finalSessionId into a child RuntimeContext before either execution path; unchanged parent context mixes conversation history and breaks continuation. Preserve user identity and remove parent-only execution state.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​state/​LegacyStateLoader.java Clarifies explicit legacy migration.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​state/​EvidenceBinding.java Adds trusted evidence-version binding.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​shutdown/​ActiveRequestContext.java Marks native interruption state.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionModelPolicy.java Adds admission and accounting hooks.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionLogStore.java Defines native-log storage and discovery.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionLogExporter.java Adds acknowledged export-cursor draining.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionLogException.java Identifies persistence failures.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionKey.java Defines encoded Session identity.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionHistoryMode.java Defines exclusive history authorities.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionHeader.java Defines journal format and coverage metadata.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionExportSink.java Defines committed-event export.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​SessionEvent.java Defines immutable native events.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​session/​AtomicSessionStorage.java Defines durable cross-writer compare-and-set.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​observation/​ActionObserver.java Defines acknowledged observation persistence.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​observation/​ActionObservationException.java Identifies observation-persistence failures.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​message/​ToolExecutionDetails.java Adds structured execution outcomes.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​event/​AgentEvent.java Adds live-event execution correlation.
agentscope-core/​src/​main/​java/​io/​agentscope/​core/​agent/​ExecutionIdentity.java Defines immutable execution identity.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

int seq = sequences.getOrDefault(event.getSessionId(), 0) + 1;
event.setSeq(seq);
try {
eventJournal.append(event.toProto());
Comment on lines +46 to +48
default io.agentscope.core.session.AtomicSessionStorage sessionStorage(RuntimeContext context) {
throw new UnsupportedOperationException(
"Filesystem does not support durable session storage: " + getClass().getName());
Comment on lines +603 to +606
if (key != null
&& java.util.Arrays.stream(key.replace('\\', '/').split("/"))
.anyMatch(".agentscope-runtime"::equalsIgnoreCase))
throw new SecurityException("Session journal is reserved for the runtime");
Comment on lines +822 to +825
<SessionUsageCard
targetType="workflow"
targetRef={id!}
revisionId={selectedRevision.id}
@@ -227,7 +227,7 @@ export default function ExecutionsPage() {
{!loading && !filtered.length ? (
<EmptyState
title={groups.length ? 'No matching executions' : 'No executions yet'}
description={groups.length ? 'Try a different search or filter.' : 'Assign an Issue, invoke an Endpoint job, or start a Workflow.'}
description={groups.length ? 'Try a different search or filter.' : 'Assign an Issue, invoke an Session task, or start a Workflow.'}
@@ -17,6 +17,10 @@ State is addressed by `(userId, sessionId)`:
- `sessionId` — required, non-blank, identifies a session.
- `userId` — optional. `null` means anonymous / single-tenant (CLI, tests, etc.).

## Native Session Log is a separate contract

This page covers AgentStateStore. HarnessAgent defaults to EVENT_LOG recovery through SessionLogStore; changing stateStore alone does not migrate/share native history. LEGACY still use this interface. A file-capable BaseStore does not necessarily offer journal CAS: current OSS/COS need a separate native backend. See [Session logs](/v2/en/docs/harness/session-log).
@@ -27,7 +27,7 @@ flowchart LR
E --> O[Observation<br/>结构化结果、错误与 Artifact]
O --> T[State / Trace<br/>任务事实与执行证据]
T --> M
```
[..](..)```
King52HerTz added a commit to King52HerTz/agentscope-java that referenced this pull request Oct 10, 2026
Resolves the modify/delete conflict by accepting main's removal of SessionEventMapper (dropped in agentscope-ai#3441); its applyFinalResultText rule is no longer needed as the Java-side session payload mapping is gone.
charliejinc added a commit to charliejinc/agentscope-java that referenced this pull request Oct 13, 2026
SandboxBackedFilesystem was missing the sessionStorage() override
introduced in agentscope-ai#3441, causing UnsupportedOperationException when
WorkspaceSessionLogStore attempted to resolve session storage through
the sandbox-backed filesystem chain.

Add SandboxSessionStorage that implements AtomicSessionStorage via
sandbox exec (base64 read, mkdir+printf+mv atomic write, find for
listing), with Java-side ReentrantLock for CAS atomicity.
ningmao-hlyz added a commit to ningmao-hlyz/agentscope-java that referenced this pull request Oct 16, 2026
agentscope-ai#3567 records two leftovers of the session-history backend switch. This
implements the deletion side, which is the urgent one for the 2.0.5 line:
the journal storage lands there via the agentscope-ai#3441 backport and the gap blocks
retention and privacy-compliance use cases.

- SessionLogStore.delete(SessionKey, RuntimeContext) and
  AtomicSessionStorage.deletePaths(prefix), both optional like list.
- LocalSessionStorage deletes the prefix subtree on POSIX, deepest first
  and refusing symlinked subtrees wholesale; SqliteSessionStorage deletes
  the prefix row range in one statement; InMemorySessionLogStore drops
  the session store.
- HarnessAgent.deleteSession(rc) / (userId, sessionId), symmetric with
  clearContext: acquires the writer lease, so an active execution rejects
  the deletion, then removes the whole SessionKey namespace including the
  inbox and writer seals and drops the local caches. The lease record
  lives inside the deleted namespace and is deliberately not released.
- Retention is intentionally not part of this change; explicit deletion
  is the primitive it would be built on.

clearContext stays as-is and both are documented as distinct: clearing
resets the model-visible context and appends a context_cleared checkpoint
while the journal itself remains.

Addresses agentscope-ai#3567
ningmao-hlyz added a commit to ningmao-hlyz/agentscope-java that referenced this pull request Oct 16, 2026
agentscope-ai#3567 records two leftovers of the session-history backend switch. This
implements the deletion side, which is the urgent one for the 2.0.5 line:
the journal storage lands there via the agentscope-ai#3441 backport and the gap blocks
retention and privacy-compliance use cases.

- SessionLogStore.delete(SessionKey, RuntimeContext) and
  AtomicSessionStorage.deletePaths(prefix), both optional like list.
- LocalSessionStorage deletes the prefix subtree on POSIX, deepest first
  and refusing symlinked subtrees wholesale; SqliteSessionStorage deletes
  the prefix row range in one statement; InMemorySessionLogStore drops
  the session store.
- HarnessAgent.deleteSession(rc) / (userId, sessionId), symmetric with
  clearContext: acquires the writer lease, so an active execution rejects
  the deletion, then removes the whole SessionKey namespace including the
  inbox and writer seals and drops the local caches. The lease record
  lives inside the deleted namespace and is deliberately not released.
- Retention is intentionally not part of this change; explicit deletion
  is the primitive it would be built on.

clearContext stays as-is and both are documented as distinct: clearing
resets the model-visible context and appends a context_cleared checkpoint
while the journal itself remains.

Addresses agentscope-ai#3567
ningmao-hlyz added a commit to ningmao-hlyz/agentscope-java that referenced this pull request Oct 16, 2026
agentscope-ai#3567 records two leftovers of the session-history backend switch. This
implements the deletion side, which is the urgent one for the 2.0.5 line:
the journal storage lands there via the agentscope-ai#3441 backport and the gap blocks
retention and privacy-compliance use cases.

- SessionLogStore.delete(SessionKey, RuntimeContext) and
  AtomicSessionStorage.deletePaths(prefix), both optional like list.
- LocalSessionStorage deletes the prefix subtree on POSIX, deepest first
  and refusing symlinked subtrees wholesale; SqliteSessionStorage deletes
  the prefix row range in one statement; InMemorySessionLogStore drops
  the session store.
- HarnessAgent.deleteSession(rc) / (userId, sessionId), symmetric with
  clearContext: acquires the writer lease, so an active execution rejects
  the deletion, then removes the whole SessionKey namespace including the
  inbox and writer seals and drops the local caches. The lease record
  lives inside the deleted namespace and is deliberately not released.
- Retention is intentionally not part of this change; explicit deletion
  is the primitive it would be built on.

clearContext stays as-is and both are documented as distinct: clearing
resets the model-visible context and appends a context_cleared checkpoint
while the journal itself remains.

Addresses agentscope-ai#3567
Buktal added a commit to Buktal/agentscope-java that referenced this pull request Oct 27, 2026
合并官方 main(基点 3c1c29c 之后 161 个提交,上游版本 2.1.0-SNAPSHOT)。

冲突处理:
- 保留 kst 版本号 revision=2026.10.15-1-kst(根 pom、dependencies-bom、agentscope-bom)
- 保留 KST Nexus distributionManagement(192.168.1.185:8081)
- release-notes 取官方 main 侧(为 kst 侧内容的超集)
- 接受上游删除 agentscope-copilotkit / agui 示例(由 jev 模块取代,PR agentscope-ai#3441)
juruoO-o pushed a commit that referenced this pull request Dec 2, 2026
…2918) (#4450)

Fixes #2918 on `2.0.x`, where the code involved still exists. This is
the final state of #3386, which targeted `main` and was closed when
#3441 removed that code there.

## Problem

With a remote filesystem, session history silently stays on the local
disk.

`ObjectStoreTranscriptStore`, the default transcript store whenever a
filesystem is present, writes each segment through the
`AbstractFilesystem` under `{tenant}/{agentId}/{sessionId}/events/...`,
with a default tenant of `default`. `RemoteFilesystemSpec` routes
`agents/{agentId}/sessions/` to the remote store. The two never match,
so `CompositeFilesystem` sends every segment to the default backend.

There is a second mismatch behind the first one. The route is keyed on
the builder's `agentId`. The transcript middleware is registered on the
inner `ReActAgent`, so it keys the transcript on the agent's display
name. Where the two differ, even a correctly prefixed segment would miss
the route.

## Fix

- `SessionTranscriptWriter` builds the ref as
`agents/{agentId}/sessions/{sessionId}` for the store the builder
installs by default, so segment keys hit the sessions route. The builder
creates that store through the new
`ObjectStoreTranscriptStore.onSessionsRoute(filesystem)`, and only a
store created that way is keyed on the route. A store supplied through
`transcriptStore(...)`, whatever its class, keeps the layout it was
configured with.
- The ref uses the id the routes were built with. `HarnessAgent` passes
`resolvedAgentId` through a new `TranscriptMiddleware` constructor
argument to the writer. Callers that do not pass it keep using their own
agent id.
- The Javadoc of `transcriptStore`, `transcriptTenant`,
`TranscriptStore` and `TranscriptRef` says which store uses which
layout: `transcriptTenant` applies to every supplied store, and the
default store's layout has no tenant segment.

**Scoped after review.** The first version keyed every
`ObjectStoreTranscriptStore` on the route, because the writer tested the
class. A store supplied explicitly would have been re-keyed as well,
from `{rootPrefix}{tenant}/{agentId}/{sessionId}` to
`{rootPrefix}agents/{agentId}/sessions/{sessionId}`: segments already
written under its tenant prefix would no longer be listed, and tenants
sharing a backend with the same agent and session ids would have shared
one namespace. The default store is the only one re-keyed now.

## Tests

`SessionTranscriptStoreRoutingTest` (new, 10 cases).

The default store, built the way the builder builds it:

- segments reach the store behind the sessions route when the routing id
differs from the caller's display name;
- the same when no routing id is given and the caller's id is the routed
one;
- a blank routing id is treated like none;
- a `TranscriptMiddleware` built with the three-argument constructor,
which passes no routing id, keys the segments on the agent's name;
- end to end: a built `HarnessAgent` with `agentId("agent-qa")`, a
different display name and a `RemoteFilesystemSpec` puts its segments
into the store under `agents/agent-qa/...`, nothing under the display
name, and no `events` directory on the local disk.

What must not change:

- a `TranscriptMiddleware` built with the one-argument constructor,
which has no transcript store, writes the local session log and nothing
else;
- a store that is not an `ObjectStoreTranscriptStore` keeps the tenant
layout;
- a supplied `ObjectStoreTranscriptStore` keeps its prefix and the
tenant layout, behind the same routes:
`tenants/acme/team-a/agent-a/session-1/events`, where the previous head
wrote `tenants/acme/agents/agent-a/sessions/session-1/events`;
- two tenants on one supplied store keep separate namespaces, with the
same agent and session ids: the previous head wrote both into one
directory on the route;
- end to end: the same agent as above, built with `transcriptStore(new
ObjectStoreTranscriptStore(...))` and a tenant, keeps the tenant layout
and puts nothing on the sessions route: the previous head's segments
reached the store of the route.

On unmodified `2.0.x` the two route tests and the end-to-end test of the
default store fail, and the tenant-layout test passes before and after.
The three supplied-store cases fail on the previous head, `287609b5`.
Where the other cases stand is placed by the mutants below, since they
need the store factory and cannot run on unmodified code.

Each piece of the fix was then broken on its own:

| Broken piece | Caught by |
| --- | --- |
| writer keeps the tenant layout for every store | the two route tests
and the end-to-end test of the default store |
| writer keys every `ObjectStoreTranscriptStore` on the route (the code
before the scoping) | the three supplied-store cases |
| builder installs a plain store instead of the one on the route |
`segmentsOfABuiltAgentReachTheSessionsRouteOfItsAgentId` |
| factory does not mark the store as on the route | the five
default-store cases |
| `isOnSessionsRoute()` answers false for every store | the five
default-store cases |
| `isOnSessionsRoute()` answers true for every store | the three
supplied-store cases |
| the one-argument constructor marks a supplied store as on the route |
`segmentsOfABuiltAgentWithASuppliedStoreKeepTheTenantLayout` |
| the three-argument constructor marks a supplied store as on the route
| `aStoreSuppliedToTheBuilderKeepsItsPrefixAndTheTenantLayout`,
`tenantsOfASuppliedStoreKeepSeparateNamespaces` |
| writer ignores the routing id |
`segmentsHitTheSessionsRouteOfTheRoutingId`, end to end |
| writer falls back to the tenant when no routing id is given |
`segmentsHitTheSessionsRouteOfTheCallersIdWhenNoRoutingIdIsGiven` |
| writer does not treat a blank routing id as absent |
`aBlankRoutingId_fallsBackToTheCallersId` |
| `HarnessAgent` passes the display name instead of `resolvedAgentId` |
end to end |
| `HarnessAgent` does not thread the id | end to end |
| `TranscriptMiddleware` does not hand the id to the writer | end to end
|
| the three-argument constructor of the middleware passes the tenant on
as routing id |
`aMiddlewareWithoutARoutingId_keysTheSegmentsOnTheAgentsName` |

All are caught. The three that break the threading between
`HarnessAgent` and the writer are caught by the end-to-end test alone,
which is why it is there. `withRuntimeContext` and `withFilesystem`
carry the mark over to their copies; nothing reads it from a copy, so no
test can tell and no mutant is listed. Every line this PR adds to
production code is covered on Linux, branches included.

## Segments written before this change

They are not migrated. They were written to the default backend, which
is the local disk of the node that wrote them; that is the bug. The
local context file remains the primary copy on that node. Nothing reads
the old segment files afterwards, since the store lists, compacts and
deletes by ref and the ref now points at the new layout, so they stay in
place until the workspace is removed.

Only the default store is affected. A supplied store writes where it
always did.

## Verification

The full `agentscope-harness` suite was run before and after the change
on Windows and in a Linux container. The failing lists are identical;
the only difference is the added tests. The Windows numbers are from
before the last two commits, which add tests and scope the change to the
default store; the current head passes the Windows job in CI.

| Environment | Before | After | Failing before and after |
| --- | --- | --- | --- |
| Windows | 1619 run, 5 F + 12 E | 1623 run, 5 F + 12 E (1629 with the
last two commits, green in CI) | Windows path checks (`Sandbox workspace
root must be an absolute path`), 2 × `MemoryConsolidatorCommitGateTest`,
`MemoryFlushSandboxIndependenceTest` |
| Linux container (`maven:3.9-eclipse-temurin-17`) | 1619 run, 3 F + 1 E
| 1629 run, 3 F + 1 E | 3 × `BaseSandboxFilesystemTest.edit_*`
(`python3: not found` in the image),
`MarketplaceStagerOrphanGcTest.unreadableEntryDoesNotFailStage` |

No existing test depends on the old key layout of the default store.

**CI.** The first run of this PR was red for reasons that lay in the
base branch: since the backports of 2026-11-13, every PR against `2.0.x`
failed the Windows job, at first in `agentscope-core`, and had its
Ubuntu job cancelled. Those causes are fixed by #4454 and #4461, merged
into `2.0.x` on 2026-11-27; the harness part went in with #4461. The
runs since, including the one on the current head, are green on both
systems. One Windows run in between, on `108fae28`, stopped on
`HttpSelfRegistrationTest` in `agentscope-extensions-aistio`: the
shutdown race of that module (#3132), unrelated to this change; the next
run passed. The local before/after runs recorded above were made before
the fixes existed, which is why the "before" column lists failures that
the branch no longer has.
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