← Back to Pull requests

test(e2e): add Kagent lifecycle scenarios #665

Closed
unknown closed this pull request without merging on Sep 14, 2026 16:50 UTC
View on GitHub
unknown unknown commented on Aug 28, 2026 22:11 UTC
Author

<!--
Thanks for opening a PR! Please delete any sections that don't apply.
-->

Description

<!--
A concise explanation of the change. You may include:

  • Motivation: why this change is needed

  • What changed: key implementation details

  • Related issues: e.g., Fixes #123

  • -->
    Adds Kind-based E2E coverage for the Kagent runtime adapter.

  • Exercises Agent deployment, idempotent reapply, model configuration, and removal.

  • Exercises remote and source-backed MCPServer deployment, live tool discovery, and removal.

  • Verifies an Agent can consume a deployed MCPServer

  • Verifies out-of-band Kagent Agents are discovered and removed from AgentRegistry.

  • Generates runnable scenario documentation from successful test executions.
  • This PR is stacked on the Kagent runtime adapter branch and should target xytian315/oss-kagent. Retarget it to main after the adapter PR merges.

    Change Type

    <!--
    Select one or more of the following by including the corresponding slash-command:

    /kind breaking_change
    /kind bump
    /kind cleanup
    /kind design
    /kind deprecation
    /kind documentation
    /kind feature
    /kind fix
    /kind flake
    /kind install
    

    -->
    /kind documentation

    Changelog

    <!--
    Provide the exact line to appear in release notes for the chosen changelog type.

    If no, just write "NONE" in the release-note block below.
    If yes, a release note is required:
    -->

    ``release-note
    NONE

    
    # Additional Notes
    
    <!--
    Any extra context or edge cases for reviewers.
    -->
    
    make test-e2e E2E_SUITE=kagent``

    Diff: 196 lines (+147 / -49) across 2 files Reviewer: lcopi Review duration: 24159m
    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 · 196 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.316
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #665"
    general weight: 0.35
    Reviewers
    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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    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%