Repository navigation
refactor: renew session-product runtime contracts - #234
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 28 minutes and 52 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 (20)
✨ 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 |
Ref #225 Ref #222 ## Summary - replace dict-shaped session-product rebuild counts with a typed runtime counter object - replace dict-shaped session-product status snapshots with a typed runtime snapshot and ready-flag helper - carry the new contracts through archive operations, repair, embedding stats, benchmark tooling, and the direct tests ## Problem The session-product runtime still exposed broad dict payloads for rebuild counts and readiness snapshots. That kept storage, repair, and product surfaces stringly-typed even after the earlier substrate renewal work, and it forced tests plus benchmark tooling to keep patching and indexing anonymous containers. ## Solution Added `SessionProductCounts` and `SessionProductStatusSnapshot` in `polylogue/storage/session_product_runtime.py`, then moved `session_product_refresh.py`, `session_product_rebuild.py`, and `session_product_status.py` onto those contracts. Updated the downstream storage/query/facade surfaces and the consumers that actually inspect the status data, especially `operations/archive.py`, `storage/repair.py`, `storage/derived_status.py`, `storage/embedding_stats_support.py`, and `devtools/synthetic_benchmark_runtime.py`. ## Verification - `devtools verify`
The session-product runtime still exposed broad dict payloads for rebuild counts and readiness snapshots. Storage, repair, and product surfaces remained stringly-typed even after the earlier substrate renewal; tests and benchmark tooling kept patching and indexing anonymous containers. Adds `SessionProductCounts` and `SessionProductStatusSnapshot` in `storage/session_product_runtime.py`, then moves `session_product_refresh.py`, `session_product_rebuild.py`, and `session_product_status.py` onto those contracts. The downstream storage/query/facade surfaces and the consumers that inspect status data — especially `operations/archive.py`, `storage/repair.py`, `storage/derived_status.py`, `storage/embedding_stats_support.py`, and `devtools/synthetic_benchmark_runtime.py` — adapt to the typed shape. Verification: devtools verify green. Ref #225 Ref #222
The session-product runtime still exposed broad dict payloads for rebuild counts and readiness snapshots. Storage, repair, and product surfaces remained stringly-typed even after the earlier substrate renewal; tests and benchmark tooling kept patching and indexing anonymous containers. Adds `SessionProductCounts` and `SessionProductStatusSnapshot` in `storage/session_product_runtime.py`, then moves `session_product_refresh.py`, `session_product_rebuild.py`, and `session_product_status.py` onto those contracts. The downstream storage/query/facade surfaces and the consumers that inspect status data — especially `operations/archive.py`, `storage/repair.py`, `storage/derived_status.py`, `storage/embedding_stats_support.py`, and `devtools/synthetic_benchmark_runtime.py` — adapt to the typed shape. Verification: devtools verify green. Ref #225 Ref #222
The session-product runtime still exposed broad dict payloads for rebuild counts and readiness snapshots. Storage, repair, and product surfaces remained stringly-typed even after the earlier substrate renewal; tests and benchmark tooling kept patching and indexing anonymous containers. Adds `SessionProductCounts` and `SessionProductStatusSnapshot` in `storage/session_product_runtime.py`, then moves `session_product_refresh.py`, `session_product_rebuild.py`, and `session_product_status.py` onto those contracts. The downstream storage/query/facade surfaces and the consumers that inspect status data — especially `operations/archive.py`, `storage/repair.py`, `storage/derived_status.py`, `storage/embedding_stats_support.py`, and `devtools/synthetic_benchmark_runtime.py` — adapt to the typed shape. Verification: devtools verify green. Ref #225 Ref #222
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! ℹ️ 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". |
Ref #225
Ref #222
Summary
Problem
The session-product runtime still exposed broad dict payloads for rebuild counts and readiness snapshots. That kept storage, repair, and product surfaces stringly-typed even after the earlier substrate renewal work, and it forced tests plus benchmark tooling to keep patching and indexing anonymous containers.
Solution
Added
SessionProductCountsandSessionProductStatusSnapshotinpolylogue/storage/session_product_runtime.py, then movedsession_product_refresh.py,session_product_rebuild.py, andsession_product_status.pyonto those contracts. Updated the downstream storage/query/facade surfaces and the consumers that actually inspect the status data, especiallyoperations/archive.py,storage/repair.py,storage/derived_status.py,storage/embedding_stats_support.py, anddevtools/synthetic_benchmark_runtime.py.Verification
devtools verify