Autonomous drift-bounded coupling for CfC neural networks — distributed intelligence through Mesh Cognition
Project description
mesh-cognition
Autonomous Drift-Bounded Coupling for CfC Neural Networks
Turn any AI agent into a mesh cognition node. The coupling is autonomous — the agent evaluates each peer's hidden state and decides for itself whether, how much, and which neurons to couple.
Install
pip install mesh-cognition
Quick Start
from mesh_cognition import MeshNode
# Create a node matching your CfC model's hidden dimension
node = MeshNode(hidden_dim=64)
# After each CfC inference step — update local state
node.update_local_state(new_h1, new_h2, confidence=0.8)
# Add peer state (from network, another agent, etc.)
node.add_peer("peer-1", peer_h1, peer_h2, confidence=0.9)
# Before next inference — get coupled state
h1, h2 = node.coupled_state()
# Feed h1, h2 into your CfC model as hidden state inputs
# Check what the agent decided
print(node.kuramoto_order_parameter) # r(t): 0=desync, 1=in sync
print(node.coupling_decisions) # per-peer: aligned/guarded/rejected
How It Works
The agent evaluates each peer's hidden state via cosine similarity drift:
- Aligned (drift ≤ 0.25): Strong coupling — agent trusts peer
- Guarded (0.25 < drift ≤ 0.5): Cautious coupling — reduced influence
- Rejected (drift > 0.5): Agent rejects peer state entirely
Each hidden dimension is coupled independently. Zero external dependencies.
Links
Apache 2.0 — © 2026 SYM.BOT Ltd
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 mesh_cognition-1.0.0.tar.gz.
File metadata
- Download URL: mesh_cognition-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
902df34cdc67f60ec17c259c3ec02e9b28f9b11b60c606d3029d9e19effd7be9
|
|
| MD5 |
44754224f00f520ec4f46123b8ccc4dd
|
|
| BLAKE2b-256 |
8e1347cbca8d8d2653c2bc264f2f456bcf98e8a353450246840b0e0457eb2675
|
File details
Details for the file mesh_cognition-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mesh_cognition-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57bc39357f0c03bc4b08113fc826fc96c7718b6e3041b5c3f51241bb6c588bb7
|
|
| MD5 |
2ba29cc50edaefffcb913904f14a0eb9
|
|
| BLAKE2b-256 |
ed17e0ef47bab4d130db63f5cf23b18b23a35d232a1ea730a6124acc13515e4c
|