← Back to Pull requests

ci: migrate Python SDK PyPI publishing to OSS Exit Gate #884

Open
unknown opened this pull request with 156 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 07, 2026 00:39 UTC
Author

Summary


Migrates agentmesh-p2p PyPI publishing in the publish-sdk-python job of .github/workflows/release.yml to publish through Google's OSS Exit Gate (agentmesh/pypi). goreleaser and publish-sdk-js remain unchanged.

Changes


  • Keeps job-scoped least-privilege permissions (contents: read, id-token: write) and 40-character SHA-pinned actions (google-github-actions/auth, google-github-actions/setup-gcloud) matching repository OSSF Scorecard checks.

  • Authenticates via Google Cloud Workload Identity Federation (projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).

  • Stages sdk/python/dist/* with --skip-existing to https://us-python.pkg.dev/oss-exit-gate-prod/agentmesh--pypi/ and uploads manifest.json to gs://oss-exit-gate-prod-projects-bucket/agentmesh/pypi/manifests/ to trigger the OSS Exit Gate PyPI release pipeline.
  • Verification (Step 8 Production Smoke Test)


  • Production onboarding config (agentmesh/pypi, http://cl/1015460833) and Terraform provisioning (http://cl/1015477689) are live.

  • End-to-end Artifact Registry PyPI staging (agentmesh-p2p==0.2.0, HTTP 200) and GCS manifest upload (HTTP 200) verified.
  • Refs: b/582363047, b/576680589

    Diff: 156 lines (+117 / -39) across 1 files Reviewer: aojea Review duration: 15271m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.56) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.56 · 156 lines diff across 1 files
    0.56
    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%
    40%
    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.303
    Sensitive Paths sensitive_paths
    0.056
    Real PR Conversation Timeline
    1 comments
    "Review active on #884"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.5% reviewed sensitive_module
    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: 56.4% (MEDIUM) · Higher = larger blast radius
    56.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: 40.5% · Lower = rushed or shallow review
    40.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: 33.6% · Safe to merge
    33.6%