code wiki / _hdl_build / nx_cap_type_classify.nx
nx_cap_type_classify.nx
buildroot/runtime/_hdl_build/nx_cap_type_classify.nx
about
nx_cap_type_classify.nx -- the census CAPABILITY-TYPE classifier (L7 of the
sovereign-data-substrate roadmap). Pure NishiLang, NO SQL. Maps a capability's
name/path to a normalized capability-type via a DATA-DRIVEN keyword rule table
(Rule #11), first-match-wins, so nx_dedup_audit's clustering can run ACROSS
subsystems. Tutored by Claude (the LLM novel-module rung); the gate below is
self-contained (no enumerator dependency) so the Engineer can verify it now.
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
| 10 | const CT_OTHER: i64 = 0 |
| 11 | const CT_IMAGE_GEN: i64 = 1 |
| 12 | const CT_GARMENT: i64 = 2 |
| 13 | const CT_CHARACTER: i64 = 3 |
| 14 | const CT_SCENE: i64 = 4 |
| 15 | const CT_CAPTION: i64 = 5 |
| 16 | const CT_QUALITY: i64 = 6 |
| 17 | const CT_FORENSICS: i64 = 7 |
| 18 | const CT_SCRAPE: i64 = 8 |
| 19 | const CT_STORAGE: i64 = 9 |
| 20 | const CT_SEARCH: i64 = 10 |
| 21 | const CT_UI: i64 = 11 |
| 22 | const CT_API: i64 = 12 |
| 23 | const CT_DEPLOY: i64 = 13 |
| 24 | const CT_ORCH: i64 = 14 |
| 25 | const CT_GOVERN: i64 = 15 |
| 26 | const CT_TRAIN: i64 = 16 |
| 27 | const MAXR: i64 = 64 |
functions
| 29 | func pr_n(v: i64) -> i64 |
| 38 | func _puts(s: *u8) -> i64 |
| 44 | func _slen(s: *u8) -> i64 called by 1: ck |
| 51 | func _contains(hay: *u8, hn: i64, needle: *u8, nn: i64) -> i64 called by 1: classify |
| 72 | func classify(name: *u8, nlen: i64) -> i64 |
| 129 | func ck(name: *u8, want: i64) -> i64 |
| 137 | func main() -> i64 |