code wiki / _hdl_build / nx_ingest_governed.nx

nx_ingest_governed.nx

buildroot/runtime/_hdl_build/nx_ingest_governed.nx

3570 B68 linesdepth 2pulls 2 transitivereach 159 importersview sourcekind librarytopic ingest
docsdependenciesstructsconstsfunctions

about

nx_ingest_governed.nx -- a loop-produced capability does NOT get auto-inserted into the ecosystem/ language (operator: "i dont want just automatic insertion... i want it to go through the council processes and get documented and get the rigor of the engineer and all that"). A candidate must pass the SAME governance any capability does, with RACI separation of duties (the organ that AUTHORS never verifies or admits its own work): 1. ENGINEER -- rigor: compile -> link -> run -> clean exit, classified (no silent miscompile passes). 2. COUNCIL -- admit: only an Engineer-PASS that is ADDITIVE and authored-by-someone-else (no self-admit). 3. SCRIBE -- document: a catalog + doc entry must exist before it is admitted to the registry. 4. INGEST -- only when all three hold; else HELD with a routable reason (-> Doctor / -> document / -> reject). license_tier: ORIGINAL Composes the existing organs (nx_engineer_gate_runner, nx_warden, nx_crew_scribe).

dependencies 1 imports · 3 importers

nx_syscalls.nx nx_ingest_governed.nx nx_cap_register.nx nx_ingest_governed_test.nx nx_spec_ingest.nx

imports: nx_syscalls.nx

imported by: nx_cap_register.nxnx_ingest_governed_test.nxnx_spec_ingest.nx

structs

none

consts

15const IG_ENG_PASS: i64 = 1
16const IG_ENG_COMPILE_FAIL: i64 = 2
17const IG_ENG_LINK_FAIL: i64 = 3
18const IG_ENG_CRASH: i64 = 4 // ran but died on a signal (the miscompile/segfault class)
19const IG_ENG_FAIL: i64 = 5 // ran, exited non-zero
30const IG_ADMIT: i64 = 1
31const IG_REJECT: i64 = 0
47const IG_INGEST: i64 = 1
48const IG_HELD: i64 = 0
50const IG_REASON_OK: i64 = 0
51const IG_REASON_ENGINEER: i64 = 1 // -> route to Doctor to heal, then re-verify
52const IG_REASON_COUNCIL: i64 = 2 // -> rejected (non-additive / self-admit / unverified)
53const IG_REASON_UNDOC: i64 = 3 // -> route to Scribe/Librarian to document, then re-submit

functions

21func ig_engineer(compiled: i64, linked: i64, ran_no_signal: i64, exit_ok: i64) -> i64
called by 145: mainmainmainmainmainmain+139
33func ig_council(eng_verdict: i64, additive_only: i64, author_id: i64, admitter_id: i64) -> i64
called by 145: mainmainmainmainmainmain+139
41func ig_documented(catalog_entry: i64, doc_entry: i64) -> i64
called by 19: mainmainmainmainmainmain+13
55func ig_decision(eng_verdict: i64, council: i64, documented: i64) -> i64
called by 145: mainmainmainmainmainmain+139
63func ig_held_reason(eng_verdict: i64, council: i64, documented: i64) -> i64