Skip to content

Remove Runtime dependencies on Management during Agent execution - #4552

Open
Jasonxia007 wants to merge 92 commits into
developfrom
refactor/runtime-management-independence
Open

Jasonxia007 wants to merge 92 commits into
developfrom
refactor/runtime-management-independence

Conversation

@Jasonxia007

Copy link
Copy Markdown
Collaborator

Changes

  • Route 17 public Agent execution and control entrypoints from Gateway to Runtime.
  • Move snapshot preparation, conversation projection, Creator execution and history, manual automation, and Memory delivery to Runtime. Read runtime resources through shared storage and scoped contracts.
  • Remove 27 outbound Management callbacks and the retired Management AgentOS URL. Keep legacy inbound handlers for older replicas during rollout.

Verification

  • 753 targeted backend tests, 51 signed AgentOS transport tests, and 8 OpenJiuwen core tests passed.
  • Workbench clarification, Agent Creator, and Skill Creator passed in a browser. The Skill Creator run was ae784e71e0984a439a08ae040cafd536. The Agent Creator runs were 1d6c20bcaee4479594ff1b164d9ae424 and f0a8e3fca1384604a6c0df1c2fa9ed9c.
  • Management outage and Runtime cold start passed for run a139081c897f43da84dc4d81e415cc09, retry 9381046f4e33445dbf3a598bb03982ff, and cancellation 5384b35f0f3343a1b44ec8ce26aac7a6.
  • The Memory outage probe wrote record 29 to PostgreSQL and delivered it to the isolated Mem0 protocol fixture. Associated run 387a6fa0d80b40fd8436227acf1088b2.
  • Two Runtime replicas passed cross-replica replay, cancellation, duplicate admission rejection, and owner loss recovery.
  • The legacy Gateway, direct routing, and rollback stages shared conversation 320 and preserved all six messages. Run IDs were 6324650ed1f344c0ba0f7699b1329894, 8e1870f1d68a4e2c82079c1ae66aac53, and 271aecfbd64548cfad8ccea1cab15dec.
  • Helm lint and rendering passed. Runtime also started in the isolated Linux image with Management imports blocked.

Rollout

Deploy compatible Management and the upgraded Runtime pool before switching the public Gateway routes. Keep old handlers and the original Run owners available while in-flight executions finish. For rollback, restore the legacy route and callback reachability before reverting Runtime replicas.

# Conflicts:
#	test-e2e/cases/AOS-TRANSPORT-D3-001/test.py
Preserve scoped retries, Agent deletion status, and current collaborator pins in the Runtime paths.

This branch has not been deployed

No deployments
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.

1 participant