PRism - Deployment Risk Intelligence

March 16, 2026 ยท View on GitHub

PRism

PRism - Deployment Risk Intelligence

Agentic Pre-Deployment Risk Gate, Powered by Microsoft AI Platform

Every engineer has shipped a breaking change. Tests passed. Linter was clean. And then production went down.

PRism exists because "tests pass" โ‰  "safe to ship."


License: MIT Azure Built with Microsoft Foundry GitHub Copilot


๐ŸŽฌ Watch the 2-minute Demo on YouTube

๐Ÿ—๏ธ Architecturearchitecture.mermaid
๐ŸŒ Setup Platformprism-dev-platform.orangemushroom-cc646ad1.eastus2.azurecontainerapps.io
๐Ÿ”Œ VS Code Extensionmarketplace.visualstudio.com
๐ŸŽฌ Demo Videoyoutube.com/watch?v=3jAxC7I3zYk

The Problem

Current CI/CD pipelines are binary and stateless. They ask one question: "Did the tests pass?"

They never ask:

  • Has this file caused production incidents before?
  • Did test coverage actually drop for these new code paths?
  • Are we deploying at 4:58 PM on a Friday before a long weekend?
  • Was retry logic silently removed from a payment-critical path?

This makes deployment decisions feel like guesswork โ€” and sometimes, they are. The result is incidents that were entirely preventable, post-mortems written at 2 AM, and engineers afraid to merge.

PRism changes that. Instead of a binary pass/fail gate, PRism gives every PR a Deployment Confidence Score (0โ€“100) โ€” a multi-agent risk assessment that considers code quality, historical incidents, test coverage, and operational timing, all in real time.


How It Works (High-Level Overview)

PRism triggers automatically when a PR is opened or updated. Four specialized AI agents analyze the change in parallel, each returning a structured JSON payload via a shared Data Contract. The Verdict Agent ingests all four payloads and converges on a single governed decision.

Developer opens PR on GitHub
          โ”‚
          โ–ผ
  prism-gate.yml (GitHub Actions)
  auto-installed by Setup Wizard
          โ”‚
          โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            ORCHESTRATOR AGENT               โ”‚
โ”‚       (Microsoft Agent Framework)           โ”‚
โ”‚    Governed by Microsoft Foundry            โ”‚
โ””โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
   โ”‚          โ”‚          โ”‚          โ”‚
   โ–ผ          โ–ผ          โ–ผ          โ–ผ
[Diff     [History   [Coverage  [Timing        โ† Parallel execution
Analyst]  Agent]     Agent]     Agent]
   โ”‚          โ”‚          โ”‚          โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                    โ”‚
             ๐Ÿ“‹ Data Contract
          (unified JSON schema)
                    โ”‚
                    โ–ผ
            VERDICT AGENT
      Deployment Confidence Score
           + Risk Brief
           + Rollback Playbook
                    โ”‚
         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
         โ–ผ                     โ–ผ
    Score โ‰ฅ 70            Score < 70
    โœ… Greenlight          โ›” Block Deploy
                          + Auto-generate
                            missing tests
                            via Copilot
                          + Rollback plan

See architecture.mermaid for the detailed system diagram (view on GitHub).


The Agents

AgentSignalHero Tech
Diff AnalystScans PR diff for dangerous patterns โ€” removed retry logic, missing error handlers, schema changes, hardcoded secretsGitHub MCP Server + Azure OpenAI
History AgentCorrelates changed files with past production incidents via semantic search โ€” "payment_service.py involved in 4 of last 8 incidents"Azure MCP Server + Azure AI Search
Coverage AgentDetects test coverage regression; triggers GitHub Copilot Coding Agent to auto-write missing tests and open a new PRGitHub Copilot Coding Agent
Timing AgentFlags high-risk deployment windows โ€” Friday deploys, after-hours merges, pre-release proximity, US federal holidaysMicrosoft Agent Framework
Verdict AgentIngests all four JSON payloads, computes Deployment Confidence Score (0โ€“100), generates risk brief and rollback playbook via GPT-4o-mini with Azure Content Safety guardrailsMicrosoft Foundry

Agent Weights: Diff Analyst 30% ยท History Agent 25% ยท Coverage Agent 25% ยท Timing Agent 20%


The Data Contract

Every specialist agent returns a standardized JSON payload. This enables true parallel execution โ€” the Orchestrator dispatches all four agents simultaneously and the Verdict Agent aggregates without sequential handoffs.

{
  "agent_name": "string",
  "risk_score_modifier": 25,
  "status": "warning",
  "findings": [
    "Specific finding 1",
    "Specific finding 2"
  ],
  "recommended_action": "Plain-English recommendation for the Verdict Agent."
}
FieldTypeDescription
agent_namestringIdentifier for the agent
risk_score_modifierinteger 0โ€“1000 = perfectly safe, 100 = critical failure
statusenum"pass" ยท "warning" ยท "critical"
findingsstring[]Specific, actionable findings
recommended_actionstringPlain-English recommendation for aggregation

Sample Output

A PR comment posted automatically by PRism:

๐Ÿ”ฌ PRism Deployment Risk Assessment

Confidence Score: 21 / 100  โ›” HIGH RISK โ€” Deploy Blocked

Risk Brief:
  โ€ข payment_service.py linked to 4 of the last 8 production incidents
  โ€ข Test coverage dropped 9% (3 new functions have no tests)
  โ€ข Deployment window: Friday 4:47 PM โ€” historically high incident rate
  โ€ข retry logic removed from a payment-critical path

Action Taken:
  โœ… Missing tests auto-generated by Copilot โ†’ PR #47 opened for review
  ๐Ÿ“‹ Rollback playbook generated โ†’ attached to this PR comment

To override, a maintainer with write access must manually approve.

Tech Stack

CategoryTechnology
Agent OrchestrationMicrosoft Agent Framework (Semantic Kernel)
AI ModelsAzure OpenAI GPT-4o-mini (Sweden Central) via Microsoft Foundry
Platform & GovernanceMicrosoft Azure AI Foundry (azure-ai-projects)
ObservabilityOpenTelemetry + Azure Monitor / Application Insights
Content SafetyAzure Content Safety
Tool ConnectivityAzure MCP Server ยท GitHub MCP Server
Semantic Incident SearchAzure AI Search (BM25 + semantic ranking)
Incident IngestionAzure Functions (Timer + Event Grid + HTTP triggers)
Code GenerationGitHub Copilot Coding Agent (auto-generates missing tests)
Cloud InfrastructureAzure Container Apps ยท Azure PostgreSQL ยท Azure Container Registry
Infrastructure as CodeBicep + PowerShell deploy scripts
BackendPython 3.12 / FastAPI / Uvicorn
DatabaseSQLite (dev) ยท PostgreSQL via asyncpg (production)
AuthenticationGitHub OAuth2 ยท JWT (PyJWT) ยท Fernet AES encryption
IDE IntegrationVS Code Extension (TypeScript)
CI/CDGitHub Actions (self-dogfooding with prism-gate.yml)

Project Structure

PRism/
โ”œโ”€โ”€ .github/
โ”‚   โ”œโ”€โ”€ workflows/
โ”‚   โ”‚   โ”œโ”€โ”€ ci.yml                  # PRism dogfeeds its own CI gate
โ”‚   โ”‚   โ”œโ”€โ”€ prism-gate.yml          # Workflow auto-installed in customer repos
โ”‚   โ”‚   โ”œโ”€โ”€ deploy-azure.yml        # Deploy orchestrator to Azure Container Apps
โ”‚   โ”‚   โ””โ”€โ”€ deploy-platform.yml     # Deploy platform to Azure Container Apps
โ”‚   โ””โ”€โ”€ CODEOWNERS
โ”œโ”€โ”€ agents/
โ”‚   โ”œโ”€โ”€ orchestrator/               # Parallel dispatch, FastAPI webhook server (:8000)
โ”‚   โ”œโ”€โ”€ diff_analyst/               # Dangerous pattern scanner (heuristics + LLM)
โ”‚   โ”œโ”€โ”€ history_agent/              # Azure AI Search incident correlator
โ”‚   โ”œโ”€โ”€ coverage_agent/             # Test regression detector + Copilot trigger
โ”‚   โ”œโ”€โ”€ timing_agent/               # Deploy window risk (pure deterministic)
โ”‚   โ”œโ”€โ”€ verdict_agent/              # Score aggregator + Foundry governance
โ”‚   โ””โ”€โ”€ shared/                     # AgentResult + VerdictReport data contracts
โ”œโ”€โ”€ platform/
โ”‚   โ”œโ”€โ”€ server/                     # FastAPI onboarding backend (:8080)
โ”‚   โ”‚   โ”œโ”€โ”€ routers/                # auth, github_setup, azure_setup, registrations
โ”‚   โ”‚   โ””โ”€โ”€ services/               # auth_service, github_service, azure_service, db
โ”‚   โ””โ”€โ”€ frontend/                   # Setup wizard (vanilla HTML/CSS/JS)
โ”œโ”€โ”€ mcp_servers/
โ”‚   โ”œโ”€โ”€ azure_mcp_server/           # Azure AI Search wrapper + incident ingestion
โ”‚   โ””โ”€โ”€ github_connector/           # GitHub MCP server configuration
โ”œโ”€โ”€ foundry/
โ”‚   โ””โ”€โ”€ deployment_config/          # Bicep IaC templates + deploy/cleanup scripts
โ”œโ”€โ”€ function_deploy/                # Azure Function app (incident ingestion triggers)
โ”œโ”€โ”€ vscode_extension/               # PRism Confidence Sidebar (TypeScript)
โ”œโ”€โ”€ tests/                          # Unit + integration test suite
โ”œโ”€โ”€ architecture.mermaid            # System architecture diagram
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ .env.example

Hackathon

AI Dev Days Hackathon โ€” Microsoft, February 10 โ€“ March 15, 2026

Challenge: Automate and Optimize Software Delivery โ€” Agentic DevOps

Target prizes: Grand Prize (Agentic DevOps) ยท Best Multi-Agent System ยท Best Enterprise Solution ยท Best Azure Integration

๐ŸŽฌ Watch our 2-minute Demo Video on YouTube

PRism directly addresses the challenge criteria: intelligent CI/CD pipelines with agent orchestration, automated incident response, and real-time reliability monitoring โ€” with a pre-deployment risk gate that tests against real-world production state, not just isolated code.

For Judges: Download our VS Code extension and experience PRism from your own workspace. We cover up to 500 analysis runs using PRism's own Azure OpenAI model deployed on Microsoft Foundry โ€” no Azure subscription required on your end. You can also try the live Setup Platform to onboard a repo in under 3 minutes.


Team

Built by The Good Data Lab for the Microsoft AI Dev Days Hackathon 2026.

MemberOwns
Ishan SoniOrchestrator ยท Verdict Agent ยท Timing Agent ยท Foundry Governance ยท VS Code Extension ยท GitHub Actions & CI/CD ยท PR Comment Posting
Simarpreet PurbaHistory Agent ยท Azure MCP Server ยท Landing/Setup Platform ยท Incident Ingestion Pipeline ยท OAuth Flows ยท Bicep IaC
Gurinayat MangatDiff Analyst Agent ยท LLM Analysis ยท GitHub MCP Client ยท Heuristic Pattern Detection ยท PR Comment CI Risk Brief ยท Demo Video
Favour EjikeCoverage Agent ยท Copilot Integration ยท Test Coverage Detection ยท Demo Video

License

MIT โ€” see LICENSE