title: Fdrsm 4 Threshold Engine
emoji: π
colorFrom: indigo
colorTo: gray
sdk: docker
pinned: false
license: apache-2.0
FDRSM-4 β Threshold Engine (Docker)
FDRSM-4 is the fourth space in the Family Digital Risk Stabilization Model (FDRSM) series.
It implements a threshold / decision-facing layer that turns the stability core into reproducible governance outputs.
This space is structural and analytical:
- No behavioral profiling
- No content moderation
- No surveillance tooling
It is designed for research interpretation, policy discussion, and method reproducibility.
Model core
The baseline risk dynamic is:
[ \dot{R}(t) = (\alpha D - \beta k)R(t) ]
From the same baseline, the engine computes:
- Rate: (\lambda = \alpha D - \beta k)
- Stability margin: (\Delta = \beta k - \alpha D)
- Normalized fragility:
[ F = \frac{|\Delta|}{|\alpha D| + |\beta k| + \varepsilon} ]
Interpretation
- Stable regime: (\lambda < 0)
- Unstable regime: (\lambda > 0)
- Near-boundary: (|\lambda| \le \text{tol})
What FDRSM-4 produces
Given (\alpha, \beta, D, k) (and tolerance settings), the Space outputs:
- Regime classification: Stable / Near-boundary / Unstable
- Fragility class: Low / Moderate / High
- Stability map with boundary line (k = (\alpha/\beta)D)
- Risk trajectory plot (R(t)) using transparent Euler integration
- Decision-facing governance interpretation (posture + decision + risk note)
- Clean PDF report (no overlapping text, high-resolution figures)
Series context (5-part roadmap)
FDRSM-1 β Baseline Stability Model
Formal stability condition and core dynamics.FDRSM-2 β Sensitivity & Fragility (Short Note)
Diagnostics near the stability boundary without changing the baseline equation.FDRSM-3 β Governance Scenario Lab
Scenario interpretation layer: regime β governance posture.FDRSM-4 β Threshold Engine (this Space)
Reproducible threshold logic + report generator.FDRSM-5 β Validation / Stress Tests (planned)
Robustness checks, perturbation sweeps, and structured evaluation notebooks.
Repository structure
main.pyβ Gradio app entrypointengine/thresholds.pyβ diagnostics + interpretation + simulationengine/regimes.pyβ regime + fragility classificationengine/validation.pyβ strict input validationoutputs/β reserved for future exported artifacts
How to use
- Adjust parameters (\alpha, \beta, D, k)
- Click Run Threshold Engine
- Inspect:
- trajectory plot
- stability map
- report text
- Download the generated PDF report
Author
Abdessamad Bourkibate
Independent Researcher β Family Cybersecurity & System Governance (Morocco)
ORCID: 0009-0000-6186-8071
License
Apache-2.0
Rights holder line is displayed in the PDF footer only.