codex-plugin-cc
codex-plugin-cc copied to clipboard
feat: rig edition — tier routing, typed envelopes, quota failover, fanout/council/cloud verbs
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 | BLOCKEDwith defensive, prose-tolerant parsing (never throws on garbage). - Quota failover — one-step tier step-down on 429/quota, then a
QUOTA_EXHAUSTEDenvelope 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 realcodex cloudsubcommands — 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.