code wiki / _hdl_build / nx_analyst_case_sources.nx

nx_analyst_case_sources.nx

buildroot/runtime/_hdl_build/nx_analyst_case_sources.nx

11937 B195 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind tooltopic analyst
docsdependenciesstructsconstsfunctions

about

nx_analyst_case_sources.nx -- ANALYST CASE 001 SOURCE RE-GRADE: the source-criticism organ pointed at OUR OWN earlier work (the honest move: the instrument's first target is us). Every S1-S8 source from nx_analyst_case_ac.nx gets an Admiralty pair + first-party distance + incentive class + method rung; every ledger row is re-tested under the INDEPENDENCE RULE (corroboration only across distinct bias classes). Emits knowledge/status/analyst_sources_ac.log. EXPECTED honest outcome (hand-computed): most rows were backed by ECHO-pairs (same incentive class), so the strict verdict DEMOTES v0's SHENANIGAN to UNDERTRACED + names the exact fetch tasks that would re-earn it. Confidence and likelihood reported on SEPARATE lines (ICD 203). LAWS: struct-free, integer-only, no &&/||. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_analyst.nx nx_source_grade.nx nx_syscalls.nx nx_analyst_case_sources.nx

imports: nx_analyst.nxnx_source_grade.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap cs_sources sg_score_permil sg_valid sg_rel_permil sg_cred_permil sg_party_permil sg_method_permil cs_row_strength sys_mmap ↻ sg_distinct sg_has_opposed sg_strength an_traced_permil an_residual_permil an_residual_cents an_verdict sg_confidence sys_openat_wr cs_wf sys_write cs_wnf sys_mmap ↻ sys_write ↻ sg_conf_name sys_close sg_separation_ok sg_is_reproducible sg_score_permil ↻ sys_exit

structs

none

consts

13const CS_MAGIC_230000: i64 = 230000
14const CS_MAGIC_210000: i64 = 210000
15const CS_MAGIC_30000: i64 = 30000
16const CS_MAGIC_575000: i64 = 575000
19const CS_TOL_PPM: i64 = 5000
20const CS_MIN_TP: i64 = 600
21const CS_MAX_RP: i64 = 150
24const CL_LEADGEN: i64 = 1 // ad/lead-funded home-services media (hvac.com, todayshomeowner)
25const CL_VENDOR: i64 = 2 // direct-to-consumer equipment vendors (acdirect, hvacdirect, servicetitan chart)
26const CL_CONSULT: i64 = 3 // consultants selling to HVAC contractors (profitabilitypartners, simpro)
27const CL_ISSUER: i64 = 4 // audited issuer self-reports (Dell/HP SEC filings)
30const CS_OPP_A: i64 = 2
31const CS_OPP_B: i64 = 3

functions

33func cs_wf(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
34func cs_wnf(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
37func cs_sources(rel: *i64, cred: *i64, party: *i64, method: *i64, cls: *i64) -> i64
called by 1: main
50func cs_row_strength(cls: *i64, sup: *i64, nsup: i64) -> i64
59func main() -> i64