nx_field_gate.nx
buildroot/runtime/nx_field_gate.nx
about
nx_field_gate.nx -- THE GATE FOR THE FIELD DISCOVERY CORE (nx_field_lib, /compare/fieldwatch FW1).
Drives the extractors IN-PROCESS on fixtures assembled at RUNTIME (no network, no evidence-store writes), so every
tooth is mutation-provable and none can find its pattern in source. What it must catch: a wiki extractor that
harvests citation links (a CNET reference is not a rival), one that harvests namespace links (Category: File:),
a dedupe that lets case variants through as two rivals, a seeds mask that cannot tell one seed from two, an emit
order that ignores the evidence, and a GitHub extractor that reads any anchor as a repository.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_field_lib.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 13 | const FG_WORD: i64 = 8 |
| 14 | const FG_CAP: i64 = 65536 |
| 15 | const FG_SEED_A: i64 = 0 |
| 16 | const FG_SEED_B: i64 = 1 |
| 17 | const FG_SEED_C: i64 = 2 |
| 18 | const FG_WIKI: *u8 = "Modding tools include [[BepInEx]] and [[MelonLoader|Melon Loader]] and [[BepInEx]] again.<ref>{{cite web |title=x |publisher=[[CNET]]}}</ref>\n{{Infobox software | name = [[Template link]] }}\n* [[Category:Video game mods]]\n* [[File:Icon.png]]\n* [[Nexus Mods]] hosts files; see [[Nexus Mods#History]].\n<ref name=a/> tail [[LOOT]]\n" |
| 19 | const FG_WIKI_B: *u8 = "Loaders: [[bepinex]] and [[LOOT]].\n" |
| 20 | const FG_GH: *u8 = "<a href=\x22/BepInEx/BepInEx\x22 data-view-component=\x22true\x22 class=\x22Link text-bold wb-break-word\x22>BepInEx</a> junk <a href=\x22/sponsors/x\x22 class=\x22Link\x22>sponsor</a> <a href=\x22/ebkr/r2modmanPlus\x22 data-view-component=\x22true\x22 class=\x22Link text-bold wb-break-word\x22>r2modmanPlus</a>" |
| 21 | const FG_MD: *u8 = "# awesome\n- [Vortex](https://example.org/vortex) - a manager\n* [LOOT](https://example.org/loot)\nnot an item [Nope](x)\n" |
| 22 | const FG_NS_ONLY: *u8 = "* [[Category:Only]] and [[File:Only.png]] and [[Help:Only]]\n" |
| 23 | const FG_REF_ONLY: *u8 = "text<ref>[[Inside Ref]]</ref> and {{cite|[[Inside Template]]}}\n" |
| 24 | const FG_OUT: *u8 = "/tmp/nx_field_gate.out" |
| 25 | const FG_MODEDIR: i64 = 493 |
functions
| 27 | func fg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 28 | func fg_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } |
| 30 | func fg_idx(t: *i64, name: *u8) -> i64 |
| 35 | func fg_has(t: *i64, name: *u8) -> i64 { if fg_idx(t, name) >= 0 { return 1 } return 0 } |
| 37 | func main(argc: i64, argv: *i64) -> i64 |