PyCauset TODO
The forward-looking work list. Release 1 (R1) shipped the correctness-focused linear
algebra foundation; this file tracks everything that remains after R1. The original
sequence-based R1 roadmap is retained at the bottom for reference, and the live R1
status lives in R1_EXECUTION.md.
What's next (post-R1)
Immediate: finish the R1 release
- CI green on the 3-OS matrix (Ubuntu/macOS/Windows + Linux ASan, 2026-08-28)
- Linux build verified by maintainer (CI green now; manual spot-check optional)
- Tag
v0.6.1and push (setuptools_scm picks up the tag as the version) - Publish to PyPI and sanity-check
pip install pycausetin a fresh venv - Docs: convert wiki-links to markdown, finish API reference completeness
- API lock: mark
_internalas private (__all__is already curated)
Known issues (bugs, fix post-R1, do not forget)
- Teardown hang in
release_tracked_matrices(), root-caused and fixed (R2_HARDEN, 2026-08): theMemoryGovernor/ComputeContext/ThreadPool/OpRegistrysingletons were Meyers statics whose destruction order is undefined during interpreter finalization, soPersistentObjectdestructors andclose()callinginstance()could hang or crash. They are now heap singletons that are intentionally never destroyed (destructors are empty or the OS reclaims the resources at process exit), eliminating the whole class of teardown-ordering hazards. Therelease_tracked_matrices()finalization skip is retained as defense-in-depth (the OS reclaims mappings anyway). - Dead code / deprecated-feature sweep, in progress (R2_HARDEN): removed the
import-time-skipped
test_pauli_jordan_spectrum.py(referenced the removed.eigenvalues()API) and the stale*.dll.stalebuild artifacts.test_skew.pyandtest_skew_comprehensive.pywere re-enabled once the nativeeigvals_skew(R2_CATALOG skew eigensolver) landed in R2.2.
Resolved (R1)
- Constructor segfault / heap-corruption heisenbug (Linux SIGSEGV, macOS SIGBUS):
root cause was
PersistentObject's destructor never callingMemoryGovernor::unregister_object(), so the governor LRU accumulated danglingPersistentObject*entries andevict_until_fits()dereferenced them viaspill_to_disk()under memory pressure (ASan: heap-buffer-overflow inPersistentObject::spill_to_disk()). Fixed by unregistering in~PersistentObject().
Deferred optimization (continuous post-R1 program)
- Achieve >= 0.90x NumPy throughput for every op (the "never slower than NumPy" bar).
- GPU parity: CUDA 12.6 + VS 2022 for the GTX 1060 (Pascal); CUDA 13 dropped it.
- Streaming-everything: enable every out-of-core path.
- SRP-2 "Causal Math Optimization Catalog" (triangularity, Neumann series, property abuse).
- Eigen-cache persistence to the
.pycausetcontainer (avoid recompute on reload). - macOS wheels: build OpenBLAS/libomp from source against a fixed older deployment target (currently pinned to macos-15 and bounded by Homebrew).
Physics (Release 2)
- 100GB propagator matrix K (capstone large-scale experiment)
- Pauli-Jordan function i*Delta
- Curved spacetimes (Schwarzschild / de Sitter)
- User-defined spacetimes
- A user profiler (RAM/GPU/CPU) to drive automatic optimization
Hygiene
- Remove dead code and legacy eager-evaluation paths
- Slim
__init__.py - ruff/mypy incremental cleanup (E/I/UP style rules), in progress:
ruff check --fixapplied import-sorting (I001) acrosspython/pycauset. Remaining are ~295 mechanical findings:E501(docstring/line >100 chars, cosmetic) andUP006/UP045(Tuple→tuple,Optional[X]→X | None,List→list, need--unsafe-fixes; safe on the actual py3.10+ runtime but flagged against the stalepy38target).
R1 is complete
The R1 roadmap and node details now live in internals/plans/R1_EXECUTION.md, and the per-node planning docs are under internals/plans/archive/. They are history; this file only tracks forward-looking work.