code wiki / _hdl_build / nx_vizsla_capture_gate.nx
nx_vizsla_capture_gate.nx
buildroot/runtime/_hdl_build/nx_vizsla_capture_gate.nx
about
nx_vizsla_capture_gate.nx -- VIZSLA capture gate: the opt-in page->person extractor pulls a contact from a
loaded page's structured data (JSON-LD Person > og:title > <title>), strips the site suffix, and emits an
action-ready suggestion -- NEVER auto-adding. 100% sovereign: writes synthetic page fixtures, runs the
extractor, greps the suggestion. (The realm choice + confirm happen downstream; this is just the extractor.)
Rows:
1 jsonld-person JSON-LD {"@type":"Person","name":"Ada Lovelace"} -> id=ada-lovelace name=Ada-Lovelace source=jsonld
2 og-title <meta og:title "Grace Hopper - Rear Admiral | LinkedIn"> -> id=grace-hopper source=og (suffix stripped)
3 title-fallback <title>Alan Turing | LinkedIn</title> -> id=alan-turing source=title (suffix stripped)
4 priority-jsonld JSON-LD + og both present -> JSON-LD wins (source=jsonld, NOT the og "Wrong Name")
5 form-output emits VIZSLA-CAPTURE-FORM id=ada-lovelace&name=Ada-Lovelace (action-ready body)
6 neg-no-person a page with no Person/og/title -> exit 1
Evidence: VIZSLA-CAPTURE-GATE -> stdout + knowledge/status/vizsla_gate.log; exit 0 iff 6/6.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| none |
functions
| 17 | func og_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 18 | func og_p(s: *u8) -> i64 { sys_write(1, s, og_slen(s)); return 0 } |
| 20 | func og_cat(dst: *u8, off: i64, s: *u8) -> i64 called by 1: main |
| 26 | func og_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 39 | func og_write(path: *u8, content: *u8) -> i64 |
| 47 | func og_readall(path: *u8, szout: *i64) -> *u8 |
| 61 | func og_runv(elf: *u8, args: *i64, outpath: *u8) -> i64 |
| 86 | func og_has(path: *u8, needle: *u8) -> i64 |
| 103 | func og_row(name: *u8, pass: i64) -> i64 |
| 109 | func og_args(a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> *i64 |
| 115 | func main(argc: i64, argv: *i64) -> i64 |