code wiki / (root) / nx_intake_handler.nx

nx_intake_handler.nx

buildroot/runtime/nx_intake_handler.nx

4695 B56 linesdepth 9pulls 11 transitivereach 6 importersview sourcekind librarytopic intake
docsdependenciesstructsconstsfunctions

about

nx_intake_handler.nx -- R6 of THE NISHI SITUATION-MANAGEMENT arc: the INTAKE data path. Turns a person's submitted form (a urlencoded POST body from the zero-JS intake form, behind the opaque wall) into a sovereign content-addressed survey record (sv_record) -- so the whole system (climb-out plan, before-you- buy guard, triage, accommodation) runs on THEIR real numbers instead of the demo profile. Reuses the existing nx_http_form_get_field parser (DRY -- the same one the login route uses) + the R0 survey engine. No floats, no hardware writes. The opaque route (POST /finance/intake) calls ih_record then redirects to /finance; that route block is the coordinated deployment hook. license_tier: ORIGINAL

dependencies 4 imports · 3 importers

nx_syscalls.nx nx_http_form.nx nx_survey.nx nx_intake_profile.nx nx_intake_handler.nx nx_intake_handler_gate.nx nx_intake_profile_gate.nx nx_opaque_login_routes.nx

imports: nx_syscalls.nxnx_http_form.nxnx_survey.nxnx_intake_profile.nx

imported by: nx_intake_handler_gate.nxnx_intake_profile_gate.nxnx_opaque_login_routes.nx

structs

none

consts

none

functions

13func ih_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: ih_field
16func ih_field(body: *u8, body_n: i64, name: *u8, scratch: *u8, scratch_cap: i64) -> i64
28func ih_field_cents(body: *u8, body_n: i64, name: *u8, scratch: *u8, scratch_cap: i64) -> i64
called by 1: ih_record calls 1: ih_field
34func ih_record(prefix: *u8, respondent: *u8, body: *u8, body_n: i64, out_cid: *u8) -> i64