Spaces:
Paused
Paused
Sync GitHub main af692537c27175c8410bf57a747be0caf23718e2
Browse filesFiles changed (21)
- .github/workflows/ci.yml+88-3
- .huggingface/space_config.yaml+2-2
- Dockerfile+2-2
- HF_README.md+2-2
- MIRROR_MANIFEST.json+1-1
- README.md+2-2
- deploy/Caddyfile.internet.example+1-1
- docs/01-guides/DEVELOPMENT.md+1-1
- docs/01-guides/UserGuide.md+1-1
- docs/02-architecture/MHRN_FROZEN_ENVIRONMENT_CONTRACT.mdAdded+221
- docs/02-architecture/MHRN_GATAWAY_NEURAL_INTERFACE.md+73
- docs/02-architecture/MHRN_HARDWARE_ACCEPTANCE_2026-09-30.mdAdded+146
- docs/02-architecture/MHRN_LEARNING_SYNAPSE_CONTRACT.mdAdded+191
- docs/02-architecture/MHRN_RUNTIME_CHECKPOINT_CONTRACT.mdAdded+119
- docs/02-architecture/MHRN_STRUCTURAL_APPROVAL_CONTRACT.mdAdded+123
- docs/03-dashboard/DASHBOARD.md+18-10
- docs/04-integration/EXTERNAL_REVIEW_DEPLOYMENT.md+2-2
- docs/06-research/RESEARCH_POSITIONING_AND_EVIDENCE_PROGRAM.md+27
- docs/07-changelog/CHANGELOG.md+96-5
- docs/08-roadmap/MHRN_SIMULATOR_CAPABILITY_GAPS.mdAdded+298
- docs/08-roadmap/ROADMAP.md+168-2
67 unmodified lines6869707172737 unmodified lines818283848586227 unmodified lines314315316317318319320321171 unmodified lines4934944954964974984991 unmodified line50150250350450550667 unmodified linesrun: python -m black --check --diff src tests scripts- name: Ruff (fast linter + isort)run: python -m ruff check src/ tests/ scripts/- name: Pylint error diagnostics and quality thresholdrun: python -m pylint --disable=all --enable=E,F --fail-under=9.0 src- name: Pre-commit hooks (all files)7 unmodified linesrun: |echo "### Lint & Format: ${{ job.status }}" >> $GITHUB_STEP_SUMMARYtype-check:runs-on: ubuntu-latesttimeout-minutes: 15227 unmodified lines/opt/mhrn-venv/bin/python -m pip install --upgrade pip setuptools wheel/opt/mhrn-venv/bin/python -m pip install -e ./opt/mhrn-venv/bin/python -m pip install pytest- name: CPU reference determinism and frozen-loop parityrun: /opt/mhrn-venv/bin/python -m pytest -q tests/test_playground_cuda_determinism.py- name: Assemble generated Playground PTXrun: /opt/mhrn-venv/bin/python scripts/validate_playground_ptx.py- name: Upload measured ptxas artifacts171 unmodified linesci-status:if: always()runs-on: ubuntu-latestneeds: [lint-format, type-check, security, tests, large-storage, cuda-ptxas, scientific-integrity, catalog-audit, browser, build, docker, docs]steps:- name: CI Pipeline Summaryrun: |1 unmodified lineecho "" >> $GITHUB_STEP_SUMMARYdeclare -A RESULTSRESULTS["lint-format"]="${{ needs.lint-format.result }}"RESULTS["type-check"]="${{ needs.type-check.result }}"RESULTS["security"]="${{ needs.security.result }}"RESULTS["tests"]="${{ needs.tests.result }}"67 unmodified lines686970717273747576777 unmodified lines858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165227 unmodified lines393394395396397398399400401402403404171 unmodified lines5765775785795805815821 unmodified line58458558658758858959059167 unmodified linesrun: python -m black --check --diff src tests scripts- name: Ruff (fast linter + isort)run: python -m ruff check src/ tests/ scripts/- name: Wave 4 canonical import boundaryrun: python scripts/check_canonical_imports.py- name: Wave 4 CUDA kernel freezerun: python scripts/check_cuda_kernel_freeze.py- name: Pylint error diagnostics and quality thresholdrun: python -m pylint --disable=all --enable=E,F --fail-under=9.0 src- name: Pre-commit hooks (all files)7 unmodified linesrun: |echo "### Lint & Format: ${{ job.status }}" >> $GITHUB_STEP_SUMMARYwave4-contracts:runs-on: ubuntu-latesttimeout-minutes: 10steps:- uses: actions/checkout@v7with:fetch-depth: 0- name: Set up Python 3.13uses: actions/setup-python@v7with:python-version: "3.13"cache: pipcache-dependency-path: |pyproject.tomlrequirements.txt- name: Install Wave 4 contract dependenciesrun: |python -m pip install --upgrade pip setuptools wheelpython -m pip install -e ".[dev]"- name: Gate 1 - canonical import directionrun: python scripts/check_canonical_imports.py- name: Gate 2 - byte-identical CUDA kernel freezerun: python scripts/check_cuda_kernel_freeze.py- name: Gate 3 - plasticity semantic boundaryrun: python scripts/check_cuda_semantic_boundary.py- name: Gate 4 - canonical cross-backend parity contractrun: python scripts/check_cuda_parity_contract.py- name: Wave 4 backend contract testsrun: python -m pytest -q tests/test_cuda_acceleration_extraction.py tests/test_cuda_wave4_backend.py- name: Summaryif: always()run: |echo "### Wave 4 CUDA Contracts: ${{ job.status }}" >> $GITHUB_STEP_SUMMARYecho "Physical CUDA D1/D2 acceptance remains an explicit opt-in hardware run." >> $GITHUB_STEP_SUMMARYfe-contracts:runs-on: ubuntu-latesttimeout-minutes: 10steps:- uses: actions/checkout@v7with:fetch-depth: 0- name: Set up Python 3.13uses: actions/setup-python@v7with:python-version: "3.13"cache: pipcache-dependency-path: |pyproject.tomlrequirements.txt- name: Install Frozen-Environment contract dependenciesrun: |python -m pip install --upgrade pip setuptools wheelpython -m pip install -e ".[dev]"- name: Frozen-Environment contract testsrun: |python -m pytest -q \tests/test_frozen_environment_contract.py \tests/test_frozen_environment_backend_adapter.py \tests/verification/parity/test_frozen_environment_parity.py \tests/verification/frozen_environment/- name: FE-1 manifest build and acceptancerun: |python scripts/build_frozen_environment.py --mode FE-1 --ticks 2 --output /tmp/mhrn-fe1.jsonpython scripts/run_fe_acceptance.py --manifest /tmp/mhrn-fe1.json- name: FE-3 CPU/self control and 10x replayrun: |python scripts/build_frozen_environment.py --mode FE-3 --ticks 2 --target 2 --output /tmp/mhrn-fe3.jsonpython scripts/run_fe_acceptance.py --manifest /tmp/mhrn-fe3.json --repeats 10- name: Summaryif: always()run: |echo "### Frozen Environment Contracts: ${{ job.status }}" >> $GITHUB_STEP_SUMMARYecho "Physical CPU-vs-CUDA D3 remains a separate hardware acceptance." >> $GITHUB_STEP_SUMMARYtype-check:runs-on: ubuntu-latesttimeout-minutes: 15227 unmodified lines/opt/mhrn-venv/bin/python -m pip install --upgrade pip setuptools wheel/opt/mhrn-venv/bin/python -m pip install -e ./opt/mhrn-venv/bin/python -m pip install pytest- name: CPU reference determinism and fail-closed CUDA parityrun: |/opt/mhrn-venv/bin/python -m pytest -q \tests/test_playground_cuda_determinism.py \tests/test_playground_cuda_gate_compiler.py \tests/test_playground_cuda_fail_closed.py- name: Assemble generated Playground PTXrun: /opt/mhrn-venv/bin/python scripts/validate_playground_ptx.py- name: Upload measured ptxas artifacts171 unmodified linesci-status:if: always()runs-on: ubuntu-latestneeds: [lint-format, wave4-contracts, fe-contracts, type-check, security, tests, large-storage, cuda-ptxas, scientific-integrity, catalog-audit, browser, build, docker, docs]steps:- name: CI Pipeline Summaryrun: |1 unmodified lineecho "" >> $GITHUB_STEP_SUMMARYdeclare -A RESULTSRESULTS["lint-format"]="${{ needs.lint-format.result }}"RESULTS["wave4-contracts"]="${{ needs.wave4-contracts.result }}"RESULTS["fe-contracts"]="${{ needs.fe-contracts.result }}"RESULTS["type-check"]="${{ needs.type-check.result }}"RESULTS["security"]="${{ needs.security.result }}"RESULTS["tests"]="${{ needs.tests.result }}"
14 unmodified lines151617181920213 unmodified lines2526272829303114 unmodified linesdockerfile: Dockerfile# Container Port (muss mit EXPOSE im Dockerfile übereinstimmen)port: 8765# Startup Commandcommand: python -m src.main --config configs/poc_config.yaml3 unmodified lines- name: BRAIN5D_HEADLESSvalue: "false"- name: BRAIN5D_DASHBOARD_PORTvalue: "8765"- name: BRAIN5D_DASHBOARD_HOSTvalue: "0.0.0.0"14 unmodified lines151617181920213 unmodified lines2526272829303114 unmodified linesdockerfile: Dockerfile# Container Port (muss mit EXPOSE im Dockerfile übereinstimmen)port: 8767# Startup Commandcommand: python -m src.main --config configs/poc_config.yaml3 unmodified lines- name: BRAIN5D_HEADLESSvalue: "false"- name: BRAIN5D_DASHBOARD_PORTvalue: "8767"- name: BRAIN5D_DASHBOARD_HOSTvalue: "0.0.0.0"
3 unmodified lines4567891043 unmodified lines545556573 unmodified lines# Multi-stage build for minimal production image.## Build: docker build -t mhrn .# Run: docker run --rm -p 8765:8765 mhrn# Run with: docker run --rm -v ./configs:/app/configs mhrn \# python -m src.main --config configs/poc_config.yaml# ============================================================================43 unmodified linesEXPOSE 8765# Hugging Face Spaces starts the integrated dashboard from this command.CMD ["python", "-m", "src.main", "--config", "configs/poc_config.yaml", "--dashboard-host", "0.0.0.0", "--dashboard-port", "8765"]3 unmodified lines4567891043 unmodified lines545556573 unmodified lines# Multi-stage build for minimal production image.## Build: docker build -t mhrn .# Run: docker run --rm -p 8767:8767 mhrn# Run with: docker run --rm -v ./configs:/app/configs mhrn \# python -m src.main --config configs/poc_config.yaml# ============================================================================43 unmodified linesEXPOSE 8765# Hugging Face Spaces starts the integrated dashboard from this command.CMD ["python", "-m", "src.main", "--config", "configs/poc_config.yaml", "--dashboard-host", "0.0.0.0", "--dashboard-port", "8767"]
1234567100 unmodified lines108109110111112113114---license: mitsdk: dockerapp_port: 8765title: MHRNshort_description: Multi-scale homeostatic recurrent spiking researchlanguage:100 unmodified lines.\start.ps1```The dashboard defaults to `http://127.0.0.1:8765`.## Current research focus1234567100 unmodified lines108109110111112113114---license: mitsdk: dockerapp_port: 8767title: MHRNshort_description: Multi-scale homeostatic recurrent spiking researchlanguage:100 unmodified lines.\start.ps1```The dashboard defaults to `http://127.0.0.1:8767`.## Current research focus
123456{"canonical_repository": "https://github.com/Thomas-Heisig/MHRN","canonical_sha": "e8a04aea24121d15707238534e635cf0ceee8eaf","generated_by": ".github/workflows/sync-huggingface.yml","rolling_mirror": true,"raw_experiment_data_included": false,123456{"canonical_repository": "https://github.com/Thomas-Heisig/MHRN","canonical_sha": "af692537c27175c8410bf57a747be0caf23718e2","generated_by": ".github/workflows/sync-huggingface.yml","rolling_mirror": true,"raw_experiment_data_included": false,
1234567100 unmodified lines108109110111112113114---license: mitsdk: dockerapp_port: 8765title: MHRNshort_description: Multi-scale homeostatic recurrent spiking researchlanguage:100 unmodified lines.\start.ps1```The dashboard defaults to `http://127.0.0.1:8765`.## Current research focus1234567100 unmodified lines108109110111112113114---license: mitsdk: dockerapp_port: 8767title: MHRNshort_description: Multi-scale homeostatic recurrent spiking researchlanguage:100 unmodified lines.\start.ps1```The dashboard defaults to `http://127.0.0.1:8767`.## Current research focus
16 unmodified lines171819202116 unmodified lines-Server}reverse_proxy 127.0.0.1:8765}16 unmodified lines171819202116 unmodified lines-Server}reverse_proxy 127.0.0.1:8767}
29 unmodified lines3031323334353629 unmodified lines```Für einen bereits laufenden Dashboard-Server kann die URL direkt übergebenwerden: `python scripts/browser_check.py --url http://127.0.0.1:8765/`.Die vollständige Browser-Suite läuft unabhängig mit `npm ci` und`npm run test:e2e`; sie prüft Batch-Optionen, Footer-Status, Routing,29 unmodified lines3031323334353629 unmodified lines```Für einen bereits laufenden Dashboard-Server kann die URL direkt übergebenwerden: `python scripts/browser_check.py --url http://127.0.0.1:8767/`.Die vollständige Browser-Suite läuft unabhängig mit `npm ci` und`npm run test:e2e`; sie prüft Batch-Optionen, Footer-Status, Routing,
60 unmodified lines6162636465666760 unmodified linesThen open:```texthttp://127.0.0.1:8765```Alternative launcher:60 unmodified lines6162636465666760 unmodified linesThen open:```texthttp://127.0.0.1:8767```Alternative launcher:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221# MHRN Frozen Environment Contract v0.1
**Status:** executable canonical engineering contract; physical CPU/CUDA D3 pending **Required before:** scientific use of live cross-backend closed-loop parity **Scientific evidence:** none created by this document
## Purpose
A "frozen environment" must identify exactly which causal inputs are replayed and which components are still allowed to evolve. Otherwise D3 can be satisfied by construction without testing the backend boundary.
## Contract id
```textfrozen_environment_contract_id = mhrn-frozen-environment-v1```
## Environment layers
The closed loop is decomposed into:
```textsource/sensor state -> BoundaryFrame -> codec / SpikeFrame -> SNN backend -> DecodeResult / action -> actuator transform -> body/world transition -> next sensor state -> reward computation```
Freezing is declared per layer.
## Required frozen artifacts
A frozen-environment manifest records:
- initial world/body state;- environment implementation/version/artifact hash;- environment parameter/config hash;- world RNG algorithm/version/state or counter contract;- sensor sampling schedule;- canonical BoundaryFrame sequence when sensor replay is frozen;- actuator/action schema;- action-to-transition mapping version;- reward-function version and parameter hash;- episode start/stop/reset semantics;- external disturbances and their ticks;- all content hashes required for replay.
## Freeze modes
### FE-1: Boundary replay
Inputs are predetermined as canonical BoundaryFrames.
The neural backend cannot affect future observations.
Use for isolated encoder/network/decoder parity.
### FE-2: Frozen world with live actions
Initial state, dynamics, RNG and reward function are frozen, but actions are produced live by the tested backend and drive the world.
This is the first meaningful causal D3 test.
### FE-3: Full deterministic live loop
Sensors are generated from the evolving frozen world state; actions, body/world transitions, observations and rewards all emerge causally.
This is the target D3c trajectory-parity mode.
A frozen action sequence or frozen reward sequence is a diagnostic control only and is not FE-2/FE-3.
## World RNG
A seed alone is insufficient.
The manifest records either:
```textalgorithm + version + complete state```
or a counter-based contract:
```text(world_seed, episode, tick, stream, index)```
The environment must not consume hidden scheduling-dependent random draws.
## Canonical trajectory record
For each environment tick:
```texttickpre_state_hashboundary_frame_hashesdecoder/action hashpost_action_state_hashreward record/hashpost_state_hashworld_rng_fingerprint```
D3c compares the ordered trajectory records, not only aggregate success rate.
## Reset and episode boundaries
Reset is a first-class state transition.
The contract defines:
- whether network learning state resets;- whether codec stream state resets;- whether world RNG resets or advances;- whether pending rewards/events cross the episode boundary;- target/cue reset semantics.
No component may infer a reset from wall-clock/UI events.
## Fail-closed rules
Reject the run if:
- a required frozen artifact hash differs;- a BoundaryFrame is missing, duplicated or reordered;- action schema/version differs;- environment RNG provenance is incomplete;- reward function/config differs;- hidden wall-clock or nondeterministic external input enters an FE-2/FE-3 run.
## CUDA-1.6 sequence
CUDA-1.6 proceeds in this order:
1. FE-1 boundary replay, learning off;2. FE-1 boundary replay, canonical learning on;3. FE-2 frozen world with live backend actions;4. FE-3 full deterministic live loop;5. only after parity, scientific behavioral experiments.
## Executable implementation status — 2026-09-30
The canonical runtime contract is implemented in`src/experience/frozen_environment.py`. Verification and artifact handlinglive in `src/verification/frozen_environment/`; they import the runtimecontract and the canonical parity framework rather than defining a secondenvironment semantics.
The current executable ladder is:
1. **FE-1 / integrity:** exact BoundaryFrame payload/hash validation and ordered replay.2. **FE-2 / repeated replay:** at least ten repetitions can be required to produce an identical canonical trajectory digest.3. **FE-3 / CPU self-control:** two independently constructed deterministic world sessions are compared through `src.verification.parity.exact_frozen_environment_parity` as D3c.4. **FE-3 / CPU vs CUDA:** remains **PENDING** until the canonical CUDA backend is connected to a physical closed-loop action adapter.
The CLI tools are:
```textpython scripts/build_frozen_environment.py --mode FE-1 --output /tmp/fe1.jsonpython scripts/run_fe_acceptance.py --manifest /tmp/fe1.json
python scripts/build_frozen_environment.py --mode FE-3 --output /tmp/fe3.jsonpython scripts/run_fe_acceptance.py --manifest /tmp/fe3.json --repeats 10```
A dedicated `fe-contracts` CI job runs contract tests, artifact round trips,FE-1 acceptance and FE-3 CPU/self acceptance. It is part of the global CIsummary.
### Claim boundary
These checks are **Engineering Verification**. A green FE-3 CPU/self controlshows that the frozen-environment and D3 comparison plumbing are internallyconsistent; it does not show CPU/CUDA equivalence, PAN validity, learningvalidity, behavioral superiority, or scientific support for a biologicalclaim. Physical CPU/CUDA D3 must be executed separately and a later scientificexperiment still requires its own preregistration, source freeze and review.
## Physical CUDA acceptance bridge — 2026-09-30
The canonical hardware runner now accepts `--include-fe3`. This adds theexisting physical live Builder CPU/CUDA D3c comparison to the same RTX-classacceptance invocation used for Wave-4 D1/D2.
This is deliberately classified as a **Builder D3c bridge**, not as completedFrozen-Environment FE-3. The Builder path has a live CPU world and comparesCPU/CUDA actions, targets, rewards and full body-trajectory digests through thecanonical parity framework, but it does not execute from a`FrozenEnvironmentManifest` through a canonical per-tick backend adapter.
Therefore the authoritative status remains:
```textWave-4 physical D1/D2 executableBuilder live CPU/CUDA D3c bridge executable on physical CUDAFrozenEnvironment FE-3 CPU/CUDA D3c PENDING_LIVE_BACKEND_ADAPTER```
The hardware command is:
```bashpython scripts/run_cuda_hardware_acceptance.py \ --require-gpu "RTX 3060" \ --full \ --include-fe3```
The resulting report always contains`full_fe3_accepted=false` until the missing canonical live adapter exists.2133 unmodified lines2134213521362133 unmodified linesDetails und Claim-Grenzen:`research/decisions/2026-09-25_digital-sense-neural-interface.md`.2133 unmodified lines21342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092133 unmodified linesDetails und Claim-Grenzen:`research/decisions/2026-09-25_digital-sense-neural-interface.md`.---# 33. Canonical CUDA-1.6 dependencyFor CUDA-1.6 the Gateway contract above is no longer an optional Playground convenience. The following type family is the canonical backend boundary:```textBoundaryFrameCodecContractPopulationLayoutSpikeFrame / SpikeFrameSetCodecStreamStateDecodeResult```CUDA does not consume raw HTTP/JSON/tool payloads and does not invent an alternate I/O schema. It consumes the canonical packed event representation derived from these contracts.The continuation-critical Neural-I/O state defined here must be covered by the canonical runtime checkpoint contract. Closed-loop parity additionally uses the Frozen Environment Contract so that Boundary replay, live actions, world state, RNG and rewards are unambiguous.This requirement does not mean the current `src/playground/neural_io` module path becomes canonical. Implementations are to be promoted/re-homed behind the existing architecture contract so that `src.core`, runtime and acceleration layers do not depend on Playground.## Implementation promotion wave 1 — 2026-09-29The first Playground-to-MHRN promotion is now concrete rather than onlyarchitectural: the typed neural-I/O boundary objects are canonical under`src/embodiment/neural_io_contracts.py`.Promoted contract family:- `BoundaryFrame`- `CodecContract`- `PopulationLayout`- `SpikeEvent` / `SpikeFrame`- `DecodeResult`- `NeuralRole` / `InterfacePhase`- deterministic payload/event/readout digest helpers`src/playground/neural_io/contracts.py` remains as a compatibility re-export.Existing Playground codecs and sessions therefore use the exact same Pythonclass objects as canonical MHRN. The dependency direction is:```textPlayground -> src.embodiment.neural_io_contractsMHRN -X-> src.playground```This is an engineering integration step only. It creates no scientific DATA,does not promote a hypothesis, and does not validate codec quality orclosed-loop behavior.## Implementation promotion wave 2 — canonical codecs and area adapterThe second promotion wave moves deterministic codec/decoder behavior and theframework-neutral area adapter into canonical Embodiment ownership.Canonical modules:- `src/embodiment/neural_io_codecs.py`- `src/embodiment/neural_io_adapter.py`The codec plane now produces neutral `mhrn-spike-*` frame identifiers anduses MHRN terminology rather than Playground-specific error semantics. ThePlayground codec module is a compatibility re-export, so Playground sessionsexercise the exact same codec functions used by MHRN.The canonical `NeuralIOAreaAdapter` satisfies `NetworkAreaAdapter`. ThePlayground retains `PlaygroundIOAreaAdapter` only as an identity wrapper withPlayground-specific IDs. No productive gateway learning, external toolexecution, or scientific EVID is implied by this promotion.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146# MHRN CUDA / D3 Hardware Acceptance — 2026-09-30
> **Historical boundary note (superseded later on 2026-09-30):** This document records the pre-live-adapter acceptance state. The backend-neutral FE-3 live adapter has since been implemented. The current executable contract is `docs/canonical/HARDWARE_ACCEPTANCE.md`; physical RTX CPU-vs-CUDA FE-3 remains pending until a dated reviewed hardware artifact exists.
**Status:** executable engineering acceptance plan **Scientific evidence:** none created by this document **Target reference host:** physical NVIDIA RTX 3060 class system
## Purpose
This acceptance combines the two hardware checks that are currently executablewithout changing the hardware-verified CUDA kernel:
1. **Wave-4 canonical CPU/CUDA D1/D2** through `CUDABackend`.2. **Live Builder CPU/CUDA D3c bridge** with a CPU-resident world and CUDA neural execution.
The second check is deliberately called a **Builder D3c bridge**. It is not thecanonical Frozen-Environment FE-3 acceptance because the Wave-4`CUDABackend` is a bounded replay backend and does not yet expose a liveper-tick sensor-input/decoder-action adapter.
## Command
```bashMHRN_TEST_CUDA_HARDWARE=1 python scripts/run_cuda_hardware_acceptance.py \ --require-gpu "RTX 3060" \ --full \ --include-fe3```
The runner itself sets `MHRN_TEST_CUDA_HARDWARE=1`; the explicit environmentvariable is therefore optional but useful in reproducibility logs.
## Acceptance groups
### WAVE4_D1_D2
Runs the canonical physical cross-backend test:
```texttests/test_cuda_wave4_backend.py:: test_physical_cpu_cuda_cross_backend_d1_d2_parity```
Requirements:
- real CUDA execution;- exact D1 spike-event parity;- D2 voltage error within the canonical tolerance;- no CPU fallback labelled as GPU;- backend-specific execution fingerprints remain distinct provenance.
### WAVE4_RECURRENT_PLASTICITY_FULL
Enabled by `--full`.
Re-runs the physical recurrent and technical-plasticity acceptance cases. Theseremain Engineering Verification. Plasticity semantics are still governed bythe separate learning-contract status.
### BUILDER_D3C_BRIDGE
Enabled by `--include-fe3`.
Runs all seeded variants of:
```texttests/test_playground_cuda_builder.py:: test_full_pan_builder_hardware_d3```
This path uses the existing live Builder loop:
```textCPU world/body -> sensor state -> CPU or CUDA neural path -> live action -> world transition -> reward / next sensor state```
The canonical parity framework compares spikes/state and exactaction/target/reward/body-trajectory outcomes.
A passing bridge demonstrates that the existing live Builder path can producematching CPU/CUDA causal behavior on the tested hardware/configuration.
It **does not** demonstrate canonical Frozen-Environment FE-3 because thatspecific path does not yet execute from a`FrozenEnvironmentManifest -> live backend adapter -> DecodeResult ->ActionCommand` chain.
## Fail-closed FE-3 boundary
The hardware report always emits:
```json{ "builder_d3c_bridge": "PASS|FAIL|NOT_REQUESTED", "frozen_environment_fe3": "PENDING_LIVE_BACKEND_ADAPTER", "full_fe3_accepted": false, "scientific_evidence": false}```
until the missing live adapter is implemented and tested.
The standalone FE CLI preserves the same boundary:
```bashpython scripts/run_fe_acceptance.py --manifest <fe3.json> --require-cuda```
must fail while the canonical live adapter is unavailable.
## Missing canonical adapter
The next implementation gate is a backend-neutral live adapter with thecausal surface:
```textFrozenEnvironment observation -> canonical sensor/BoundaryFrame encoding -> backend step -> canonical readout / DecodeResult -> ActionCommand -> FrozenWorldSession.step```
Requirements:
- no precomputed future sensor sequence for FE-3;- no backend reset between ticks;- continuation state survives every tick;- same manifest/config/seed for CPU and CUDA;- exact D3c trajectory comparison through `exact_frozen_environment_parity`;- no Playground import from canonical runtime/verification code.
## Evidence boundary
A green hardware acceptance is a stronger **Engineering Verification** artifact.It does not create DATA or EVID and does not establish PAN validity, learningvalidity, biological equivalence, autonomy, or behavioral superiority.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191# MHRN Canonical Learning and Synapse Contract v0.1
**Status:** canonical design contract; backend implementation alignment pending **Scientific evidence:** none created by this document **Required before:** CUDA-1.6 scientific closed-loop runs
## Purpose
CPU and CUDA must not implement two merely similar learning rules and then call the result backend parity. This contract defines the semantic surface that both backends must implement before plastic closed-loop parity can be treated as a scientific question.
The existing `LearningEngine` remains the current canonical CPU implementation reference. The current CUDA-1.5 plastic path is an engineering reference and must be aligned to this contract before canonical scientific use.
## Versioned contract
```textlearning_contract_id = mhrn-learning-synapse-v1```
A scientific run records at least:
- learning contract id and artifact hash;- neuron/synapse identity schema;- parameter bundle hash;- update-order version;- RNG algorithm/version where stochastic release is enabled;- execution backend and backend artifact hash.
## Synapse identity
A learning state is bound to a stable canonical synapse identity, not to array position, CSR position or Python object identity.
The target contract is:
```textedge_id: uint64```
Until stable `edge_id` is fully canonicalized, any experiment using pair keys such as `(pre_id, post_id)` must explicitly reject parallel synapses.
## Normative tick order
For contract v1 a tick is conceptually separated into these phases:
1. complete neuron/network state advance for tick `t`;2. obtain the complete spike set for `t`;3. construct synapse events in stable identity order;4. evaluate pair-based STDP against spike history strictly earlier than `t`;5. update eligibility from the pair-event delta;6. apply direct STDP weight change when enabled;7. commit current-tick pre/post spike timestamps;8. apply rewards due at `t` in deterministic reward order;9. apply weight bounds and state invariants;10. publish checkpoint/telemetry state only after the learning phase is complete.
Backends may fuse kernels internally, but observable semantics must be equivalent to this phase order.
## Same-tick rule
The v1 contract does not treat simultaneous pre/post spikes as either LTP or LTD.
```textdelta_t = 0 -> pair contribution = 0```
This matches the current CPU nearest-neighbour rule, which requires strictly positive temporal separation.
Any future alternate simultaneous-spike rule requires a new contract version.
## Pair-based STDP
For a current presynaptic spike at tick `t` and the previous postsynaptic spike `t_post < t`:
```textLTD = -a_minus * exp((t_post - t) / tau_minus)```
For a current postsynaptic spike at tick `t` and the previous presynaptic spike `t_pre < t`:
```textLTP = +a_plus * exp(-(t - t_pre) / tau_plus)```
The pair delta is the sum of applicable terms for that synapse event.
All parameters are finite, versioned and included in the parameter-bundle hash.
## Eligibility
Eligibility is a per-synapse continuation-critical state.
A pair-event delta is added at the event tick. Between observations the trace follows the versioned decay law of the canonical eligibility implementation.
The checkpoint must preserve enough state to reproduce an uninterrupted continuation exactly for the declared determinism class.
A backend must not replace the eligibility law with an approximately similar trace without changing the learning-contract version.
## Reward semantics
A reward record contains at least:
```textvalueemitted_tickeffective_ticksequence_id```
For delay `d`:
```texteffective_tick = emitted_tick + d```
At the effective tick the reward update is:
```textdelta_w_reward = reward_learning_rate * reward_value * eligibility(effective_tick)```
Rewards due on the same tick are applied in stable `sequence_id` order.
Pending rewards are continuation-critical checkpoint state.
A CUDA frozen-reward array is equivalent only if it represents exactly the same ordered reward records and effective ticks.
## Credit window
A generic fixed `credit_window` is not silently interchangeable with the canonical eligibility decay plus reward-delay model.
If a bounded credit-window optimization is used, it must be proven equivalent over the declared parameter range or be assigned a different learning-contract version.
## STP
STP is not yet part of the current CPU `LearningEngine` semantic core and therefore cannot be silently folded into `mhrn-learning-synapse-v1`.
For CUDA-1.5 STP, canonicalization requires a versioned sub-contract defining:
- release probability;- deterministic RNG key/counter semantics;- depletion rule;- recovery rule;- whether the emitted delayed amplitude freezes the pre-update or post-update state;- continuation state required for checkpoint/replay.
Until that sub-contract is implemented on the canonical CPU reference, STP parity remains an engineering-reference result.
## Delayed-signal semantics
Once a synaptic event is emitted into a delay queue/ring, its carried amplitude is immutable.
Later weight or STP updates must not retroactively alter an already emitted delayed event.
The checkpoint therefore stores the pending emitted event/amplitude state, not merely current weights.
## Weight decay and clamping
Weight bounds are part of the contract.
For the current CPU learning contract:
```textmin_weight <= weight <= max_weight```
Direct STDP updates are clamped immediately. Reward updates follow the configured `reward_clamp_weights` policy.
Any unconditional per-tick weight decay used by a backend is a semantic difference unless that decay is explicitly added to a later contract version and implemented on all compared backends.
## Deterministic iteration
All synapse events, reward applications and checkpoint serialization are ordered by stable canonical identity.
Hash-map, set, warp scheduling and CSR insertion order are not semantic ordering mechanisms.
## Canonical parity ladder
Before CUDA-1.6 with learning:
- D1: exact spike/event parity;- D2-L: weight, eligibility, spike-history and STP-state parity for every canonical edge;- replay: checkpoint/restore continuation parity;- negative controls: intentional update-order/RNG perturbation must be detected fail-closed.
## Promotion gate
CUDA-1.5 is eligible for canonical backend use only after:
1. CPU and CUDA implement the same versioned learning contract;2. all continuation-critical learning state is checkpointed;3. parity is demonstrated over a preregistered parameter/seed matrix;4. no Playground-only state is required by the canonical path.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119# MHRN Canonical Runtime Checkpoint Contract v0.1
**Status:** canonical design contract extending the existing typed RuntimeCheckpoint/RuntimeBundle path **Scientific evidence:** none created by this document
## Purpose
Backend interchangeability requires more than serializing membrane voltages and weights. A checkpoint must preserve every continuation-critical state whose omission could change a future trajectory.
This document does not replace `src/storage/checkpoint.py` or `src/storage/runtime_bundle.py`; it defines the complete target surface they must expose before canonical CUDA execution.
## Contract id
```textcheckpoint_contract_id = mhrn-runtime-checkpoint-v5-target```
The concrete schema version remains implementation-controlled until migration code and tests exist.
## Required state families
### Network/core
- current tick and counters;- canonical neuron state;- canonical synapse state;- stable neuron and edge identities;- input/output population membership;- topology generation/version.
### Pending causal state
- pending synaptic events;- delay ring/queue contents including already emitted amplitudes;- pending external currents;- pending reward records;- pending action/decoder outputs where they can affect continuation.
### Learning
- last pre/post spike times;- eligibility traces;- STP resource/facilitation state when enabled;- learning parameter/contract hash;- learning RNG state/counter contract;- any episode-local learning state required for exact continuation.
### PAN/tissue sidecars
- all continuation-critical PAN/tissue fields;- sidecar schema versions;- mapping from logical identities to packed physical slots/edge slots.
### Neural I/O
- active BoundaryFrame/SpikeFrame causal references as required;- CodecStreamState;- scheduler/refractory state;- PopulationLayout and CodecContract hashes;- active readout window state where continuation depends on it.
### Environment/embodiment
For closed-loop checkpoints:
- world/body state;- environment contract/config hash;- world RNG state/counter fingerprint;- episode/reset state;- reward-function identity/config.
### Execution provenance
- backend id/version;- kernel/module artifact hash;- precision profile;- schedule/reduction versions;- compiler/runtime/driver/device fingerprint where required by the determinism class;- topology generation;- canonical contract hashes.
## Round-trip invariants
A pack/unpack cycle without simulation must satisfy:
```textcanonical_state_hash_before == canonical_state_hash_after```
for every state family in scope.
A continuation test must additionally satisfy:
```textuninterrupted_run_suffix == restore_then_continue_suffix```
under the declared determinism contract.
## Backend-neutral checkpoint
A canonical checkpoint is not a dump of raw CUDA addresses or implementation-specific buffers.
Packed GPU layouts may be stored as optional cache/acceleration artifacts, but the authoritative checkpoint must reconstruct a valid canonical state for another conforming backend.
## Migration
Every breaking schema change requires:
- explicit source schema;- explicit target schema;- migration artifact/version;- migration provenance;- tests for idempotence where applicable;- no silent defaulting of continuation-critical state.
## CUDA promotion gate
CUDA cannot be considered a normal canonical ExecutionBackend until checkpoint/restore covers the recurrent, learning, Neural-I/O and environment state actually active in the experiment.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123# MHRN Structural Mutation Approval Contract v0.1
**Status:** canonical design contract refining the existing SelfOrganizationCoordinator path **Scientific evidence:** none created by this document
## Existing invariant
MHRN already uses:
```textHomeostasisSignal -> SelfOrganizationPolicy -> StructuralProposal -> SelfOrganizationCoordinator -> Reject / Manual Approval / Auto-Approval Policy -> StructuralPlasticityEngine -> Manipulator -> StructuralJournal -> Undo / Recovery```
This contract clarifies what "approval" means for future CPU/CUDA structural plasticity.
## Separation of concerns
### Proposal eligibility
`SelfOrganizationPolicy` may decide that a candidate mutation satisfies an algorithmic trigger.
That creates a proposal only.
It is not permission to mutate.
### Safety/policy approval
A deterministic approval policy may authorize a proposal only if all configured hard constraints pass, including:
- proposal kind enabled;- neuron/edge limits;- protected population constraints;- topology/identity invariants;- resource budget;- cooldown/hysteresis;- no active forbidden scientific freeze;- structural barrier available;- journal/undo path healthy.
The policy version and config hash are execution provenance.
### Human authorization
Human authorization is required when the experiment or governance mode declares it, especially for:
- confirmatory protocols whose preregistration requires a fixed topology or human-reviewed adaptation rule;- enabling a new auto-approval policy;- changing approval thresholds during a governed campaign;- production/peripheral modes explicitly requiring operator control.
Human authorization does not choose scientific results and does not substitute for algorithmic validity; it authorizes a declared policy or proposal under governance.
## Approval modes
```textMANUAL_ONLYPOLICY_AUTOPREREGISTERED_AUTODISABLED```
Default for new structural mechanisms remains fail-closed.
A scientific manifest records the mode, policy artifact hash and whether topology changes are permitted by the protocol.
## CUDA structural barrier
No structural mutation commits inside a neural tick or inside an executing cooperative kernel.
Normative sequence:
```textcomplete execution segment -> synchronize backend -> export structural metrics -> create StructuralProposal -> coordinator approval/rejection -> StructuralPlasticityEngine -> Manipulator -> StructuralJournal commit -> rebuild canonical topology/CSR -> increment topology_generation -> rebuild schedule/packed state -> verify hashes/invariants -> start new execution segment```
## Identity rules
Approved mutation must preserve stable logical neuron IDs and stable edge IDs for surviving entities.
New entities receive new IDs. Deleted IDs are not silently reused within the same lineage.
CSR positions, physical GPU slots and schedule bucket positions are derived runtime state.
## Scientific freeze rules
A confirmatory run must preregister one of:
- structural mutation disabled;- a fixed deterministic proposal/approval policy;- a predetermined structural intervention schedule.
Unregistered operator decisions during the run invalidate confirmatory status and are recorded as protocol deviation.
## Negative controls
The canonical test suite must include rejection for:
- proposal without coordinator approval;- mutation during an active tick/kernel;- mutation with unhealthy journal/undo path;- topology-generation change without a structural journal record;- surviving identity changed by repacking;- auto-approval enabled without an explicit policy artifact.7 unmodified lines89101112131415161718192021222324146 unmodified lines1711721731741751761771781791801811821837 unmodified lines## Primary navigationThe user-facing frontend is intentionally reduced to **three primary areas**:1. **Dashboard** — operator command center with runtime/health/gate/CI state, neural activity, storage, learning, structural state and fast routes to explicit controls.2. **Wissenschaft** — Network Workbench, experiment workflow, research DATA/EVID/documentation, formula rendering, Research Chat and scientific parameter inspection.3. **Runtime & Wesen** — adaptive machine-native body, technical body boundary, interoception, connection inventory, Neural Symbiosis/MSBA visibility and capability maturity.The existing `Control`, `Network`, `Research`, `Settings`, `Embodiment` and `Release/Gate` workspaces remain internal routed surfaces so their lifecycle and functions are preserved. They are no longer independent top-level navigation concepts.`Release/Gate` remains a footer utility. `Control` belongs to the Dashboard operator flow. `Network` and `Settings` belong to Wissenschaft. Technical Embodiment is embedded into Runtime & Wesen.The three-area shell deliberately keeps the legacy route buttons in the DOM but visually hides the legacy navigation. This lets `app.js` remain the sole lifecycle owner and preserves its lazy initialization behavior.## Operator experience146 unmodified lines## Network accessThe integrated dashboard can be opened from another device on the same trusted network. The Windows wrappers `start.cmd` and `start.ps1` bind to `0.0.0.0:8765` by default; use the host machine's LAN address, for example `http://192.168.1.25:8765`. The direct Python entry point remains loopback-only unless `--dashboard-host 0.0.0.0` is supplied.If Windows Firewall blocks the connection, allow inbound TCP `8765` only on the intended private network profile. This dashboard has operator and file-management endpoints and has no network authentication layer; do not expose it through public port forwarding.Startup output distinguishes the bind endpoint, local URL, detected LAN URL, browser URL, configuration path, process ID and runtime mode. On Windows, the wrapper enables UTF-8 console output so status symbols remain readable instead of appearing as mojibake.If port `8765` is already occupied, startup stops safely and reports the listener PID, including localized Windows `netstat` output. This prevents a second dashboard process from being started accidentally.### Development Timeline7 unmodified lines891011121314151617181920212223242526272829303132146 unmodified lines1791801811821831841851861871881891901917 unmodified lines## Primary navigationDie Hauptnavigation bleibt bewusst nah an der etablierten MHRN-Struktur. Für die kommende Playground-Integration werden die aktiven Bereiche **reduziert**, während alle herausgenommenen Ansichten unter `OLD` funktionsfähig erhalten bleiben.1. **Dashboard · System & Betrieb** — Übersicht, System Info.2. **Wissenschaft · Evidenz & Analyse** — Übersicht, Observatory, Experimente.3. **Runtime & Wesen · Körper & Verhalten** — Übersicht.4. **Control · Steuerung & Parameter** — Übersicht, Konsole, Struktur & Lernen.5. **Release · Gate & Reife** — Übersicht, Gate, Releases, Vorschau, Timeline, Entwicklung, Wissenschaft, Gesamtarbeit, Roadmap.6. **Settings · App & Integrationen** — Übersicht, Oberfläche, AI & Chat, Integrationen, Grenzen, Parameter.7. **Review · Human Review & Prüfer** — Übersicht, Review Inbox, AI Reports, External Review, Prüferportal, Methoden & Ethik.8. **Dateien · Datei Viewer & Explorer** — Übersicht, Datei-Explorer.9. **Publikation · Wissenschaftliche Arbeit** — Einfach erklärt, Publikation, Paper, Open Wissenschaft, Impressum & Rechtliches.10. **Playground · Exploration & Baukasten** — Übersicht, Builder, Lauf & Auswertung, Sessions, Bausteine.11. **OLD · Archiv & Reserve** — alle übrigen früheren Ansichten, geordnet nach Dashboard, Wissenschaft, Runtime & Wesen und Control.`OLD` ist keine Löschung und kein technischer Rückbau. Die bisherigen Panels, Module, APIs und Datenpfade bleiben bestehen. Verschoben wird nur ihre primäre Navigation. Dazu gehören unter anderem Vitals/Organe/Gedächtnis/Struktur/Snapshot, Netzwerk/Cell Modell/Dynamik/Inspektor/Daten/Registry/SNN, die detaillierten Wesen-Ansichten sowie Runtime-/Experiment-/SNN-/Rekurrenz-Controls.Die Parameteransicht wird aus Control in Settings eingeordnet; ihr Pending-Change-, Provenienz- und Approval-Verhalten bleibt unverändert.Der neue Untertab **Paper** verweist auf die vorhandenen versionierten Arbeitsfassungen im Research-Publikationskatalog. Die Anzeige ändert weder Review-Status noch DATA/EVID-Klassifikation.## Operator experience146 unmodified lines## Network accessThe integrated dashboard can be opened from another device on the same trusted network. The Windows wrappers `start.cmd` and `start.ps1` bind to `0.0.0.0:8767` by default; use the host machine's LAN address, for example `http://192.168.1.25:8767`. The direct Python entry point remains loopback-only unless `--dashboard-host 0.0.0.0` is supplied.If Windows Firewall blocks the connection, allow inbound TCP `8767` only on the intended private network profile. This dashboard has operator and file-management endpoints and has no network authentication layer; do not expose it through public port forwarding.Startup output distinguishes the bind endpoint, local URL, detected LAN URL, browser URL, configuration path, process ID and runtime mode. On Windows, the wrapper enables UTF-8 console output so status symbols remain readable instead of appearing as mojibake.If port `8767` is already occupied, startup stops safely and reports the listener PID, including localized Windows `netstat` output. This prevents a second dashboard process from being started accidentally.### Development Timeline
4 unmodified lines56789101137 unmodified lines495051525354554 unmodified lines## Security boundaryThe MHRN dashboard (`:8765`) is never published. The external review portal is a separate static site or isolated collector. It has no runtime, file-manager, experiment-runner, EVID-write or research-AI permissions.```textGitHub Pages or Hugging Face Space37 unmodified linesDo not expose:- MHRN dashboard port `8765`;- GitHub tokens or repository write credentials to the browser;- admin tokens in URLs;- the collector data directory inside the repository.4 unmodified lines56789101137 unmodified lines495051525354554 unmodified lines## Security boundaryThe MHRN dashboard (`:8767`) is never published. The external review portal is a separate static site or isolated collector. It has no runtime, file-manager, experiment-runner, EVID-write or research-AI permissions.```textGitHub Pages or Hugging Face Space37 unmodified linesDo not expose:- MHRN dashboard port `8767`;- GitHub tokens or repository write credentials to the browser;- admin tokens in URLs;- the collector data directory inside the repository.
198 unmodified lines199200201198 unmodified lines## 12. Success criteria for the next phaseThe next phase is successful if MHRN produces a smaller number of stronger results rather than a larger number of mechanisms. The target is a chain of preregistered experiments in which at least one central architectural claim is either supported or clearly rejected by replicated evidence.198 unmodified lines199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228198 unmodified lines## 12. Success criteria for the next phaseThe next phase is successful if MHRN produces a smaller number of stronger results rather than a larger number of mechanisms. The target is a chain of preregistered experiments in which at least one central architectural claim is either supported or clearly rejected by replicated evidence.## Frozen-Environment-Vertrag als methodisches PrüfinstrumentMit der CUDA-Kanonisierung entsteht eine neue methodische Fehlerquelle: ZweiBackends können intern jeweils deterministisch sein und trotzdem in einergeschlossenen Schleife verschiedene Umwelttrajektorien erzeugen. Deshalb wirddie Umwelt selbst als versionierter, hashgebundener Vertrag behandelt.Der Frozen-Environment-Vertrag trennt drei Prüfstufen. FE-1 prüft dieIntegrität und Reihenfolge eingefrorener BoundaryFrames. FE-2 prüft, ob ausidentischem Anfangszustand, RNG-Vertrag und Aktionspfad in Wiederholungendieselbe kausale Trajektorie entsteht. FE-3 bindet diese Trajektorie an denkanonischen D3c-Paritätsvergleich. Der derzeitige CPU/Self-Control prüft dieVerifikationskette, nicht die Gleichwertigkeit zweier verschiedener Backends.Daraus folgt eine strikte Evidenzgrenze: Manifest-Hashing, zehn identischeReplays oder ein grüner CPU/Self-D3c-Test sind Engineering Verification. Erstein separater physischer CPU-vs-CUDA-Lauf beantwortet die technischeCross-Backend-Frage; auch dieser wird nicht automatisch zu wissenschaftlicherDATA oder EVID. Für eine wissenschaftliche Closed-Loop-Behauptung bleibenPräregistrierung, Source Freeze, geeignete Kontrollen, Human Review undgegebenenfalls unabhängige Replikation erforderlich.Diese Methodik ist als `RQ-FE-001` registriert. Sie untersucht diePrüfvorrichtung selbst und darf nicht mit `RQ-CUDA-CL-001`, der spätereninhaltlichen Closed-Loop-Backendfrage, gleichgesetzt werden.
1234515 unmodified lines2122232425267 unmodified lines343536373839326 unmodified lines366367368369370371372110 unmodified lines4834844854864874884891188 unmodified lines167816791680168116821683168429 unmodified lines1714171517161717171817191720428 unmodified lines2149215021512152215321542155# Changelog## 2026-09-27 - v0.6.0-alpha.7 Release-Konsolidierung- Stage 0 ist im kanonischen Scientific-Maturity-Vertrag auf **92,5 %**15 unmodified lines- Der dauerhafte Git-Branch `playground` ist für den Workbench-Betrieb nichterforderlich; der kanonische Branchfluss bleibt Feature/Research -> develop-> release/* -> main.## 2026-09-27 - Bausteine-Katalog mit ausführlichen Sprachbeschreibungen7 unmodified lines- Dynamisch gelieferte neue Katalogeinträge erhalten zusätzlich einesprachabhängige fachliche Fallback-Erklärung.## 2026-09-27 - Release-Statusmarker für Entwicklung und Wissenschaft- Die Detailfelder zeigen jetzt neben ihren unveränderten Statusbezeichnungen326 unmodified lines## 2026-09-09 - Trusted-LAN dashboard access- Windows `start.cmd` and `start.ps1` now bind the dashboard to `0.0.0.0:8765` by default for access via the host machine's LAN IP.- Kept direct Python startup loopback-only and documented the firewall/trusted-network boundary.- Improved terminal diagnostics with canonical version, config, mode, PID and bind/local/LAN URL information; enabled UTF-8 console output in `start.cmd`.- Fixed CMD version extraction and localized Windows listener detection; occupied port errors now include the owning PID.110 unmodified lines## 2026-09-07 — Hugging Face Space- Configured the Docker image to start the integrated dashboard on `0.0.0.0:8765`.- Published the live dashboard as `superdigger/Brain-5D-Space`.- Added automatic synchronization to the Space repository alongside the model mirror.1188 unmodified lines- **Pyright**: 0 errors.- **Ruff**: 0 errors.- **Source tree digest**: `063bc485695bc63c149344bcd9dfcffc6264814edaec120e51e7bf44d7e80107`.- **Single TCP LISTEN socket on 127.0.0.1:8765**: verified.- **Production HomeostasisSignal → Policy → Coordinator**: verified.- **Structural Coordinator / PlasticityEngine / Manipulator / Approval-gated mutation / Journal**: verified via E2E proofs.- **Restore-and-continue identity (A/B/C)**: verified (`A == B == C`).29 unmodified lines- **Pyright**: 0 errors.- **Ruff**: 0 errors.- **Source tree digest**: `2f0d6883d4a7010b7de8e0f4a4200b62d8d3d761f5c54c599c992c4560235d5c`.- **Single TCP LISTEN socket on 127.0.0.1:8765**: verified.- **Production HomeostasisSignal → Policy → Coordinator**: verified.- **Structural Coordinator / PlasticityEngine / Manipulator / Approval-gated mutation / Journal**: verified via E2E proofs.- **Restore-and-continue identity (A/B/C)**: verified (`A == B == C`).428 unmodified lines### New Files for Hugging Face- **`HF_README.md`**: Hugging Face-spezifische README mit YAML Frontmatter (license, tags, pipeline_tag) und angepasstem Inhalt für die Hugging Face Platform.- **`.huggingface/metadata.yaml`**: Repository-Metadaten für huggingface_hub (library_name, tags, card-info).- **`.huggingface/space_config.yaml`**: Konfiguration für einen optionalen Hugging Face Space (Docker-basiert, Port 8765).- **`.huggingface/README.md`**: Dokumentation zur Nutzung des Hugging Face Repositories.- **`.github/workflows/sync-huggingface.yml`**: GitHub Actions Workflow zur automatischen Synchronisation von GitHub → Hugging Face.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656615 unmodified lines8283848586878889909192939495969798991001011027 unmodified lines110111112113114115116117118119120121122123124125126127128129130326 unmodified lines457458459460461462463110 unmodified lines5745755765775785795801188 unmodified lines176917701771177217731774177529 unmodified lines1805180618071808180918101811428 unmodified lines2240224122422243224422452246# Changelog## 2026-10-01 - Playground Integration Wave 5A: PAN-Semantikvertrag- PAN-Hyperstate erhält mit `mhrn-pan-hyperstate-v0.1-draft` erstmals einenbackend-neutralen Draft-Vertrag in `src/homeostasis/pan_contract.py`.- Zustandsoberfläche, Update-Reihenfolge und die bestehendenReferenzkoeffizienten wurden aus der Playground-Eigentümerschaft herausgelöst.- Der Playground-PAN-Runtime konsumiert den Draft-Vertrag ohne Änderung desbisherigen Algorithmus.- Playground-Transferstatus und CUDA/FE-3-Status zeigen Wave 5 nun als`Semantikvertrag in Arbeit`, nicht als integriert oder akzeptiert.- RQ-PAN-SEM-001 bleibt offen; physische FE-3-Hardware-Abnahme, PAN-CUDA-Parität,vollständiger Checkpoint-Vertrag und strukturelle Plastizität bleiben separateGates.- Diese Welle erzeugt keine wissenschaftlichen DATA, EVID oder CLAIMs.## 2026-09-30 - CUDA/FE-3-Integration im Frontend vervollständigt- `/api/integration/status` um einen kanonischen Acceleration-Block erweitert.- Wave 1–4, FE-3-Softwarebrücke, Backend-Capabilities und physische Hardware-Abnahme werden getrennt dargestellt.- Physische RTX-Akzeptanz bleibt fail-closed `pending`, solange kein geprüftes `HARDWARE_ACCEPTANCE_<date>.json` vorliegt.- Playground zeigt den Promotionpfad, Release → Entwicklung den Engineering-Acceptance-Status, Wissenschaft → Observatory die Evidenzgrenze und OLD nur den Archiv-/Kompatibilitätshinweis.- Die wissenschaftliche Hauptarbeit und das Research-Software-Paper dokumentieren diese UI-/Provenienzgrenze ohne DATA/EVID-Promotion.- Das ältere Hardware-Acceptance-Dokument wurde als historischer Vor-FE-3-Adapter-Stand markiert.## 2026-09-30 - Physical CUDA D3 bridge acceptance- `run_cuda_hardware_acceptance.py` accepts `--include-fe3` and can run theexisting live Builder CPU/CUDA D3c hardware comparison together with Wave-4D1/D2 acceptance.- The report explicitly distinguishes `BUILDER_D3C_BRIDGE` from canonicalFrozen-Environment FE-3 and keeps `full_fe3_accepted=false`.- `run_fe_acceptance.py --require-cuda` continues to fail closed until acanonical FrozenEnvironment live backend adapter exists.- Playground integration status exposes that the hardware bridge is availablewhile full FE-3 remains pending.- No CUDA kernel, PAN semantics, learning contract, DATA or EVID state changed.## 2026-09-29 - Ausführbarkeitsstatus im Playground-Katalog- Katalogsichtbarkeit und tatsächliche Ausführbarkeit werden jetzt getrenntausgewiesen.- Explorative Analyse-, Literatur-, Repo- und Infrastrukturbausteine trageneinen klaren Hinweis `Nur Katalog / nicht direkt ausführbar`.- Experimentelle MHRN->N-D-Topologien bleiben sichtbar, sind bei 5D aberdeaktiviert und werden erst ab 6D als ausführbarer Referenzpfad freigeschaltet.- Ausführbare Modelle, Stimuli, Readouts, Synapsen und Plastizitätsregelnerhalten explizite `EXECUTABLE_REFERENCE`-Metadaten.## 2026-09-28 - Frontend-Struktur für Playground-Integration korrigiert- Die bestehende Hauptstruktur bleibt erhalten und wird bewusst reduziert statt ersetzt.- Dashboard enthält nur noch Übersicht und System Info.- Wissenschaft enthält nur noch Übersicht, Observatory und Experimente.- Runtime & Wesen enthält als aktive Hauptansicht die Übersicht.- Control enthält Übersicht, Konsole sowie Struktur & Lernen.- Parameter wurde in Settings eingeordnet.- Release, Review, Dateien und Playground behalten ihre vorgesehenen Hauptfunktionen.- Publikation erhält zusätzlich einen Paper-Untertab für die vorhandenen versionierten Fachtexte.- Alle übrigen bisherigen Ansichten bleiben vollständig erhalten und werden geordnet unter `OLD` angeboten; es wurde keine fachliche Oberfläche gelöscht.- Cell Modell, kleines SNN und rekurrentes SNN bleiben ausführbar, sind aber nicht mehr Teil der aktiven Wissenschafts-/Wesen-/Control-Navigation.## 2026-09-27 - v0.6.0-alpha.7 Release-Konsolidierung- Stage 0 ist im kanonischen Scientific-Maturity-Vertrag auf **92,5 %**15 unmodified lines- Der dauerhafte Git-Branch `playground` ist für den Workbench-Betrieb nichterforderlich; der kanonische Branchfluss bleibt Feature/Research -> develop-> release/* -> main.# Changelog## 2026-09-29 - Nacherfassung wissenschaftlicher Experimentauswertungen- Jede aktive und archivierte Experimentkarte in `02 · Wissenschaft /Experimente` bietet jetzt `Auswertung erfassen`.- Die Nacherfassung nimmt Hypothesenantwort, wissenschaftliche Begründung,Beobachtungen, Limitationen, Alternativerklärungen und nächste Schritte auf.- Auswertungen werden kontrolliert als `posthoc/evaluation.md` und JSON-Metadatenim jeweiligen Experiment gespeichert und im Manifest verknüpft.- Das Ergebnis öffnet sich direkt im zentralen File Viewer und kann dort alsAusgangspunkt für die wissenschaftliche Arbeit weitergelesen werden.- Die Nacherfassung bleibt ausdrücklich Interpretation, ist nicht automatischEVID und benötigt für einen wissenschaftlichen Status einen separaten Human-Review-/EVID-Workflow.## 2026-09-27 - Bausteine-Katalog mit ausführlichen Sprachbeschreibungen7 unmodified lines- Dynamisch gelieferte neue Katalogeinträge erhalten zusätzlich einesprachabhängige fachliche Fallback-Erklärung.## 2026-09-27 - Live-Detailansichten hochauflösend und bedienbar- Die vergrößerten Live-Grafiken verwenden jetzt hochauflösende Quellflächenstatt unscharfer 220x120-Momentaufnahmen.- Die aktive Detailansicht wird bei jedem Live-Step automatisch aktualisiert;sie ist damit eine echte Live-Ansicht und kein eingefrorenes Bild.- Das Zoomfenster besitzt eigene Start-, Pause-, Schritt-, Input-, Reset- undStop-Aktionen sowie eine sichtbare Statuszeile.- Die Zeichenfläche passt sich an Dialoggröße und Device-Pixel-Ratio an.- Für skalierte Updates werden große Topologie-Payloads nicht bei jedem Schrittwiederholt übertragen; der letzte gültige Graph bleibt sichtbar und wirdperiodisch synchronisiert.- Überlappende Live-Schritte werden verworfen, damit ein langsamer Batch keinezweite Ausführung und keine Renderwarteschlange aufbaut.## 2026-09-27 - Release-Statusmarker für Entwicklung und Wissenschaft- Die Detailfelder zeigen jetzt neben ihren unveränderten Statusbezeichnungen326 unmodified lines## 2026-09-09 - Trusted-LAN dashboard access- Windows `start.cmd` and `start.ps1` now bind the dashboard to `0.0.0.0:8767` by default for access via the host machine's LAN IP.- Kept direct Python startup loopback-only and documented the firewall/trusted-network boundary.- Improved terminal diagnostics with canonical version, config, mode, PID and bind/local/LAN URL information; enabled UTF-8 console output in `start.cmd`.- Fixed CMD version extraction and localized Windows listener detection; occupied port errors now include the owning PID.110 unmodified lines## 2026-09-07 — Hugging Face Space- Configured the Docker image to start the integrated dashboard on `0.0.0.0:8767`.- Published the live dashboard as `superdigger/Brain-5D-Space`.- Added automatic synchronization to the Space repository alongside the model mirror.1188 unmodified lines- **Pyright**: 0 errors.- **Ruff**: 0 errors.- **Source tree digest**: `063bc485695bc63c149344bcd9dfcffc6264814edaec120e51e7bf44d7e80107`.- **Single TCP LISTEN socket on 127.0.0.1:8767**: verified.- **Production HomeostasisSignal → Policy → Coordinator**: verified.- **Structural Coordinator / PlasticityEngine / Manipulator / Approval-gated mutation / Journal**: verified via E2E proofs.- **Restore-and-continue identity (A/B/C)**: verified (`A == B == C`).29 unmodified lines- **Pyright**: 0 errors.- **Ruff**: 0 errors.- **Source tree digest**: `2f0d6883d4a7010b7de8e0f4a4200b62d8d3d761f5c54c599c992c4560235d5c`.- **Single TCP LISTEN socket on 127.0.0.1:8767**: verified.- **Production HomeostasisSignal → Policy → Coordinator**: verified.- **Structural Coordinator / PlasticityEngine / Manipulator / Approval-gated mutation / Journal**: verified via E2E proofs.- **Restore-and-continue identity (A/B/C)**: verified (`A == B == C`).428 unmodified lines### New Files for Hugging Face- **`HF_README.md`**: Hugging Face-spezifische README mit YAML Frontmatter (license, tags, pipeline_tag) und angepasstem Inhalt für die Hugging Face Platform.- **`.huggingface/metadata.yaml`**: Repository-Metadaten für huggingface_hub (library_name, tags, card-info).- **`.huggingface/space_config.yaml`**: Konfiguration für einen optionalen Hugging Face Space (Docker-basiert, Port 8767).- **`.huggingface/README.md`**: Dokumentation zur Nutzung des Hugging Face Repositories.- **`.github/workflows/sync-huggingface.yml`**: GitHub Actions Workflow zur automatischen Synchronisation von GitHub → Hugging Face.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298# MHRN simulator capability gaps and canonical integration programme
**Status:** active roadmap / research-design input **Date:** 2026-09-28 **Scientific evidence:** none created by this document
## Purpose
This document separates three different questions that must not be conflated:
1. Which Playground/CUDA/PAN mechanisms are mature enough to become canonical MHRN infrastructure?2. Which simulator capabilities are still missing compared with established systems such as Brian 2 and its external devices?3. Which of those gaps are engineering backlog items and which require new preregistered scientific questions?
Existing Playground runs and RTX 3060 verification remain **engineering verification**. They motivate new canonical research but are not promoted retroactively to DATA or EVID.
## Architecture decision: do not promote the whole Playground
The Playground must not become the new MHRN core or a second canonical runtime as one monolithic package.
Target rule:
```textPlayground uses MHRN.MHRN does not depend on Playground.```
The reusable execution pieces are promoted behind canonical contracts:
```textDashboard / Research / Playground | canonical Runtime | ExecutionBackend / \ CPU backend CUDA backend \ / parity contracts | canonical Network / Learning / Storage / Self-Organization```
The Playground remains the composition, preset, exploratory and reference-policy workspace. Its duplicate session runtime, JSON persistence and direct structural mutation must not become authoritative.
## Corrected current CUDA/PAN boundary
As of 2026-09-28:
- Gate IR -> PTX/CUDA compilation and executable gate ABI exist.- CUDA Driver API, H2D/D2H, allocation cleanup, cooperative launch and NVRTC paths exist.- CUDA-1.4 recurrent LIF/AdEx/PAN-AdEx membrane execution with static recurrent synapses and delays has physical RTX 3060 verification.- CUDA-1.5 frozen-reward STP/STDP/eligibility/weight-update reference execution has physical RTX 3060 verification.- The complete PAN hyperstate (health, energy, consolidation, apoptosis, growth), governed structural mutation and the full embodied closed loop are **not** yet a canonical CUDA backend.- D1/D2 engineering parity exists for the bounded recurrent/plasticity reference. Full D3 live causal trajectory parity remains open.
## Capability gap matrix
| Capability | Brian 2 / related ecosystem | MHRN current state | Integration class || --- | --- | --- | --- || Equation-defined neuron dynamics | Brian 2 defines models from equations | LIF/AdEx/PAN-AdEx are code-defined | SHOULD: model-contract/DSL feasibility || Physical units | Brian 2 checks dimensional consistency | runtime values are predominantly raw numeric values | SHOULD: boundary/config unit schema before broad DSL || Multicompartment neurons | Brian 2 provides `SpatialNeuron` | point-neuron core | OPTIONAL research/modeling track || Gap junctions | expressible through Brian 2 synapse equations; official example exists | no canonical electrical-synapse type | OPTIONAL after synapse contract || User-defined synapse equations/rules | Brian 2 `Synapses` supports model/on_pre/on_post code | canonical learning rules are implemented in code | SHOULD: versioned synapse-rule contract; do not weaken governance || SDE/noise model specification | Brian equations support stochastic terms for supported solvers | noise exists only in selected fixed mechanisms | SHOULD where required by a registered protocol || Recurrent CUDA backend | Brian2CUDA / Brian2GeNN provide external GPU paths | bounded native recurrent CUDA reference now exists | MUST canonicalize backend boundary || Structural plasticity on GPU | contemporary GeNN research demonstrates GPU structural-plasticity workflows | canonical CPU structural pipeline exists; GPU barrier integration pending | MUST research structural-barrier contract || Cross-backend bitwise reproducibility | Brian 2 explicitly does not guarantee universal bitwise reproducibility | MHRN has explicit D1/D2/D3 and execution-fingerprint direction | MUST preserve and validate || Standardized benchmark suite | Brian ecosystem has dedicated benchmark repositories and model workloads | MHRN has performance tests but no stable simulator-comparison suite | SHOULD || Neuromorphic adapters | Brian ecosystem includes external GeNN/Lava integrations | no Loihi/SpiNNaker backend | OPTIONAL interoperability, not core requirement || Community/published model library | mature external ecosystem | early MHRN ecosystem | ORGANIC / publication and replication work |
Sources are registered in `research/registry/sources.acceleration.yaml`. The comparison is descriptive; it is not an overall simulator ranking.
## Mandatory canonicalization gaps
Before Playground execution can be treated as a normal MHRN backend, the following are mandatory:
1. **ExecutionBackend contract** separating runtime control from execution implementation.2. **Canonical neuron/synapse state contract** with stable neuron and edge identities.3. **Canonical Learning/Synapse contract** defining STDP/STP/eligibility/reward timing, update ordering, clamping and delayed-emission semantics.4. **Canonical parity framework** for D1 events, D2 state and D3 causal closed-loop trajectory.5. **Early benchmark/reference suite** using frozen MHRN workloads plus an explicit restricted Brian 2 reference subset; this validates parity infrastructure before live CUDA-1.6 rather than after PAN-GPU.6. **Canonical checkpoint/storage contract** including neuron/synapse state, pending events/delays/rewards, PAN/tissue sidecars, RNG, topology generation, environment state and execution fingerprint.7. **Canonical Neural-I/O contract** using the existing `BoundaryFrame`, `CodecContract`, `PopulationLayout`, `SpikeFrame`, `DecodeResult` and `CodecStreamState` design.8. **Frozen-Environment contract** — executable FE-1 integrity, FE-2 repeated replay, CPU/self FE-3 control and a canonical live-input ExecutionBackend adapter are implemented. A versioned FE-3 manifest is frozen; physical CPU-vs-CUDA FE-3 remains pending the RTX-class hardware acceptance run.9. **Canonical structural approval/barrier contract** routing Growth/Pruning/Apoptosis through Proposal -> Coordinator Approval -> StructuralPlasticityEngine -> Journal/Undo.10. **Truthful execution provenance**: CPU fallback, CUDA reference, hardware smoke and scientific run must never share ambiguous labels.
## Simulator capability work packages
### WP-MODEL-1 — versioned model description contractInvestigate a restricted equation/model representation before attempting a general Brian-compatible DSL. A model artifact must be versioned, hashed and validated before execution.
### WP-UNITS-1 — dimensional boundaryIntroduce explicit physical-unit metadata and dimensional validation at configuration/model boundaries. Internal kernel storage can remain canonical base units; units are not required in the hot path.
### WP-SYN-1 — generalized synapse rule contractDefine a versioned rule interface that can express current canonical STDP/STP/eligibility behavior first. Arbitrary user code must not bypass determinism, resource or research governance.
### WP-COMPARTMENT-1 — multicompartment feasibilityTreat dendritic/multicompartment neurons as a separate optional model family, not as a prerequisite for the current point-neuron research programme.
### WP-ELECTRICAL-1 — gap-junction feasibilityAdd only after bidirectional/current-coupled edge semantics are formally separated from spike-event synapses.
### WP-BENCH-1 — simulator benchmark suiteCreate stable workloads with frozen versions and manifests: point-neuron baseline, recurrent delay network, plastic network, sparse scaling workload and external-reference subset. Measure build/codegen, initialization, simulation, memory and result parity separately.
### WP-INTEROP-1 — Brian 2 reference adapterDo not use Brian 2 as a hidden implementation backend for MHRN. Build a restricted explicit adapter for preregistered reference comparisons. Map equations/parameters/units/integrator/delays/RNG and record both artifacts.
### WP-NEUROMORPHIC-1 — external hardware adaptersLoihi 2, Lava, SpiNNaker or similar targets remain optional adapters after canonical MHRN semantics are stable. External backend limitations become part of the execution fingerprint.
## Research programme
Canonical questions and untested hypotheses are stored in:
- `research/registry/questions.acceleration.yaml`- `research/registry/hypotheses.acceleration.yaml`- `research/registry/sources.acceleration.yaml`
The initial research families are:
- `RQ-CUDA-DET-001` — deterministic accelerated execution- `RQ-CUDA-PAR-001` — CPU/CUDA backend parity- `RQ-CUDA-SCALE-001` — computational scaling- `RQ-GATE-IR-001` — executable Gate-IR semantics- `RQ-PAN-SEM-001` — PAN semantic/state contract- `RQ-PAN-GPU-001` — PAN cross-backend execution- `RQ-CUDA-STRUCT-001` — structural mutation across host/GPU barriers- `RQ-CUDA-CL-001` — causal closed-loop backend parity- `RQ-FE-001` — Frozen-Environment verification methodology- `RQ-SIM-INTEROP-001` — external simulator interoperability
No CLAIM entry is created by registration alone.
## Evidence ladder
```textENGINEERING hardware smoke / analytic unit tests | vBACKEND VERIFICATION frozen reference + fail-closed parity | vPREREGISTERED DATA fresh source freeze + controls + independent seeds | vHUMAN REVIEW | vEVID / bounded claim```
## Priority
**MUST now:** canonical ExecutionBackend, learning/synapse contract, parity framework, early benchmark/reference suite, complete checkpoint/state integration, canonical Neural I/O types, Frozen-Environment contract, then CUDA-1.6 frozen and live closed-loop bridge.
**SHOULD next:** model/unit contract, generalized synapse-rule interface and broader Brian 2 interoperability beyond the early restricted reference subset.
**OPTIONAL after core closure:** multicompartment neurons, gap junctions, broad SDE model language, Loihi/SpiNNaker adapters, multi-GPU.
This ordering prevents feature parity with another simulator from displacing MHRN's primary scientific requirement: explicit semantics, provenance and reproducible evidence.
## Wave 3 status — execution and verification plane (2026-09-29)
Wave 3 closes two previously mandatory **engineering** gaps:
1. the backend-neutral ExecutionBackend contract now exists;2. D1/D2/D3 parity, stable execution fingerprints and deterministic RNG/order/delay primitives now have canonical MHRN ownership.
The Playground is no longer the authority for Builder parity or stochastic release semantics. It imports the canonical contracts while preserving its historical public import paths.
This does **not** close RQ-CUDA-PAR-001. There is still no canonical CUDABackend implementing ExecutionBackend, and therefore no new preregistered CPU/CUDA DATA line produced by Wave 3.
The immediate remaining acceleration gap is Wave 4:
- extract CUDA Driver/NVRTC/ABI infrastructure to src/acceleration/cuda;- implement CUDABackend against ExecutionBackend;- preserve exact backend provenance and no-fallback labeling;- run the first canonical backend comparison through src/verification/parity.
Learning, full PAN hyperstate, structural mutation and live closed-loop parity remain separately gated by their existing semantic contracts.
## Frozen-Environment acceptance status — 2026-09-30
The Frozen-Environment programme now has an executable verification layerrather than documentation alone. Manifest artifacts use canonical JSON andself-declared SHA-256 verification; FE-1 validates exact BoundaryFrame replay;FE-2 verifies repeated deterministic trajectories; and FE-3 has a CPU/self D3ccontrol wired to the canonical parity framework.
This closes the **verification-instrument gap**, not the scientificCPU/CUDA-equivalence question. Physical CUDA D3 remains pending, and no FEacceptance result is DATA or EVID by itself.
## Hardware D3 bridge status — 2026-09-30
The physical CUDA acceptance runner now groups three distinct engineeringsurfaces without conflating them:
- canonical Wave-4 CPU/CUDA D1/D2;- optional recurrent/plasticity hardware reruns;- a live Builder CPU/CUDA D3c bridge over the existing CPU world.
The third item remains a useful historical bridge because it exercises livecausal actions and full body trajectory equality. The canonicalFrozen-Environment path now also has a backend-neutral live-input adapter:each tick converts the current frozen world state into a canonicalBoundaryFrame and external-current row, advances CPUReferenceBackend orCUDABackend through the same continuation API, decodes an ActionCommand andreturns it to `FrozenWorldSession`.
The first versioned FE-3 manifest is`research/verification/frozen_environment/FE3_DETERMINISTIC_TARGET_V1.json`.Hosted CI verifies the adapter and CPU/self parity. Physical CPU-vs-CUDA FE-3remains `HARDWARE_ACCEPTANCE_PENDING` until the dedicated RTX-class runpasses. No DATA/EVID is produced by either bridge or hardware acceptance.
## Frontend integration status projection — 2026-09-30
The dashboard now exposes the canonical acceleration boundary without adding anew top-level workspace:
- Playground shows the promotion/integration ladder;- Release → Entwicklung shows CUDA/FE-3 engineering acceptance;- Wissenschaft → Observatory shows the explicit no-DATA/no-EVID boundary;- OLD remains an archive/compatibility surface only.
The projection is sourced from `/api/integration/status`. Software FE-3 readinessand physical RTX acceptance are separate fields. Physical acceptance remainsfail-closed until a reviewed dated hardware acceptance JSON artifact is present.
## 2026-10-01 — Wave 5A PAN semantic draft
The PAN gap is now split into two explicitly different questions:
1. **semantic extraction** — state surface, update order and reference coefficients are now described by `docs/canonical/PAN_HYPERSTATE_CONTRACT_DRAFT.md` and executable in `src/homeostasis/pan_contract.py`;2. **semantic acceptance / backend equivalence** — still open.
Current status:
- PAN state/update contract: **DRAFT_NOT_FROZEN**;- Playground PAN consumes the draft canonical coefficient/state contract;- RQ-PAN-SEM-001 remains open;- physical FE-3 RTX acceptance remains pending;- PAN GPU equivalence remains unproven;- Growth/Pruning/Apoptosis policy semantics remain outside the frozen contract;- no DATA/EVID/CLAIM is created by this extraction.
This closes a documentation/duplication gap but does **not** close the PANscientific or CUDA-parity gap.
## 2026-10-01 — Wave 5B PAN parity preflight
Wave 5B now has a machine-readable, non-executing preflight rather than only aroadmap description:
- `src/homeostasis/pan_parity_contract.py` defines backend-neutral PAN D2 comparison semantics without importing Playground or CUDA;- `research/verification/pan/PAN_WAVE5B_PREFLIGHT_V1.json` freezes the prospective engineering comparison surface and interpretation boundary;- `src/homeostasis/pan_wave5b_preflight.py` projects readiness fail-closed;- the dashboard distinguishes **preflight ready** from **ready for execution**.
The current state is deliberately asymmetric:
- preflight structure: **ready**;- PAN semantic contract: **DRAFT_NOT_FROZEN**;- physical FE-3 RTX acceptance: **pending**;- explicit Wave-5B execution authorization: **absent**;- PAN canonical integration: **not claimed**;- DATA/EVID/CLAIM: **none created**.
The physical RTX run is therefore the next hardware execution blocker, but itis **not the only remaining gate**. A green FE-3 hardware artifact cannotbypass PAN semantic freeze. After both gates pass, an explicit source-boundWave-5B authorization is still required before canonical PAN CPU/CUDA parityexecution.
Wave 6 and Wave 7 are not globally blocked from design work by the missing RTXrun. Structural host-barrier contracts and the canonical learning/synapsecontract may be prepared independently. Their later CUDA/PAN promotion remainssubject to their own semantic and hardware gates.3 unmodified lines45678910 unmodified lines2021222324255 unmodified lines313233343536290 unmodified lines32732832933033133233375 unmodified lines409410411412413414415595 unmodified lines1011101210133 unmodified lines**Baseline:** `mhrn-core 0.6.0a7`**Updated:** 2026-09-27## 2026-09-27 Alpha.7 release line- `develop` remains the canonical integration branch; `main` remains release-only.10 unmodified linesequivalent GPU SNN backend.- Release/DOI mechanics remain separate from Human Review, EVID and replication.## 2026-09-27 Bausteine-Katalog und Sprachumschaltung- Der Playground-Bausteine-Tab erklärt jeden Katalogeintrag per Hover und5 unmodified lines- Neue Backend-Einträge fallen auf eine fachliche, sprachabhängige Beschreibungzurück, statt ohne Erklärung im Katalog zu erscheinen.## 2026-09-27 Release-Statusmarker- Die Release-Ansichten für Entwicklung und Wissenschaft zeigen neben den290 unmodified lines## 2026-09-09 Trusted-LAN dashboard access- Windows `start.cmd` and `start.ps1` now bind the integrated dashboard to `0.0.0.0:8765` by default so it is reachable through the host machine's LAN IP.- Direct Python startup remains loopback-only by default; explicit host overrides remain available for local-only or explicitly selected bindings.- Documented the Windows Firewall and trusted-network boundary; public exposure remains unsupported without an authentication layer.- Improved startup diagnostics with the canonical version, configuration, runtime mode, bind/local/LAN URLs, process ID and UTF-8 console handling.75 unmodified lines## 2026-09-07 Hugging Face Space- Prepared the Docker entrypoint for the integrated dashboard on `0.0.0.0:8765`.- Added Docker Space metadata and published the live dashboard as `superdigger/MHRN-Space`.- Added the Space repository to the automatic GitHub-to-Hugging-Face synchronization workflow.595 unmodified lines[Architecture and execution](../02-architecture/CONNECTOME_EMBODIMENT.md) and[scientific supplement](../../research/publications/2026-09-09_connectome-embodiment_supplement/README.md).3 unmodified lines456789101112131415161710 unmodified lines28293031323334353637383940414243445 unmodified lines5051525354555657585960616263646566290 unmodified lines35735835936036136236375 unmodified lines439440441442443444445595 unmodified lines10411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811793 unmodified lines**Baseline:** `mhrn-core 0.6.0a7`**Updated:** 2026-09-27## 2026-09-29 Ausführbarkeitsgrenzen im Playground- Sichtbare Bausteine werden nicht mehr implizit als ausführbar behandelt.- Katalog-, Analyse- und Referenzbausteine sind im Popup als nicht direktausführbar gekennzeichnet.- Experimentelle Topologien zeigen ihre Mindestdimension und sind beiinkompatibler Dimension in der Builder-Auswahl deaktiviert.## 2026-09-27 Alpha.7 release line- `develop` remains the canonical integration branch; `main` remains release-only.10 unmodified linesequivalent GPU SNN backend.- Release/DOI mechanics remain separate from Human Review, EVID and replication.## 2026-09-29 Post-hoc Experimentauswertung- Experimentkarten im Wissenschaftsbereich erlauben die nachträglicheBeantwortung und Auswertung registrierter Hypothesen.- Die Erfassung dokumentiert Begründung, Beobachtungen, Limitationen undnächste Schritte statt nur einen technischen Ausführungsstatus.- Markdown- und JSON-Artefakte werden pro Experiment abgelegt, im Manifestverknüpft und über den zentralen File Viewer geöffnet.- Interpretation, Human Review und EVID bleiben als getrennte nachgelagerteSchritte erhalten; Speichern erzeugt keine automatische Evidenz.## 2026-09-27 Bausteine-Katalog und Sprachumschaltung- Der Playground-Bausteine-Tab erklärt jeden Katalogeintrag per Hover und5 unmodified lines- Neue Backend-Einträge fallen auf eine fachliche, sprachabhängige Beschreibungzurück, statt ohne Erklärung im Katalog zu erscheinen.## 2026-09-27 Live-Detailansichten- Vergrößerte Live-Grafiken werden hochauflösend und ohne einmaliges Bitmap-Hochskalieren gerendert.- Die aktive Detailansicht folgt jedem Live-Step und zeigt ihren Laufstatus.- Session-Aktionen sind auch im Zoomfenster direkt erreichbar.- Aktualisierungsfaktoren `1x`, `5x`, `10x`, `25x`, `50x` und `100x` bündelnSimulationstakte ohne parallele Requests.- Wiederholte Topologie-Payloads werden bei Live-Batches reduziert; dieDarstellung bleibt aus dem letzten gültigen Graphen lesbar.## 2026-09-27 Release-Statusmarker- Die Release-Ansichten für Entwicklung und Wissenschaft zeigen neben den290 unmodified lines## 2026-09-09 Trusted-LAN dashboard access- Windows `start.cmd` and `start.ps1` now bind the integrated dashboard to `0.0.0.0:8767` by default so it is reachable through the host machine's LAN IP.- Direct Python startup remains loopback-only by default; explicit host overrides remain available for local-only or explicitly selected bindings.- Documented the Windows Firewall and trusted-network boundary; public exposure remains unsupported without an authentication layer.- Improved startup diagnostics with the canonical version, configuration, runtime mode, bind/local/LAN URLs, process ID and UTF-8 console handling.75 unmodified lines## 2026-09-07 Hugging Face Space- Prepared the Docker entrypoint for the integrated dashboard on `0.0.0.0:8767`.- Added Docker Space metadata and published the live dashboard as `superdigger/MHRN-Space`.- Added the Space repository to the automatic GitHub-to-Hugging-Face synchronization workflow.595 unmodified lines[Architecture and execution](../02-architecture/CONNECTOME_EMBODIMENT.md) and[scientific supplement](../../research/publications/2026-09-09_connectome-embodiment_supplement/README.md).## PAN / CUDA integration programmeThe non-canonical Playground PAN work and its explicit canonical-integration requirements are tracked in the [PAN/GPU work programme](../playground/PAN_GPU_ROADMAP.md). It covers neuron/synapse/network persistence, hybrid and full CUDA execution, body/Neural-I/O coupling, research controls, canonical storage/self-organization, RuntimeController and scaling. Completion of a Playground stage does not promote scientific evidence or establish a canonical backend.## CUDA/PAN canonicalization and simulator capability gaps (2026-09-28)The CUDA/PAN/Gate work has reached the point where it creates both a canonicalization programme and a separate simulator-capability backlog. The authoritative gap matrix and architecture decision are documented in [MHRN simulator capability gaps](MHRN_SIMULATOR_CAPABILITY_GAPS.md).The Playground is **not** promoted wholesale into the core. Reusable execution mechanisms are to be extracted behind canonical MHRN contracts while the Playground remains a composition/reference workspace.New canonical research families are registered for deterministic accelerated execution, CPU/CUDA parity, computational scaling, executable Gate-IR semantics, PAN state semantics, PAN GPU parity, structural host/GPU barriers, causal closed-loop parity and restricted external simulator interoperability. Registration creates no EVID and does not promote historical Playground verification.Simulator capability gaps tracked independently from scientific claims include equation-defined model descriptions, physical-unit validation, generalized synapse-rule contracts, multicompartment neurons, electrical/gap-junction synapses, stochastic model specification, standardized benchmark workloads and optional neuromorphic/backend adapters.Priority order:1. canonical ExecutionBackend + state identity;2. canonical Learning/Synapse contract;3. D1/D2/D3 parity + execution provenance;4. storage/checkpoint + BoundaryFrame/Neural I/O integration;5. CUDA-1.6 frozen then live closed-loop bridge;6. PAN semantic freeze and only then full PAN GPU work;7. structural mutation through canonical host barriers;8. standardized benchmarks and Brian 2 reference interoperability;9. optional broader model DSL, multicompartment, gap junction, neuromorphic and multi-GPU work.### Contract refinements required before CUDA-1.6The following contracts are now explicit prerequisites rather than implicit TODOs:- [Canonical Learning and Synapse Contract](../02-architecture/MHRN_LEARNING_SYNAPSE_CONTRACT.md): CPU and CUDA must implement one update-order/STDP/eligibility/reward/delay semantic contract before plastic D3 work.- [Frozen Environment Contract](../02-architecture/MHRN_FROZEN_ENVIRONMENT_CONTRACT.md): separates Boundary replay, frozen deterministic world with live actions and full deterministic live-loop parity.- [Canonical Runtime Checkpoint Contract](../02-architecture/MHRN_RUNTIME_CHECKPOINT_CONTRACT.md): enumerates continuation-critical network, learning, delay, PAN/tissue, Neural-I/O, environment and execution-provenance state.- [Structural Mutation Approval Contract](../02-architecture/MHRN_STRUCTURAL_APPROVAL_CONTRACT.md): clarifies proposal eligibility, deterministic policy approval, optional human authorization and mandatory host/GPU structural barriers.The benchmark/reference suite moves **before** live CUDA-1.6 and full PAN-GPU work. A restricted Brian 2 reference subset may be used as an external validation anchor, but never as a hidden MHRN implementation backend or as proof of scientific validity.## 2026-09-29 Playground -> MHRN integration wave 1- Promoted the neural-I/O type contract from Playground ownership into thecanonical Embodiment layer.- Retained `src/playground/neural_io/contracts.py` as a compatibilityre-export so existing Playground code remains connected.- Added a Playground-visible integration catalog and transfer-verificationsurface. Runtime source mutation is explicitly prohibited.- Next promotion candidate: deterministic neural-I/O codecs, after codec/framesemantics are frozen.- CUDA infrastructure remains queued behind the canonical ExecutionBackendboundary; learning, closed-loop and PAN promotion remain blocked by theirdeclared semantic contracts.- OLD frontend views remain retained surfaces and are not implicitly promotedinto MHRN core.## 2026-09-29 Playground -> MHRN integration wave 2- Canonicalized deterministic neural-I/O codecs/decoders under Embodiment.- Canonicalized a framework-neutral `NeuralIOAreaAdapter` satisfying`NetworkAreaAdapter`.- Kept Playground codec imports as exact compatibility re-exports and thePlayground adapter as an identity wrapper.- Neutralized new spike-frame IDs to `mhrn-spike-*`.- The next technical promotion is the ExecutionBackend abstraction beforemoving CUDA Driver/NVRTC/ABI/parity infrastructure.- Learning, closed-loop environment and PAN remain blocked by their semanticcontract gates.## 2026-09-29 Playground -> MHRN integration wave 3- Canonical ExecutionBackend protocol added under src/runtime/backend.py.- BackendState is explicitly data-only and rejects opaque non-serializable runtime handles.- Canonical D1/D2/D3 parity framework added under src/verification/parity.- Stable execution fingerprints now bind seed, canonical config hash, backend identity/version, tick count and parity-contract version.- Counter-RNG, same-tick update ordering and delay-ring semantics are canonical under src/runtime/determinism.- Playground Builder parity and CUDA plasticity now consume the canonical verifier/determinism primitives through compatibility paths.- The visible Playground integration catalog marks ExecutionBackend and Parity/Determinism as integrated.- CUDA Driver/NVRTC/ABI/recurrent/plasticity extraction is the next Wave-4 task.- No scientific DATA or EVID is created by Wave 3.## 2026-10-01 — Playground integration Wave 5A**Goal:** freeze PAN semantics before further GPU promotion.- [x] Extract the PAN continuation-state surface into`src/homeostasis/pan_contract.py`.- [x] Extract current reference coefficients into `PANFormulaParameters`.- [x] Declare deterministic update ordering for engineering comparison.- [x] Make the Playground PAN runtime consume the draft contract withoutchanging its algorithm.- [x] Expose Wave 5 as `contract_draft` in the acceleration status UI.- [x] Preserve the scientific boundary: RQ-PAN-SEM-001 remains open and PANremains non-evidentiary.- [ ] Human/method review of the state/update contract.- [ ] Freeze a versioned PAN v1 contract.- [ ] Extend RuntimeCheckpoint with all frozen PAN continuation state.- [ ] Implement the same frozen contract on canonical CUDA PAN execution.- [ ] Run PAN D1/D2/checkpoint parity only after physical FE-3 acceptance andsemantic freeze.## 2026-10-01 — Wave 6/7 contract designWave 6 and Wave 7 proceed in parallel with physical RTX-3060 acceptance becausethey are semantics/governance work, not hardware acceptance.### Wave 6 — governed structural plasticity- [x] Add deterministic approval-policy artifact hashing.- [x] Define fail-closed modes: DISABLED, MANUAL_ONLY, POLICY_AUTO and PREREGISTERED_AUTO.- [x] Require mode-specific authorization in addition to topology permission,Structural Barrier availability, journal health and scientific freeze.- [ ] Align the existing StructuralPlasticityEngine mutation path with one canonical host barrier.- [ ] Bind topology-generation increment, CSR/schedule rebuild and checkpointverification to that barrier.- [ ] Human Review/freeze of the structural approval contract.- [ ] CUDA structural mutation remains gated until those steps are complete.### Wave 7 — learning/synapse semantics- [x] Inventory current CPU STDP/eligibility/reward order and checkpoint state.- [x] Inventory current CUDA STP/reward/weight-decay candidate semantics.- [x] Expose known mismatches fail-closed in an executable contract descriptor.- [ ] Decide stable edge identity for parallel synapses.- [ ] Freeze or explicitly exclude STP semantics for the contract version.- [ ] Align reward-credit and weight-decay semantics across CPU/CUDA.- [ ] Implement the same frozen contract on both paths and run canonical learning parity.- [ ] Human Review/freeze before scientific learning studies.These drafts create no DATA/EVID and do not authorize Wave-5B PAN execution.
.github/workflows/ci.yml+88-3
.huggingface/space_config.yaml+2-2
Dockerfile+2-2
HF_README.md+2-2
MIRROR_MANIFEST.json+1-1
README.md+2-2
deploy/Caddyfile.internet.example+1-1
docs/01-guides/DEVELOPMENT.md+1-1
docs/01-guides/UserGuide.md+1-1
docs/02-architecture/MHRN_FROZEN_ENVIRONMENT_CONTRACT.mdAdded+221
docs/02-architecture/MHRN_GATAWAY_NEURAL_INTERFACE.md+73
docs/02-architecture/MHRN_HARDWARE_ACCEPTANCE_2026-09-30.mdAdded+146
docs/02-architecture/MHRN_LEARNING_SYNAPSE_CONTRACT.mdAdded+191
docs/02-architecture/MHRN_RUNTIME_CHECKPOINT_CONTRACT.mdAdded+119
docs/02-architecture/MHRN_STRUCTURAL_APPROVAL_CONTRACT.mdAdded+123
docs/03-dashboard/DASHBOARD.md+18-10
docs/04-integration/EXTERNAL_REVIEW_DEPLOYMENT.md+2-2
docs/06-research/RESEARCH_POSITIONING_AND_EVIDENCE_PROGRAM.md+27
docs/07-changelog/CHANGELOG.md+96-5
docs/08-roadmap/MHRN_SIMULATOR_CAPABILITY_GAPS.mdAdded+298
docs/08-roadmap/ROADMAP.md+168-2