Skip to content

Retire legacy execution and enforce CLI quality gates - #9

Merged
rudijetson merged 21 commits into
mainfrom
codex/cli-agent-host-cleanup
Aug 2, 2026
Merged

Retire legacy execution and enforce CLI quality gates#9
rudijetson merged 21 commits into
mainfrom
codex/cli-agent-host-cleanup

Conversation

@rudijetson

@rudijetson rudijetson commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a mandatory quality workflow for tests, standalone builds, generated-distribution drift, changed-file debt scanning, and package contents
  • separate the CLI help surface into core, advanced, internal, and retired commands; retired execution/session names now fail with migration guidance
  • remove the legacy imported-session, run-group, spawn-child, PTY/WebSocket, embeddings, and daemon execution architecture while preserving existing user rudi.db files
  • keep Agent Host as a thin lifecycle/control-plane adapter over native Claude, Codex, Gemini, and Antigravity execution
  • split daemon, Agent Host command, validation, process, and workspace lifecycle responsibilities into smaller modules
  • replace the stale sidecar contract with the implemented daemon and /agent-host/v1 OpenAPI contract

Architecture boundary

Native agent providers remain authoritative for sessions, transcripts, model loops, and provider-native orchestration. RUDI owns local capabilities, secrets, MCP integration, indexes, artifacts, safe workspaces, bounded launch lifecycle, and daemon health. packages/db remains isolated only for the checked-in Studio consumer; the CLI and runner do not import it.

Validation

  • local full suite: 606 tests across 42 suites, all passing
  • focused red/green checks for clean-home tool-index behavior and repository-independent builds
  • deterministic pnpm build and generated-distribution drift check
  • changed-file architecture debt scan: zero findings
  • isolated daemon process smoke: auth, health/readiness, mode-0600 connection files, shutdown cleanup, and no rudi.db creation
  • package smoke: 6 published files; retired spawn MCP and run-group templates absent
  • final GitHub Quality: https://github.com/learnrudi/cli/actions/runs/30759346228
  • main branch protection requires strict quality checks and enforces them for administrators

Compatibility

There are no callable legacy execution or imported-session implementations in the CLI. Existing local data is left untouched. Retired command names remain only as explicit nonzero migration notices.

Refresh native provider contracts, add Gemini and Antigravity integration and skill projection, preserve raw provider arguments, and expose portable MCP tool names for Google hosts.
Add safe workspace isolation, foreground and detached native launches, resume and lifecycle controls, normalized artifacts, grouped execution, and authenticated daemon routes while preserving provider-owned sessions.
Introduce ~/.rudi/outputs as the canonical artifact path, migrate legacy output contents without overwrites, remove stale compatibility links, and expose the lifecycle through home and managed instructions.
Recognize native rate_limit_event payloads, retain validated reset and overage metadata, and avoid leaking untyped provider objects into normalized artifacts.
Archive obsolete run-group and test-result documentation, replace stale testing guidance, and align the advertised info command with generic package inspection while retaining live compatibility commands.
Regenerate the published CLI bundle, package manifest, and standalone MCP router from the verified source tree.
Record the reviewed delete/extract/retain boundary and persist the phase-gated SWE compliance plan before implementation.
Run tests, reproducible builds, portable architecture debt scans, and package verification on pull requests and main. Pin the package manager and reviewed native build scripts for clean CI installs.
Make Agent Host own provider configuration, argv construction, and Claude/Codex event normalization. Leave temporary legacy re-exports only until the retired execution tree is deleted.
@rudijetson rudijetson changed the title Add provider-neutral Agent Host and clean CLI capability layer Retire legacy execution and enforce CLI quality gates Aug 2, 2026
@rudijetson
rudijetson marked this pull request as ready for review August 2, 2026 17:40
@rudijetson
rudijetson merged commit 11612a2 into main Aug 2, 2026
1 check passed
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.

1 participant