Repository navigation
feat(telemetry): classify codex trust-grant fallbacks and attribute grant lane - #10001
Conversation
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (12)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…rant lane (stablyai#10001) * feat(telemetry): classify codex trust-grant fallbacks and attribute grant lane * fix(telemetry): tighten codex trust-grant classification
Why
Post-rollout analysis of the codex real-home change (#9501, first stable v1.4.149) showed
codex_trust_grantworking as a rollout signal but leaving the biggest cohort undiagnosable:fallback_reasonexclusivelyerror/retry-cachedand zerounsupported— the enum can't distinguish "codex CLI not installed" (harmless: 97% of that cohort never starts a codex agent) from "codex broken/timing out" (the ~176 real codex users stuck on the legacy managed home).host_kindalone can't split the rollout signal from managed multi-account grants.verify_faileddoubled version-over-version (84 → 184 installs on 1.4.149 → 1.4.150) but all distinct verify failure modes collapse into one bucket.What
All additions are closed enums — no raw error/user/path content reaches the wire (matches the schema's existing strict/enum-only design).
lane: 'real-home' | 'managed'(required) — which install surface asked for the grant. Threaded via the grant plan from all three call sites: real-home install →real-home; native managed-home installer and WSL mirror →managed.error_class(onreason: 'error'fallbacks) —binary-missing | timeout | entry-failed | early-exit | rpc-failed | unexpected. Errors cross the grant-bridge envelope as message text (only timeout/unsupported keep their name), so classes match the bounded message shapes each layer produces.verify_class(onverify_failed) — session-side classes (list-mismatch | post-grant-untrusted | post-grant-mismatch, carried as a structuredreasonClassthrough the bridge JSON envelope instead of string-matching diagnostics) plus module-side classes (unexpected-key | duplicate-key | coverage).The telemetry types, classifier, and injected tracker moved to a new
codex-trust-grant-telemetry.ts(the grant module was at the max-lines boundary; no limit bumps).Verification
typecheck(node + cli + web) green; new module added to the CLI project's explicit file list.error_classon the wire, sessionreasonClasspassthrough, module verify classes, and classifier table tests (ENOENT-in-stderr-tail staysearly-exit).build:electron-vitegreen — plain-node grant-entry chunk unaffected (telemetry module is electron-free; tracker stays injected from main).Follow-ups (not this PR)
codex_home_laneproperty onagent_started(agent_kind=codex) — usage-weighted routing truth; needs threading through pty launch prep.codex app-serverspawn attempts/day fleet-wide on machines without codex.