code wiki / _hdl_build / nx_deep_research.nx

nx_deep_research.nx

buildroot/runtime/_hdl_build/nx_deep_research.nx

3290 B67 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_deep_research.nx -- build the RESEARCHER up to do what /deep-research does, so the team owns the mechanizable bulk and Claude only intercedes at the bounded FETCH+EXTRACT (operator: save tokens). A /deep-research run is ~108 agent calls across 6 stages; the heavy one is VERIFY (3-vote over ~25 claims = 75 calls) -- and that is DETERMINISTIC, so the team does it sovereignly (and reproducibly, which is BETTER than a varying LLM vote). Of the 6 stages, 4 are TEAM-owned (scope, verify, synthesize, task -- nx_researcher already does verify+synth+task) and only 2 are LLM-gaps (fetch external sources, extract prose->claims). The orchestrator runs the pipeline and accounts the token saving. RACI: Researcher orchestrates + owns the mechanizable stages; Claude does fetch+extract; Librarian persists. license_tier: ORIGINAL Refs: nx_researcher (verify/synth/task); the LLM-gap registry.

dependencies 1 imports · 1 importers

nx_researcher.nx nx_deep_research.nx nx_deep_research_test.nx

imports: nx_researcher.nx

imported by: nx_deep_research_test.nx

structs

none

consts

13const DR_SCOPE: i64 = 1
14const DR_FETCH: i64 = 2
15const DR_EXTRACT: i64 = 3
16const DR_VERIFY: i64 = 4
17const DR_SYNTH: i64 = 5
18const DR_TASK: i64 = 6
20const DR_TEAM: i64 = 1 // sovereign NishiLang -> ~0 LLM tokens
21const DR_LLM: i64 = 2 // an LLM-intercession gap (fetch / extract) -> bounded LLM tokens

functions

26func dr_stage_owner(stage: i64) -> i64
32func dr_stage_cost(stage: i64, angles: i64, claims: i64, spa: i64) -> i64
43func dr_cost_full_llm(angles: i64, claims: i64, spa: i64) -> i64
called by 1: main calls 1: dr_stage_cost
50func dr_cost_team_assisted(angles: i64, claims: i64, spa: i64) -> i64
called by 1: main calls 2: dr_stage_ownerdr_stage_cost
57func dr_saving_permil(full: i64, assisted: i64) -> i64
called by 1: main
63func dr_team_stage_count() -> i64
called by 1: main calls 1: dr_stage_owner