code wiki / _hdl_build / nx_atlas_discover.nx

nx_atlas_discover.nx

buildroot/runtime/_hdl_build/nx_atlas_discover.nx

20858 B436 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic atlas
docsdependenciesstructsconstsfunctions

about

nx_atlas_discover.nx -- ATLAS RECOMBINATION DISCOVERY (operator 2026-07-18: "novel design via recombinations of the atlas especially as we do discovery work to find new unproven opportunities"). The eco graph sees STATIC import edges; plans compose tools at RUNTIME -- edges the graph cannot see. This organ GENERATES candidate composition edges: it scans the commontask catalog for MCP-live capabilities, EXCLUDES pairs already proven together in a plan plane, scores the novel pairs (data-adjacency: both notes mention plane/store; cross-lane: different owners), and emits the top proposals to the discovery- plane as rows a human or nx_plan_run can pick up and TRY. nx_atlas_discover [catalog-prefix] [exclusion-plan-prefix] [out-prefix] [minscore] defaults: knowledge/store/commontask- knowledge/store/plan-loopcheck- knowledge/store/discovery- 2 out row: DSC<n> <organA>-><organB> <score> proposed atlas <verbA>+<verbB> try: plan 10 <A> / 20 <B> Fail-closed on unseeded catalog. Proposals are HYPOTHESES (status=proposed) -- promotion to the catalog happens only after a plan run PROVES the combo (the honest exceed discipline). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_atlas_discover.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ad_streq sys_mmap ss_cat sts_seed ss_begin_cap sys_mmap ↻ sts_mm sys_mmap ↻ sts_werr sys_write sys_exit sts_rowkey ss_catn sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_catn ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync

structs

none

consts

18const AD_CAP: i64 = 1048576
19const AD_NL: i64 = 10
20const AD_TAB: i64 = 9
21const AD_MAXCOL: i64 = 16
22const AD_PAIR: i64 = 2
23const AD_SPB: i64 = 256
24const AD_MAXORG: i64 = 48
25const AD_MAXOUT: i64 = 40
26const AD_MINSCORE_DEF: i64 = 2
30const AD_KIND_UNKNOWN: i64 = 0
31const AD_KIND_MAKER: i64 = 1
32const AD_KIND_RULER: i64 = 2
33const AD_W_DATA_ADJACENCY: i64 = 2
34const AD_W_CROSS_LANE: i64 = 1
35const AD_W_MEASURE_GAP: i64 = 3
36const AD_SRC_NONE: i64 = 0
37const AD_SRC_NAME: i64 = 1
38const AD_SRC_TASK: i64 = 2
39const AD_SRC_NOTE: i64 = 3
40const AD_SRC_DECLARED: i64 = 4
43const CT_KIND: i64 = 7
44const AD_STDERR: i64 = 2
45const AD_EXIT_IO: i64 = 1
46const AD_ZERO: i64 = 48
47const AD_NINE: i64 = 57
48const AD_B10: i64 = 10
50const CT_TASK: i64 = 0
51const CT_ORGAN: i64 = 1
52const CT_OWNER: i64 = 2
53const CT_EXPO: i64 = 3
54const CT_STATE: i64 = 4
55const CT_NOTE: i64 = 6

functions

57func ad_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: ad_werrad_has
58func ad_werr(s: *u8) -> i64 { sys_write(AD_STDERR, s, ad_slen(s)); return 0 }
59func ad_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
called by 1: main
75func ad_has(q: *u8, a: i64, b: i64, s: *u8) -> i64
called by 2: ad_kind_ofmain calls 1: ad_slen
88func ad_slice_eq2(q: *u8, a: i64, b: i64, r: *u8, c: i64, d: i64) -> i64
called by 1: main
94func ad_atoi(s: *u8) -> i64
called by 1: main
100func ad_cat_slice(d: *u8, o: i64, q: *u8, a: i64, b: i64) -> i64
called by 1: main
110func ad_kind_of(cat: *u8, s0: i64, s1: i64) -> i64
called by 2: ad_kind_litmain calls 1: ad_has
132func ad_streq(a: *u8, b: *u8) -> i64
called by 1: main
140func ad_trusted(src: i64) -> i64
called by 2: ad_selftestmain
147func ad_kind_lit(s: *u8) -> i64
called by 1: ad_kexp calls 1: ad_kind_of
153func ad_kexp(s: *u8, want: i64, label: *u8) -> i64
called by 1: ad_selftest calls 2: ad_kind_litad_werr
162func ad_selftest() -> i64
199func main(argc: i64, argv: *i64) -> i64