Draft
[WIP]feat(gateway): add the ADX dynamic-instance Worker trial #496
[WIP]feat(gateway): add the ADX dynamic-instance Worker trial #496
Draft
yutaoJustinBieber1223Add on 1 day ago
Total: 156 files changed+39209-358
Magent_gateway/app_gateway.py+91-6File content is under review, please try again later
@@ -0,0 +1,111 @@
1+# Copyright (c) Huawei Technologies Co., Ltd. 2026. All rights reserved.
2+ 
3+"""Read-only assembly gate for the explicitly enabled sharded personal Cron."""
4+ 
5+from __future__ import annotations
6+ 
7+from typing import Any
8+ 
9+from agent_gateway.cron.ownership import CronOwnership
10+from agent_gateway.cron.preflight import CronPreflightReport, inspect_cron_store
11+from agent_gateway.cron.store import FileCronJobStore
12+ 
13+ 
14+async def inspect_controlled_cron(
15+ ownership: CronOwnership, *, config: dict[str, Any] | None = None,
16+ store: FileCronJobStore | None = None,
17+ allow_login_credentials: bool = False,
18+ allow_project_jobs: bool = True,
19+ static_routes=None,
20+) -> CronPreflightReport:
21+ from agent_gateway.common.config import get_config
22+ from agent_gateway.common.cron_settings import load_cron_store_settings
23+ from agent_gateway.enterprise import is_enterprise
24+ 
25+ if is_enterprise():
26+ raise ValueError('sharded Cron requires the personal file backend')
27+ config = get_config() if config is None else config
28+ if not isinstance(config, dict):
29+ raise ValueError('invalid Cron preflight configuration')
30+ gateway = config.get('gateway', {})
31+ if not isinstance(gateway, dict) or not isinstance(gateway.get('cron', {}), dict):
32+ raise ValueError('invalid Cron preflight configuration')
33+ settings = load_cron_store_settings(config)
34+ if settings.backend != 'file':
35+ raise ValueError('sharded Cron requires the personal file backend')
36+ proactive = config.get('proactive_recommendation', {})
37+ if not isinstance(proactive, dict):
38+ raise ValueError('invalid Cron preflight configuration')
39+ enabled = proactive.get('enabled', False)
40+ if type(enabled) is not bool:
41+ raise ValueError('invalid Cron preflight configuration')
42+ backend = store if store is not None else FileCronJobStore(path=settings.file_path)
43+ return await inspect_cron_store(
44+ backend, ownership, proactive_enabled=enabled,
45+ allow_login_credentials=allow_login_credentials, allow_project_jobs=allow_project_jobs,
46+ **({} if static_routes is None else {
47+ 'allowed_users': frozenset(target.user_id for target in static_routes.targets),
48+ }),
49+ )
50+ 
51+ 
52+async def preflight_controlled_cron(
53+ ownership: CronOwnership, *, config: dict[str, Any] | None = None,
54+ store: FileCronJobStore | None = None, allow_login_credentials: bool = False,
55+ allow_project_jobs: bool = True,
56+) -> CronPreflightReport:
57+ """Refuse to activate Cron while an enabled record uses an unsupported capability."""
58+ report = await inspect_controlled_cron(
59+ ownership, config=config, store=store, allow_login_credentials=allow_login_credentials,
60+ allow_project_jobs=allow_project_jobs,
61+ )
62+ if not report.ready:
63+ raise ValueError('Cron preflight rejected unsupported enabled capabilities')
64+ return report
65+ 
66+ 
67+async def require_controlled_cron(
68+ ownership: CronOwnership, *, config: dict[str, Any] | None = None,
69+ allow_project_jobs: bool = False, static_routes=None,
70+) -> CronPreflightReport:
71+ """Preflight with a message that names only blocking job identifiers and reasons."""
72+ report = await inspect_controlled_cron(
73+ ownership, config=config, allow_project_jobs=allow_project_jobs,
74+ **({} if static_routes is None else {'static_routes': static_routes}),
75+ )
76+ if not report.ready:
77+ # ``issues`` carries operational identifiers only: never a task body,
78+ # description or credential reference.
79+ blockers = ", ".join(
80+ f"{issue.job_id or 'config'}: {issue.reason}" for issue in report.issues if issue.blocking
81+ )
82+ raise ValueError(f"Cron preflight rejected unsupported enabled capabilities ({blockers})")
83+ return report
84+ 
85+ 
86+def check_cron_cli(worker_count: int, *, static_routes=None) -> int:
87+ """Inspect a static snapshot without preparing a runtime or touching AS."""
88+ import asyncio
89+ from dataclasses import asdict
90+ import json
91+ 
92+ import yaml
93+ 
94+ from agent_gateway.common.ingress_identity import LocalIdentityPolicy
95+ from agent_gateway.common.worker_affinity import WorkerManifest
96+ 
97+ ownership = (CronOwnership(WorkerManifest(tuple(range(worker_count))), LocalIdentityPolicy())
98+ if static_routes is None else CronOwnership(static_routes.manifest, static_routes.identity_policy))
99+ result: dict[str, Any] = {'scope': 'static_file_only', 'agentserver_checked': False}
100+ try:
101+ report = asyncio.run(inspect_controlled_cron(
102+ ownership, allow_project_jobs=False,
103+ **({} if static_routes is None else {'static_routes': static_routes}),
104+ ))
105+ except (ValueError, OSError, AttributeError, TypeError, yaml.YAMLError):
106+ # YAML/parser and OS errors may carry paths or values; do not echo them.
107+ result.update(ready=False, error='invalid_or_unreadable_cron_configuration_or_snapshot')
108+ else:
109+ result.update(asdict(report), ready=report.ready)
110+ print(json.dumps(result, ensure_ascii=True))
111+ return 0 if result['ready'] else 1
@@ -13,7 +13,7 @@ from typing import AbstractSet, Any, TYPE_CHECKING
13if TYPE_CHECKING:13if TYPE_CHECKING:
14 from agent_gateway.auth.credential_access import CredentialAccess14 from agent_gateway.auth.credential_access import CredentialAccess
15 15 
16-from agent_gateway.auth.credential_access import LOGIN_REFRESH_WAIT_S16+from agent_gateway.auth.credential_access import CredentialAccessError, LOGIN_REFRESH_WAIT_S
17from e2a.message import Message17from e2a.message import Message
18from agent_gateway.channel_manager.web.req_method_routing import (18from agent_gateway.channel_manager.web.req_method_routing import (
19 ROUTE_DENIED,19 ROUTE_DENIED,
@@ -181,8 +181,9 @@ def _inject_session_work_mode(msg: Message) -> None:
181class InboundQueue:181class InboundQueue:
182 """Gateway internal inbound service for forwarding channel messages to MessageHandler."""182 """Gateway internal inbound service for forwarding channel messages to MessageHandler."""
183 183 
184- def __init__(self, inbound_handler):184+ def __init__(self, inbound_handler, *, error_callback=None):
185 self._inbound_handler = inbound_handler185 self._inbound_handler = inbound_handler
186+ self._error_callback = error_callback
186 self._queue: asyncio.Queue = asyncio.Queue()187 self._queue: asyncio.Queue = asyncio.Queue()
187 self._task: asyncio.Task | None = None188 self._task: asyncio.Task | None = None
188 self._running = False189 self._running = False
@@ -218,6 +219,14 @@ class InboundQueue:
218 handled = self._inbound_handler(msg)219 handled = self._inbound_handler(msg)
219 if asyncio.iscoroutine(handled):220 if asyncio.iscoroutine(handled):
220 await handled221 await handled
222+ except CredentialAccessError as error:
223+ if self._error_callback is None:
224+ logger.warning("[App] Gateway credential access failed: id=%s", getattr(msg, "id", None))
225+ else:
226+ try:
227+ await self._error_callback(msg, error)
228+ except Exception:
229+ logger.exception("[App] Gateway credential failure response could not be delivered")
221 except Exception: # noqa: BLE001230 except Exception: # noqa: BLE001
222 logger.exception("[App] Gateway inbound handling failed: id=%s", getattr(msg, "id", None))231 logger.exception("[App] Gateway inbound handling failed: id=%s", getattr(msg, "id", None))
223 232 
@@ -257,9 +266,21 @@ class MessagePreprocessor:
257 )266 )
258 normalized = _normalize_gateway_message(msg, apply_model_auth=False)267 normalized = _normalize_gateway_message(msg, apply_model_auth=False)
259 model_name = str(normalized.params.get('model_name') or '').strip()268 model_name = str(normalized.params.get('model_name') or '').strip()
269+ credential_access = self.credential_access
270+ credential_selector = getattr(credential_access, 'for_user', None)
271+ if credential_selector is not None:
272+ user_id = getattr(normalized, 'user_id', None)
273+ if type(user_id) is not str or not user_id:
274+ return normalized
275+ credential_access = credential_selector(user_id)
276+ 
260 with trace_stage("preprocess.credentials"):277 with trace_stage("preprocess.credentials"):
261 try:278 try:
262- auth = await self.credential_access.request_model_auth(_auth_session_id(msg), model_name)279+ auth = await credential_access.request_model_auth(
280+ _auth_session_id(msg), model_name,
281+ )
282+ except CredentialAccessError:
283+ raise
263 except Exception: # Login availability must not break request forwarding.284 except Exception: # Login availability must not break request forwarding.
264 logger.debug('[App] Credential lookup failed; forwarding without login credentials', exc_info=True)285 logger.debug('[App] Credential lookup failed; forwarding without login credentials', exc_info=True)
265 auth = None286 auth = None
@@ -269,13 +290,22 @@ class MessagePreprocessor:
269 290 
270 async def forward(self, msg: Any, channel_manager: Any) -> bool:291 async def forward(self, msg: Any, channel_manager: Any) -> bool:
271 normalized = await self._prepare(msg)292 normalized = await self._prepare(msg)
272- method = request_method_name(getattr(msg, "req_method", None))293+ await self._deliver(normalized, msg, channel_manager)
273- if method == "session.create":
274- self.inject_work_mode(normalized)
275- await channel_manager.deliver_to_message_handler(normalized)
276 logger.info("[App] Gateway inbound -> MessageHandler: id=%s channel_id=%s", msg.id, msg.channel_id)294 logger.info("[App] Gateway inbound -> MessageHandler: id=%s channel_id=%s", msg.id, msg.channel_id)
277 return False295 return False
278 296 
297+ async def _deliver(self, normalized: Any, msg: Any, channel_manager: Any) -> None:
298+ accepted = False
299+ try:
300+ if request_method_name(getattr(msg, "req_method", None)) == "session.create":
301+ self.inject_work_mode(normalized)
302+ accepted = await channel_manager.deliver_to_message_handler(normalized) is not False
303+ finally:
304+ if not accepted:
305+ release = getattr(self.credential_access, "release_request", None)
306+ if release is not None:
307+ release(normalized)
308+ 
279 def for_channel(309 def for_channel(
280 self,310 self,
281 channel_manager: Any,311 channel_manager: Any,
@@ -297,9 +327,7 @@ class MessagePreprocessor:
297 if route in (ROUTE_LOCAL, ROUTE_DENIED):327 if route in (ROUTE_LOCAL, ROUTE_DENIED):
298 return False328 return False
299 normalized = await self._prepare(msg)329 normalized = await self._prepare(msg)
300- if method == "session.create":330+ await self._deliver(normalized, msg, channel_manager)
301- self.inject_work_mode(normalized)
302- await channel_manager.deliver_to_message_handler(normalized)
303 logger.debug("[App] %s 入站 -> MessageHandler: id=%s channel_id=%s", source_label, msg.id, msg.channel_id)331 logger.debug("[App] %s 入站 -> MessageHandler: id=%s channel_id=%s", source_label, msg.id, msg.channel_id)
304 return route == ROUTE_FORWARD_UNKNOWN or method in no_local_methods332 return route == ROUTE_FORWARD_UNKNOWN or method in no_local_methods
305 333 
Aagent_gateway/application/multiprocess.py+236-0File content is under review, please try again later
Aagent_gateway/application/personal_settings.py+190-0File content is under review, please try again later
Aagent_gateway/application/personal_tui.py+343-0File content is under review, please try again later
Aagent_gateway/application/personal_web_operations.py+104-0File content is under review, please try again later
@@ -7,8 +7,11 @@ from __future__ import annotations
7from collections.abc import Callable7from collections.abc import Callable
8from dataclasses import dataclass8from dataclasses import dataclass
9import os9import os
10+import time
10from typing import Any11from typing import Any
11 12 
13+from e2a.message import EventType, Message
14+ 
12from agent_gateway.application.inbound import InboundQueue, MessagePreprocessor15from agent_gateway.application.inbound import InboundQueue, MessagePreprocessor
13from agent_gateway.routing.protocol_runtime import ProtocolRuntime, ProtocolRuntimeConfig, RouteConfig16from agent_gateway.routing.protocol_runtime import ProtocolRuntime, ProtocolRuntimeConfig, RouteConfig
14from agent_gateway.routing.route_binding import GatewayRouteBinding17from agent_gateway.routing.route_binding import GatewayRouteBinding
@@ -71,6 +74,8 @@ async def assemble_tui_acp(
71 heartbeat_controller: Any,74 heartbeat_controller: Any,
72 preprocessor: MessagePreprocessor,75 preprocessor: MessagePreprocessor,
73 log_stage: Callable[[str], None],76 log_stage: Callable[[str], None],
77+ personal_tui: bool = False,
78+ web_session_busy: Callable[..., bool] | None = None,
74) -> TuiAcpAssembly:79) -> TuiAcpAssembly:
75 from agent_gateway.channel_manager.web.app_web_handlers import (80 from agent_gateway.channel_manager.web.app_web_handlers import (
76 _FORWARD_REQ_METHODS, _FORWARD_NO_LOCAL_HANDLER_METHODS, _DummyBus,81 _FORWARD_REQ_METHODS, _FORWARD_NO_LOCAL_HANDLER_METHODS, _DummyBus,
@@ -101,10 +106,20 @@ async def assemble_tui_acp(
101 if callable(subscribe_fn):106 if callable(subscribe_fn):
102 subscribe_fn(channel_manager)107 subscribe_fn(channel_manager)
103 108 
109+ async def publish_credential_error(message, error):
110+ acp = message.channel_id == "acp"
111+ payload = {"error": str(error), "code": "CREDENTIAL_SERVICE_FAILED"}
112+ await protocol_runtime.send(Message(
113+ id=message.id, type="event" if acp else "res", channel_id=message.channel_id,
114+ session_id=message.session_id, params={}, timestamp=time.time(), ok=False,
115+ user_id=message.user_id, agent_ref=message.agent_ref, metadata=message.metadata,
116+ event_type=EventType.CHAT_ERROR if acp else None, payload=payload,
117+ ))
118+ 
104 acp_inbound_server = InboundQueue(119 acp_inbound_server = InboundQueue(
105- lambda msg: preprocessor.forward(msg, channel_manager)120+ lambda msg: preprocessor.forward(msg, channel_manager),
121+ error_callback=publish_credential_error,
106 )122 )
107- await acp_inbound_server.start()
108 123 
109 route_bindings = [124 route_bindings = [
110 _build_acp_route_binding(125 _build_acp_route_binding(
@@ -137,6 +152,13 @@ async def assemble_tui_acp(
137 )152 )
138 protocol_runtime = ProtocolRuntime(protocol_runtime_config, _DummyBus())153 protocol_runtime = ProtocolRuntime(protocol_runtime_config, _DummyBus())
139 protocol_runtime.message_handler_ref = message_handler154 protocol_runtime.message_handler_ref = message_handler
155+ if personal_tui:
156+ from agent_gateway.application.personal_tui import PersonalTuiRequests
157+ 
158+ tui_route = protocol_runtime_config.routes["/tui"]
159+ tui_route.unbound_request_handler = PersonalTuiRequests(
160+ protocol_runtime, client, web_session_busy,
161+ ).handle
140 for binding in route_bindings:162 for binding in route_bindings:
141 route_config = protocol_runtime_config.routes[binding.path]163 route_config = protocol_runtime_config.routes[binding.path]
142 # tui 出站已由 TuiChannel 接管(register_channel_with_inbound),164 # tui 出站已由 TuiChannel 接管(register_channel_with_inbound),
@@ -148,5 +170,6 @@ async def assemble_tui_acp(
148 if binding.install is not None:170 if binding.install is not None:
149 binding.install(protocol_runtime)171 binding.install(protocol_runtime)
150 protocol_runtime.on_message(acp_inbound_server.handle_message)172 protocol_runtime.on_message(acp_inbound_server.handle_message)
173+ await acp_inbound_server.start()
151 log_stage("gateway_routes_registered")174 log_stage("gateway_routes_registered")
152 return TuiAcpAssembly(tui_channel, acp_inbound_server, protocol_runtime)175 return TuiAcpAssembly(tui_channel, acp_inbound_server, protocol_runtime)
@@ -21,10 +21,39 @@ from e2a.message import (
21)21)
22from agent_gateway.channel_manager.web.media import normalize_chat_media_attachments22from agent_gateway.channel_manager.web.media import normalize_chat_media_attachments
23from agent_gateway.application.inbound import MessagePreprocessor23from agent_gateway.application.inbound import MessagePreprocessor
24+from agent_gateway.application.personal_web_operations import PERSONAL_WEB_OPERATIONS, protect_personal_web_operation
25+from agent_gateway.application.personal_settings import PERSONAL_SETTINGS_METHODS, protect_settings_handler
24 26 
25logger = logging.getLogger("gateway")27logger = logging.getLogger("gateway")
26 28 
27 29 
30+class _PersonalSettingsRegistration:
31+ """Registration-only proxy used by the account-free personal Worker.
32+ 
33+ Nothing else changes: every attribute is forwarded to the channel and no
34+ global hook is installed. A settings method is registered behind the Web
35+ Origin and parameter gate, and it never takes the generic forwarding path.
36+ """
37+ 
38+ def __init__(self, channel: Any) -> None:
39+ object.__setattr__(self, "_channel", channel)
40+ 
41+ def __getattr__(self, name: str) -> Any:
42+ return getattr(self._channel, name)
43+ 
44+ def __setattr__(self, name: str, value: Any) -> None:
45+ setattr(self._channel, name, value)
46+ 
47+ def register_method(self, method: str, handler: Any, *, local_only: bool = False) -> None:
48+ if method in PERSONAL_SETTINGS_METHODS:
49+ handler = protect_settings_handler(self._channel, method, handler)
50+ local_only = True
51+ elif method in PERSONAL_WEB_OPERATIONS:
52+ handler = protect_personal_web_operation(self._channel, method, handler)
53+ local_only = True
54+ self._channel.register_method(method, handler, local_only=local_only)
55+ 
56+ 
28def assemble_web(57def assemble_web(
29 *,58 *,
30 agent_client: Any,59 agent_client: Any,
@@ -44,6 +73,8 @@ def assemble_web(
44 log_stage: Callable[[str], None],73 log_stage: Callable[[str], None],
45 auth_service_provider: Callable[[], AuthService] | None = None,74 auth_service_provider: Callable[[], AuthService] | None = None,
46 credential_update_sink: CredentialUpdateSink | None = None,75 credential_update_sink: CredentialUpdateSink | None = None,
76+ personal_settings: bool = False,
77+ require_git_activity_snapshot: bool = False,
47) -> tuple[Any, asyncio.Event]:78) -> tuple[Any, asyncio.Event]:
48 from agent_gateway.channel_manager.protocol.web_proxy.web_proxy_listen import register_3rdagent_web_method79 from agent_gateway.channel_manager.protocol.web_proxy.web_proxy_listen import register_3rdagent_web_method
49 from agent_gateway.channel_manager.web.app_web_handlers import (80 from agent_gateway.channel_manager.web.app_web_handlers import (
@@ -61,6 +92,7 @@ def assemble_web(
61 port=web_port,92 port=web_port,
62 path=web_path,93 path=web_path,
63 ws_permessage_deflate=web_ws_deflate,94 ws_permessage_deflate=web_ws_deflate,
95+ require_git_activity_snapshot=require_git_activity_snapshot,
64 )96 )
65 web_channel = WebChannel(97 web_channel = WebChannel(
66 web_config, _DummyBus(), agent_client=client,98 web_config, _DummyBus(), agent_client=client,
@@ -121,7 +153,7 @@ def assemble_web(
121 153 
122 _register_web_handlers(154 _register_web_handlers(
123 WebHandlersBindParams(155 WebHandlersBindParams(
124- channel=web_channel,156+ channel=_PersonalSettingsRegistration(web_channel) if personal_settings else web_channel,
125 agent_client=client,157 agent_client=client,
126 message_handler=message_handler,158 message_handler=message_handler,
127 channel_manager=channel_manager,159 channel_manager=channel_manager,
@@ -130,6 +162,7 @@ def assemble_web(
130 cron_controller=cron_controller,162 cron_controller=cron_controller,
131 heartbeat_controller=heartbeat_controller,163 heartbeat_controller=heartbeat_controller,
132 updater_service=updater_service,164 updater_service=updater_service,
165+ personal_settings=personal_settings,
133 )166 )
134 )167 )
135 168 
Aagent_gateway/application/worker_cron.py+712-0File content is under review, please try again later
Aagent_gateway/application/worker_cron_commands.py+857-0File content is under review, please try again later
Aagent_gateway/application/worker_cron_ingress.py+119-0File content is under review, please try again later
Aagent_gateway/application/worker_cron_models.py+232-0File content is under review, please try again later
Aagent_gateway/application/worker_data.py+567-0File content is under review, please try again later
Aagent_gateway/application/worker_group.py+251-0File content is under review, please try again later
Aagent_gateway/application/worker_instance_push.py+344-0File content is under review, please try again later
Aagent_gateway/application/worker_instance_routed_client.py+629-0File content is under review, please try again later
Aagent_gateway/application/worker_instance_southbound.py+99-0File content is under review, please try again later
Aagent_gateway/application/worker_route_provider.py+45-0File content is under review, please try again later
Aagent_gateway/application/worker_routed_client.py+522-0File content is under review, please try again later
Aagent_gateway/application/worker_routed_cron_commands.py+37-0File content is under review, please try again later
Aagent_gateway/application/worker_routed_northbound.py+65-0File content is under review, please try again later
Aagent_gateway/application/worker_routed_push.py+427-0File content is under review, please try again later
Aagent_gateway/auth/control_credentials.py+648-0File content is under review, please try again later
Aagent_gateway/auth/control_model_catalog.py+217-0File content is under review, please try again later
Aagent_gateway/auth/credential_issuance.py+228-0File content is under review, please try again later
Magent_gateway/auth/local_credential_access.py+208-7File content is under review, please try again later
Aagent_gateway/auth/remote_model_catalog.py+104-0File content is under review, please try again later
Magent_gateway/auth/session_login_bindings.py+18-4File content is under review, please try again later
Magent_gateway/auth/session_store.py+42-0File content is under review, please try again later
Aagent_gateway/auth/worker_credential_pool.py+201-0File content is under review, please try again later
Aagent_gateway/auth/worker_credential_runtime.py+579-0File content is under review, please try again later
Magent_gateway/channel_manager/channel_manager.py+3-2File content is under review, please try again later
Magent_gateway/channel_manager/protocol/acp/acp_connect.py+7-0File content is under review, please try again later
Magent_gateway/channel_manager/tui/tui_channel.py+24-0File content is under review, please try again later
Magent_gateway/channel_manager/web/app_web_handlers.py+71-7File content may contain Illegal information
Magent_gateway/channel_manager/web/designer_handlers.py+180-0File content is under review, please try again later
Magent_gateway/channel_manager/web/git_ws_handler.py+63-1File content is under review, please try again later
Magent_gateway/channel_manager/web/web_connect.py+60-4File content is under review, please try again later
Magent_gateway/channel_manager/web/web_http_auth.py+9-2File content is under review, please try again later
Aagent_gateway/common/instance_routes.py+232-0File content is under review, please try again later
Aagent_gateway/common/southbound_routes.py+231-0File content is under review, please try again later
Aagent_gateway/cron/control_commands.py+435-0File content is under review, please try again later
Aagent_gateway/cron/owned_store.py+148-0File content is under review, please try again later
Aagent_gateway/cron/ownership.py+29-0File content is under review, please try again later
Aagent_gateway/cron/preflight.py+90-0File content is under review, please try again later
Aagent_gateway/extensions/adx/instance_backend.py+407-0File content is under review, please try again later
Magent_gateway/extensions/adx/router_client.py+10-1File content is under review, please try again later
Magent_gateway/message_handler/message_handler.py+234-24File content is under review, please try again later
Aagent_gateway/processes/pool.py+445-0File content is under review, please try again later
Aagent_gateway/processes/worker.py+328-0File content is under review, please try again later
Magent_gateway/routing/e2a_proxy.py+75-1File content is under review, please try again later
Aagent_gateway/routing/owner_delivery.py+97-0File content is under review, please try again later
Magent_gateway/routing/protocol_runtime.py+54-2File content is under review, please try again later
Magent_gateway/runtime/cron/store.py+142-7File content is under review, please try again later
Magent_gateway/southbound/control/managed.py+4-0File content is under review, please try again later
Magent_gateway/southbound/data/transport.py+27-6File content is under review, please try again later
Magent_gateway/southbound/data/websocket.py+112-28File content is under review, please try again later
Magent_gateway/southbound/orchestration/agent_manager.py+58-3File content is under review, please try again later
Aagent_gateway/southbound/orchestration/instance_lifecycle.py+312-0File content is under review, please try again later
Aagent_gateway/southbound/orchestration/instance_provider.py+369-0File content is under review, please try again later
Magent_gateway/southbound/orchestration/managed_router.py+80-188File content is under review, please try again later
Aagent_gateway/transport/protocol_connection_runtime.py+379-0File content is under review, please try again later
Mdocs/en/reference/cli-and-environment.md+88-0File content is under review, please try again later
Mdocs/zh/reference/cli-and-environment.md+88-0File content is under review, please try again later
Atests/integration/gateway/test_controlled_accounts.py+86-0File content is under review, please try again later
Atests/integration/gateway/test_gateway_adx_worker.py+132-0File content is under review, please try again later
Atests/integration/gateway/test_worker_cron_group.py+615-0File content is under review, please try again later
Mtests/unit_tests/extensions/test_adx_environment.py+19-11File content is under review, please try again later
Mtests/unit_tests/extensions/test_agentos_agent_manager.py+194-0File content is under review, please try again later
Atests/unit_tests/gateway/instance_fakes.py+298-0File content is under review, please try again later
Mtests/unit_tests/gateway/test_agent_client_reconnect_headers.py+39-1File content is under review, please try again later
Atests/unit_tests/gateway/test_agentos_instance_lifecycle.py+646-0File content is under review, please try again later
Atests/unit_tests/gateway/test_agentos_instance_provider.py+431-0File content is under review, please try again later
Atests/unit_tests/gateway/test_control_blocking_work.py+425-0File content is under review, please try again later
Atests/unit_tests/gateway/test_control_credentials.py+357-0File content is under review, please try again later
Atests/unit_tests/gateway/test_control_model_catalog_network.py+108-0File content is under review, please try again later
Atests/unit_tests/gateway/test_control_model_snapshot.py+308-0File content is under review, please try again later
Atests/unit_tests/gateway/test_credential_issuance_registry.py+148-0File content is under review, please try again later
Atests/unit_tests/gateway/test_cron_control_commands.py+687-0File content is under review, please try again later
Atests/unit_tests/gateway/test_cron_group_preflight.py+47-0File content is under review, please try again later
Atests/unit_tests/gateway/test_cron_ownership.py+31-0File content is under review, please try again later
Atests/unit_tests/gateway/test_gateway_multiprocess_entry.py+43-0File content is under review, please try again later
Atests/unit_tests/gateway/test_instance_routes.py+81-0File content is under review, please try again later
Atests/unit_tests/gateway/test_login_model_snapshot.py+219-0File content is under review, please try again later
Atests/unit_tests/gateway/test_personal_project_git.py+196-0File content is under review, please try again later
Atests/unit_tests/gateway/test_remote_credential_failure.py+522-0File content is under review, please try again later
Atests/unit_tests/gateway/test_remote_credential_network.py+165-0File content is under review, please try again later
Atests/unit_tests/gateway/test_remote_model_snapshot.py+176-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_credential_pool.py+276-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_credential_runtime.py+868-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_credential_services.py+227-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron.py+830-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron_commands.py+1287-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron_ingress.py+254-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron_models.py+291-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron_process.py+354-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_cron_workspace.py+333-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_instance_backend.py+859-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_instance_push.py+445-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_instance_routed_client.py+743-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_instance_southbound.py+288-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_listener_gates.py+87-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_route_provider.py+128-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_routed_client.py+367-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_routed_credentials.py+86-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_routed_ingress.py+190-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_routed_northbound.py+231-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_routed_push.py+561-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_session_routes.py+164-0File content is under review, please try again later
Atests/unit_tests/gateway/test_worker_static_process.py+338-0File content is under review, please try again later