← Back to Pull requests

feat(plugins): add Codex app-server executor example #5298

Closed
unknown closed this pull request without merging on Sep 22, 2026 04:06 UTC
View on GitHub
unknown unknown commented on Sep 14, 2026 11:20 UTC
Author

Summary

  • add an experimental repository-only Codex App Server executor under scripts/plugins

  • run the user-installed Codex CLI with fail-closed approvals, cancellation, model discovery, reasoning-effort selection, and rich executor events

  • add generic plugin-executor model plumbing to Session creation/configuration without introducing Codex-specific behavior in Maka core

  • merge plugin models into the native model picker through the client plugin slot, reusing the native search, selected state, provider grouping, and WorkHub wheel presentation

  • keep WorkHub's coordinator on its own native, tool-capable model; its picker now configures defaults only for subsequently created Sessions, while existing Sessions retain their own model

  • test the plugin in CI without adding it to the root workspace package graph, and exclude scripts/plugins from ASF source archives and desktop packaging
  • The integration does not bundle Codex, OpenAI credentials, protocol schemas, or brand assets. Codex-specific model loading and UI behavior remain inside the plugin directory; Maka exposes only reusable executor/model extension points and the Session data path needed by any executor plugin.

    Behavior

  • regular Session: select a native or Codex model from the same model picker; Codex selection reveals its supported reasoning efforts

  • WorkHub: the visible model/reasoning selection is labeled as the new work model and is forwarded only when WorkHub creates a new Session

  • existing WorkHub Session using model A: remains on A when the new-work default changes to model B or Codex

  • WorkHub coordinator: remains a native model so its WorkHub coordination tools stay available
  • Verification

  • Codex plugin tests: 11/11

  • WorkHub controller, IPC, and protocol tests: 38/38

  • production WorkHub assignment composition: new Session receives the selected new-work model

  • @maka/desktop typecheck

  • @maka/desktop production build, including Renderer entry and third-party notice checks

  • Biome check on all changed files in the final WorkHub update

  • manual desktop verification: Codex model discovery, native-style picker, reasoning selection, normal Session response, and WorkHub presentation
  • Compatibility

  • rebased onto current main

  • Runtime Host compatibility epoch advanced for executor-model Session fields and WorkHub new-work defaults
  • Diff: 296 lines (+222 / -74) across 3 files Reviewer: M4n5ter Review duration: 11086m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 296 lines diff across 3 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.341
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #5298"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%
    Repository