Repository navigation
refactor: split doctor readiness workflows - #298
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 43 minutes and 40 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ 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 |
## Summary - Split doctor repair/session-product assessment into typed helper functions. - Split doctor CLI maintenance execution into reusable workflow helpers while preserving VACUUM/persistence ordering. - Split archive readiness report construction into focused check builders. ## Problem Doctor maintenance and readiness logic had accumulated large inline blocks for session-product debt counting, CLI maintenance dispatch, archive debt checks, provider summaries, derived-model checks, and transcript-embedding freshness. That made the status/repair surface hard to audit and fragile to extend during the broader renewal push. ## Solution - Added explicit session-product repair assessment helpers in `polylogue/storage/repair.py`. - Added small workflow helpers and a typed maintenance input object in `polylogue/cli/check_workflow.py`. - Extracted readiness builder functions in `polylogue/readiness.py` for config paths, DB probes, message index status, archive debt, duplicate/provider summaries, derived models, and embedding freshness. ## Verification - `pytest -q tests/unit/storage/test_repair.py tests/unit/cli/test_check.py` - `pytest -q tests/unit/core/test_health_core.py tests/unit/cli/test_check.py tests/unit/cli/test_check_runtime.py tests/unit/storage/test_fts5.py` - `mypy polylogue/storage/repair.py polylogue/cli/check_workflow.py tests/unit/storage/test_repair.py tests/unit/cli/test_check.py` - `mypy polylogue/readiness.py polylogue/cli/check_workflow.py polylogue/storage/repair.py tests/unit/core/test_health_core.py tests/unit/cli/test_check.py tests/unit/cli/test_check_runtime.py tests/unit/storage/test_fts5.py` - `mypy polylogue tests` - `devtools verify --quick` Ref #270
Doctor maintenance and readiness logic had accumulated large inline blocks for session-product debt counting, CLI maintenance dispatch, archive debt checks, provider summaries, derived-model checks, and transcript-embedding freshness. The status/repair surface was hard to audit and fragile to extend during the broader renewal push. Adds explicit session-product repair assessment helpers in `storage/repair.py`. Adds small workflow helpers and a typed maintenance input object in `cli/check_workflow.py`. Extracts readiness builder functions in `readiness.py` for config paths, DB probes, message index status, archive debt, duplicate/provider summaries, derived models, and embedding freshness. Preserves VACUUM/persistence ordering in doctor CLI maintenance execution. Verification: pytest + mypy over repair / check / check_runtime / fts5 / health-core suites; devtools verify --quick green. Ref #270
Doctor maintenance and readiness logic had accumulated large inline blocks for session-product debt counting, CLI maintenance dispatch, archive debt checks, provider summaries, derived-model checks, and transcript-embedding freshness. The status/repair surface was hard to audit and fragile to extend during the broader renewal push. Adds explicit session-product repair assessment helpers in `storage/repair.py`. Adds small workflow helpers and a typed maintenance input object in `cli/check_workflow.py`. Extracts readiness builder functions in `readiness.py` for config paths, DB probes, message index status, archive debt, duplicate/provider summaries, derived models, and embedding freshness. Preserves VACUUM/persistence ordering in doctor CLI maintenance execution. Verification: pytest + mypy over repair / check / check_runtime / fts5 / health-core suites; devtools verify --quick green. Ref #270
Doctor maintenance and readiness logic had accumulated large inline blocks for session-product debt counting, CLI maintenance dispatch, archive debt checks, provider summaries, derived-model checks, and transcript-embedding freshness. The status/repair surface was hard to audit and fragile to extend during the broader renewal push. Adds explicit session-product repair assessment helpers in `storage/repair.py`. Adds small workflow helpers and a typed maintenance input object in `cli/check_workflow.py`. Extracts readiness builder functions in `readiness.py` for config paths, DB probes, message index status, archive debt, duplicate/provider summaries, derived models, and embedding freshness. Preserves VACUUM/persistence ordering in doctor CLI maintenance execution. Verification: pytest + mypy over repair / check / check_runtime / fts5 / health-core suites; devtools verify --quick green. Ref #270
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
Problem
Doctor maintenance and readiness logic had accumulated large inline blocks for session-product debt counting, CLI maintenance dispatch, archive debt checks, provider summaries, derived-model checks, and transcript-embedding freshness. That made the status/repair surface hard to audit and fragile to extend during the broader renewal push.
Solution
polylogue/storage/repair.py.polylogue/cli/check_workflow.py.polylogue/readiness.pyfor config paths, DB probes, message index status, archive debt, duplicate/provider summaries, derived models, and embedding freshness.Verification
pytest -q tests/unit/storage/test_repair.py tests/unit/cli/test_check.pypytest -q tests/unit/core/test_health_core.py tests/unit/cli/test_check.py tests/unit/cli/test_check_runtime.py tests/unit/storage/test_fts5.pymypy polylogue/storage/repair.py polylogue/cli/check_workflow.py tests/unit/storage/test_repair.py tests/unit/cli/test_check.pymypy polylogue/readiness.py polylogue/cli/check_workflow.py polylogue/storage/repair.py tests/unit/core/test_health_core.py tests/unit/cli/test_check.py tests/unit/cli/test_check_runtime.py tests/unit/storage/test_fts5.pymypy polylogue testsdevtools verify --quickRef #270