code wiki / _hdl_build / nx_dev_run_smoke.nx
nx_dev_run_smoke.nx
buildroot/runtime/_hdl_build/nx_dev_run_smoke.nx
about
nx_dev_run_smoke.nx -- SINGLE-CALL smoke for /api/dev/run: mint a valid dev_build cap (da_authz's secret
selection) + drive da_handle ONCE with a run request for an allowlisted organ. Prints the JSON. If it shows
"exit":0 the run route EXECUTES in a fresh (server-like) context -> the gate's T14 fork-fail was multi-call
accumulation, not a shippable bug. expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_dev_api.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
| 6 | const K_MAGIC_1024: i64 = 1024 |
| 7 | const K_MAGIC_3600: i64 = 3600 |
| 8 | const K_MAGIC_8192: i64 = 8192 |
functions
| 10 | func sm_puts(s: *u8) -> i64 { sys_write(1, s, da_slen(s)); return 0 } |
| 11 | func sm_has(hay: *u8, n: i64, needle: *u8) -> i64 { let nl: i64=da_slen(needle); if nl==0 {return 1} var i: i64=0; while i+nl<=n { var j: i64=0; var ok: i64=1; while j<nl { if hay[i+j]!=needle[j]{ok=0;j=nl} else {j=j+1} } if ok==1{return 1} i=i+1 } return 0 } |
| 13 | func main() -> i64 |