Skip to content

chore: remove dead session-commit stubs and unused web-construct row - #2882

Merged
Sinity merged 1 commit into
masterfrom
worktree-wf_54d4fb2e-841-18
Jul 14, 2026
Merged

Sinity merged 1 commit into
masterfrom
worktree-wf_54d4fb2e-841-18

Conversation

@Sinity

@Sinity Sinity commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

Removes three dead/unused symbols confirmed to have zero call sites across the entire codebase:

  1. insights/session_commit.py:

    • async persist_session_commits() — no-op placeholder, never called by any code
    • session_commit_edge_to_row() — never called; actual writes done inline in _write_web_constructs
  2. storage/sqlite/archive_tiers/write.py:

    • ArchiveWebConstructRow dataclass — never instantiated; function uses plain tuples for INSERT rows
  3. tests/fuzz/README.md:

    • Fixed stale documentation reference from polylogue.lib.timestamps (deleted module) to polylogue.core.timestamps

Verification

  • All call sites confirmed absent via rg grep:
    • rg persist_session_commits → only definition
    • rg session_commit_edge_to_row → only definition
    • rg ArchiveWebConstructRow → only class definition
  • devtools verify --quick ✓ (format, lint, mypy, render, layering, topology, all pass)
  • Pre-push hook ✓ (all 15 verification stages passed)
  • No behavior change — mechanical cleanup only

Ref polylogue-1a9.

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]>
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 39 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: af759f03-9c5b-46a6-9241-e889e475d1b5

📥 Commits

Reviewing files that changed from the base of the PR and between 3796f54 and 3b5e4d9.

📒 Files selected for processing (3)
  • polylogue/insights/session_commit.py
  • polylogue/storage/sqlite/archive_tiers/write.py
  • tests/fuzz/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch worktree-wf_54d4fb2e-841-18

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 3ab148e into master Jul 14, 2026
2 checks passed
@Sinity
Sinity deleted the worktree-wf_54d4fb2e-841-18 branch July 14, 2026 17:22
Sinity added a commit that referenced this pull request Jul 14, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant