code wiki / _hdl_build / nx_assign_core.nx
nx_assign_core.nx
buildroot/runtime/_hdl_build/nx_assign_core.nx
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
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
| 20 | const AN_MAGIC_1048576: i64 = 1048576 |
| 21 | const AN_MAGIC_1048575: i64 = 1048575 |
| 23 | const AN_MAX_ROWS: i64 = 1024 |
| 24 | const AN_IDCAP: i64 = 32 |
| 25 | const AN_DEPCAP: i64 = 128 |
functions
| 30 | func an_newcx() -> *i64 |
| 44 | func an_gate_at(cx: *i64, r: i64) -> *u8 |
| 48 | func an_title_at(cx: *i64, r: i64) -> *u8 |
| 52 | func an_id_at(cx: *i64, r: i64) -> *u8 |
| 56 | func an_deps_at(cx: *i64, r: i64) -> *u8 |
| 60 | func an_streq(a: *u8, b: *u8) -> i64 |
| 73 | func an_load(path: *u8, cx: *i64) -> i64 |
| 203 | func an_find(cx: *i64, id: *u8) -> i64 called by 13: alg_status_ofan_deps_donean_top_blockercl_deps_groundedcl_max_dep_layercl_dep_blockers+7 calls 2: an_streqan_id_at |
| 213 | func an_deps_done(cx: *i64, r: i64) -> i64 |
| 245 | func an_pick(cx: *i64) -> i64 |
| 269 | func an_top_blocker(cx: *i64) -> i64 |
| 323 | func an_novel(cx: *i64, out: *i64) -> i64 |