Skip to content

feat(oar): sessions.sqlite WAL storage, in-process MCP write tools, and Dashboard OAR UI - #10098

Merged
songoow merged 8 commits into
codex/oar-deep-fusion-phase4-runtimesfrom
codex/oar-deep-fusion-phase4-storage-ui
Dec 5, 2026
Merged

songoow merged 8 commits into
codex/oar-deep-fusion-phase4-runtimesfrom
codex/oar-deep-fusion-phase4-storage-ui

Conversation

@songoow

@songoow songoow commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Completes the storage, in-process control-plane MCP write tooling, and browser-safe Dashboard UI fusion on top of #10097 (codex/oar-deep-fusion-phase4-runtimes):

  1. Independent sessions.sqlite WAL Store + Dual-Read Legacy JSONL Compatibility

    • Adds loopx/control_plane/oar/session_sqlite_store.ts (OarSessionSqliteStore), strictly isolated from authority-*.sqlite so SQLite Authority v2 commit proof chains and migrations remain untouched.
    • Persists oar_sessions, redacted oar_records, and oar_steering_reservations in WAL mode with 0700/0600 private permissions and busy_timeout=5000.
    • Provides readSessionWithLegacyFallback() (Dual-Read from ~/.loopx/chat/sessions/<id>/session.json + messages.jsonl, fail-closed against path traversal) and importLegacySessionMetadata() (Single-Write upgrade).
    • Wires OarSessionSqliteStore into OarSessionHub, session_host_server.ts (LOOPX_OAR_SESSIONS_DB, LOOPX_OAR_LEGACY_CHAT_SESSIONS_DIR, oar.list_persisted_sessions, oar.read_persisted_session, cold readback in oar.read_records), and Python OarSessionClient (sessions_db_path, legacy_chat_sessions_dir, list_persisted_sessions, read_persisted_session).
  2. Grant-Gated In-Process Control Plane MCP Write Tools

    • Extends LoopxControlPlaneMcpBridge (loopx/control_plane/oar/control_plane_mcp.ts) with 3 write tools calling canonical TypeScript authority reducers directly in-process over SqliteAuthorityStore:
      • loopx_authority_claim_todo -> executeCoordinationTodoClaim
      • loopx_authority_acquire_task_lease -> executeCanonicalTaskLeaseAcquire
      • loopx_authority_settle_todo_terminal -> executeCoordinationTodoTerminalLifecycle
    • Enforces grant.allowWrite === true (turn_write_not_permitted on read-only grants) and active grant / revocation checks before and during commit (turn_capability_grant_revoked).
  3. Dashboard Browser-Safe @botiverse/oar Adoption

    • Adds @botiverse/oar@0.142.0 to apps/presentation/dashboard/package.json (package-lock.json resolved strictly from https://registry.npmjs.org/).
    • Adds apps/presentation/dashboard/src/data/oar-observe.ts importing ONLY browser-safe subpaths (@botiverse/oar/observe, @botiverse/oar/brands, @botiverse/oar/forms, @botiverse/oar/browser) with zero Node built-ins: pure reduceOarRecordsToView, offline SVG icons for all 16 OAR runtimes in light/dark themes, declarative runtime config forms, classifyTool / toolActionLabel, and formatOarTurnFailure.
    • Extends apps/presentation/dashboard/src/features/personal-workspace/agent-family.ts with all OAR runtime roots and oar_runtime generic adapter classification.
    • Adds npm run smoke:oar-observe (apps/presentation/dashboard/smoke/oar-observe-smoke.ts).

Stacked PR Order

  • #9854 (codex/oar-deep-fusion-phase0-1 -> main)
  • #9861 (codex/oar-deep-fusion-phase2 -> codex/oar-deep-fusion-phase0-1)
  • #9866 (codex/oar-deep-fusion-phase3 -> codex/oar-deep-fusion-phase2)
  • #10097 (codex/oar-deep-fusion-phase4-runtimes -> codex/oar-deep-fusion-phase3)
  • This PR (codex/oar-deep-fusion-phase4-storage-ui -> codex/oar-deep-fusion-phase4-runtimes)

Verification

  • npm run typecheck:control-plane — 0 errors
  • node --experimental-sqlite --experimental-strip-types --test tests/control_plane_ts/oar_session_sqlite_store.test.ts tests/control_plane_ts/oar_session_hub.test.ts tests/control_plane_ts/oar_goal_worker.test.ts tests/control_plane_ts/tsconfig_coverage.test.ts — 23/23 passed
  • apps/presentation/dashboard: npx tsc --noEmit, npm run smoke:oar-observe, npm run smoke:agent-family, npx vite build — all passed (0 Node built-ins bundled)
  • PYTHONPATH="$PWD" python -m pytest -q tests/control_plane/test_oar_phase4_storage.py tests/control_plane/test_oar_phase4_runtimes.py tests/control_plane/test_oar_session_client.py tests/test_public_package_lock_boundary.py — 19/19 passed
  • ruff (E4,E7,E9,F, external-request-lint.toml, external-transport-lint.toml), node scripts/ci/lint-external-transports.mjs, scripts/check_rfc_bilingual.py, and loopx.cli check public boundary scan (12 files) — all clean

… and Dashboard OAR observe/brands/forms

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:53:00.610467Z 72589f4 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: 72589f4fd8

ℹ️ 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/control_plane/oar/session_hub.ts Resolved
Comment thread loopx/hosts/oar_client.py Resolved
Comment thread loopx/control_plane/oar/session_hub.ts Resolved
…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>
@mergify

mergify Bot commented Dec 4, 2026

Copy link
Copy Markdown

This pull request has merge conflicts with codex/oar-deep-fusion-phase4-runtimes 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-phase4-runtimes
# 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-phase4-runtimes 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 4, 2026
…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>
@mergify mergify Bot removed the needs-rebase Mergify: the pull request has merge conflicts with its base branch label Dec 4, 2026
songoow and others added 2 commits December 4, 2026 16:17
…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>
…n-phase4-storage-ui

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-phase4-runtimes 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-phase4-runtimes
# 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-phase4-runtimes 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
…0 in Dashboard, and isolate PATH in runtime-readiness-live

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-storage-ui at cd10360a0 (fix commit b5b2a1c78 + merged updated #10097 4451fbae7):

Fixes Included

  • Mypy typing contract (b5b2a1c78): Restored direct isinstance(...) narrowing in loopx/capabilities/native_chat/model_settings.py (test_antigravity_adapter_preserves_caller_typing_contracts passes).
  • Dependency security (b5b2a1c78): Added "standardwebhooks": "1.3.0" override in apps/presentation/dashboard/package.json & package-lock.json to eliminate vulnerable @stablelib/ed25519@1.0.3 (npm audit: 0 vulnerabilities).
  • E2E runtime-readiness-live PATH isolation (b5b2a1c78): Isolated POSIX PATH in examples/personal-workspace-browser/runtime-readiness-backend.py to a minimal runtime-bin (node, env, sh, git) so node_modules/.bin/pi and host CLIs do not leak into the empty-runtime E2E fixture.

Verification & Gate Status

  • Local verification: 107 Python tests + 30 Node TS tests + tsc --noEmit + npm run smoke:oar-observe + npm audit (0 vulns) + live Chromium Playwright (runtime-readiness-live and grok-model-selection) all passed.
  • Sign-off is green; all 9 review threads have been replied to and resolved.

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

…eep-fusion-phase4-storage-ui

Signed-off-by: song <xinxinsong66@gmail.com>
@songoow
songoow merged commit 826b149 into codex/oar-deep-fusion-phase4-runtimes Dec 5, 2026
13 of 19 checks passed
@songoow
songoow deleted the codex/oar-deep-fusion-phase4-storage-ui 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