← Back to Pull requests

feat(cpp): add stream, topic, and partition functions to high level client #4022

Closed
unknown closed this pull request without merging on Sep 12, 2026 10:57 UTC
View on GitHub
unknown unknown commented on Sep 01, 2026 10:17 UTC
Author

Which issue does this PR address?

<!--
We generally require a GitHub issue for all bug fixes and enhancements. Link it with GitHub syntax, keep the line that applies and delete the other:

  • Closes #123 auto-closes the issue when this PR merges (full fix).

  • Relates to #123 links without closing (partial or related work).

  • -->

    Closes #
    Relates to #2100

    Rationale

    <!--
    Why is this change needed? If the issue explains it well, a one-liner is fine.
    -->

    Adds function to the high level cpp client.

    What changed?

    Adds stream, topic, and partition management to the high-level C++ client
    (IggyBlockingClient):

  • Streams: CreateStream / UpdateStream / GetStreams / GetStream / PurgeStream / DeleteStream

  • Topics: CreateTopic / UpdateTopic / GetTopics / GetTopic / PurgeTopic / DeleteTopic

  • Partitions: CreatePartitions / DeletePartitions
  • New supporting types in iggy.hpp: IggyException, LoginInfo, Identifier,
    HeaderKind / HeaderField / HeaderEntry, ResourceOptions, and the
    Topic / Partition / TopicDetails / StreamDetails / Stream entities;
    option builders TopicCreateOptions, TopicUpdateOptions, StreamUpdateOptions.
    UpdateStream now takes StreamUpdateOptions; CreateTopic / UpdateTopic
    now take option builders instead of string args. PollingStrategy returns a
    structured Kind() / Value() object instead of two strings.

    Rust FFI (lib.rs, client.rs, type_conversion.rs) gains
    ffi::TopicCreateOptions / ffi::TopicUpdateOptions structs (with has_*
    flags), updates create_topic / update_topic / update_stream signatures,
    and adds TryFrom conversions. New type_conversions.cpp adds FromFfi /
    ToFfi helpers for the new types.

    Tests: LowLevelE2E_Stream -> E2E_Stream / LowLevelE2E_Topic -> E2E_Topic / LowLevelE2E_Partition -> E2E_Partition suites; client,
    consumer_group, and message suites converted to the high-level client; new
    unit tests for the option builders; BDD messaging steps switched to
    iggy::ffi::TopicCreateOptions;

    Local Execution

  • Passed

  • Pre-commit hooks ran
  • AI Usage

    If AI tools were used, please answer:
    1. Which tools? codex and muse spark 1.2
    2. Scope of usage? code generation
    3. How did you verify the generated code works correctly? read through it. tested it.
    4. Can you explain every line of the code if asked? yes.

    Diff: 307 lines (+230 / -77) across 3 files Reviewer: amlel-el-mahrouss Review duration: 15880m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 307 lines diff across 3 files
    0.40
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4022"
    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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.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.9% · Safe to merge
    15.9%
    Repository