Repository navigation
chore: remove dead session-commit stubs and unused web-construct row - #2882
Conversation
Removes three dead/unused symbols confirmed to have zero call sites: 1. polylogue/insights/session_commit.py: - async persist_session_commits() — no-op placeholder, never called - session_commit_edge_to_row() — never called, writes done inline in _write_web_constructs 2. polylogue/storage/sqlite/archive_tiers/write.py: - ArchiveWebConstructRow dataclass — never instantiated, inline writes use plain tuples 3. tests/fuzz/README.md: - Fixed stale reference from polylogue.lib.timestamps (deleted module) to polylogue.core.timestamps No behavior change; all verification gates pass (devtools verify --quick). Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ 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 |
…mapping (#2906) ## Summary Re-verified `polylogue-a7xr.11`'s 2026-07-06 claim against current code (a lot has landed since, including PRs #2879/#2882). The protocol-pruning half held up; the kwarg-wrapper/TypedDict-deletion half did not. - Deleted 6 protocols from `core/protocols.py` confirmed to have zero consumers anywhere in the tree: `SessionReader`, `SearchStore`, `ArchiveMessageQueryStore`, `SemanticArchiveQueryStore`, `SessionSemanticStatsStore`, `SessionArchiveReadStore`. Methods that surviving protocols (`SessionQueryRuntimeStore`, `SessionOutputStore`, `SessionArchiveStatsStore`) actually needed are inlined directly instead of inherited from a now-deleted shared base — Protocol conformance is structural, so this changes nothing for real implementers. - **Not deleted** (bead's claim was wrong as of today): `RepositoryArchiveQueryMixin.list()`/`.list_summaries()`/`.count()` and `SessionListQueryKwargs`/`SessionCountQueryKwargs` are all alive, with real callers in `tests/integration/test_workflows.py`, `tests/unit/storage/test_query_security.py`, and `tests/benchmarks/*`. Two now-orphaned local commits independently corroborate this — another agent tried the same deletion and reverted it 13 minutes later after mypy caught real `**`-unpacking breakage. - Fixed the cursor field-spec bug the bead named: `archive/query/fields.py` mapped `record_attr="cursor"` onto a `SessionRecordQuery` field that doesn't exist — a latent `TypeError` waiting for any plan to ever carry a non-None cursor. Dropped the `record_attr` mapping (cursor still exists at the spec/plan layer) rather than inventing pagination machinery to justify keeping it. ## Verification - `mypy --strict` clean across `polylogue/` (992 files) - `devtools test` sweep across CLI query/session modules — 1 failure + 22 errors, all independently confirmed present identically on unmodified `origin/master` (sqlite trigger-already-exists collision, ref-operand-cycle test), zero new failures - `devtools verify --quick` (pre-push gate): exit 0, all 16 steps green Ref polylogue-a7xr.11 Co-Authored-By: Claude Sonnet 5 <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
Summary
Removes three dead/unused symbols confirmed to have zero call sites across the entire codebase:
insights/session_commit.py:
async persist_session_commits()— no-op placeholder, never called by any codesession_commit_edge_to_row()— never called; actual writes done inline in_write_web_constructsstorage/sqlite/archive_tiers/write.py:
ArchiveWebConstructRowdataclass — never instantiated; function uses plain tuples for INSERT rowstests/fuzz/README.md:
polylogue.lib.timestamps(deleted module) topolylogue.core.timestampsVerification
rggrep:rg persist_session_commits→ only definitionrg session_commit_edge_to_row→ only definitionrg ArchiveWebConstructRow→ only class definitiondevtools verify --quick✓ (format, lint, mypy, render, layering, topology, all pass)Ref polylogue-1a9.