code wiki / _hdl_build / nx_dora.nx

nx_dora.nx

buildroot/runtime/_hdl_build/nx_dora.nx

18391 B300 linesdepth 5pulls 7 transitivereach 1 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

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

nx_store_seed_lib.nx nx_itoa_lib.nx nx_syscalls.nx nx_dora.nx nx_dora_gate.nx

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

main sys_mmap d_read sys_openat_rd sys_read sys_close d_int d_starts d_len d_span_eq sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq

structs

none

consts

16const DJPATH: *u8 = "knowledge/status/ws_sync.jrnl"
17const DEBTPFX: *u8 = "knowledge/store/debt-"
18const DNL: i64 = 10
19const DTAB: i64 = 9
20const DHASH: i64 = 35
21const DZERO: i64 = 48
22const DNINE: i64 = 57
23const DCAP: i64 = 1048576
24const DMAXEV: i64 = 6000
25const DSECDAY: i64 = 86400
26const DSECHR: i64 = 3600
27const DSECWK: i64 = 604800
28const DHTMLH: i64 = 104 // 'h'
29const DOUTCAP: i64 = 262144
30const DI64: i64 = 8

functions

32func d_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: d_pd_startsd_has
33func d_p(s: *u8) -> i64 { sys_write(1, s, d_len(s)); return 0 }
called by 1: main calls 2: sys_writed_len
34func d_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
49func d_int(buf: *u8, a: i64, b: i64) -> i64
called by 2: mainmain
56func d_span_eq(buf: *u8, a: i64, b: i64, c: i64, d: i64) -> i64
called by 2: mainmain
63func d_starts(buf: *u8, a: i64, b: i64, lit: *u8) -> i64
called by 2: d_hasmain calls 1: d_len
71func d_has(buf: *u8, a: i64, b: i64, lit: *u8) -> i64
called by 2: mainmain calls 2: d_lend_starts
83func d_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
86func d_band_deploy(per_week: i64) -> i64 { // per_week*100 (fixed-point x100 to keep integer)
called by 2: mainmain
92func d_band_lead(hrs: i64) -> i64
called by 2: mainmain
98func d_band_cfr(pct: i64) -> i64
called by 2: mainmain
103func d_band_label(b: i64) -> *u8
called by 2: mainmain
110func main(argc: i64, argv: *i64) -> i64