Skip to main content

mirror-machine

Theoretical Mirror Framework – self-referential loops, consciousness phase transitions and Mirror Principle simulation for the GenesisAeon stack.

CI Python 3.11+ License: MIT PyPI


Install

pip install mirror-machine
# with full GenesisAeon stack integration
pip install mirror-machine[stack]

CLI Usage

# Reflect a sigil YAML through the Mirror Principle
mirror reflect --sigil codex-prime.yaml

# Simulate a consciousness phase transition
mirror phase-transition --beta 0.0625 --steps 100

Python API

from mirror_machine import MirrorMachine

mm = MirrorMachine("codex-prime.yaml")

# Self-referential state with reflection key
print(mm.state["reflection"])

# Consciousness phase transition curve
curve = mm.phase_transition(beta=0.0625, steps=200)
print(f"Peak emergence: {curve.max():.4f}")

What It Does

Concept Implementation
Mirror Principle reflect() — loads YAML sigil, creates state["reflection"] self-reference
Phase Transition phase_transition() — sigmoid × golden-ratio oscillation (φ = 0.618)
Entropy Bridge MirrorMachineBridge — optional link to entropy-table (requires [stack])

Structure

mirror-machine/
├── src/mirror_machine/
│   ├── core.py                 # MirrorMachine – reflect + phase_transition
│   ├── cli.py                  # Typer CLI: mirror reflect / mirror phase-transition
│   └── entropy_table_bridge.py # Optional entropy-table integration
├── domains.yaml                # Mirror-machine domain configuration
└── tests/

Role in the GenesisAeon Ecosystem

mirror-machine is P-MIRROR in the GenesisAeon ecosystem registry, covering the phase-transition detection / state mirroring domain: it detects critical phase transitions and mirrors self-referential state across the GenesisAeon stack via the Mirror Principle.

Citation

DOI

DOI will be assigned automatically on first GitHub Release once Zenodo–GitHub integration is enabled for this repo.

PyPI: https://pypi.org/project/mirror-machine/


Part of the GenesisAeon stack — the self-reflective core.

Metadata

Release files for mirror-machine 1.0.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 mirror-machine 1.0.0
File Size Uploaded Provenance
mirror_machine-1.0.0.tar.gz 139.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mirror-machine 1.0.0
File Interpreter ABI Platform
mirror_machine-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 146.2 kB

Release files / mirror_machine-1.0.0.tar.gz

Download URL mirror_machine-1.0.0.tar.gz
Size 139.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c9df9980fb42f99f087d9ba3075731896c6e4fd8505244855b55bb8c145367bc
BLAKE2b-256 checksum
How to use checksums
56a9abba3372093733212defe32177aa4e42dee2318952b8b680ec166d1fe440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 28, 2026.

Transparency log

Release files / mirror_machine-1.0.0-py3-none-any.whl

Download URL mirror_machine-1.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fc4469343dfe247267d823dec29726afb1f6f1da4fbae9e04d5ea1f38e91f4e
BLAKE2b-256 checksum
How to use checksums
d4ad1399f698dad28fb3f369030159695f0107d89049992b49f1042453c7f0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 28, 2026.

Transparency log

Security for mirror-machine 1.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mirror_machine-1.0.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 Jun 28, 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