Skip to content

feat: identity ledger upsert, MCP resource pagination, stale exercise fix (#775, #819, #946) - #963

Merged
Sinity merged 3 commits into
masterfrom
feature/feat/wave1-fast-closures
May 8, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/feat/wave1-fast-closures

Conversation

@Sinity

@Sinity Sinity commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

Wave 1 fast closures: wires identity ledger INSERT into batch ingest, converts MCP resources to paginated envelopes, and replaces a stale showcase exercise.

Problem

Solution

Verification

pytest tests/unit/pipeline/ tests/unit/mcp/ tests/unit/showcase/ -q
# 648 passed
devtools verify --quick
# all checks passed

Deferred

🤖 Generated with Claude Code

Sinity and others added 3 commits May 8, 2026 08:41
- #775: Export SQL_IDENTITY_LEDGER_UPSERT and call it in _append_conversation
  after conversation upsert, recording (provider, source, provider_conversation_id,
  raw_hash, current_conversation_id) for identity-preserving re-ingest after reset.
- #946: Replace stale embed-stats exercise with daemon-embedding-readiness
  exercise that runs 'status --format json' and validates embedding_readiness field.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
…se fix

- #775: Export SQL_IDENTITY_LEDGER_UPSERT and wire it into _append_conversation
  in the batch ingest path, recording (provider, source, provider_conversation_id,
  raw_hash, current_conversation_id) for identity-preserving re-ingest after reset.
- #819: Replace bare-list resource responses with paginated envelopes in
  conversations_resource, provider_recent_resource, and session_tree_resource
  using conversation_query_result_payload with proper total/limit/offset.
- #946: Replace stale embed-stats exercise with daemon-embedding-readiness
  exercise that validates embedding_readiness field in status JSON output.
- Update MCP test to expect paginated envelope shape.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copilot AI review requested due to automatic review settings May 8, 2026 07:07
@coderabbitai

coderabbitai Bot commented May 8, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 23 minutes and 53 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 47790a94-fcc8-4ec9-a097-8f30129ed9da

📥 Commits

Reviewing files that changed from the base of the PR and between 23dc6bc and e3a128b.

📒 Files selected for processing (7)
  • docs/plans/file-size-budgets.yaml
  • docs/test-quality-workflows.md
  • polylogue/core/common.py
  • polylogue/mcp/server_resources.py
  • polylogue/pipeline/services/ingest_batch/_core.py
  • polylogue/showcase/exercise_catalog.json
  • tests/unit/mcp/test_server_surfaces.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/wave1-fast-closures

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 and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3a128b612

ℹ️ 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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 68.F074 / P1: stale at the checked revision: The former reset/re-ingest identity_ledger table and its append-only writer are absent from the pinned archive-tier implementation. Current session identities are represented by session_identity_claims, joined by provider-session namespace and provider value at polylogue/storage/sqlite/archive_tiers/write.py:8594-8598 rather than by the retired ledger path.

Only the rows listed above are dispositioned. Held findings remain open.

@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

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.

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.

2 participants