code wiki / _hdl_build / nx_assign_core.nx

nx_assign_core.nx

buildroot/runtime/_hdl_build/nx_assign_core.nx

12237 B336 linesdepth 2pulls 2 transitivereach 23 importersview sourcekind librarytopic assign
docsdependenciesstructsconstsfunctions

about

nx_assign_core.nx -- DISPATCH CORE (mainless): parse assignment_queue.tsv and answer the three questions the team loop needs every beat: 1. an_pick(...) -- the next assignment: highest w, status TODO, all deps DONE; ties -> smaller size, then file order. (w is ADVISORY -- Claude's viewpoint column.) 2. an_top_blocker(...)-- the STRUCTURAL view: the open row with the most direct dependents (the dep graph's own opinion of "largest blocker"). Where structure and w disagree, the caller prints VIEWPOINT-DISCREPANCY -- the operator reviews the diff, nobody hides it. 3. an_novel(...) -- raised hands: NOVEL rows are the tutor queue (the only work that costs Claude tokens; batching them is the token-efficiency lever). Queue grammar: knowledge/registry/assignment_queue.tsv -- 9 tab fields: id rung w size owner status deps gate title ('#' lines skipped) status by FIRST BYTE: T=TODO G=GEN N=NOVEL W=WIP D=DONE R=RED. license_tier: ORIGINAL

dependencies 1 imports · 13 importers

nx_syscalls.nx nx_assign_core.nx _assign_next_gate_authored.nx nx_assign_next.nx nx_attempt.nx nx_capability_ladder.nx nx_dep_audit.nx nx_dispatch_lease.nx nx_drift_disposition.nx nx_queue_cohesion.nx nx_queue_health.nx nx_sponsor_page.nx

diagram shows first 10 each side; +0 more imports, +3 more importers in the complete lists below.

imports: nx_syscalls.nx

imported by: _assign_next_gate_authored.nxnx_assign_next.nxnx_attempt.nxnx_capability_ladder.nxnx_dep_audit.nxnx_dispatch_lease.nxnx_drift_disposition.nxnx_queue_cohesion.nxnx_queue_health.nxnx_sponsor_page.nxnx_token_meter.nxnx_tutor_brief.nxnx_wd_core.nx

structs

none

consts

20const AN_MAGIC_1048576: i64 = 1048576
21const AN_MAGIC_1048575: i64 = 1048575
23const AN_MAX_ROWS: i64 = 1024
24const AN_IDCAP: i64 = 32
25const AN_DEPCAP: i64 = 128

functions

30func an_newcx() -> *i64
44func an_gate_at(cx: *i64, r: i64) -> *u8
48func an_title_at(cx: *i64, r: i64) -> *u8
52func an_id_at(cx: *i64, r: i64) -> *u8
56func an_deps_at(cx: *i64, r: i64) -> *u8
60func an_streq(a: *u8, b: *u8) -> i64
73func an_load(path: *u8, cx: *i64) -> i64
203func an_find(cx: *i64, id: *u8) -> i64
213func an_deps_done(cx: *i64, r: i64) -> i64
245func an_pick(cx: *i64) -> i64
269func an_top_blocker(cx: *i64) -> i64
called by 2: mainmain calls 3: sys_mmapan_deps_atan_find
323func an_novel(cx: *i64, out: *i64) -> i64
called by 2: mainmain