Active-inference metacognitive controller kit for agent runtimes, with Hermes Agent adapter support.
Project description
Dionysus MetaCog
Dionysus MetaCog is an active-inference metacognitive controller kit for agent runtimes.
It provides a public Python package, dionysus-metacognition, with import root
dionysus_metacog. The package is designed to expose metacognitive control
primitives, model provenance, attractor-aware state tracking, and adapter seams
for systems such as Hermes Agent, Autonoesis, Elume, Sakshi, and
linoss-dynamics.
Install
pip install dionysus-metacognition
Import
import dionysus_metacog
from dionysus_metacog.core import MetaCogSignal, PromotionLabel
For local code that wants a shorter alias:
import dionysus_metacog as metacog
Scope
Dionysus MetaCog is not a generic utils package and is not the ontology owner
for phenomenological self-modeling. It is the applied metacognitive controller
layer: the place where active-inference control signals, POMDP-style model
records, Markov blanket boundaries, attractor-aware runtime observations, and
adapter seams can be assembled without polluting host projects.
Autonoesis should remain the self-model and computational-phenomenology kernel. Elume should remain the deterministic replay and competition substrate. Sakshi should remain the witness and verification layer. linoss-dynamics should remain the oscillator dynamics toolkit. Hermes Agent should remain a first-class runtime adapter target, not a hard dependency.
Package Layout
dionysus_metacog/
framework/ # canonical layer stack and dependency contract
core/ # controller signals, traces, promotion labels
models/ # active-inference, POMDP, Markov blanket records
attractors/ # attractor-state interfaces
adapters/ # optional integration seams
provenance/ # source attribution and model lineage
Framework Layers
The initial framework stack is intentionally explicit:
provenanceowns source attribution and model lineage.generative_modelowns active-inference and POMDP model records.boundaryowns Markov blanket boundary records.dynamicsowns attractor-basin and dynamical-state observations.controlowns metacognitive control signals and traces.adaptersowns optional host-runtime integration seams.
The default layer contract is available in code:
from dionysus_metacog.framework import FrameworkSpec
framework = FrameworkSpec.default()
print(framework.dependency_graph)
Attractor Sources
Attractor-basin records must carry source backing. The initial source ledger connects the package to:
- Friston, Sengupta, and Auletta's "Cognitive Dynamics: From Attractors to
Active Inference" (
https://doi.org/10.1109/JPROC.2014.2306251). - Context-Engineering's attractor dynamics and attractor co-emergence protocol shell lineage.
- Spisak and Friston's PNI Lab article, "Self-orthogonalizing attractor neural
networks emerging from the free energy principle"
(
https://pni-lab.github.io/fep-attractor-network/).
from dionysus_metacog.attractors import AttractorBasin, default_attractor_sources
from dionysus_metacog.models import PomdpStateRecord
sources = default_attractor_sources()
basin = AttractorBasin(
basin_id="focused_attention",
attractor_label="focused attention",
depth=0.8,
width=0.6,
stability=0.9,
sources=(sources["friston-2014-cognitive-dynamics"],),
)
model = PomdpStateRecord(
hidden_state="focused",
observation="task_stable",
policy="continue",
expected_free_energy=0.1,
precision=0.9,
)
Use AttractorAssessment when an attractor observation should become a
portable metacognitive control signal:
from dionysus_metacog.attractors import AttractorAssessment
assessment = AttractorAssessment.from_basin(basin=basin, model=model)
control_signal = assessment.to_signal()
When available, a MarkovBlanketRecord can be passed into
AttractorAssessment.from_basin(...) so the emitted control signal carries the
internal, external, sensory, and active-state boundary context alongside the
POMDP observation.
Status
This is the initial public package skeleton. The API is intentionally small and typed so that the package name can be claimed cleanly before deeper model extraction lands.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dionysus_metacognition-0.1.1.tar.gz.
File metadata
- Download URL: dionysus_metacognition-0.1.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
081ed110c1464d05cdaab504139dc357e3e941deebe3e9d6772d9534a61d87c1
|
|
| MD5 |
577eb3307a714ae9ea4c545fc5b9cd9e
|
|
| BLAKE2b-256 |
c19e5d069f26fa77b6d5a6b33024430ec9426f228c0b171c1ede5328202397df
|
Provenance
The following attestation bundles were made for dionysus_metacognition-0.1.1.tar.gz:
Publisher:
publish.yml on bionicbutterfly13/dionysus-metacog
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dionysus_metacognition-0.1.1.tar.gz -
Subject digest:
081ed110c1464d05cdaab504139dc357e3e941deebe3e9d6772d9534a61d87c1 - Sigstore transparency entry: 1545489520
- Sigstore integration time:
-
Permalink:
bionicbutterfly13/dionysus-metacog@9e3e08bb781551306e3841fa3124b2893aca26ac -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bionicbutterfly13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e3e08bb781551306e3841fa3124b2893aca26ac -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dionysus_metacognition-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dionysus_metacognition-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637b4485b6b94387cb4e37ccb42bc89a526dee7f3da0ebc201f3df7241f55053
|
|
| MD5 |
c2d46f5e725f38a3598aca59fd786527
|
|
| BLAKE2b-256 |
41c78a857f7e5e51a90aea0c53e156ae69e47dcfd159a1cc3cbd0d296673a2f9
|
Provenance
The following attestation bundles were made for dionysus_metacognition-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on bionicbutterfly13/dionysus-metacog
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dionysus_metacognition-0.1.1-py3-none-any.whl -
Subject digest:
637b4485b6b94387cb4e37ccb42bc89a526dee7f3da0ebc201f3df7241f55053 - Sigstore transparency entry: 1545489951
- Sigstore integration time:
-
Permalink:
bionicbutterfly13/dionysus-metacog@9e3e08bb781551306e3841fa3124b2893aca26ac -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bionicbutterfly13
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9e3e08bb781551306e3841fa3124b2893aca26ac -
Trigger Event:
workflow_dispatch
-
Statement type: