Review Checklist
Prioritize findings that can break users, expand permissions, hide failures, or make parallel agent runs unsafe.
- API contract safety: are new endpoints backward compatible? Does removing a field break existing callers?
- Silent IAM expansion: any change that quietly adds new IAM permissions is a HIGH finding. It must be explicit and operator-approved.
- Exception handling: bare
except:or overly broadexcept Exception:that discards traceback context is a MEDIUM finding. Prefer typed exceptions withraise ... from e. - Cleanup safety: cleanup code must be best-effort. Use
try/finally; never let cleanup raise and abort the cleanup sequence.also_teardown_controller=Falseis the established safe default for SkyPilot. - Narrow exception paths: test coverage for failure paths such as submit failure, auth failure, and cleanup failure is required. Absence is a MEDIUM finding.
- Concurrent run safety: does the code handle parallel Codex runs safely? Check for file ownership assumptions and missing commit-lock patterns.
- Config injection consistency: config should resolve through one precedence-ordered path: explicit arg, then env var, then config file. Inconsistent resolution is a MEDIUM finding.
- Temp file leaks:
tempfile.mkdtempwithout cleanup on exception paths is a MEDIUM finding. PreferTemporaryDirectorycontext manager. - Version pins: required dependency versions should be asserted at runtime, not just documented.