Repository navigation
S10.A3: phase2-runtime-openai-agents — first non-OpenClaw native runtime - #69
Merged
Merged
Conversation
Wires `RuntimeKind::OpenAIAgents` end-to-end through the controller dispatch seam established in S10.A2: - New `plan_openai_agents` producer in `controller::reconciler::runtime` replaces the `AdapterMissing` short-circuit. Adapter image resolves via `DEFAULT_OPENAI_AGENTS_IMAGE` (default `azureclawacr.azurecr.io/azureclaw-runtime-openai-agents:latest`) with `OPENAI_AGENTS_RUNTIME_IMAGE` env override (whitespace-as-unset). - `python_version` propagates as `RUNTIME_PYTHON_VERSION` (deliberately non-reserved prefix so it survives the deployment builder's reserved-prefix filter). - Reconciler `is_byo` flag generalised to `is_openclaw` (positive polarity). OpenAIAgents and BYO share the same generic-runtime container shape: container name `agent`, no OpenClaw-specific env (OPENCLAW_*, FOUNDRY_AGENT_*, FOUNDRY_DEPLOYMENTS), no admin-token mount. Single branching point — no parallel `is_openai_agents` flag. - Sandbox image scaffolding `sandbox-images/openai-agents/` (Dockerfile Python 3.12 + `openai-agents>=0.1,<0.2`; entrypoint exports `OPENAI_BASE_URL=http://127.0.0.1:8443/openai/v1` and `AZURECLAW_PLATFORM_MCP_URL=http://127.0.0.1:8443/platform/mcp`). - Image declares `LABEL org.azureclaw.runtime.contract=v1` so the existing BYO contract verifier recognises it. Tests: 307 → 315 (+8: default image, env override × 3, python_version + extra_env merge, user-extra-wins, entrypoint propagation, agent_code round-trip, dispatcher wiring). Existing `plan_returns_adapter_missing_for_each_unwired_non_openclaw_kind` updated — OpenAIAgents case dropped; 4 cases remain (MAF + 3 Tier-2 placeholders). Audit doc: docs/security-audits/2026-04-28-phase2-runtime-openai-agents.md. Class B mesh tools deferred per runtime-agnostic rule (blocked on upstream AgentMesh-Python). Class A Foundry shims served by S10.B platform MCP server. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pal Lakatos-Toth (pallakatos)
added a commit
that referenced
this pull request
May 12, 2026
…A3) (#69) Wires `RuntimeKind::OpenAIAgents` end-to-end through the controller dispatch seam established in S10.A2: - New `plan_openai_agents` producer in `controller::reconciler::runtime` replaces the `AdapterMissing` short-circuit. Adapter image resolves via `DEFAULT_OPENAI_AGENTS_IMAGE` (default `azureclawacr.azurecr.io/azureclaw-runtime-openai-agents:latest`) with `OPENAI_AGENTS_RUNTIME_IMAGE` env override (whitespace-as-unset). - `python_version` propagates as `RUNTIME_PYTHON_VERSION` (deliberately non-reserved prefix so it survives the deployment builder's reserved-prefix filter). - Reconciler `is_byo` flag generalised to `is_openclaw` (positive polarity). OpenAIAgents and BYO share the same generic-runtime container shape: container name `agent`, no OpenClaw-specific env (OPENCLAW_*, FOUNDRY_AGENT_*, FOUNDRY_DEPLOYMENTS), no admin-token mount. Single branching point — no parallel `is_openai_agents` flag. - Sandbox image scaffolding `sandbox-images/openai-agents/` (Dockerfile Python 3.12 + `openai-agents>=0.1,<0.2`; entrypoint exports `OPENAI_BASE_URL=http://127.0.0.1:8443/openai/v1` and `AZURECLAW_PLATFORM_MCP_URL=http://127.0.0.1:8443/platform/mcp`). - Image declares `LABEL org.azureclaw.runtime.contract=v1` so the existing BYO contract verifier recognises it. Tests: 307 → 315 (+8: default image, env override × 3, python_version + extra_env merge, user-extra-wins, entrypoint propagation, agent_code round-trip, dispatcher wiring). Existing `plan_returns_adapter_missing_for_each_unwired_non_openclaw_kind` updated — OpenAIAgents case dropped; 4 cases remain (MAF + 3 Tier-2 placeholders). Audit doc: docs/security-audits/2026-04-28-phase2-runtime-openai-agents.md. Class B mesh tools deferred per runtime-agnostic rule (blocked on upstream AgentMesh-Python). Class A Foundry shims served by S10.B platform MCP server. Co-authored-by: Pal Lakatos-Toth <pallakatos@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
S10.A3 wires
RuntimeKind::OpenAIAgentsend-to-end through the controller dispatch seam established in S10.A2. This is the first non-OpenClaw native runtime to land on AzureClaw.After this PR + S10.A4 (MAF) merge, §14.6 column 11 (Multi-runtime hosting) flips fully ✓. S10.A3 alone is partial credit toward that bar.
What ships
plan_openai_agentsproducer incontroller::reconciler::runtime— replacesAdapterMissingshort-circuit. Adapter image viaDEFAULT_OPENAI_AGENTS_IMAGEwithOPENAI_AGENTS_RUNTIME_IMAGEenv override (whitespace-as-unset).is_byo→is_openclawpolarity flip in the reconciler. OpenAIAgents and BYO share the generic-runtime container shape (container nameagent, no OpenClaw-specific env, no admin-token mount). No parallelis_openai_agentsflag — single branching point.sandbox-images/openai-agents/— Python 3.12 +openai-agents>=0.1,<0.2. Entrypoint exportsOPENAI_BASE_URL=http://127.0.0.1:8443/openai/v1(router sidecar = only LLM endpoint) andAZURECLAW_PLATFORM_MCP_URL=http://127.0.0.1:8443/platform/mcp(S10.B platform MCP server). Image labelorg.azureclaw.runtime.contract=v1recognises the existing BYO contract verifier.Hard rules respected (§0.2)
docs/internal/agt-upstream-asks.md§3).RuntimeDeploymentPlan+ reusesis_byoshape via polarity flip.docs/security-audits/2026-04-28-phase2-runtime-openai-agents.md.Deferred
azureclaw-runtime-openai-agentsPyPI) — AAD shim for Azure OpenAI,AZURE_OPENAI_ENDPOINTrewriting, AGT-init compat, OTel SDK wiring. Dockerfile is contract-labelled but adapter is the immediate follow-up.Test results
cargo clippy -p azureclaw-controller --all-targets -- -D warnings: clean.cargo fmt --all --check: clean.PR train
Phase 2 dev tip on top of #65 (S10.A1) → #66 (S10.A2) → #67 (S10.A2.b) → #68 (S10.B) → this PR (S10.A3).
Container Image Scan check expected to fail (no image push pipeline for the new sandbox-images/openai-agents/ scaffolding yet) — admin-merge per the established S10 pattern.