code wiki / _hdl_build / nx_delivery_report.nx
nx_delivery_report.nx
buildroot/runtime/_hdl_build/nx_delivery_report.nx
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
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
structs
| none |
consts
| 18 | const K_MAGIC_86400: i64 = 86400 |
| 19 | const K_MAGIC_1048576: i64 = 1048576 |
| 20 | const K_MAGIC_1048560: i64 = 1048560 |
| 21 | const K_MAGIC_3600: i64 = 3600 |
functions
| 22 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 23 | func _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 |
| 24 | func _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 } |
| 25 | func 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 |
| 26 | func dr_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 36 | func dr_num_after(buf: *u8, a: i64, b: i64, pat: *u8) -> i64 |
| 60 | func dr_first_last(buf: *u8, n: i64, anchor: *u8, fld: *u8, out: *i64) -> i64 |
| 80 | func dr_rate_day(out: *i64) -> i64 called by 1: main |
| 85 | func main(argc: i64, argv: *i64) -> i64 |