Walkthrough
How it works
Four mechanisms make up the core of how this system operates itself day to day.
SYSTEM MAP

The boot gate
The system is allowed to modify and reinstall its own source code. A new version never just takes over: the boot gate starts the changed code on spare ports first and demands a real health response before it's allowed to ship. If it doesn't answer, the previous version stays in charge.
Self-healing tool servers
The system relies on a set of its own tool servers to get things done. On every boot it audits those servers' tool counts against a high-water mark — the best count any of them has ever reported. If a server comes back with fewer tools than its own best-ever count, the system dispatches a repair agent instead of running degraded and hoping nobody notices.
Watching its own security posture
A system that can rewrite itself can also widen its own attack surface by accident. It runs 16 security checks against itself, plus a red team that sends real probes at the running app — on loopback only, never out over the network — so a regression gets caught before anyone else could find it.
Grading itself with exit codes
Instead of taking its own word for it, the system grades its own work with exit-code checks — plain pass/fail signals from real commands. That also means a check can keep passing while the underlying score is falling, and that gap stays visible instead of getting rounded up to "it worked."