Metadata-Version: 2.4
Name: realizing-emptiness
Version: 3.0.1
Summary: Research-grade active-inference software foundation for Realizing Emptiness.
Author-email: Daniel Ari Friedman <daniel@activeinference.institute>
License: MIT License
        
        Copyright (c) 2026 Daniel Ari Friedman
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        The source preprint in docs/There_is_no_self_evidence_Sandved-Smith_2026.pdf
        is copyright its authors and is not relicensed by this software license.
        
Project-URL: Repository, https://github.com/docxology/realizing_emptiness
Project-URL: Documentation, https://github.com/docxology/realizing_emptiness/blob/main/docs/README.md
Project-URL: Issues, https://github.com/docxology/realizing_emptiness/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Requires-Python: <3.15,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: generalized-notation-notation @ git+https://github.com/ActiveInferenceInstitute/Generalized_Notation_Notation.git@46459949944e3217f8a6a804d4ff8c52829ef275 ; python_version < "3.12"
Requires-Dist: generalized-notation-notation @ git+https://github.com/ActiveInferenceInstitute/Generalized_Notation_Notation.git@4a7cccce6d4d7cb483f00323ec5cdd79300f3464 ; python_version >= "3.12"
Requires-Dist: inferactively-pymdp==1.0.4; python_version < "3.12"
Requires-Dist: inferactively-pymdp==1.0.5; python_version >= "3.12"
Requires-Dist: jsonschema>=4.22.0
Requires-Dist: matplotlib>=3.7.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: pillow>=12.3.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: scipy>=1.11.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: pytest-timeout>=2.4.0; extra == "dev"
Dynamic: license-file

# Realizing Emptiness

**Source-faithful, fully reproducible software operationalizing the formalisms of *There is no self-evidence: A physics of emptiness realisation* (Sandved-Smith, Fields, Doctor, Laukkonen & Hohwy, 2026).**

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20834847.svg)](https://doi.org/10.5281/zenodo.20834847)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.11–3.14](https://img.shields.io/badge/python-3.11%E2%80%933.14-blue.svg)](https://www.python.org/)
[![Validation](https://github.com/docxology/realizing_emptiness/actions/workflows/ci.yml/badge.svg)](https://github.com/docxology/realizing_emptiness/actions/workflows/ci.yml)

| | |
| --- | --- |
| **Version** | v3.0.1; [changes](docs/CHANGELOG.md) and [release validation](docs/release-validation.md) |
| **Archived v1.0.0 (Zenodo)** | [10.5281/zenodo.20834847](https://doi.org/10.5281/zenodo.20834847); [concept DOI](https://doi.org/10.5281/zenodo.20834846). A new version DOI is not yet recorded. |
| **Manuscript PDF** | [`realizing_emptiness_combined.pdf`](output/pdf/realizing_emptiness_combined.pdf) · [latest release](https://github.com/docxology/realizing_emptiness/releases/latest) |
| 📚 **Source preprint** | [osf.io/preprints/psyarxiv/m78z2_v1](https://osf.io/preprints/psyarxiv/m78z2_v1) |
| 📖 **Documentation** | [`docs/`](docs/README.md) |

![Realizing Emptiness Architecture Overview](docs/assets/architecture-overview.svg)

---

## State right now (orientation for a cold agent)

- **Project status:** GNN declarations drive categorical inference and finite
  numerical engines. Version 3.0.1 uses GNN v5.2.0 on Python 3.12 through 3.14
  and retains GNN 4.1.0 on Python 3.11. The scholarship ledger has 125 sources.
  The v1.0.0 DOI identifies the earlier archive; it does
  not identify this version.
- **Measured status:** use the [release validation record](docs/release-validation.md),
  the CI run for the commit, and `output/reports/validation_report.json`.
  Test counts and coverage are measured at validation time.
- **Next actions / backlog:** [TODO.md](docs/TODO.md) is the single canonical backlog — including the five blocked-external-evidence classes and any local, unblocked work.
- **Commands:** the canonical command list lives in [AGENTS.md](AGENTS.md) (Commands section).

## What this is

`realizing_emptiness` turns the paper's formal argument — no-self-evidence,
quantum reference frame (QRF) sectorisation, the separation (σ) prior,
opacification, and Bayesian model reduction — into finite, deterministic,
individually-gated software surrogates.

Every public claim is bound to a manuscript anchor, a generated artifact, a
validation gate, and an explicit **evidence ceiling** stating what must *not* be
inferred from it. Nothing here measures awakening, neural criticality, clinical
outcome, or physical qFEP realization; the project makes the paper's formal
commitments **inspectable and reproducible**, and is rigorous about saying where
the software stops and empirical science would have to begin.

## Highlights

- **GNN model authority** — packaged, source-hashed model declarations pass the pinned upstream parser and strict validator before their tensors or parameters reach the numerical engines. See the [GNN modeling guide](docs/gnn-modeling.md).
- **Equations 1–14 as finite surrogates** — worked VFE/KL decompositions, an evidenced `b0`–`b5` QRF boundary-channel ledger, and three QRF deployment profiles (separation-constrained, opacified, post-dual).
- **Active inference** — a real `pymdp` profile stack (explicit `A/B/C/D` arrays, deterministic policy traces, runtime diagnostics) plus seeded stochastic ensembles with null controls and replayable seeds.
- **Bayesian model reduction** — separation-prior pruning sweeps with sensitivity analysis over prior precision, metacognitive access, and observation noise.
- **Finite quantum information** — two-qubit separability entropy, CHSH/contextuality witnesses, local-polytope feasibility audits, CPTP channel-cost and dephasing surrogates, quantum-trajectory unraveling, and a Cramér–Rao coherence bound.
- **Measured statistics** — run-level mean-difference and Cliff's-delta intervals, paired branching contrasts, permutation Monte Carlo uncertainty with Holm correction, and calibration over 128 seed sets. See [statistical methods](docs/statistical-methods.md).
- **Expanded scholarship** — 125 ledger entries with source roles and claim ceilings, including statistical limitations, FEP critiques, quantum reference frames and contemplative measurement. See the [expansion synthesis](docs/scholarship-expansion.md).
- **Adversarial claim governance** — scholarship source-role matrix, claim-support and claim-context ledgers, evidence-ceiling and claim-intensity audits, and a 37-finding [red-team record](docs/redteam-audit.md).
- **Reproducible visualization** — source-mapped figures with integrity hashes, a semantic palette, accessibility/caption audits, and a static [artifact dashboard](output/dashboard/index.html).

See the [documentation index](docs/README.md) for the full contract-by-contract breakdown.

## Repository layout

| Path | Contents |
| --- | --- |
| [`src/`](src/) | Finite simulation, formalism, gates, and visualization modules |
| [`src/modeling/`](src/modeling/) | GNN specifications, upstream provenance, and validated execution adapters |
| [`scripts/`](scripts/) | Thin orchestrators — the deterministic artifact chain |
| [`docs/manuscript/`](docs/manuscript/) | Sheaf-composed manuscript sources (compose into the combined PDF) |
| [`docs/`](docs/README.md) | Conceptual on-ramp, formal mapping, and discipline/gate contracts |
| [`output/`](output/) | Generated artifacts: data, figures, dashboard, and the rendered PDF |
| [`schemas/`](schemas/) | JSON schemas for every generated artifact |
| [`data/sources/`](data/sources/source_manifest.yaml) | Source + claim provenance (preprint SHA-256 and OSF URL) |

## Quick start

```bash
uv sync --frozen --extra dev
```

Use Python 3.11-3.14 and run the full chain and verification commands in
[AGENTS.md](AGENTS.md). Installation includes the pinned upstream GNN
dependency; its provenance and separate license are documented in the
[GNN modeling guide](docs/gnn-modeling.md).

The analysis chain uses fixed seeds and stable JSON serialization. Figure bytes
are reproducible within the same locked runtime and rendering dependencies;
PDF/HTML/EPUB rendering is a separate template step. See
[running the chain](docs/running-the-chain.md) for the per-stage walkthrough and
gate-failure troubleshooting.

Render the manuscript PDF through the sibling template checkout using the
verified qualifier in [running the chain](docs/running-the-chain.md#render-and-manual-qa).

## Reproducibility & validation

- Artifact gates cover existence, schemas, the pinned source digest, per-claim
  boundaries, figure integrity, manifest coverage, and review-response checks.
- Tests use real objects and computations, with a 90% branch-inclusive source
  coverage floor and adversarial corruption controls; no mocking frameworks.
- Deterministic crosswalk and method-inventory generation that cannot drift from the source registry.
- Independent or blinded reproduction of the full artifact bundle remains a **declared future-evidence boundary** — see the blocker ledger in the [quantum simulation roadmap](docs/quantum-simulation-roadmap.md).

## Citation

> Friedman, Daniel Ari (2026). *Realizing Emptiness* (v3.0.1). Active Inference
> Institute. https://github.com/docxology/realizing_emptiness/releases/tag/v3.0.1

The archived v1.0.0 version DOI remains available above. The concept DOI
[10.5281/zenodo.20834846](https://doi.org/10.5281/zenodo.20834846) tracks the
Zenodo archive and may lag GitHub releases. Machine-readable metadata:
[`CITATION.cff`](CITATION.cff), [`codemeta.json`](codemeta.json),
[`.zenodo.json`](.zenodo.json).

## License

Project source: MIT — see [`LICENSE`](LICENSE). The upstream GNN dependency
declares CC-BY-NC-SA-4.0; see its [provenance and license record](src/modeling/upstream.json).
The source preprint *There is no
self-evidence: A physics of emptiness realisation* (Sandved-Smith et al., 2026)
is © its authors; its provenance is recorded by SHA-256 and OSF URL in
[`data/sources/source_manifest.yaml`](data/sources/source_manifest.yaml).

## Integrity boundary

The software does not claim to prove awakening, compassion, neural criticality,
clinical benefit, or physical qFEP realization. It implements finite surrogate
checks and seeded stochastic simulations that make the paper's formal
commitments inspectable. Targeted quantum-trajectory and QRF-transformation
sources support method vocabulary only. Practice protocols are model
interventions and research interfaces, not medical, spiritual, or therapeutic
instructions.
