code wiki / _hdl_build / nx_vizsla_deal_gate.nx
nx_vizsla_deal_gate.nx
buildroot/runtime/_hdl_build/nx_vizsla_deal_gate.nx
about
nx_vizsla_deal_gate.nx -- VIZSLA business-CRM deal gate: the pipeline is gate-proven against a construction-
known deal book with HAND-COMPUTED forecast (oracle in THIS header). 100% sovereign.
deals (seg-7701): d1 acme $50,000 ; d2 globex $12,000 ; d3 initech $8,000.
stages: d1 qualified@06-01 then proposal@06-10 (latest WINS) ; d2 lead@06-05 ; d3 won@06-15.
probs: lead10 qualified30 proposal50 negotiation70 won100 lost0.
d1 proposal OPEN weighted = 5000000*50/100 = 2500000
d2 lead OPEN weighted = 1200000*10/100 = 120000
d3 won WON weighted = 0 ; won_value += 800000
=> deals=3 open=2 won=1 lost=0 total=7000000 won_value=800000 weighted_pipeline=2620000
Rows:
1 deal-load 7 records -> new=7 seg-7701
2 idempotent new=0 dup_instore=7 (law 10)
3 latest-stage d1 stage=proposal (NOT the earlier qualified) -- additive latest-by-date wins
4 weighted-open d2 lead value=1200000 prob=10 weighted=120000 state=OPEN
5 won-closed d3 stage=won weighted=0 state=WON
6 pipeline-verdict deals=3 open=2 won=1 lost=0 total_value=7000000 won_value=800000 weighted_pipeline=2620000
7 neg-bad-stage STAGE ... frobnicate -> exit 1
8 neg-bad-value DEAL value not digits -> exit 1
Evidence: VIZSLA-DEAL-GATE -> stdout + knowledge/status/vizsla_gate.log; exit 0 iff 8/8.
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
| none |
functions
| 25 | func og_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 26 | func og_p(s: *u8) -> i64 { sys_write(1, s, og_slen(s)); return 0 } |
| 28 | func og_cat(dst: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 34 | func og_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 47 | func og_write(path: *u8, content: *u8) -> i64 |
| 55 | func og_readall(path: *u8, szout: *i64) -> *u8 |
| 69 | func og_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 94 | func og_has(path: *u8, needle: *u8) -> i64 |
| 111 | func og_row(name: *u8, pass: i64) -> i64 |
| 117 | func og_args(a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> *i64 |
| 123 | func main(argc: i64, argv: *i64) -> i64 |