escalate — OpenAI Codex CLI¶
Run verification-gated Codex recovery through the central execution driver.
- Source: codex/skills/escalate/SKILL.md
- Also available on: Claude Code, GitHub Copilot CLI
In practice¶
What it does¶
Runs a task through the central worker ladder behind a machine-checkable result. Luna, Terra, and Sol remain the implementation tiers; Astra is a reserved recovery target and becomes eligible only after qualifying failure evidence recorded by the execution driver.
When to reach for it¶
- Use it when a task has a runnable verification command and a cheaper worker may succeed.
- Use it when failure should trigger a bounded, auditable correction path.
- Not for a subjective preference such as “use the best model” or for routine verification.
Worked example¶
python3 bin/codex_execute.py run --kit tasks/kits/<slug> --task <id> --dry-run
python3 bin/codex_execute.py run --kit tasks/kits/<slug> --task <id>
The driver records each requested, dispatched, and observed identity separately, runs verification, and advances only through eligible worker tiers.
Failure modes & fallbacks¶
A nonzero dispatch is a dispatch failure, not a verification result. Astra recovery requires a recorded nonzero verification, an unresolved named integration conflict, or a failed lower-tier correction with prior attempts. The recovery record includes evidence, attempts, correction scope, and verification outcome. Later tasks return to the cheapest sufficient worker.
Cost & safety¶
Dry-run is read-only; execution consumes usage. The CLI has no warm-agent pool, so Astra is represented as reserved and instantiated only when the gate opens. A missing or unavailable Astra fails closed rather than routing ordinary work to it or weakening verification.
Related¶
- execute owns the supported recovery and audit path.
- effort changes validated reasoning effort.
- frontier check explains the reserved tier.
The skill card — what the model reads¶
This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is codex/skills/escalate/SKILL.md.
Resolve the plugin root before running commands¶
Resolve POLYTROPOS_ROOT from this skill's location. In a managed copy use POLYTROPOS_ROOT="{{POLYTROPOS_ROOT}}". Reject a literal placeholder. Confirm pricing data, bin/codex_policy.py, and bin/codex_execute.py exist. If proof fails, use python3 bin/harness_select.py doctor --harness codex.
Use $execute for kit work. The central driver is the only recovery path: it records prior worker attempts, dispatch exits, independent verification, and bounded correction scope. Do not run a private escalation loop or invoke a reserved recovery target based on a subjective assessment.
Recovery opens only after machine-visible evidence: a nonzero verify exit, an unresolved named integration conflict, or a failed lower-tier correction. Each attempt record names the task and dispatched worker. The driver creates the reserved Astra target for that correction only; there is no warm pool. It independently verifies correction and returns subsequent work to workers.
python3 "$POLYTROPOS_ROOT/bin/codex_execute.py" run --kit tasks/kits/<slug> --task <id> --dry-run
Do not call prepare --role recovery: caller-supplied evidence cannot unlock recovery. Report planned, dispatched, and observed model-role records separately; unknown observed identity stays unknown.
Optional context travel¶
When an explicit repository/kit/assignment and authorized startup config are supplied, use the native context-travel skill and read {{POLYTROPOS_ROOT}}/docs/CONTEXT-TRAVEL-SURFACES.md on demand for a bounded recovery brief. Treat missing, stale, partial, or refused context as advisory; retain this workflow's authoritative sources, policy, pricing, permission, and mandatory verification rules. If no authorized context transport is available, continue this workflow and report context unavailable.