r/Python • u/AutoModerator • Nov 04 '26
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
37
Upvotes
r/Python • u/AutoModerator • Nov 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/Historical_Pear_1416 9d ago
Teratoma: replay failures in a five-replica Python simulation
What My Project Does
I maintain Teratoma, an experimental viewstamped-replication lab. Its AegisDB simulator records primary crashes, a 2/3 network partition, corrupt-WAL recovery, and a healthy baseline. The browser lets you scrub through each replica's view, commit index, and storage digest. Checks run every virtual tick; displayed frames sample every 20 ticks.
Demo: https://vetri1706.github.io/teratoma/#scenario=partition&tick=980
Source (Apache-2.0): https://github.com/Vetri1706/teratoma
From a checkout, run python -m src.demo and open artifacts/demo/index.html. Python 3.11+, standard library only.
Target Audience
People studying replication and recovery who want reproducible failure sequences. It is an experimental learning project, not a production database.
Comparison
The browser replays the Python engine's recorded state; the separate Python/C adapter tests real processes, TCP, and files. Virtual ticks are not throughput measurements. The separate Lean safety model does not prove the implementation correct.
Recent replay/UI, documentation, and test work used AI assistance.
Which failure sequence would you test next to challenge recovery beyond these four scenarios?