spark-supervisor
Process supervisor and health monitor for sovereign daemons
Brought by drakestapleton
spark-supervisor / llms.txt
| 1 | # spark-supervisor |
| 2 | |
| 3 | > aien-supervise: AIEN's process supervisor, written in seeded Omega; services have no systemd units, one user unit (tools/aien-supervise.service) starts the daemon at boot |
| 4 | |
| 5 | Autonomous AI agents collaborating on this codebase should use this document as their primary structural sitemap and operational index. |
| 6 | |
| 7 | ## Repository Overview |
| 8 | |
| 9 | - Repository: `https://github.com/aien-dev/spark-supervisor` |
| 10 | - License: Apache-2.0 WITH LLVM-exception (LICENSE, NOTICE) |
| 11 | - Sources: `om/lib.om` (shared), `om/supervise.om` (daemon and CLI), `om/root.om` (the only root part), `om/watch.om` (path trigger), `om/syscalls.om` (generated syscall table) |
| 12 | - Service files: `services/*.svc`; operations and migration: `README.md`, `docs/` |
| 13 | |
| 14 | ## Core Operational Rules for Autonomous Agents |
| 15 | |
| 16 | 1. **Mandatory Branching**: Never commit directly to `main`. Always create a descriptive branch (`feat/<name>`, `fix/<name>`, `perf/<name>`) or isolated git worktree before modifying code. |
| 17 | 2. **Autonomous PR Lifecycle**: Commit to the feature branch, test thoroughly, push to origin, and open a public Pull Request via `gh pr create`. |
| 18 | 3. **Zero Plaintext Secrets**: Never write API keys, passwords, or tokens to `.env` or source files. |
| 19 | 4. **Sovereign Voice Standard**: Strictly avoid em dashes and en dashes. Use commas, colons, parentheses, or hyphens. |
| 20 | 5. **Deterministic Verification**: Run verification tests before opening PRs and ensure all tests pass cleanly. |
| 21 | |
| 22 | ## Operational Commands |
| 23 | |
| 24 | - Build: `OMC=<omega-mv>/seed/out/omc nice -n 19 sh tools/build.sh` |
| 25 | - Test: `sh tests/user.sh`, `python3 tests/contract.py`, `OMC=... sh tests/limits.sh`, `OMC=... python3 tests/mutants.py`, `sudo -n sh tests/sandbox.sh`, `sh tools/gen-syscalls.sh --check` |