Physics-grounded memory-kernel tooling and runtime infrastructure for Aberconics / HierAberConic-D2C experiments.
This repository currently contains:
- a reusable C++
gfe_corelibrary with tests, CLI tools, and an installable package abersoesingle-level augmented-memory runtime componentshierarchical_minmulti-level hierarchy, diagnostics, and renormalization utilities- a C ABI over the core runtime surface
- thin Python
ctypesand Juliaccallwrappers - reference experiments and generated result artifacts
code/c++ core- primary implementation surface
- C++ library, apps, tests, and C ABI
code/python- typed
ctypeswrapper overgfe_c_api.h - wrapper tests and smoke script
- typed
code/julia- Julia reference module plus C ABI smoke integration
results- generated experiment outputs for OU noise and Lorenz runs
docs- theory notes and figures
- SOE kernel fitting with backend selection
- ABERSOE single-level scenario execution
- hierarchy scenario execution
- hierarchy cross-level diagnostics
- hierarchy renormalization reports
- constrained custom chain-style hierarchy assembly through the C ABI and Python wrapper
- Top-level technical reference extract: D2C.md
- Source PDF:
HierAberConic_D2C_Technical_Reference_v1.0.pdf - C++ details:
code/c++ core/README.md - Python wrapper details:
code/python/README.md - Julia details:
code/julia/README.md
The repo is no longer just a kernel-fitting prototype.
The current foundation includes:
- compiled
gfe_corewithabersoe,hierarchical_min, diagnostics, renorm, and C API - shared-library builds for Python/Julia wrapper use
- canonical runtime scenarios for single-level and hierarchical runs
- typed ABI access to hierarchy reports and constrained custom chain specs
- passing C++ and Python smoke/regression-style tests in the local tree
What is not yet fully implemented from the D2C technical reference:
- predictive-coding training heads
- per-channel value critics / TD learning runtime
- full Python-side Director / TraceStore training orchestration
- discrete-to-continuous token bridge for language-style experiments
So the repo is ready for:
- runtime experimentation
- diagnostics/reporting workflows
- Python module development on top of the current ABI
It is not yet a complete end-to-end D2C training system.
cmake -S "code/c++ core" -B "code/c++ core/build" -DCMAKE_BUILD_TYPE=Release
cmake --build "code/c++ core/build" -jcmake -S "code/c++ core" -B "code/c++ core/build-shared" -DBUILD_SHARED_LIBS=ON
cmake --build "code/c++ core/build-shared" -jctest --test-dir "code/c++ core/build" --output-on-failureexport GFE_CORE_LIB="$(pwd)/code/c++ core/build-shared/libgfe_core.so"
python3 code/python/ctypes_smoke.py
pytest -q code/python/testsexport GFE_CORE_LIB="$(pwd)/code/c++ core/build-shared/libgfe_core.so"
julia code/julia/examples/05_capi_ccall_smoke.jl.
├── code/
│ ├── c++ core/ # Main library, CLI tools, tests, C ABI
│ ├── python/ # ctypes wrapper and tests
│ └── julia/ # Julia module and ccall wrapper
├── docs/ # Theory notes and figures
├── results/ # Generated experiment outputs
├── D2C.md # Markdown extract of the technical reference PDF
└── Context.md # Project context and implementation notes
If you are new to the repo:
- read this file first
- then read
code/python/README.mdfor the cleanest wrapper overview - then read
code/c++ core/README.mdfor detailed runtime and CLI surfaces
If you want to work from Python:
- start with
code/python/gfe_ctypes.py - run
code/python/tests/test_gfe_ctypes.py
If you want to work from the core:
- start with
code/c++ core/include/gfe/gfe_c_api.h - then
code/c++ core/include/abersoe/andcode/c++ core/src/

