Skip to main content

Autonoesis

A computational phenomenology engine and core library for cognitive agents.

Autonoesis implements Metzinger-inspired self-modeling, active-inference, and subjectivity primitives for representing how an agent experiences itself as a subject situated in a world. Its core is designed to remain dependency-light and host-neutral so larger cognitive architectures can embed it without inheriting database, web framework, agent runtime, or orchestration assumptions.

What It Owns

  • Phenomenal state records
  • Self-model state records
  • Agency and ownership attribution
  • First-person perspective state
  • Boundary and mineness checks
  • Transparency / opacity markers
  • Pure self-model update operations
  • Deterministic, non-eager capability discovery

What It Does Not Own

  • Memory storage
  • Agent orchestration
  • LLM prompting infrastructure
  • Active inference policy selection
  • Safety policy systems
  • Product runtime surfaces

Install

pip install autonoesis

Dependencies

The package has three runtime dependencies. They come from retained numerical and Pydantic capability modules under inference/, metzinger/, feelings/, and most of models/ — not from the core.

Dependency Required by
pydantic 13 modules across models/, inference/, metzinger/, feelings/
numpy models/belief_state.py, inference/representational_similarity.py
scipy inference/representational_similarity.py (scipy.stats.spearmanr)

What "dependency-light" means here. It is a rule about the core — the records, operators, episodic layer, and store protocol — not a claim about the distribution. Measured transitively:

Core module Third-party dependencies
identity.py none; stdlib only
episodic.py, operators.py, store.py, jsonl_store.py, models/__init__.py pydantic

Those five reach pydantic through one line: models/__init__.py re-exports SomaticAnchor from a pydantic module. No core module reaches numpy or scipy at all.

Installing pulls all three; importing does not. pip install autonoesis downloads numpy, pydantic, and scipy because all three are declared. But the top-level __init__.py does not reach the two modules that use numpy and scipy, so they stay unloaded until you import one of those directly:

Import Loads
import autonoesis pydantic only
import autonoesis.models.belief_state numpy, pydantic
import autonoesis.inference.representational_similarity numpy, scipy, pydantic

So the install cost is three dependencies, and the import cost for ordinary use is one.

The consumer. Dionysus 4 depends on this package as a git dependency pinned at tag v0.4.0, and documents the fields it maps in its own d4/contracts/self_model.py. It imports three classes:

autonoesis source What D4 maps from it
models/agency_ownership.py → AgencyOwnershipBinding agency, ownership, dissociation, source action
models/subjectivity.py → AttentionSchema target, target type, policy source, intensity, epistemic and pragmatic weight
models/subjectivity.py → SubjectivityMetric interoceptive and exteroceptive precision, free-energy derivative

Feature 008 classifies all 17 retired-canary modules as retained Autonoesis capabilities or compatibility surfaces. tests/test_capabilities.py owns their intended import coverage; D4's narrower use remains a compatibility contract, not the criterion for Autonoesis ownership.

tests/test_dependency_contract.py enforces this table. It fails if a core module acquires a dependency, if pyproject.toml declares one nothing imports, or if the package imports one that is not declared.

Capability Discovery

list_capabilities() returns an immutable, deterministically ordered tuple of static descriptors. Enumeration does not import referenced modules, so the ordinary discovery path does not load NumPy or SciPy. Each descriptor states its core, pydantic, or numerical dependency tier and any retained compatibility contract.

from autonoesis import list_capabilities

for capability in list_capabilities():
    print(capability.key, capability.dependency_tier)

Import a selected module explicitly when you need its implementation. Descriptor module_refs are strings by design, not eager imports.

Attention Record Names

AttentionalAllocationState is the canonical adaptive narrative record for allocation, avoidance, valence, and opacity. The former top-level AttentionSchema name remains an exact alias to that class until 1.0. New code should import AttentionalAllocationState.

autonoesis.models.subjectivity.AttentionSchema is a separate focus and policy source record used by the verified D4 field contract. Its module path and fields are unchanged.

Minimal Example

from autonoesis import PhenomenalState, SelfModel, assess_agency, update_self_model

state = PhenomenalState(
    salience=0.8,
    valence=0.2,
    arousal=0.4,
    perspective="first_person",
)

model = SelfModel(subject_id="agent")
agency = assess_agency(intention_strength=0.9, outcome_match=0.7, external_override=0.0)
updated = update_self_model(model, state, agency=agency)

assert updated.agency.confidence > 0.0

Design Rule

Autonoesis is a computational phenomenology engine and core library. The core should stay dependency-light, typed, host-neutral, and easy to test. Host systems should attach storage, orchestration, LLM calls, and runtime policy through adapters. See Dependencies for what the distribution actually requires and why.

Project Docs

Metadata

Release files for autonoesis 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autonoesis 0.5.0
File Size Uploaded Provenance Actions
autonoesis-0.5.0.tar.gz 338.4 kB With provenance Details for autonoesis-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autonoesis 0.5.0
File Interpreter ABI Platform Actions
autonoesis-0.5.0-py3-none-any.whl Python 3 none any Details for autonoesis-0.5.0-py3-none-any.whl

Total release size: 396.0 kB

Release files / autonoesis-0.5.0.tar.gz

Download URL autonoesis-0.5.0.tar.gz
Size 338.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15e2bc567622337a8cfa98ab489b4a2d4d5b9f2fb136249ee55e5b7f9720278f
BLAKE2b-256 checksum
How to use checksums
67598b3a92bddcd02eae933c4010c22ae533361812ad9914b65ab010b195805f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / autonoesis-0.5.0-py3-none-any.whl

Download URL autonoesis-0.5.0-py3-none-any.whl
Size 57.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e350d65a852675cd5f484dd579376738907025e3074aa14df216f963b61b6c9
BLAKE2b-256 checksum
How to use checksums
283c28135e9dad4084f5a33b550599d1ef7fa80fa5edaa044a645ec086a978b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for autonoesis 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for autonoesis-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page