← Back to Pull requests

Adjust verification.sh to the session mode. #122

Closed
unknown closed this pull request without merging on Nov 12, 2026 13:21 UTC
View on GitHub
unknown unknown commented on Nov 12, 2026 13:20 UTC
Author

ros2 ai without a request now starts the interactive session (#34), so scripts/verification.sh blocked on the prompt with its bare ros2 ai entry (the release script runs the container with -it).

  • the interactive session is verified by piping the requests to the standard input: EOF, say hello / /help / /clear / exit, a two-turn session ended by quit, and a piped session with --continue.

  • the session file is isolated via ROS2AI_SESSION_FILE in a temporary directory removed on exit, so the verification never touches the session of the user.

  • --continue (single request, plain and with -v) and --trace are verified as well.

  • eval "$command" is quoted, and check_and_exit reports and exits with the actual status instead of the zero left by its own echo.
  • Verified in the rolling container (Ubuntu 26.04, no tty) against Anthropic claude-sonnet-5-5: all 26 commands return successfully, --continue and the piped sessions recall the previous turns.

    🤖 Generated with Claude Code

    Diff: 132 lines (+99 / -33) across 1 files Reviewer: fujitatomoya Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.37) × (1 − Review Confidence (0.39)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 132 lines diff across 1 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 32% · Reviewer familiarity: 35%
    39%
    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.293
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #122"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 39.1% 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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.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: 39.1% · Lower = rushed or shallow review
    39.1%
    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: 22.7% · Safe to merge
    22.7%