abdessamad-bourkibate's picture
Update README.md
f5164ad verified
metadata
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:

  1. Regime classification: Stable / Near-boundary / Unstable
  2. Fragility class: Low / Moderate / High
  3. Stability map with boundary line (k = (\alpha/\beta)D)
  4. Risk trajectory plot (R(t)) using transparent Euler integration
  5. Decision-facing governance interpretation (posture + decision + risk note)
  6. 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 entrypoint
  • engine/thresholds.py β€” diagnostics + interpretation + simulation
  • engine/regimes.py β€” regime + fragility classification
  • engine/validation.py β€” strict input validation
  • outputs/ β€” reserved for future exported artifacts

How to use

  1. Adjust parameters (\alpha, \beta, D, k)
  2. Click Run Threshold Engine
  3. Inspect:
    • trajectory plot
    • stability map
    • report text
  4. 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.