code wiki / _hdl_build / nx_researcher.nx

nx_researcher.nx

buildroot/runtime/_hdl_build/nx_researcher.nx

4160 B73 linesdepth 2pulls 2 transitivereach 8 importersview sourcekind librarytopic researcher
docsdependenciesstructsconstsfunctions

about

nx_researcher.nx -- the NISHI RESEARCHER organ: the team does its OWN deep research and synthesizes it into SPECIFIC TASKS, toward exceeding Claude's deep-research. Honest boundary (mechanizable-invention doctrine): the sovereign team cannot browse the web or do LLM prose- extraction in pure NishiLang, so the FETCH (sources) + EXTRACT (prose -> claims) stage is the one delegated step. Everything that makes research RIGOROUS the team owns and runs deterministically -- and that is where it EXCEEDS a one-shot LLM synthesis: - ADVERSARIAL VERIFY: a team-owned 3-vote rule over independent checks (source authority, numeric consistency, cross-corroboration). DETERMINISTIC -> same evidence, same verdict every run (an LLM one-shot varies); refuted claims are killed, not quietly carried. - SYNTHESIZE: keep only CONFIRMED, rank by confidence, dedup. - GENERATE TASKS: every confirmed + actionable finding becomes a SPECIFIC, reproducible task (id + owning organ + a gate to write) -- the actionable->reproducible bridge a prose report stops short of. Refuted/unverified claims generate ZERO tasks = no wasted build effort. The LIBRARIAN (nx_librarian_pipeline) then grades + persists the artifact so nothing is thrown away. RACI: RESEARCHER verifies+synthesizes+tasks; LIBRARIAN grades+catalogs; BUILDER/ENGINEER execute the tasks. license_tier: ORIGINAL Refs: the deep-research 5-angle/3-vote protocol.

dependencies 1 imports · 6 importers

nx_syscalls.nx nx_researcher.nx nx_accesswall_research.nx nx_deep_research.nx nx_hosting_research.nx nx_org_research.nx nx_research_pipeline.nx nx_researcher_test.nx

imports: nx_syscalls.nx

imported by: nx_accesswall_research.nxnx_deep_research.nxnx_hosting_research.nxnx_org_research.nxnx_research_pipeline.nxnx_researcher_test.nx

structs

none

consts

20const RES_CONFIRMED: i64 = 1
21const RES_REFUTED: i64 = 2
22const RES_CONTESTED: i64 = 3
23const RES_VOTES: i64 = 3 // 3 independent adversarial checks per claim (the protocol)
24const RES_ANGLES: i64 = 5 // standard decomposition: primary/technical/dominant/coupling/applied

functions

27func res_verify(confirm_votes: i64, refute_votes: i64) -> i64
33func res_confidence_permil(confirm_votes: i64) -> i64 { return (confirm_votes * 1000) / RES_VOTES }
called by 3: mainmainmain
37func res_is_task(verdict: i64, actionable: i64) -> i64
called by 2: res_synthesizemain
43func res_count_verdict(n: i64, cv: *i64, rv: *i64, target: i64) -> i64
called by 4: mainmainmainmain calls 1: res_verify
52func res_synthesize(n: i64, cv: *i64, rv: *i64, actionable: *i64, organ: *i64, out_idx: *i64, out_organ: *i64) -> i64
64func res_is_reproducible(n: i64, cv: *i64, rv: *i64, actionable: *i64, organ: *i64) -> i64