フィールドガイド / 12 分
Codex Cloud task を local apply 前に review する
Remote run は candidate diff を作るだけで、local checkout が acceptance boundary です。
Experimental cloud command は environment へ task を送り、state を一覧・確認し、指定 attempt の unified diff を表示し、local working tree へ apply できます。Apply は merge でも correctness 証明でもありません。Exact task/attempt、local status、tests を確認します。
CLI
検証済みターミナル手順
- $
codex cloud exec --env ENV_ID "Run the migration checks" - $
codex cloud status TASK_ID - $
codex cloud diff TASK_ID - $
codex cloud apply TASK_ID
A
作業原則
Environment は authority
Repo access/setup/credentials を選ぶので exact ID と boundary を確認。
Attempt identity
Best-of-N の複数候補で inspect/apply の番号を揃えます。
Apply は transport
Git patch を運ぶだけで correctness/local drift/approval は解決しません。
B
フィールド手順
- 01
Bounded task を submit
Environment、branch、goal、allowed changes、checks を指定。
- 02
Exact state を追跡
Task ID を記録し、遅くても重複 submit せず poll。
- 03
Candidate を inspect
指定 attempt の diff と scope/conventions を比較。
- 04
Checkout を準備
Branch/working tree を確認し unrelated edits を保護。
- 05
Apply/verify local
git diff、affected tests、review 後に commit。
PASS / FAIL
受入チェック
- Environment/branch/task/attempt 記録。
- Polling は duplicate job を作らない。
- Apply 前に diff review。
- Unrelated changes 保護。
- Apply 後 tests/diff 確認。
WATCH / REJECT
失敗パターン
- 先頭 attempt を無条件 apply。
- Remote tests が local drift も覆うと仮定。
- Local verification 前に完了宣言。