nx_daemon_bench_test.nx
buildroot/runtime/nx_daemon_bench_test.nx
about
nx_daemon_bench_test.nx -- smoke: drive the daemon through every
state transition and verify each one.
We do NOT actually sleep -- this is a smoke, not a soak. We feed
synthetic measurements that exercise:
1. IDLE -> WARMING during warmup_cycles
2. WARMING -> HEALTHY after warmup
3. HEALTHY -> DEGRADED when |z| crosses 3-sigma
4. DEGRADED -> REGRESSION when |z| crosses 5-sigma
5. OVERBUDGET path when we synthesise a budget violation
6. Cardinal compliance: REGRESSION without named_improvement = 0
7. Cardinal compliance: REGRESSION with named_improvement = 1
8. Sealed-enum validity predicate accepts 0..7, rejects 8 / -1
All eight assertions must pass. Any failure returns a unique non-
zero exit code so debugging is one bisection.
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_clock.nxnx_tier.nxnx_benchmark_harness.nxnx_daemon_bench.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 24 | func main() -> nx_int { |