code wiki / _hdl_build / nx_delivery_report.nx

nx_delivery_report.nx

buildroot/runtime/_hdl_build/nx_delivery_report.nx

6788 B143 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_delivery_report.nx -- the HUMAN perspective on the wire (operator 2026-06-12): the machine cares about the current beat; the human cares about WHEN IT DELIVERS, the GROWTH RATE, the SUCCESS RATE. This organ derives the management view from the ledgers' TIMESTAMPED HISTORY (never a feeling, always a slope): - done velocity: done_rows across AUTMETER history -> rows/day (whole-window) - autonomy growth: permil first->last -> permil/day toward the C/B/A/S bars - beat success rate: PULSE-VERDICT ok/steps share across team_pulse history - backlog + naive-linear ETA: latest todo / done-velocity (LABELED naive-linear: assumes constant velocity and no new rows -- both false, which is WHY the novel-growth line sits next to it) - raised-hands growth: novel count first->last (the answer-consumption pressure) Durable: DELIVERY block -> knowledge/channel/team_out.tsv (the human reads the same wire) + DELIVERY row -> knowledge/status/delivery_report.log (the Examiner grades presence). Exit 0 = reported; exit 1 = unreadable world. argv[1]=meter-log argv[2]=pulse-log argv[3]=team-out argv[4]=report-log (gates: scratch) license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_delivery_report.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main _p sys_write sys_mmap dr_read sys_openat_rd sys_read sys_close sys_exit dr_first_last dr_num_after dr_len dr_rate_day dr_num_after ↻

structs

none

consts

18const K_MAGIC_86400: i64 = 86400
19const K_MAGIC_1048576: i64 = 1048576
20const K_MAGIC_1048560: i64 = 1048560
21const K_MAGIC_3600: i64 = 3600

functions

22func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
23func _fp(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
calls 1: sys_write
24func _fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
25func dr_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: dr_num_after
26func dr_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
36func dr_num_after(buf: *u8, a: i64, b: i64, pat: *u8) -> i64
called by 2: dr_first_lastmain calls 1: dr_len
60func dr_first_last(buf: *u8, n: i64, anchor: *u8, fld: *u8, out: *i64) -> i64
called by 1: main calls 1: dr_num_after
80func dr_rate_day(out: *i64) -> i64
called by 1: main
85func main(argc: i64, argv: *i64) -> i64