fix: repair Codex Cloud environment verification - #1497
Conversation
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 32 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughCodex Cloud setup now pins CLI versions, repairs Git remotes safely, validates sanitized environment capabilities, and distinguishes provider-free capability gaps from readiness failures. Documentation, review records, and tests cover credential boundaries, Railway token handling, runtime checks, and live-test gating. ChangesCodex Cloud environment hardening
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Cloud as Codex Cloud setup
participant Validator as Cloud validation
participant Providers as Provider readiness checks
participant Tests as Live-test runner
Cloud->>Validator: install and expose pinned environment
Validator->>Validator: inspect origin and sanitize capabilities
Validator->>Providers: evaluate provider-free capability state
Providers->>Tests: allow execution or return capability gap
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Comment |
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
…nt-repair-20260731
Add a 30s timeout and fail cleanly on ETIMEDOUT/spawn errors so a stalled readiness child cannot hang the Vitest process. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…0260731' into codex/cloud-environment-repair-20260731
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #7350 (cancelled). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
|
@cursoragent fix failing CI |
|
Fixed the Static PR typecheck failure.
|
Static PR typecheck failed because Error has no code property. Cast the spawn error so the ETIMEDOUT path typechecks. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…0260731' into codex/cloud-environment-repair-20260731
…0260731' into codex/cloud-environment-repair-20260731
…0260731' into codex/merge-pr1497-final-v2
Three conflicts, resolved by evidence rather than by side-preference. scripts/ensure-codex-cloud-git-remote.mjs and tests/codex-cloud-setup.test.ts: took main's version. The branch carried its own fix for the same defect (5aa3d6c, judging origin safety from the configured remote URL) on top of main's #1497, so neither side was obviously newer. main's version introduces a configuredOriginUrl() helper, already covers the url.*.insteadOf case the branch's extra test was written for, and passes 12/12 locally — verified before choosing, since taking a side wholesale is only safe when the other side's content is genuinely subsumed. This also clears the two codex-cloud-setup failures this branch has carried all session. docs/outstanding-issues.md: fifth id collision on this branch. main has since claimed #151-#153 — the exact ids these rows previously held — and now runs to #164. main's rows are kept and the follow-ups renumber to #165 (adopt a consolidated answer-home notice block), #166 (answer mode ships no verify-before-use caveat) and #167 (verify:pr-local exits 0 when its build step refuses to run), with their three cross-references and the marker (168) following. check:outstanding-issues: 165 rows (50 open, 115 archived), unique ids, next-id=168 above the highest, no ids deleted from base 23465d5. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NPyFcMfn1jMmphr6AqiWBg


Summary
origin, and sanitize MCP/capability reportingRAG impact: no retrieval behaviour change — Cloud setup/runtime and provider-capability checks only.
Verification
npm run verify:pr-local— PASS; 442 files, 4,636 tests passed, 3 skipped; offline RAG fixtures passednpm run check:codex-cloud— PASSnpm run check:codex-cloud -- --environment— PASSnpm run check:production-readiness— CLOUD PROVIDER-FREE READYnpm run check:branch-review-ledger— PASSnpm run format— PASS/unchangedgit diff --check— PASSSecurity and operations
RAILWAY_API_TOKEN;RAILWAY_TOKENis never substitutedRisk and rollout
Risk is limited to Codex Cloud bootstrap and validation behavior; application retrieval and production data paths are unchanged. Roll back the squash commit if fresh-cache Cloud setup regresses.
Clinical Governance Preflight
Summary by CodeRabbit
originrepair.