← Back to Pull requests

feat(compose): run the a2a-gateway in the dev stack #744

Open
unknown opened this pull request with 207 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 03, 2026 03:36 UTC
Author

  • The a2a-gateway had no deployable artifact, so the default build was only ever exercised by tests.

  • The dev stack enables a Tier-1 declarative bundle so the gateway starts enforcing, not as a pass-through.

  • The gateway gets only account public keys to verify caller JWTs; the callout's minting seed never leaves the callout.
  • <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Dev-only Compose and bootstrap changes; JWT minting seeds stay on the callout while the gateway receives only public verification material.

    > Overview

    Adds a2a-gateway to the local Docker Compose stack so the Rust binary is built and run against real NATS, not only in tests. The service sources gateway.env before start, uses the shared TLS/creds layout, mounts a read-only Tier-1 policy directory, and turns on A2A_GATEWAY_TIER1_DECLARATIVE_ENABLED so ingress is policy-enforced rather than a pass-through.

    > nats-bootstrap now provisions clients/a2a-gateway/ with A2A_GATEWAY_CALLER_JWT_ISSUER_KEYS (public half of the callout’s tenant DEV signing seed) and A2A_GATEWAY_JWT_AUDIENCE (DEV account key), and runs the PLATFORM user as uid 1000 to match the image. A compose-local Dockerfile (cargo-chef, same pattern as a2a-auth-callout), README, and an example tier-1 rule that denies quarantined-* agent ids round out the dev wiring.

    > <sup>Reviewed by Cursor Bugbot for commit e888c8c6c078a21ad5e5bce99abb96e082674ae8. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 207 lines (+155 / -52) across 2 files Reviewer: yordis Review duration: 4377m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.41) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 207 lines diff across 2 files
    0.41
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.319
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #744"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 41.4% (MEDIUM) · Higher = larger blast radius
    41.4%
    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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 23.6% · Safe to merge
    23.6%