Skip to content

feat: add Codex execution backend to shift orchestrator #712

Closed

Description

@Jammy2211

Overview

Add Codex CLI execution to the existing shift orchestrator without changing its scheduling or autonomy rules. The maintainer approved this plan on 2026-11-22.

Plan

  • Introduce a bounded execution-backend seam; preserve Claude defaults.
  • Support Codex launch, durable liveness/recovery, stop, authentication and usage accounting.
  • Declare backend and Codex settings in shift briefs; retain Opus independent reviews.
  • Preserve Mind's single writer, questions, token reservations, merge ordering and expiry.
  • Validate existing tests and fake-CLI lifecycle integration, and document a bounded local smoke test before live shifts.

Consequence: judge; effective level: human-required; merge mode: human /prm.

Detailed implementation plan

Affected repositories

  • PyAutoBrain (primary): batch backend/runner, orchestrator dispatch and observers, brief validation/preflight, documentation and tests.
  • PyAutoMind: canonical shift-brief schema and task record.

Branch survey

Both repositories were clean on main; no active task claims either repo. Isolated worktrees now use feature/codex-orchestrator.

Implementation

  1. Add a Codex CLI adapter and durable process runner under agents/conductors/batch/. Use explicit model/effort, workspace-write permissions and ChatGPT CLI authentication; no API fallback.
  2. Route existing spawn, session state, token reads and kill operations using recorded backend identity. Keep Claude close-outs/reviews and scheduler semantics.
  3. Validate worker-backend and Codex settings in _brief.py and select auth probes in _batch.py and _orchestrator.py.
  4. Test launch, usage, missing/corrupt state, process exit, restart and cancellation through a fake executable, alongside existing watcher regression tests.
  5. Document local prerequisites, hook trust and a no-merge smoke-test path. Do not arm a timer or start a live shift.

Baseline: 368 targeted tests passed, 1 skipped at Brain 3d92a7d. Heart was STALE (fresh checkout without reports; published feed timed out).

Original request

Review the polished PyAutoBrain orchestrator and prepare Codex support for subsequent orchestrator runs. Full verbatim request is in the Mind prompt codex_orchestrator.md.

Activity

  1. Jammy2211 commented on Nov 22, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged #713 (237459f) and PyAutoLabs/PyAutoMind#599 (68985fb02007491e1b4bb584917ab3a5e7362e9c) under the human /prm command. Codex workers are opt-in; existing Claude scheduling and independent Opus reviews are preserved. Exact-head CI verdict GREEN for both (Mind drift job skipped). Local validation: 3,482 passed, 78 skipped. Laptop no-op smoke and a bounded no-merge pilot remain prerequisites for live adoption; no live shift was launched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions