Repository navigation
feat(storage): cursor schema expansion and stat-based fast path (#736, #719) - #758
Conversation
Problem: The mtime-only fast path relies on ISO-format TEXT comparison from raw_conversations.file_mtime, which provides only second-level precision and no device/inode identity check. A file replaced between runs (same path, new content) is undetected if the timestamp rounds to the same second. Additionally each source scan stats every file even when cursor data would prove it unchanged. Solution: - Add source_file_cursor table (15 columns, DDL via SchemaScriptExtensionDescriptor — no SCHEMA_VERSION bump) tracking st_dev, st_ino, st_size, mtime_ns plus future fields (byte_offset, content_fingerprint, parser_fingerprint, etc.) - Add get_known_source_cursors() / upsert_source_file_cursor() queries in repository layer - Add _stat_matches_cursor() to sources/cursor.py — compares all 4 stat fields (dev, ino, size, mtime_ns) against live os.stat_result - Insert cursor fast path in _select_paths_for_processing() before the mtime comparison; cursor match skips file without further I/O - Hook cursor persistence into visit_sources() with a persist_cursors flag (disabled during planning scans to avoid poisoning subsequent acquire passes) - 7 breaker tests verifying: full match skips, size mismatch processes, inode mismatch processes, cursor overrides mtime, sparse dict fails Verification: - pytest unit suites: 1949 passed (pipeline, CLI, storage, sources) - devtools verify: all checks passed (format, lint, mypy, render-all, topology, layering, budgets, ownership, manifests, tests) - topology-target.yaml updated for 4 new/missing files, 3 stale entries removed Co-Authored-By: Claude <[email protected]>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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. Review rate limit: 0/1 reviews remaining, refill in 15 minutes and 10 seconds.Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a77aa46243
ℹ️ 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".
…#719) (#758) Cursor schema with st_dev/st_ino/st_size/mtime_ns/byte_offset/failure_count/excluded. Stat fast path. Bug fix: cursor persistence during planning. Co-authored-by: Claude <[email protected]>
|
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. |
|
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. |
Cursor schema with st_dev/st_ino/st_size/mtime_ns/byte_offset/failure_count/excluded. Stat fast path. Bug fix: cursor persistence during planning.