Repository navigation
fix: address review feedback on #959 — PR #944 reconciliation - #961
Conversation
- Add schema v12 in-place migration (ALTER TABLE for cost/token columns on messages and session_profiles) - Fix outlook cycle-end calculation: use start.month, not now.month - Make _as_float robust against ValueError/TypeError - Update SessionProfileDocument TypedDict with cost fields; hydrate session profile dict with cost provenance - source_name extraction: use isinstance check instead of str() at all 3 sites - Remove unconditional legacy DB fallback in ConversationFormatter - Restore stricter FTS-index-incomplete assertion in test_check.py - Preserve connection-cleanup contract in test_vec.py - Restore attachment idempotency assertions in test_prepare.py - Tighten daemon-status and session-status assertions - Add all() empty-guard in test_artifact_graph.py - Restore test_cost_queries specificity with get_credit_rate check - Document --no-* flags in NixOS module - Use compiled regex for <file path= context-dump detection - Add mutation operation contract assertions in test_specs.py - Fix PR number reference in SCHEMA_VERSION comment - Addresses all 21 review comments on #959
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ 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 (14)
✨ 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 |
Three assertions claimed invariants the code doesn't guarantee: - test_ingest_idempotent: save_bundle idempotency is hash-dependent - test_check: FTS readiness model treats empty index on seeded archive as ok - test_daemon_status: freshness_info probed twice (status + deep readiness) Co-Authored-By: Claude Opus 4.7 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 194b6223b9
ℹ️ 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".
|
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
Post-merge review feedback follow-up for #959. Hardens defensive code, fills in a missing schema upgrade plan, and tightens test assertions.
Problem
Several review findings surfaced after #959 merged:
str()calls onprovider_meta.get("source")could crash on non-string values_as_float()in outlook.py could crash on non-numeric valuesbuild_v11_to_v12_upgrade_planwas missing — the v12 schema had no in-place upgrade pathcore_formatter.pyhad a fallback toarchive_root / "polylogue.db"that masked config issuesSolution
<file path=scan (also a minor perf improvement)float()in try/except; fix month reference in_resolve_cycleprovider_meta["source"]archive_root / "polylogue.db"build_v11_to_v12_upgrade_planwith cost/token columns for both messages and session_profilesVerification
devtools verify --quick(pre-push hook) — all checks passedpytest tests/unit/cli/test_check.py tests/unit/cli/test_status.py tests/unit/daemon/test_daemon_status.py tests/unit/pipeline/test_prepare.py tests/unit/storage/test_cost_queries.py tests/unit/storage/test_vec.py -q— focused test run🤖 Generated with Claude Code