← Back to Pull requests

feat(cpp): Add functions related to consumer groups #2988

Closed
unknown closed this pull request without merging on Apr 01, 2026 06:31 UTC
View on GitHub
unknown unknown commented on Mar 20, 2026 14:01 UTC
Author

Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements. You can link an issue to this PR using the GitHub syntax. For example Closes #123 indicates that this PR will close issue #123.
-->

Works towards completion of #2763

Rationale

<!--
Why is this change needed? If the issue explains it well, a one-liner is fine.
-->
Additions to the cpp bindings to make it feature complete.

What changed?

<!--
2-4 sentences. Problem first (before), then solution (after).

GOOD:

"Messages were unavailable when background message_saver committed the
journal and started async disk I/O before completion. Polling during
this window found neither journal nor disk data.

The fix freezes journal batches in the in-flight buffer before async persist."

GOOD:

"When many small messages accumulate in the journal, the flush passes
thousands of IO vectors to writev(), exceeding IOV_MAX (1024 on Linux)."

BAD:

  • Walls of text

  • "This PR adds..." (we can see the diff)

  • -->
    Add consumer-group creating and deletion functions. Also adds commented out purge_topic and purge_stream but those require the ability to actually send messages to the server, which is not yet implemented. Will be added once they can be tested. Also adds create_partition, delete_partitions, and functions that allow cpp user to directly create identifiers instead of manually defining everything.

    Local Execution

  • Passed

  • Pre-commit hooks ran
  • <!--
    You must run your code locally before submitting.
    "Relying on CI" is not acceptable - PRs from authors who haven't run the code will be closed.

    Did you have prek installed? It runs automatically on commit and covers all project languages. See CONTRIBUTING.md.
    -->

    AI Usage

    If AI tools were used, please answer:
    1. codex
    2. code generation
    3. manual planning and inspection, local execution
    4. Can you explain every line of the code if asked? Yes

    Diff: 259 lines (+194 / -65) across 3 files Reviewer: amlel-el-mahrouss Review duration: 16830m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 259 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2988"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.2% (MEDIUM) · Higher = larger blast radius
    39.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%
    Repository