← Back to Pull requests

feat(cpp): add functions related to system #3102

Closed
unknown closed this pull request without merging on May 25, 2026 10:48 UTC
View on GitHub
unknown unknown commented on Apr 12, 2026 14:28 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 toward completion of #2100

Rationale

This PR adds functions related to the system, and tests for previously untested functions.

What changed?

This PR adds:

  • The following functions and their tests:

  • - get_stats
    - get_me
    - get_client
    - get_clients
    - ping
    - heartbeat_interval
    - snapshot

    The places labelled TODO will be completed after merging of #3046.

    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. Which tools? (e.g., GitHub Copilot, Claude, ChatGPT) codex
    2. Scope of usage? (e.g., autocomplete, generated functions, entire implementation) code generation based on explicit instructions given by me.
    3. How did you verify the generated code works correctly? ran the tests, read through and understood the generated code
    4. Can you explain every line of the code if asked? yes

    Diff: 190 lines (+142 / -48) across 2 files Reviewer: amlel-el-mahrouss Review duration: 61699m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 190 lines diff across 2 files
    0.36
    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.314
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3102"
    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: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    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: 14.2% · Safe to merge
    14.2%
    Repository