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.
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
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.
| 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 |
GET /GET /docsGET /api/dashboard/summaryGET /api/sampleGET /api/scenarios/{scenarioId}POST /api/analyze/scenario
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"]
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 srcThen 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$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.pyScala 3Scala CLIujsonJava HttpServerPythonPillow
- Website: https://kineticgain.com/
- Skills Page: https://mizcausevic.com/skills/
- GitHub: https://github.com/mizcausevic-dev
Connect: LinkedIn · Kinetic Gain · Medium · Skills



