nx_xform.nx
buildroot/runtime/nx_xform.nx
about
nx_xform.nx -- TRANSFORM-DAG (F1008), the dbt-class core: MODELS AS DATA + dependency ordering +
FAIL-CLOSED data-tests. A model names a stored column, a metric to compute over it, and a test its
result must pass; models declare deps on other models and the engine builds them in topological order,
recording the dependency edges (its own lineage) and STOPPING the pipeline the moment a data-test fails.
SCOPE, honest: this is the ORCHESTRATION + VALIDATION half of dbt -- DAG order, cycle refusal, data
tests, fail-fast, self-reported lineage -- with each model computing a scalar metric via the sovereign
analytics (ad_profile). Multi-model DATA FLOW (a model consuming an upstream materialised table), the
semantic layer, and generated docs are the named finer gaps. Models are DATA (transform_models.conf),
never code (rule 11). license_tier: ORIGINAL No hardware writes (Rule 26).
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_estate_path.nxnx_analyst_store.nx
imported by: nx_xform_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const XF_MAGIC_100000: i64 = 100000 |
| 16 | const XF_MAXM: i64 = 32 |
| 17 | const XF_CONF_CAP: i64 = 8192 |
| 18 | const XF_OUT: i64 = 32768 |
| 19 | const XF_TAB: i64 = 9 |
| 20 | const XF_NL: i64 = 10 |
| 21 | const XF_CR: i64 = 13 |
| 22 | const XF_HASH: i64 = 35 |
| 23 | const XF_ZERO: i64 = 48 |
functions
| 25 | func xf_raw(out: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { out[o] = s[i]; o = o + 1; i = i + 1 } return o } |
| 26 | func xf_num(out: *u8, o: i64, v: i64) -> i64 |
| 38 | func xf_qstr(out: *u8, o: i64, s: *u8) -> i64 |
| 50 | func xf_streq(a: *u8, b: *u8) -> i64 |
| 56 | func xf_atoi(s: *u8) -> i64 called by 1: xf_load |
| 66 | func xf_dup(buf: *u8, a: i64, b: i64) -> *u8 |
| 75 | func xf_csv_has(csv: *u8, tok: *u8) -> i64 |
| 97 | func xf_dep_count(csv: *u8) -> i64 |
| 105 | func xf_load(ids: *i64, deps: *i64, prefs: *i64, keys: *i64, fidx: *i64, ops: *i64, tops: *i64, targs: *i64) -> i64 |
| 149 | func xf_topo(ids: *i64, deps: *i64, m: i64, order: *i64) -> i64 |
| 173 | func xf_metric(pref: *u8, key: *u8, fidx: i64, op: *u8) -> i64 |
| 189 | func xf_test(result: i64, top: *u8, targ: i64) -> i64 |
| 195 | func xf_order_json(out: *u8) -> i64 |
| 228 | func xf_run_json(out: *u8) -> i64 |
| 297 | func main(argc: i64, argv: *i64) -> i64 |