Skip to content

feat(oar): complete 16 OAR runtimes, CLI/Chat entrypoints, Workbench 0.142.0 alignment, and Windows Job containment - #10097

Merged
songoow merged 23 commits into
codex/oar-deep-fusion-phase3from
codex/oar-deep-fusion-phase4-runtimes
Dec 5, 2026
Merged

songoow merged 23 commits into
codex/oar-deep-fusion-phase3from
codex/oar-deep-fusion-phase4-runtimes

Conversation

@songoow

@songoow songoow commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #9866 (codex/oar-deep-fusion-phase3).

Summary

Completes the OAR runtime surface, exposes all built-in OAR runtimes to LoopX Turn CLI and Chat discovery, aligns apps/workbench to @botiverse/oar@0.142.0, and adds cross-platform Windows Job Object / POSIX process-group containment for OarSessionHost:

  1. All 16 OAR built-in runtimes (loopx/control_plane/oar/runtime_loader.ts):
    • Adds cursor (subprocess mode via optional @cursor/sdk or LOOPX_OAR_CURSOR_SDK_MODULE) and pi-durable (host-owned Harness registration via registerPiDurableRuntime / clearPiDurableRuntime) to OAR_BUILTIN_RUNTIME_IDS, ALIAS_MAP, and listOarRuntimeCatalog() (now also exposing default_binary).
    • Fails closed with clean unsupported installation probes whenever optional peer SDKs (@cursor/sdk, @earendil-works/pi-durable / @earendil-works/chord) are absent instead of crashing on dynamic import.
  2. CLI Turn & Chat entrypoints (oar_turn_host.py, turn_registration.py, turn_run_once.py, oar_chat_adapter.py, endpoint_catalog.py, session_open.py):
    • Adds --host oar (with --oar-runtime, --oar-model, --oar-reasoning-effort, --oar-executable, --oar-sandbox) to loopx turn plan / managed-step / run-once, backed by run_oar_turn_host() with FirstPartyHostGoalAdmission launch guard, periodic require_running() live abort watcher, per-runtime session resume, and structured loopx_turn_host_result_v0 normalization (preserving all existing claude-code / codex-cli / dsh / generic-cli CLI contracts).
    • Adds live PATH-probed oar_chat_endpoints() (adapter_kind="oar_runtime", source="builtin_oar") surfacing installed OAR CLIs (opencode, pi, kimi, qwen, devin, factory, grok, codebuddy, qoder, agy-cli) alongside the 7 existing built-in Chat endpoints, backed by read-only OarChatAdapter (streaming answer.delta/answer.final, real handshake model/effort confirmation, fail-closed rejection on failed/interrupted outcomes).
  3. Workbench @botiverse/oar@0.142.0 alignment (apps/workbench/packages/daemon/package.json, src/adapters/oar.ts, apps/workbench/package-lock.json):
    • Upgrades Workbench daemon from @botiverse/oar@0.128.1 to 0.142.0 (strictly resolved from https://registry.npmjs.org/), raises its Node check to 24.21.0, enforces withPlacement('isolated') on process runtimes, and switches capability probing to installedSessionCapabilities().
  4. Cross-platform process containment (loopx/hosts/oar_client.py, session_host_server.ts, session_hub.ts):
    • Adds _OarDaemonContainment on OarSessionClient: attaches spawned OarSessionHost daemons to WindowsHostJob (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE, CREATE_NO_WINDOW | CREATE_NEW_PROCESS_GROUP) on Windows and falls back to process-group SIGTERM cleanup on POSIX, while surfacing process_containment in collect_oar_runtime_readiness() and oar.health.
    • Adds SIGTERM/SIGINT graceful hub.disposeAll() cleanup in session_host_server.ts.

Verification

  • npm run typecheck:control-plane (0 errors)
  • node --experimental-sqlite --experimental-strip-types --test tests/control_plane_ts/oar_session_hub.test.ts tests/control_plane_ts/oar_goal_worker.test.ts (18/18 passed)
  • apps/workbench: npm run typecheck -w @loopx/loochat (0 errors) and test/oar.test.ts (21/21 passed)
  • pytest on test_oar_phase4_runtimes.py, test_chat_endpoint_readiness.py, test_oar_session_client.py, test_oar_phase3_integration.py (41/41 passed)
  • ruff (E4,E7,E9,F, external-request-lint.toml, external-transport-lint.toml), lint-external-transports.mjs, check_rfc_bilingual.py, and loopx check public boundary scan across all 15 files including apps/workbench/package-lock.json (clean)

… 0.142.0, and add Windows Job containment

Signed-off-by: song <xinxinsong66@gmail.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T04:37:14.991126Z 54e41d0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54e41d0c82

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread loopx/cli_commands/turn_registration.py Resolved
Comment thread loopx/chat/session_open.py Resolved
Comment thread loopx/chat/oar_chat_adapter.py Resolved
… and Dashboard OAR observe/brands/forms

Signed-off-by: song <xinxinsong66@gmail.com>
…at endpoints

Signed-off-by: Codex <codex@openai.com>
Reject handled or malformed terminal payloads before publishing generic Chat answers or governed Turn results. Check the live OAR session inventory before reusing a cached generic Chat adapter, including released and exited status. Cover real removed-session behavior and require explicit ended/completed outcomes.

Signed-off-by: Codex <codex@openai.com>
Signed-off-by: Codex <codex@openai.com>

# Conflicts:
#	tests/control_plane_ts/oar_session_hub.test.ts
@mergify

mergify Bot commented Dec 4, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/oar-deep-fusion-phase3 and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/codex/oar-deep-fusion-phase3
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/oar-deep-fusion-phase3 and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Dec 4, 2026
Signed-off-by: Codex <codex@openai.com>

# Conflicts:
#	tests/control_plane/test_oar_session_client.py
@mergify

mergify Bot commented Dec 4, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/oar-deep-fusion-phase3 and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/codex/oar-deep-fusion-phase3
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/oar-deep-fusion-phase3 and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added needs-rebase Mergify: the pull request has merge conflicts with its base branch and removed needs-rebase Mergify: the pull request has merge conflicts with its base branch labels Dec 4, 2026
songoow and others added 8 commits December 4, 2026 15:24
…dependencies

Signed-off-by: Codex <codex@openai.com>
Signed-off-by: Codex <codex@openai.com>
…rd configuration and status

Keep SQLite session identity, legacy history and steering receipts intact. Report only the effective MCP write grant. Bind Dashboard reads to their selected conversation, expose native Grok creation settings and cover the new path in Chromium.

Signed-off-by: Codex <codex@openai.com>
Route only root agent output into the conversation and treat native session-not-found as a terminal handle rejection. Carry the reviewed Goal worker and transport fixes into the runtime adapters.

Signed-off-by: Codex <codex@openai.com>
…scovery

Read archived events beyond the live ring and record session disposal before unsubscribing. Accept archives from the production Chat writer and preserve their native thread binding across same-key resume. Resolve the selected workspace for model discovery and exercise both Goal and workspace selection in Chromium. Integrate reviewed upstream runtime changes.

Signed-off-by: Codex <codex@openai.com>
Scope the override to the Pi coding agent in the updated OAR dependency chain and lock minimatch 11.0.10. Carry the verified DSH streaming recovery fixture from Phase 3.

Signed-off-by: Codex <codex@openai.com>
…stack

Use minimatch 11.0.10 for the Dashboard Pi coding agent and retain the verified Workbench pin and DSH recovery tests from the base branch. Clean installs resolve the patched package without changing security-check configuration.

Signed-off-by: Codex <codex@openai.com>
…runtimes

Signed-off-by: song <xinxinsong66@gmail.com>
@mergify

mergify Bot commented Dec 5, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/oar-deep-fusion-phase3 and cannot be merged
until they are resolved. Please rebase or merge the base branch, @songoow.

Choose the remote for the base repository, not an out-of-date fork.
For a fork clone, first inspect git remote -v; upstream must point
to https://github.com/loopx-project/loopx.git. If it is absent, add it
with git remote add upstream https://github.com/loopx-project/loopx.git.
Then run:

git fetch upstream
git rebase upstream/codex/oar-deep-fusion-phase3
# Resolve each conflict, git add the resolved files, then git rebase --continue.
git push --force-with-lease origin HEAD

For a same-repository clone whose origin points to
https://github.com/loopx-project/loopx.git, use origin instead of
upstream for fetch/rebase. If you prefer merging the base, use
git merge <base-remote>/codex/oar-deep-fusion-phase3 and push normally.

Keep the DCO Signed-off-by trailer on every commit when you rebase.
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 5, 2026
…pdate supported host parity test

Signed-off-by: song <xinxinsong66@gmail.com>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 5, 2026
…n-phase4-storage-ui

Signed-off-by: song <xinxinsong66@gmail.com>
…0 in Dashboard, and isolate PATH in runtime-readiness-live

Signed-off-by: song <xinxinsong66@gmail.com>
…n-phase4-runtimes

Signed-off-by: song <xinxinsong66@gmail.com>
…eep-fusion-phase4-storage-ui

Signed-off-by: song <xinxinsong66@gmail.com>
@songoow

songoow commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator Author

Updated codex/oar-deep-fusion-phase4-runtimes at 4451fbae7 (fix commit 9de437a3d + merged updated #9866 a92ab019b):

Fixes Included

  • Deferred optional workflow imports (9de437a3d): Moved OAR_TURN_RUNTIME_CHOICES to loopx/control_plane/turn_driver/execution_profile.py (re-exported in oar_turn_host.py) so loopx/cli_commands/turn_registration.py does not eagerly import oar_turn_host.py (test_turn_handler_import_defers_optional_workflows passes).
  • Host parity smoke (9de437a3d): Updated SUPPORTED_HOSTS expectation in tests/test_host_parity_smoke.py to include "oar".

Verification & Gate Status

  • Local verification: 111 Python tests passed; CI ruff/lint checks clean on all PR-touched files.
  • dependency-review is green; all 5 review threads have been replied to and resolved.

cc @loopx-agent @huangruiteng — ready for review in stack order (#9854 → #9861 → #9866 → #10097).

songwells and others added 3 commits December 5, 2026 07:38
…n-phase4-runtimes

Signed-off-by: song <xinxinsong66@gmail.com>
…eep-fusion-phase4-storage-ui

Signed-off-by: song <xinxinsong66@gmail.com>
…ase4-storage-ui

feat(oar): sessions.sqlite WAL storage, in-process MCP write tools, and Dashboard OAR UI
@songoow
songoow requested a review from maxliux5 as a code owner December 5, 2026 12:43
@songoow
songoow merged commit 954fa7f into codex/oar-deep-fusion-phase3 Dec 5, 2026
12 of 16 checks passed
@songoow
songoow deleted the codex/oar-deep-fusion-phase4-runtimes branch December 5, 2026 12:43
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.

2 participants