Attractor-basin primitives for cognitive signal routing, field dynamics, and host-neutral mental model substrates.
Project description
Attractor-Basin Cognition
Attractor-Basin Cognition (ABC) is a standalone Python library for modeling cognitive signals as attractor-basin dynamics.
Tagline: all cognition is attractor basins when done right.
ABC is not a host application. It does not import or depend on agent servers, graph databases, webhooks, or any project-specific cognitive model. Hosts translate their own objects into ABC's neutral signal protocols.
What It Provides
- Hopfield-backed basin creation, recall, strengthening, and stability checks.
- Oscillatory basin-field dynamics for basin influence, resonance, coupling, and persistence profiles.
- A host-adapter boundary for cognitive systems that need to route signals without coupling this library to their object model.
- Neutral signal protocols for a ladder from impulse-scale activation to packet-like signals, concept fields, and basin graphs.
Signal Ladder
ABC keeps the public API neutral:
BasinImpulse: a minimal activation plus optional dominant basin.PacketLike: a packet-scale signal with content, precision, coherence, and metadata.ConceptFieldLike: a field-scale signal with concepts, field energy, and a dominant basin.BasinGraphLike: a graph-scale signal with constituent basins, cohesion, and stability.
Application-specific objects belong in host adapters, not inside this package.
Install
pip install attractor-basin-cognition
Quick Start
from abcognition import CoreAttractorService
service = CoreAttractorService(n_units=128)
await service.create_basin(
"procedural-basin",
"stepwise task execution and tool use",
)
await service.create_basin(
"experiential-basin",
"episodic recall and lived context",
)
result = await service.find_nearest_basin("remember what happened last session")
Field dynamics:
from abcognition.field import BasinFieldEngine
field = BasinFieldEngine(["experiential-basin", "procedural-basin"])
state = await field.step({
"experiential-basin": 0.8,
"procedural-basin": 0.2,
})
print(state.influence)
print(state.resonance)
Host-Adapter Boundary
ABC owns basin math and signal contracts. Your host owns identity, persistence policy, memory graphs, agent lifecycle, domain schemas, and product-specific names.
Correct integration shape:
from dataclasses import dataclass
from typing import Optional
@dataclass
class MyHostSignal:
activation_level: float
dominant_basin: Optional[str]
Then pass host data through ABC protocols or services without ABC importing the host.
Current Status
This is an alpha extraction. The initial package includes the reusable attractor service, basin state model, field engine, field state model, and neutral protocols. Higher-level mental model helpers should be added only when they remain host-neutral.
Project details
Release history Release notifications | RSS feed
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 attractor_basin_cognition-0.1.0.tar.gz.
File metadata
- Download URL: attractor_basin_cognition-0.1.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89885460bf4c025cb16e61f6364879555a500d76386ffa568f8a404c175a42f4
|
|
| MD5 |
a0539936e04d397883b4c661750b3912
|
|
| BLAKE2b-256 |
6b843d02e87b4baad8e25d6eacaaa29d736ea0ff09b6c7ff0219968392ccb369
|
File details
Details for the file attractor_basin_cognition-0.1.0-py3-none-any.whl.
File metadata
- Download URL: attractor_basin_cognition-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
741c40095b4d01d7a1f4e2b2fab2993ccb1beb8820d9fce008e1231fffadadf7
|
|
| MD5 |
2dc5ac37bb019b46944024195776070b
|
|
| BLAKE2b-256 |
d07a34c44fecf867f0e526093fad7add7779807510895d397b4693050fdbeff4
|