Skip to content

mizcausevic-dev/policy-decision-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Policy Decision Simulator

policy-decision-simulator is a Scala decision engine for modeling release, governance, and reliability scenarios as hold, watch, or approve outcomes. It runs with Scala CLI and an embedded HTTP server, so there is no SBT or framework setup required to inspect the repo.

Executive Summary

This project turns scenario planning into a runnable service:

  • downside, base, and upside scenario lanes
  • dependency breach pressure
  • freeze-window constraints
  • rollback confidence
  • customer exposure scoring
  • operator-facing decision output

Portfolio Takeaway

This repo adds a real Scala artifact to the portfolio without hiding behind boilerplate. It shows JVM breadth and decision-engine thinking in a more unusual stack.

Overview

Path Purpose
src/PolicyDecisionSimulator.scala Embedded HTTP server and routes
src/PolicyDecisionEngine.scala Scenario scoring logic
src/SampleScenarioData.scala Seeded strategy cases
tests/PolicyDecisionSimulatorTest.scala Scala test coverage
scripts/ API smoke checks and PNG proof rendering
screenshots/ Real proof assets

API Surface

  • GET /
  • GET /docs
  • GET /api/dashboard/summary
  • GET /api/sample
  • GET /api/scenarios/{scenarioId}
  • POST /api/analyze/scenario

Decision Flow

flowchart LR
  A["Scenario inputs"] --> B["Dependency breach score"]
  A --> C["Freeze window pressure"]
  A --> D["Rollback confidence"]
  A --> E["Customer exposure"]
  B --> F["Policy decision engine"]
  C --> F
  D --> F
  E --> F
  F --> G["Approve / Watch / Hold"]
Loading

Screenshots

Hero

Hero

Scenario Lanes

Scenario Lanes

Decision Model

Decision Model

Validation Proof

Validation Proof

Run Locally

cd policy-decision-simulator
$env:JAVA_HOME = "C:\Program Files\Microsoft\jdk-21.0.11.10-hotspot"
$env:Path = "$env:JAVA_HOME\\bin;$env:Path"
scala-cli run src

Then open:

  • http://127.0.0.1:4514/
  • http://127.0.0.1:4514/docs

If the port is occupied:

$env:PORT = "4520"
scala-cli run src

Validate

$env:JAVA_HOME = "C:\Program Files\Microsoft\jdk-21.0.11.10-hotspot"
$env:Path = "$env:JAVA_HOME\\bin;$env:Path"
scala-cli test .
py -3.11 -m pip install -r requirements-dev.txt
py -3.11 scripts\smoke_check.py
py -3.11 scripts\render_readme_assets.py

Tech Stack

  • Scala 3
  • Scala CLI
  • ujson
  • Java HttpServer
  • Python
  • Pillow

Links


Connect: LinkedIn · Kinetic Gain · Medium · Skills

About

Scala policy simulation backend for governance scenarios, launch gates, risk thresholds, and operator-facing decision forecasting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors