EP-0196: Peripheral Ecosystem Realignment (Benchmarks, Recipes, GUI Lab & User Guides)¶
| Field | Value |
|---|---|
| EP | 0196 |
| Title | Peripheral Ecosystem Realignment (Benchmarks, Recipes, GUI Lab & User Guides) |
| Author | Eran Rivlis eran@rivlis.info, Antigravity |
| Sponsor | Council Framework |
| Delegate | 🎨 Feynman (Pedagogy & Didactic Clarity), ⏱️ Shannon (Efficiency) |
| Status | Final |
| Type | Standards Track |
| Created | 2026-11-04 |
| Updated | 2026-11-04 |
| Replaces | — |
| Superseded-By | — |
Abstract¶
Following the core engine and verification purge in EP-0195, this proposal
updates the surrounding ecosystem of algebrax: performance benchmarks (benchmarks/), interactive recipe notebooks
(recipes/*.ipynb, recipes/*.py), the DearPyGui graphical laboratory (recipes/lab.py), and documentation pages
(docs/). It ensures that every demonstration and benchmark measures and showcases pure canonical syntax without
relying on deprecated imports or aliases.
Motivation¶
While EP-0195 cleanses src/algebrax/ and tests/, peripheral assets must be updated to maintain ecosystem integrity:
- Benchmarks (
benchmarks/):test_benchmarks.pyandtest_linalg_benchmarks.pycurrently invokeax.homologyandax.matrix.decompose.lu. Measuring benchmark timings through legacy shims adds noise and inaccurate performance profiles. - Recipes (
recipes/): 12 recipes (includingclifford_rotor_kinematics,topological_data_analysis, andtopological_homology_betti) importCliffordSemiringandalgebrax.homology. As the primary entry points for practitioners and researchers, recipes must model canonical, idiomatic usage. - Interactive Lab (
recipes/lab.py): The 5,100-line graphical lab must be validated against the alias-free API to ensure all 32 interactive visualizer views execute without regressions. - Static Documentation & Navigation: Validate
zensical build --cleanto confirm zero broken links or unresolved references across the documentation compendium.
Rationale & Council Alignment¶
- Richard Feynman (Honesty & Clarity): Tutorials and recipes must never teach deprecated habits. If a recipe
demonstrates multivector physics, it must teach
CliffordAlgebra, not a legacy semiring wrapper. - Claude Shannon (Efficiency & Direct Measurement): Benchmarks must benchmark direct implementations, eliminating indirection overhead.
- Karl Popper (Empirical Demonstration): Every Jupyter notebook must execute head-to-tail without import errors or warnings.
Specification¶
1. Benchmarks Realignment (benchmarks/)¶
- Update
benchmarks/test_benchmarks.py: replaceax.homologywithax.topology. - Update
benchmarks/test_linalg_benchmarks.py: replaceax.matrix.decompose.luwithax.matrix.decompose.lu_decompose. - Run
uv run pytest benchmarks/to confirm all benchmark suites execute cleanly.
2. Recipes Realignment (recipes/)¶
Update both .py scripts and paired .ipynb notebooks:
recipes/clifford_rotor_kinematics.py&.ipynb: UpdateCliffordSemiring\(\to\)CliffordAlgebra.recipes/topological_data_analysis.py&.ipynb: Updatealgebrax.homology\(\to\)algebrax.topology.recipes/topological_homology_betti.py&.ipynb: Updatealgebrax.homology\(\to\)algebrax.topology.recipes/topological_neural_network.py&.ipynb: Updatealgebrax.homology\(\to\)algebrax.topology.- Verify all recipes run cleanly via
pytest --nbmakeor direct Python execution.
3. Graphical Laboratory (recipes/lab.py)¶
- Audit
recipes/lab.pyimports and runtime accessors. - Verify that
ax.topology,ax.analysis,ax.transforms, andax.matrixintegrate seamlessly across all 7 domain categories and 32 views.
4. Documentation Build & Link Integrity¶
- Run
uv run zensical build --cleanto ensure the entire site builds with 0 errors and 0 warnings. - Confirm that no deleted symbols (
homology,CliffordSemiring,DualNumberSemiring,PolynomialSemiring,AbelianGroup) are mentioned in documentation examples.
Backwards Compatibility¶
Non-breaking for modern canonical users. All recipes and benchmarks become strictly conforming reference implementations.
How to Teach This / Documentation Plan¶
- Recipe notebooks serve as living documentation. Updating them directly trains users on the canonical idioms.
Reference Implementation¶
- Update imports in
benchmarks/. - Update scripts and notebooks in
recipes/. - Test
recipes/lab.pyheadless startup. - Run
uv run zensical build --clean.
Rejected Ideas¶
- Leaving Notebooks Untouched: Rejected because broken notebooks in
recipes/destroy developer trust and fail automated CI notebook checks (nbmake).
Open Questions¶
- None.
Change Log¶
- 2026-11-04: Draft authored following EXP-0007 Council consensus.
- 2026-11-04: Implemented and verified: all benchmarks, recipes, notebooks, and user guides updated to pure canonical names; clean test, benchmark, and Zensical builds. Marked as Final.