code wiki / _hdl_build / nx_librarian_pipeline.nx

nx_librarian_pipeline.nx

buildroot/runtime/_hdl_build/nx_librarian_pipeline.nx

3599 B74 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic librarian
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_librarian_pipeline.nx nx_librarian_pipeline_test.nx

imports: nx_syscalls.nx

imported by: nx_librarian_pipeline_test.nx

structs

none

consts

12const KS_MAGIC_70000: i64 = 70000
13const KS_MAGIC_69000: i64 = 69000
15const KS_UNSTRUCTURED: i64 = 1 // raw fetched sources (the web, unverified)
16const KS_STRUCTURED: i64 = 2 // claims extracted + adversarially verified + cited
17const KS_MEANINGFUL: i64 = 3 // synthesis + connection to what we already have
18const KS_ACTIONABLE: i64 = 4 // concrete build tasks derived from the findings
19const KS_REPRODUCIBLE: i64 = 5 // each task becomes a verifiable gate; numbers re-checkable

functions

21func 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
24func lib_read_once(path: *u8, buf: *u8, cap: i64) -> i64
34func lib_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 2: lib_maturitylib_is_cited calls 1: lib_strlen
49func lib_maturity(path: *u8) -> i64
63func lib_is_actionable(path: *u8) -> i64 { if lib_maturity(path) >= KS_ACTIONABLE { return 1 } return 0 }
called by 2: pt_reportmain calls 1: lib_maturity
64func lib_is_reproducible(path: *u8) -> i64 { if lib_maturity(path) >= KS_REPRODUCIBLE { return 1 } return 0 }
called by 2: pt_reportmain calls 1: lib_maturity
68func lib_is_cited(path: *u8) -> i64