Skip to content

Internal cleanup - #32130

Merged
Jinwoo-H merged 3 commits into
mainfrom
jinwoo/connector-receipt-capacity
Oct 23, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
jinwoo/connector-receipt-capacity

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

…ipt ledger

Connector deliveries now refuse with delivery_backlog_full once 1,000 are
unsettled, and a new seam settles a previous process's pending connector
receipts as completed-unknown so the ledger can prune them.
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84c11acd-cdef-4d82-9ef3-21fc260ccea2
📥 Commits

Reviewing files that changed from the base of the PR and between 2a62927 and 25be15b.

📒 Files selected for processing: 5
  • src/main/external-conversations/external-conversation-seam.test-fixture.ts
  • src/main/external-conversations/external-conversation-seam.ts
  • src/main/external-conversations/external-conversation-types.ts
  • src/main/external-conversations/external-conversations-install.test.ts
  • src/main/external-conversations/external-conversations-install.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

📝 Walkthrough

The changes add pending mutation receipt count and settlement operations. Connector delivery receipts now settle pending connector receipts on the first call and refuse new deliveries when the pending count reaches 1,000. The installation creates one DeliveryReceipts instance and injects it into the external conversation seam. Tests cover capacity, duplicate requests, restart handling, caller isolation, and retries while a delivery remains pending.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 25be1

Connector re-enablement no longer settles a delivery that is still running. No actionable merge-blocking risk remains after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 9 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: preventing connector backlog growth from exhausting the orchestration receipt ledger.
Description check Passed The description is complete and focused. It explains the problem, user-visible behavior, implementation, rationale, testing, compatibility considerations, and checklist status. The lack of a linked is…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is complete and focused. It explains the problem, user-visible behavior, implementation, rationale, testing, compatibility considerations, and checklist status. The lack of a linked issue is explicitly explained as an internal audit finding, and manual testing is clearly marked incomplete while automated testing is documented.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 00f9c499-2994-44a4-9dcc-404b504567e2
📥 Commits

Reviewing files that changed from the base of the PR and between c1a47b0 and 4e7b0d8.

📒 Files selected for processing: 4
  • src/main/external-conversations/external-conversation-delivery-receipts.test.ts
  • src/main/external-conversations/external-conversation-delivery-receipts.ts
  • src/main/external-conversations/external-conversation-types.ts
  • src/main/runtime/orchestration/db/mutation-receipts/mutation-receipt-store.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

…enable's

The delivery receipt owner now lives for the install (one per process) and
is shared by every enabled-period seam, so toggling connectors off and on
no longer completes this process's still-running deliveries as unknown.
…ipt-capacity

# Conflicts:
#	src/main/external-conversations/external-conversation-seam.test.ts
#	src/main/external-conversations/external-conversation-seam.ts
#	src/main/external-conversations/external-conversation-types.ts
#	src/main/external-conversations/external-conversations-install.test.ts
@Jinwoo-H
Jinwoo-H merged commit 2f2a0bc into main Oct 23, 2026
61 of 63 checks passed
@Jinwoo-H Jinwoo-H changed the title fix(connectors): a connector backlog cannot fill orchestration's receipt ledger Internal cleanup Nov 4, 2026
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