nx_qc_svc.nx
buildroot/runtime/nx_qc_svc.nx
about
nx_qc_svc.nx -- QUALITY-CONTROL / ANALYTICAL SERVICE FACADE. The third
organ on the nx_service base, over the analytical-chemistry domain: screen
an observed LC-MS peak against the peptide-adulterant catalog across charge
states, report a compound's detectability, and verify a label-claim dose.
WHY THIS IS PRODUCTION INFRASTRUCTURE, NOT A DEMO. 21 CFR 111 -- the
dietary-supplement cGMP rule the operator must satisfy before a fill run --
requires 100% identity testing of every incoming dietary ingredient and
finished-product testing against specification. This facade is the compute
behind that: given a peak an instrument actually reports, it says which
prohibited peptide it is (across the charge ladder a [M+H]+-only method
misses), and given a measured amount it says whether the label is honest.
Three facades now share one nx_service base across three unrelated domains
(go-to-market, lab science, analytical QC) -- the architecture scales.
USAGE: nx_qc_svc <verb> [args...]
describe
screen <observed_mz_q4> <tol_ppm_q1> (which prohibited peptide is this peak?)
detect <entry_id> (mass, charge ladder, blind-spot flag)
label <measured_ug> <declared_ug> (USP dose recovery + verdict)
Same discipline: NO new domain logic, every number from a gated library.
genealogy_id: supplement_adulterant_arc + service_infrastructure
dependencies 11 imports · 0 importers
diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_service.nxnx_grounding.nxnx_peptide.nxnx_peptide_formula.nxnx_peptide_isotope.nxnx_peptide_msms.nxnx_peptide_deconv.nxnx_peptide_identify.nxnx_peptide_denovo.nxnx_supplement_screen.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
| 38 | const QC_MAGIC_8192: i64 = 8192 |
| 40 | const QC_SVC: *u8 = "qc" as *u8 |
functions
| 44 | func qc_describe(j: *NxJson) -> i64 |
| 74 | func qc_denovo(j: *NxJson, argc: i64, argv: *i64) -> i64 called by 1: qc_dispatch calls 10: nsvc_arg_intnsvc_errorsys_mmapdenovo_sequencedenovo_ambiguous_countnsvc_ok_open+4 |
| 123 | func qc_identify(j: *NxJson, argc: i64, argv: *i64) -> i64 called by 1: qc_dispatch calls 12: sys_mmapnsvc_arg_intnsvc_errornx_identify_spectrumnsvc_ok_opennj_kv_int+6 |
| 180 | func qc_deconv(j: *NxJson, mz_lo: i64, mz_hi: i64) -> i64 called by 1: qc_dispatch calls 9: nsvc_errordeconv_charge_hideconv_neutral_massnsvc_ok_opennj_kv_intnj_comma+3 |
| 218 | func qc_msms(j: *NxJson, seq: *u8) -> i64 |
| 264 | func qc_envelope(j: *NxJson, seq: *u8) -> i64 called by 1: qc_dispatch calls 14: nsvc_errorpep_seq_validpfm_formulansvc_ok_opennj_kv_strnj_comma+8 |
| 302 | func qc_screen(j: *NxJson, mz_q4: i64, tol_ppm_q1: i64) -> i64 |
| 335 | func qc_detect(j: *NxJson, id: i64) -> i64 |
| 375 | func qc_label(j: *NxJson, measured: i64, declared: i64) -> i64 called by 1: qc_dispatch calls 9: nsvc_errornsvc_ok_opennj_kv_intnj_commasup_recovery_pctnj_kv_bool+3 |
| 400 | func qc_dispatch(argc: i64, argv: *i64, j: *NxJson) -> i64 |
| 440 | func main(argc: i64, argv: *i64) -> i64 |