Repository navigation
fix(cli): report failed status components as explicit unknown entries - #2959
Conversation
Problem: _direct_component_readiness wrapped every component readiness block (archive surfaces, raw materialization, raw frontier integrity, embeddings, assertions, transforms) in except-pass, so a component whose computation failed silently vanished from the status payload — indistinguishable from not-applicable, on the surface whose job is reporting degradation (polylogue-feqr, found by the xnws narration pilot). What changed: one _component_computation_failure helper builds an explicit ComponentReadiness(state=UNKNOWN) entry carrying the exception class and message; each block's handler now inserts it under the block's statically known component name. The existing claim guard already treats unknown as non-healthy for required components, so no guard changes needed. Verification: devtools test tests/unit/cli/test_status.py — 61 passed, including the new test that forces an embeddings computation failure through the real _show_direct_json route and asserts the unknown entry (reverting the fix makes the key absent, failing the test); devtools verify --quick exit 0. Ref polylogue-feqr. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01QUsH3Rhq6oAZpYPWcsZqnZ
|
Warning Review limit reached
Next review available in: 55 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: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7ffc39ce4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… failures CodeRabbit review follow-up on the degraded-entry fix: failure entries now carry each component's canonical scope (semantic/user/session-analysis) and a computation_failed metadata flag; _direct_status_ok treats a computation failure on a required component as unhealthy instead of tolerated-unknown. Co-Authored-By: Claude <[email protected]> Claude-Session: https://claude.ai/code/session_01QUsH3Rhq6oAZpYPWcsZqnZ
|
Both review findings addressed in f91d277: failure entries carry canonical scopes (semantic/user/session-analysis) and a computation_failed metadata flag; _direct_status_ok now returns unhealthy when a required component's computation failed. 61/61 status tests + quick gate green. |
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Failed status-component computations now produce explicit
state=unknownentries instead of silently vanishing from the payload. Ref polylogue-feqr (found by the xnws narration pilot).Problem
Six
except Exception: passsites in_direct_component_readinessmade a failed component indistinguishable from not-applicable — a direct loud-degradation violation on the status surface itself.Solution
_component_computation_failurehelper (reuses the existingComponentReadiness/CapabilityReadinessState.UNKNOWNvocabulary — no new tokens); each block inserts it under its statically-known component name (archive_surfacessentinel,raw_materialization,raw_frontier_integrity,embeddings,assertions,transforms). The_direct_status_okclaim guard already treatsunknowncorrectly.Verification
devtools test tests/unit/cli/test_status.py→ 61 passed, including a new test forcing an embeddings failure through the real_show_direct_jsonroute and asserting the unknown entry (reverting the fix → key absent → test fails).devtools verify --quickexit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01QUsH3Rhq6oAZpYPWcsZqnZ