Repository navigation
feat(cursor): stat metadata, failure quarantine, adversary tests (#620) - #762
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe live cursor tracking system is extended to store filesystem metadata ( ChangesCursor Failure & Quarantine Tracking
Sequence DiagramsequenceDiagram
participant LW as LiveWatcher
participant CS as CursorStore
participant DB as SQLite DB
participant FS as Filesystem
LW->>FS: stat() & read() file
LW->>LW: parse JSONL
alt Parse Succeeds
LW->>CS: set(path, st_dev, st_ino, mtime_ns, ...)
CS->>DB: INSERT...ON CONFLICT UPDATE
LW->>CS: reset_failures(path)
CS->>DB: UPDATE failure_count=0, next_retry_at=NULL
else Parse Fails
LW->>CS: mark_failed(path)
CS->>DB: UPDATE failure_count++, next_retry_at=BACKOFF_TIME
end
LW->>CS: list_failed_with_retry()
CS->>DB: SELECT * WHERE retry_eligible
CS-->>LW: paths ready for retry
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–25 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 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 60 minutes.Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33e7ebce14
ℹ️ 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".
… (#762) Added st_dev/st_ino/mtime_ns to cursor records. Failure count + exponential backoff + excluded quarantine. Mark_failed on parse errors, reset_failures on success. 10 adversary tests.
|
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. |
Added st_dev/st_ino/mtime_ns to cursor records. Failure count + exponential backoff + excluded quarantine. Mark_failed on parse errors, reset_failures on success. 10 adversary tests.
Summary by CodeRabbit
Release Notes
New Features
Tests