fix(orchestrator): keep host client dependency-free
tracker-policy-pr / check-pr (pull_request) Failing after 8s
test / unit (pull_request) Successful in 54s
test / image-input-builds (pull_request) Successful in 58s
test / integration-docker (pull_request) Failing after 59s
test / coverage (pull_request) Has been skipped
lint / lint (push) Successful in 3m10s

This commit is contained in:
2026-07-26 23:49:55 +00:00
parent 6dad9b2dbc
commit bc716bb5a3
4 changed files with 10 additions and 5 deletions
+1 -3
View File
@@ -13,11 +13,9 @@ from starlette.types import ASGIApp, Message, Receive, Scope, Send
from ..orchestrator_auth import ROLE_CLI, ROLES
from ..supervisor.types import TOOLS
from ..trust_domain import CONTROL_PLANE
from .http_contract import MAX_BODY_BYTES, ORCHESTRATOR_AUTH_HEADER
from .service import OrchestratorCore
ORCHESTRATOR_AUTH_HEADER = "x-bot-bottle-orchestrator-auth"
MAX_BODY_BYTES = 1 * 1024 * 1024
_GATEWAY_ROUTES = frozenset({
("POST", "/resolve"),
("POST", "/supervise/propose"),
+1 -1
View File
@@ -21,7 +21,7 @@ from dataclasses import dataclass
from ..log import debug
from ..orchestrator_auth import ROLE_CLI
from ..trust_domain import CONTROL_PLANE
from .server import ORCHESTRATOR_AUTH_HEADER
from .http_contract import ORCHESTRATOR_AUTH_HEADER
DEFAULT_TIMEOUT_SECONDS = 5.0
+6
View File
@@ -0,0 +1,6 @@
"""Dependency-free constants shared by orchestrator HTTP clients and server."""
ORCHESTRATOR_AUTH_HEADER = "x-bot-bottle-orchestrator-auth"
MAX_BODY_BYTES = 1 * 1024 * 1024
__all__ = ["MAX_BODY_BYTES", "ORCHESTRATOR_AUTH_HEADER"]
+2 -1
View File
@@ -10,7 +10,8 @@ import uvicorn
from ..orchestrator_auth import ROLE_CLI, mint
from ..trust_domain import CONTROL_PLANE
from .api import MAX_BODY_BYTES, ORCHESTRATOR_AUTH_HEADER, create_app
from .api import create_app
from .http_contract import MAX_BODY_BYTES, ORCHESTRATOR_AUTH_HEADER
from .service import OrchestratorCore
MAX_REQUESTS = 32