code wiki / _hdl_build / nx_librarian_pipeline.nx
nx_librarian_pipeline.nx
buildroot/runtime/_hdl_build/nx_librarian_pipeline.nx
about
nx_librarian_pipeline.nx -- the LIBRARIAN's knowledge-refinement pipeline (operator: deep
research must build the team via the WHOLE chain unstructured -> structured -> meaningful ->
actionable -> reproducible, so we save the investment instead of throwing it away). Each
ingested research artifact is graded by how far it has been REFINED along the 5 stages; the
team can then gate: only ACTIONABLE (>=4) knowledge drives builds, only REPRODUCIBLE (5)
knowledge is trusted as settled. The Librarian validates ingested artifacts are well-formed
and parseable so the knowledge base stays reusable. RACI: the Librarian owns knowledge
integrity (it validates + grades + catalogs); it does not do the research or the builds.
license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_librarian_pipeline_test.nx
structs
| none |
consts
| 12 | const KS_MAGIC_70000: i64 = 70000 |
| 13 | const KS_MAGIC_69000: i64 = 69000 |
| 15 | const KS_UNSTRUCTURED: i64 = 1 // raw fetched sources (the web, unverified) |
| 16 | const KS_STRUCTURED: i64 = 2 // claims extracted + adversarially verified + cited |
| 17 | const KS_MEANINGFUL: i64 = 3 // synthesis + connection to what we already have |
| 18 | const KS_ACTIONABLE: i64 = 4 // concrete build tasks derived from the findings |
| 19 | const KS_REPRODUCIBLE: i64 = 5 // each task becomes a verifiable gate; numbers re-checkable |
functions
| 21 | func lib_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: lib_contains |
| 24 | func lib_read_once(path: *u8, buf: *u8, cap: i64) -> i64 |
| 34 | func lib_contains(buf: *u8, n: i64, needle: *u8) -> i64 |
| 49 | func lib_maturity(path: *u8) -> i64 called by 3: lib_is_actionablelib_is_reproduciblept_report calls 3: sys_mmaplib_read_oncelib_contains |
| 63 | func lib_is_actionable(path: *u8) -> i64 { if lib_maturity(path) >= KS_ACTIONABLE { return 1 } return 0 } |
| 64 | func lib_is_reproducible(path: *u8) -> i64 { if lib_maturity(path) >= KS_REPRODUCIBLE { return 1 } return 0 } |
| 68 | func lib_is_cited(path: *u8) -> i64 |