The Governance Layer is a Python 3.10+ package distributed as an editable source install. It has no private index dependencies — everything comes from PyPI. The steps below take you from a fresh clone to a running speaker demo, with optional extras for reinforcement-learning experiments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xcoder-es/governance-layer/llms.txt
Use this file to discover all available pages before exploring further.
Install the package
Choose between a standard The core install brings in all runtime dependencies:
pip editable install or the faster uv workflow. Both install the same core dependencies.gymnasium, neo4j, streamlit, altair, pytest, pytest-cov, pandas, certifi, and hypothesis.Install optional extras (if needed)
Two optional extras are available for RL and grid-world experiment support.You can combine extras in a single command:
[rl] — Reinforcement Learning
Pulls in
torch>=2.0 and stable-baselines3>=2.3.[minigrid] — MiniGrid Environments
Pulls in
minigrid>=3.1 and pygame-ce>=2.4.Configure environment variables
An Then edit
.env.example file is included at the project root with Neo4j Aura placeholders. If you plan to use the persistent ontology backend, copy it and fill in your credentials..env with your Neo4j connection details:The
.env file is gitignored. If you skip this step the package still works — the dashboard automatically falls back to the in-memory MemoryBackend.Core dependencies
All of the following are automatically installed as part of the basepip install -e . or uv sync step.
| Package | Minimum version | Purpose |
|---|---|---|
gymnasium | >=0.29 | RL environment interface |
neo4j | >=5.20 | Optional persistent ontology backend |
streamlit | >=1.35 | Research dashboard UI |
altair | >=5.4 | Chart rendering in dashboard |
pytest | >=8.0 | Test runner |
pytest-cov | >=5.0 | Coverage reporting |
pandas | >=2.0 | Data handling in benchmarks |
certifi | >=2024.0 | SSL certificates for Neo4j Aura |
hypothesis | >=6.161 | Property-based and fuzz tests |
Python version support
The package requires Python 3.10 or later. The CI matrix tests against 3.10, 3.11, and 3.12. Python 3.9 and below are not supported because the codebase usesmatch/case statements and modern union type syntax.