code wiki / _hdl_build / nx_dora.nx
nx_dora.nx
buildroot/runtime/_hdl_build/nx_dora.nx
about
nx_dora.nx -- DORA-analogue delivery metrics derived from SOVEREIGN event planes (F740).
Operator ask: beyond-SOTA, evidence-driven, no manual instrumentation. Incumbents (Jellyfish/LinearB/
Swarmia/DX) POLL git/Jira; we DERIVE the DORA keys from our own event stream -- the sovereign exceed
/compare/pmdash flagged as GAP F740:
- DEPLOY FREQUENCY = DONE frames in knowledge/status/ws_sync.jrnl (each shipped ws = a delivery event)
- LEAD TIME (cycle) = DONE_epoch - most-recent-prior KICKOFF_epoch of the same ws, median across pairs
- CHANGE-FAIL proxy = incident-class OPEN debts / deploys (debt- plane; declared heuristic, labeled)
- MTTR proxy = median debt filed->eaten span is NOT in the row (needs debthist join) -> declared PENDING
Honest by construction: 2 keys MEASURED, 2 PROXY/PENDING, each labeled; DORA elite/high/medium/low bands.
argv[1] = mode: json(default -> stdout) | html [argv[2]=out path, default sites/nishifamily/dora.html]
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 1 importers
imports: nx_store_seed_lib.nxnx_itoa_lib.nxnx_syscalls.nx
imported by: nx_dora_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 16 | const DJPATH: *u8 = "knowledge/status/ws_sync.jrnl" |
| 17 | const DEBTPFX: *u8 = "knowledge/store/debt-" |
| 18 | const DNL: i64 = 10 |
| 19 | const DTAB: i64 = 9 |
| 20 | const DHASH: i64 = 35 |
| 21 | const DZERO: i64 = 48 |
| 22 | const DNINE: i64 = 57 |
| 23 | const DCAP: i64 = 1048576 |
| 24 | const DMAXEV: i64 = 6000 |
| 25 | const DSECDAY: i64 = 86400 |
| 26 | const DSECHR: i64 = 3600 |
| 27 | const DSECWK: i64 = 604800 |
| 28 | const DHTMLH: i64 = 104 // 'h' |
| 29 | const DOUTCAP: i64 = 262144 |
| 30 | const DI64: i64 = 8 |
functions
| 32 | func d_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 33 | func d_p(s: *u8) -> i64 { sys_write(1, s, d_len(s)); return 0 } |
| 34 | func d_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 49 | func d_int(buf: *u8, a: i64, b: i64) -> i64 |
| 56 | func d_span_eq(buf: *u8, a: i64, b: i64, c: i64, d: i64) -> i64 |
| 63 | func d_starts(buf: *u8, a: i64, b: i64, lit: *u8) -> i64 |
| 71 | func d_has(buf: *u8, a: i64, b: i64, lit: *u8) -> i64 |
| 83 | func d_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 86 | func d_band_deploy(per_week: i64) -> i64 { // per_week*100 (fixed-point x100 to keep integer) |
| 92 | func d_band_lead(hrs: i64) -> i64 |
| 98 | func d_band_cfr(pct: i64) -> i64 |
| 103 | func d_band_label(b: i64) -> *u8 |
| 110 | func main(argc: i64, argv: *i64) -> i64 |