code wiki / (root) / nx_send_merge.nx

nx_send_merge.nx

buildroot/runtime/nx_send_merge.nx

5241 B128 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_send_merge.nx -- BULK-MERGE: personalized sending to a whole SEGMENT across channels (CRM census E4; the graph-to-send wire). A template with {name} / {occasion} placeholders + a recipient list -> one PERSONALIZED, channel-validated send intent per person: recruiters get personalized outreach, the church segment gets cards, family gets postcards -- email in all incumbents, +physical is the Nishi edge. Composes the nx_send pure core (channel routing + postal/email validation via cmd_intent). Recipient record (tilde-separated because physical destinations carry pipes): name~channel~dest~occasion. STRICT: an unknown {placeholder} is a LOUD template error; a recipient whose dest does not match the channel is REJECTED and tallied, never silently sent. Argless = selftest gate. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_send.nx nx_send_merge.nx

imports: nx_send.nx

imported by: nobody (leaf or entry point)

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

main bm_selftest p sys_write slen bm_personalize seq seq ↻ pn p ↻ sys_mmap sys_write ↻ bm_one bm_field bm_personalize ↻ p ↻ cmd_intent sr_valid seq ↻ p ↻ seq ↻ has_at sr_physical seq ↻ sys_mmap ↻ pipe_field pa_valid is_empty seq ↻ is_zip5 is_empty ↻ sr_route seq ↻

structs

none

consts

10const K_MAGIC_4096: i64 = 4096
11const K_MAGIC_1024: i64 = 1024

functions

14func bm_personalize(tpl: *u8, name: *u8, occ: *u8, out: *u8, cap: i64) -> i64
called by 2: bm_onebm_selftest calls 1: seq
46func bm_field(s: *u8, idx: i64, out: *u8, cap: i64) -> i64
called by 1: bm_one
67func bm_one(tpl: *u8, rec: *u8) -> i64
85func bm_selftest() -> i64
called by 1: main calls 5: pbm_personalizeseqpnbm_one
126func main(argc: i64, argv: *i64) -> i64
calls 1: bm_selftest