codex-plugin-cc icon indicating copy to clipboard operation
codex-plugin-cc copied to clipboard

feat: rig edition — tier routing, typed envelopes, quota failover, fanout/council/cloud verbs

Open nategarelik opened this issue 4 months ago • 0 comments

Additive "rig edition" layer on top of the app-server broker, built as separate files for cheap upstream rebases. Companion to #484 (the Windows broker fix this branch builds on).

What it adds

  • Model-alias tier routing — sol/terra/luna aliases + per-verb tier defaults; effort validated (max/ultra are Sol-only).
  • Typed task envelope — DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED with defensive, prose-tolerant parsing (never throws on garbage).
  • Quota failover — one-step tier step-down on 429/quota, then a QUOTA_EXHAUSTED envelope so the caller can fall back.
  • Verbs: fanout (parallel worktree workers, cap 5, pre-flight file-overlap rejection, worktree-failure containment, divergence-preserving aggregation), council (advocate/counter/decider with round-1 isolation), cloud (wraps the real codex cloud subcommands — verified 1:1 against 0.144.1 --help).

Testing

148→ tests total (27 new for the rig-edition layer); the pre-existing env-dependent failures are unchanged and unrelated. Verified on Windows 11, codex-cli 0.144.1. codex cloud arg mapping checked against the live CLI (zero deltas).

Notes

Everything is additive (lib/rig-edition.mjs + verb modules + minimal companion wiring); no existing signatures changed, so callers that do not opt into a tier alias are byte-for-byte unaffected.

nategarelik avatar Jul 13 '26 02:07 nategarelik