Repository navigation
feat(storage): ArchiveWriteGateway, tags M2M, insights.db, blob GC (#618, #722, #750) - #756
Conversation
#618, #722, #750) Problem: write side effects (FTS repair, cache invalidation) were scattered across ingest_batch.py; schema v4 lacked tags M2M, blob GC lease tables, and insights.db separation. Solution: - E1: ArchiveWriteGateway + write_effects — canonical write path with daemon RPC stub (slice G), process-local async lock, and consolidated side effects (FTS repair, cache invalidation) in write_effects.py. ingest_batch.py's post-write path routes through the gateway. - E2: Tags M2M (tags + conversation_tags tables), blob lease tables (pending_blob_refs, gc_generations) added to schema DDL. InsightsDB class with separate insights.db lifecycle. - E3: run_blob_gc() with lease, generation, and MIN_AGE safety guards. - Schema v4->v5 upgrade plan; v3 and v2 paths composed forward. Modules touched: polylogue/archive/write_effects.py — new (canonical side effects) polylogue/archive/write_gateway.py — new (gateway + lock) polylogue/insights/storage.py — new (insights.db) polylogue/storage/blob_gc.py — new (GC with leases) polylogue/pipeline/services/ingest_batch.py — redirected through gateway polylogue/storage/backends/schema.py — v4->v5 upgrade action polylogue/storage/backends/schema_bootstrap.py — extension desc, v4->v5 plan polylogue/storage/backends/schema_ddl.py — version 5, new DDL composition polylogue/storage/backends/schema_ddl_archive.py — TAGS_M2M_DDL, BLOB_LEASE_DDL CHANGELOG.md — unreleased entries Verification: ruff check + mypy pass on all new/modified files. ruff format --check: 9 files already formatted ruff check: All checks passed mypy: Success: no issues found in 4 source files Schema bootstrap decisions verified: v2/v3/v4/v5 all route correctly 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 (10)
✨ 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 30 minutes and 1 second.Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 506b1f4412
ℹ️ 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".
, #722, #750) (#756) Rebased on post-rename master. Storage v2 corrections. 10 files. 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. |
Rebased on post-rename master. Storage v2 corrections. 10 files.