code wiki / _hdl_build / nx_neutrality_register.nx
nx_neutrality_register.nx source
↩ module page · 48 lines · 4447 B
1// nx_neutrality_register.nx -- GOVERNED registration of the CONTENT-NEUTRALITY
2// charter gate + the IGNORED-HOST reach census + the fetch-unit rewrite.
3// Engineer gate = the gates built THIS session all exit 0; Council admits;
4// Librarian allocs via cl_next_idx + dual-writes live+journal. license_tier: ORIGINAL
5import "nx_cap_register.nx"
6import "nx_capreg_librarian.nx"
7import "nx_syscalls.nx"
8
9func nrr_run(path: *u8) -> i64 {
10 let pid: i64 = sys_fork()
11 if pid == 0 {
12 let dn: i64 = sys_openat_wr("/dev/null" as *u8, 0x1a4)
13 if dn >= 0 { sys_dup3(dn, 1, 0); sys_dup3(dn, 2, 0) }
14 let argv: *i64 = sys_mmap(32) as *i64; argv[0] = path as i64; argv[1] = 0
15 let envp: *i64 = sys_mmap(16) as *i64; envp[0] = 0
16 sys_execve(path, argv, envp); sys_exit(127)
17 }
18 let st: *i64 = sys_mmap(16) as *i64
19 sys_wait4(pid, st, 0)
20 return st[0]
21}
22
23func main() -> i64 {
24 var allok: i64 = 1
25 if nrr_run("/tmp/nx_search_neutrality_gate.sov.elf" as *u8) != 0 { allok = 0 }
26 if nrr_run("/tmp/nx_search_reach_pulse.sov.elf" as *u8) != 0 { allok = 0 }
27 cr_w(1, "ENGINEER: neutrality gate + 3-gate reach pulse all-pass=" as *u8); cr_wn(1, allok); cr_w(1, "\n" as *u8)
28 let eng: i64 = ig_engineer(1, 1, 1, allok)
29 let dec: i64 = ig_decision(eng, ig_council(eng, 1, 1, 2), 1)
30 if dec != IG_INGEST { cr_w(1, "HELD\n" as *u8); sys_exit(1) }
31 if cr_can_register(5, 2, 6, dec) != 1 { cr_w(1, "REFUSED\n" as *u8); sys_exit(1) }
32 let lp: *u8 = "/tmp/nishi_cap_registry.log" as *u8
33 let jp: *u8 = "knowledge/status/cap_registry_durable.log" as *u8
34
35 let idx1: i64 = cl_next_idx(lp, jp)
36 let ok1: i64 = cl_register_dual(lp, jp, idx1, 5,
37 2, "GEN SEARCH-NEUTRALITY-GATE (arc=SREACH/NEUTRALITY; operator charter 2026-06-10: 'agnostic, not filter out anything our search returns -- user may find value; no dead-internet walls; freedom of speech'). nx_search_neutrality_gate = the charter as MECHANICS against the real index kernels (nx_bm25, same path as live SERP): N1 COMPLETENESS (every indexed match returned 4/4), N2 ORDER-NOT-EXCLUDE (ranked list contains EVERY doc 6/6, zero-match docs rank below, never removed -- the live SERP relevance hard-gate semantics), N3 SUPPRESSION-TAMPER (simulated incumbent host-blocklist lane MUST be caught -- 3/4 detected -> a filter cannot creep in silently). Durable NEUTRALITY-GATE row -> search_neutrality.log; wired as reach-pulse gate 3 of 3 (SREACH-PULSE row gains neutrality_rc) + Examiner arc row NEUTRALITY (13/13 arcs gated-green proven). Neutrality is now re-proven per-BEAT" as *u8)
38 if ok1 != 1 { cr_w(1, "DUAL-WRITE-1 FAILED\n" as *u8); sys_exit(1) }
39 cr_w(1, "CAPREG idx=" as *u8); cr_wn(1, idx1); cr_w(1, " REGISTERED -- neutrality charter gate\n" as *u8)
40
41 let idx2: i64 = cl_next_idx(lp, jp)
42 let ok2: i64 = cl_register_dual(lp, jp, idx2, 5,
43 2, "GEN IGNORED-HOST-REACH CENSUS + FETCH-UNIT REWRITE (arc=SREACH R3a-seed; operator: 'make sure our site will hit ignored sites like vk.com bunkr.ci etc'). nx_ignored_host_reach = guarded live census of the incumbent-deindexed host classes over OUR full stack (DNS+TCP+TLS1.3+X509+html->text, each host an nx_guarded_run child): 6/8 REACHED -- vk.com (real page after redirect-follow) + bunkr.ci (real content 'BUNKR Privacy-focused File Hosting') BOTH operator-named anchors + ok.ru/t.me/4chan/bitchute; rumble+archive.ph WALLED rc=2 named-not-faked; 0 hangs 0 wedges; durable per-host evidence rows w/ text excerpts -> search_ignored_hosts.log; IHR-GATE GREEN (bar 3/8 = class reachability, walls are findings). CENSUS FOUND 2 REAL FETCH DEFECTS -> _dlr_fetch_one REWRITTEN (shared unit, benefits live SERP + future crawler): (1) Transfer-Encoding chunked now DECODED (hex chunk-size lines leaked into extracted text: '2389 BUNKR', vk body was just the '0' terminator), (2) 301/302/303/307/308 Location now FOLLOWED (https-only, hop-capped 3) -- vk.com 2 chars -> 167 real chars. Live SERP regression re-run PASS (7 indexed, suppressed sources still #1/#2, zero-match doc ranked LAST but PRESENT = charter). NEXT: entity-page discovery on ignored hosts via crawler (never hand-curated), rumble/archive.ph wall root-cause" as *u8)
44 if ok2 != 1 { cr_w(1, "DUAL-WRITE-2 FAILED\n" as *u8); sys_exit(1) }
45 cr_w(1, "CAPREG idx=" as *u8); cr_wn(1, idx2); cr_w(1, " REGISTERED -- ignored-host reach + fetch rewrite\n" as *u8)
46 sys_exit(0)
47 return 0
48}