ENTRO-DASA: Dynamic Autonomous Sovereignty Algorithm โ Cybernetic Framework for Multi-Trajectory Attractor Guidance and Self-Regulating Consistency Locks in Dissipative Cognition Systems
Project description
ENTRO-DASA
Dynamic Autonomous Sovereignty Algorithm
A Cybernetic Framework for Multi-Trajectory Attractor Guidance and Self-Regulating Consistency Locks in Dissipative Cognition Systems
๐ Overview
ENTRO-DASA is a deterministic, multi-threaded, real-time cybernetic framework that treats cognitive coherence as an engineered invariant enforced through sovereign attractor dynamics โ not an emergent statistical property.
"Computational sovereignty is not assumed or hoped for โ it is mathematically enforced through dynamic attractor governance and adaptive gravity modulation."
Contemporary AI architectures operating as open dissipative systems exhibit characteristic failure modes under environmental noise: contextual drift, semantic divergence, inference trajectory collapse, and stochastic resonance amplification. ENTRO-DASA provides a principled four-module cybernetic governance pipeline that classifies any cognitive trajectory state as:
| Signal | Deviation Status | Action |
|---|---|---|
| ๐ข CONSISTENCY LOCK | D_j(t) โค ฮธ_warn |
Certified attractor basin confinement |
| ๐ MONITORING PHASE | ฮธ_warn < D_j โค ฮธ_crit |
Preventive gravity adjustment |
| ๐ด CRITICAL DEVIATION | D_j(t) > ฮธ_crit |
Immediate trajectory recapture via ฮฑ-amplification |
๐๏ธ Table of Contents
- Overview
- Key Features
- Project Structure
- Quick Start
- ENTRO-DASA Pipeline
- Scoring Function
- Platforms & Mirrors
- Clone & Download
- Citation
- License
- Author
โจ Key Features
- Four-module governance pipeline โ DASA Core Engine, Strategic Analytics Module, Visualization Stack, Digital Archival Infrastructure
- Adaptive Linguistic Gravity (ALG) โ dynamic restoring force modulated in real time by measured trajectory deviation
- Multi-trajectory swarm governance โ three parallel cognitive swarms Tโ, Tโ, Tโ with inter-trajectory synchronization
- Consistency Lock mechanism โ hard Consistency Basin projection preventing post-lock drift under bounded noise
- Stochastic Lyapunov stability guarantee โ certified convergence for ฯ < ฯ_crit โ 0.38
- Real-time Streamlit + Plotly 3D visualization โ live geodesic trajectory rendering and CCS monitoring
- JSON/CSV temporal archiving โ SHA-256 append-only tamper-evident operational history
- Full open-source distribution โ available across 11 platforms
๐ Project Structure
ENTRO-DASA/
โ
โโโ entro_dasa/ # Core Python package
โ โโโ __init__.py # Package entry point & public API
โ โโโ pipeline.py # Main ENTRO-DASA governance pipeline
โ โโโ score.py # CCS scoring function & decision logic
โ โ
โ โโโ modules/ # Governance modules
โ โ โโโ __init__.py
โ โ โโโ dasa_core.py # Module 1: DASA Core Engine (DCE)
โ โ โโโ analytics.py # Module 2: Strategic Analytics Module (SAM)
โ โ โโโ consistency_lock.py # Module 3: Consistency Basin enforcement
โ โ โโโ synchronizer.py # Module 4: Inter-trajectory synchronization
โ โ
โ โโโ gravity/ # Adaptive Linguistic Gravity subsystem
โ โ โโโ __init__.py
โ โ โโโ algr.py # Adaptive Linguistic Gravity Rule kernel
โ โ โโโ attractor.py # Sovereign Attractor (A*) field generator
โ โ โโโ potential.py # DASA Cognitive Well V(x) computation
โ โ
โ โโโ trajectory/ # Trajectory management
โ โ โโโ __init__.py
โ โ โโโ swarm.py # Multi-trajectory swarm Tโ, Tโ, Tโ manager
โ โ โโโ geodesic.py # Geodesic cognitive routing engine
โ โ โโโ deviation.py # Deviation metric D_{i,j}(t) computation
โ โ
โ โโโ stochastic/ # Stochastic perturbation modeling
โ โ โโโ __init__.py
โ โ โโโ noise.py # Gaussian perturbation operator ฮท ~ N(0, ฯยฒI)
โ โ โโโ lyapunov.py # Stochastic Lyapunov stability analysis
โ โ โโโ phase_transition.py # Phase transition characterization
โ โ
โ โโโ adaptive/ # Adaptive feedback regulation
โ โ โโโ __init__.py
โ โ โโโ memory.py # Temporal memory stabilization (M-window)
โ โ โโโ feedback.py # Outer-loop adaptive parameter optimization
โ โ
โ โโโ utils/ # Shared utilities
โ โโโ __init__.py
โ โโโ metrics.py # CCS, CERI, FDR computation
โ โโโ validators.py # Input validation & type checking
โ โโโ constants.py # Canonical parameter registry
โ
โโโ visualization/ # Real-time visualization subsystem
โ โโโ __init__.py
โ โโโ app.py # Streamlit application entry point
โ โโโ dashboard.py # Main dashboard layout & controls
โ โโโ plot3d.py # Plotly 3D trajectory renderer
โ โโโ timeseries.py # CCS / deviation time-series panels
โ โโโ components/
โ โโโ attractor_sphere.py # Consistency Basin 3D sphere renderer
โ โโโ swarm_cloud.py # Point cloud trajectory renderer
โ โโโ status_panel.py # ๐ด๐ ๐ข signal status panel
โ
โโโ archival/ # Digital Archival Framework (DAF)
โ โโโ __init__.py
โ โโโ writer.py # Append-only JSON/CSV record writer
โ โโโ checksum.py # SHA-256 tamper-evidence layer
โ โโโ partitioner.py # Per-trajectory time-window CSV partitioner
โ
โโโ simulation/ # Experimental simulation environment
โ โโโ __init__.py
โ โโโ environment.py # Noise regime configuration (low/moderate/high)
โ โโโ benchmarks.py # Five-configuration comparative stability suite
โ โโโ parameters.py # Canonical v10.2 parameter registry
โ โโโ results/ # Pre-computed simulation outputs
โ โโโ stability_comparison.json
โ โโโ entropy_suppression.json
โ โโโ phase_transition_sweep.json
โ
โโโ examples/ # Usage examples & tutorials
โ โโโ quickstart.py # Minimal working example
โ โโโ basic_governance.ipynb # Jupyter: single-trajectory governance
โ โโโ swarm_demo.ipynb # Jupyter: multi-trajectory swarm simulation
โ โโโ noise_resistance.ipynb # Jupyter: stochastic Lyapunov analysis
โ โโโ streamlit_live.py # Launch real-time 3D dashboard
โ โโโ custom_attractor.py # Custom A* specification example
โ
โโโ tests/ # Unit and integration tests
โ โโโ test_dasa_core.py
โ โโโ test_algr.py
โ โโโ test_consistency_lock.py
โ โโโ test_synchronizer.py
โ โโโ test_stochastic.py
โ โโโ test_pipeline.py
โ โโโ test_scoring.py
โ โโโ test_archival.py
โ
โโโ docs/ # Documentation source
โ โโโ architecture.md # Pipeline & module architecture reference
โ โโโ mathematics.md # Full mathematical formalism documentation
โ โโโ governance.md # Governance protocol & threshold calibration
โ โโโ visualization.md # Streamlit + Plotly setup guide
โ โโโ api_reference.md # Full Python API reference
โ
โโโ paper/ # Research paper artifacts
โ โโโ ENTRO-DASA_Research_Paper.pdf # Published paper (PDF)
โ โโโ ENTRO-DASA_Research_Paper.docx # Editable Word version
โ โโโ figures/ # Paper figures & diagrams
โ โโโ pipeline_diagram.svg
โ โโโ phase_transition_plot.svg
โ โโโ attractor_basin_3d.svg
โ
โโโ .gitlab-ci.yml # GitLab CI/CD pipeline
โโโ .github/ # GitHub Actions workflows
โ โโโ workflows/
โ โโโ tests.yml
โ โโโ publish.yml
โโโ pyproject.toml # Build system configuration
โโโ setup.cfg # Package metadata
โโโ requirements.txt # Runtime dependencies
โโโ requirements-dev.txt # Development dependencies
โโโ CHANGELOG.md # Version history (v1.0 โ v10.2)
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ CODE_OF_CONDUCT.md
โโโ AUTHORS.md # Author and contributor registry
โโโ LICENSE # MIT License
โโโ README.md # This file
๐ Quick Start
Installation
# Install from PyPI
pip install entro-dasa
# Install from source
git clone https://github.com/gitdeeper12/ENTRO-DASA.git
cd ENTRO-DASA
pip install -e .
Minimal Example
from entro_dasa import DASAGovernor
# Initialize the governor with sovereign attractor at origin
governor = DASAGovernor(attractor=[0.0, 0.0, 0.0])
# X: trajectory state matrix of shape (n_points, 3)
# Run governance pipeline across T_max steps
result = governor.run(X, T_max=500)
print(result.label) # "CONSISTENCY_LOCK" | "MONITORING" | "CRITICAL"
print(result.ccs_score) # float in [0, 1] โ Convergence Concordance Score
print(result.breakdown) # {"S": 0.94, "R": 0.92, "I": 0.97, "D": 0.89}
print(result.entropy_ceri) # Cognitive Entropy Reduction Index
print(result.failure_modes) # list of detected deviation events (if any)
With Custom Gravity Parameters
from entro_dasa import DASAGovernor
governor = DASAGovernor(
attractor=[0.0, 0.0, 0.0],
params={
"alpha": 1.05, # amplification exponent (critical deviation)
"beta": 0.98, # damping exponent (below threshold)
"theta": 0.80, # critical deviation threshold
"gamma": 0.05, # computational step rate
"w0": 1.00, # baseline gravity coefficient
"lambda_q": 0.01, # quartic regularization constant
"kappa_s": 0.10, # inter-trajectory synchronization coefficient
"sigma": 0.15, # environmental noise level (for simulation)
}
)
result = governor.run(X, T_max=500, n_swarms=3)
With Learnable Adaptive Layer
from entro_dasa import DASAGovernor
from entro_dasa.adaptive import AdaptiveFeedback
# Load outer-loop adaptive parameter optimizer
adapter = AdaptiveFeedback.from_pretrained("default")
governor = DASAGovernor(attractor=[0.0, 0.0, 0.0], adapter=adapter)
# Adaptive layer recalibrates ฮฑ, ฮฒ, ฮธ, ฮบ_s based on runtime performance
result = governor.run(X, T_max=500)
print(result.adapted_params) # parameter values after adaptive optimization
Launch Real-Time 3D Dashboard
# Start Streamlit visualization
streamlit run examples/streamlit_live.py
# Dashboard available at: http://localhost:8501
# Live 3D trajectory rendering ยท CCS time-series ยท SAM signal status
๐งฉ ENTRO-DASA Pipeline
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Cognitive State Input X โ Rยณ (Trajectories Tโ,Tโ,Tโ) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
DASA Core Stochastic Geodesic
Engine (DCE) Perturbation Router
Parallel threads ฮท ~ N(0, ฯยฒI) Fisher metric
โ โ โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
โ
โผ
Adaptive Linguistic Gravity
w_{t+1} = w_t ยท ฮฑ^[d>ฮธ] ยท ฮฒ^[dโคฮธ]
โ
โผ
Inter-Trajectory Synchronization
F_sync = ฮบ_s ยท (c_j - c_{j'})
โ
โผ
Strategic Analytics Module (SAM)
๐ด Critical ยท ๐ Monitor ยท ๐ข Lock
โ
โผ
Consistency Basin Enforcement
x(t+1) = ฮ _{B_C}[ update + ฮท ]
โ
โผ
Convergence Concordance Score
CCS = (1/N) ฮฃ exp(-ฮบ ยท dยฒ_final)
โ
โโโโโโโโโโดโโโโโโโโโ
โผ โผ
Digital Archive 3D Visualization
JSON/CSV + SHA-256 Streamlit + Plotly
Module Descriptions
| # | Module | Formula | Description |
|---|---|---|---|
| 1 | Trajectory Deviation (d) | d_{i,j}(t) = โx_{i,j}(t) โ A*โโ |
Instantaneous Euclidean distance from sovereign attractor |
| 2 | Adaptive Linguistic Gravity (w) | w_{t+1} = w_t ยท ฮฑ^[d>ฮธ] ยท ฮฒ^[dโคฮธ] |
Dynamic restoring force modulation (ฮฑ=1.05, ฮฒ=0.98) |
| 3 | State Update with Noise | x(t+1) = x(t) โ ฮณยทw_tยทโV(x) + ฮท |
Gradient-flow guidance + stochastic perturbation |
| 4 | Convergence Concordance (CCS) | CCS = (1/N) ฮฃ exp(โฮบยทdยฒ_final) |
Certified attractor lock score โ [0, 1] |
๐ Scoring Function
CCS_sys = (1/3) ยท ฮฃ_j CCS_j
Governance certification threshold: CCS_sys โฅ 0.95
Noise resistance bound (Stochastic Lyapunov):
โL* โ ฯ / โ(2K* โ K*ยฒ) โ 1.90ฯ (for K* โ 0.15)
DASA Cognitive Well (potential field):
V(x) = (1/2)ยทk(t)ยทโx โ A*โยฒ + (ฮป/4)ยทโx โ A*โโด
System performance benchmarks (v10.2, ฯ = 0.15):
| Configuration | CCS_sys | FDR | CERI | ฯ=0.30 CCS |
|---|---|---|---|---|
| ENTRO-DASA (full, v10.2) | 0.97 | 0.03 | 0.94 | 0.89 |
| No Adaptive Gravity (fixed w) | 0.83 | 0.17 | 0.76 | 0.61 |
| No Consistency Lock | 0.91 | 0.09 | 0.87 | 0.74 |
| No Synchronization Force | 0.87 | 0.13 | 0.81 | 0.68 |
| Ungoverned Baseline | 0.29 | 0.63 | 0.12 | 0.14 |
SAM decision thresholds:
| Score Range | Classification | Condition |
|---|---|---|
CCS_sys โฅ 0.95 |
๐ข CONSISTENCY LOCK | All trajectories within B_C; attractor certified |
0.70 โค CCS < 0.95 |
๐ MONITORING PHASE | Partial convergence; gravity adjustment active |
CCS < 0.70 |
๐ด CRITICAL DEVIATION | Trajectory recapture required; ฮฑ-amplification engaged |
๐ Platforms & Mirrors
| Platform | URL | Role |
|---|---|---|
| ๐ GitHub (Primary) | github.com/gitdeeper12/ENTRO-DASA | Source code, issues, PRs |
| ๐ฆ GitLab (Mirror) | gitlab.com/gitdeeper12/ENTRO-DASA | CI/CD mirror |
| ๐ชฃ Bitbucket (Mirror) | bitbucket.org/gitdeeper-12/ENTRO-DASA | Enterprise mirror |
| ๐๏ธ Codeberg (Mirror) | codeberg.org/gitdeeper12/ENTRO-DASA | Open-source community |
| ๐ฆ PyPI | pypi.org/project/entro-dasa | Python package distribution |
| ๐ฌ Zenodo | doi.org/10.5281/zenodo.20353988 | Citable DOI, paper & data |
| ๐ OSF Project | osf.io/xxxxx | Research project registry |
| ๐ OSF Preregistration | doi.org/10.17605/OSF.IO/XXXXX | Pre-registered study protocol |
| ๐ Website | entro-dasa.netlify.app | Live documentation & dashboard |
| ๐งโ๐ฌ ORCID | orcid.org/0009-0003-8903-0029 | Researcher identity |
| ๐๏ธ Internet Archive | archive.org/details/osf-registrations-xxxxx | Permanent archival copy |
๐ Official Website Pages
| Page | URL |
|---|---|
| Homepage | entro-dasa.netlify.app |
| Dashboard | entro-dasa.netlify.app/dashboard |
| Results | entro-dasa.netlify.app/results |
| Documentation | entro-dasa.netlify.app/documentation |
๐ Clone & Download
Git Clone
# GitHub (Primary)
git clone https://github.com/gitdeeper12/ENTRO-DASA.git
# GitLab (Mirror)
git clone https://gitlab.com/gitdeeper12/ENTRO-DASA.git
# Bitbucket (Mirror)
git clone https://bitbucket.org/gitdeeper-12/ENTRO-DASA.git
# Codeberg (Mirror)
git clone https://codeberg.org/gitdeeper12/ENTRO-DASA.git
Direct ZIP Download
| Source | Link |
|---|---|
| GitHub | ENTRO-DASA-main.zip |
| GitLab | ENTRO-DASA-main.zip |
| Bitbucket | ENTRO-DASA-main.zip |
| Codeberg | ENTRO-DASA-main.zip |
| PyPI files | pypi.org/project/entro-dasa/#files |
| Zenodo record | doi.org/10.5281/zenodo.20353988 |
๐ Citation
If ENTRO-DASA contributes to your research, please cite using one of the following formats.
๐ฆ PyPI Package
@software{baladi2026entrodasa_pypi,
author = {Baladi, Samir},
title = {{ENTRO-DASA}: Dynamic Autonomous Sovereignty Algorithm},
year = {2026},
version = {10.2.0},
publisher = {Python Package Index},
url = {https://pypi.org/project/entro-dasa},
note = {Python package, MIT License, EntropyLab Series E-LAB-12}
}
๐ฌ Zenodo Archive (Paper & Data)
@dataset{baladi2026entrodasa_zenodo,
author = {Baladi, Samir},
title = {{ENTRO-DASA}: Dynamic Autonomous Sovereignty Algorithm โ
Research Paper and Simulation Data},
year = {2026},
publisher = {Zenodo},
version = {10.2.0},
doi = {10.5281/zenodo.20353988},
url = {https://doi.org/10.5281/zenodo.20353988},
series = {E-LAB-12}
}
๐ OSF Preregistration
@misc{baladi2026entrodasa_osf,
author = {Baladi, Samir},
title = {{ENTRO-DASA} Framework: Pre-registered Study Protocol for
Cybernetic Governance of Dissipative Cognition Systems},
year = {2026},
publisher = {Open Science Framework},
doi = {10.17605/OSF.IO/XXXXX},
url = {https://doi.org/10.17605/OSF.IO/XXXXX},
note = {OSF Preregistration}
}
๐ Research Paper
@article{baladi2026entrodasa,
author = {Baladi, Samir},
title = {{ENTRO-DASA}: A Cybernetic Framework for Multi-Trajectory
Attractor Guidance and Self-Regulating Consistency Locks
in Dissipative Cognition Systems},
year = {2026},
month = {May},
series = {E-LAB-12},
version = {10.2.0},
doi = {10.5281/zenodo.20353988},
url = {https://doi.org/10.5281/zenodo.20353988},
note = {Ronin Institute / Rite of Renaissance}
}
APA (inline)
Baladi, S. (2026). ENTRO-DASA: A Cybernetic Framework for Multi-Trajectory Attractor Guidance and Self-Regulating Consistency Locks in Dissipative Cognition Systems (Version 10.2.0, Series E-LAB-12). Zenodo. https://doi.org/10.5281/zenodo.20353988
๐ License
This project is licensed under the MIT License โ see the LICENSE file for details.
MIT License
Copyright (c) 2026 Samir Baladi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...
๐ค Author
Samir Baladi Interdisciplinary AI Researcher โ Neural Engineering & Cybernetic Systems Ronin Institute / Rite of Renaissance ยท EntropyLab Series
| Contact | Link |
|---|---|
| ๐ง Email | gitdeeper@gmail.com |
| ๐งโ๐ฌ ORCID | 0009-0003-8903-0029 |
| ๐ GitHub | github.com/gitdeeper12 |
| ๐ Website | entro-dasa.netlify.app |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entro_dasa-10.2.0.tar.gz.
File metadata
- Download URL: entro_dasa-10.2.0.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: ENTRO-DASA-Uploader/10.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de891b7a0ecbb9d611b924bd281d86073e50e922d2e4676d1d3944ce9e7bbf41
|
|
| MD5 |
bb84daf0dee24540ae86d9c264af152a
|
|
| BLAKE2b-256 |
8879c42426cecd662e1aed9a48071ed3312b17c80c5337cbcdb28c3117d14e47
|
File details
Details for the file entro_dasa-10.2.0-py3-none-any.whl.
File metadata
- Download URL: entro_dasa-10.2.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: ENTRO-DASA-Uploader/10.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22c9ff1f79d959302a5186a1f310aff96c852a7b871e0d91cf8fdb651f4fd647
|
|
| MD5 |
3cf1f0ba6bd8c6bca0d7534112ccb74b
|
|
| BLAKE2b-256 |
1db1721e275b9c9fe7ace5e328346ae5f8feb1b14b75bf5b06352a3a8bc31a09
|