code wiki / _hdl_build / nx_deep_research.nx
nx_deep_research.nx
buildroot/runtime/_hdl_build/nx_deep_research.nx
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
imports: nx_researcher.nx
imported by: nx_deep_research_test.nx
structs
| none |
consts
| 13 | const DR_SCOPE: i64 = 1 |
| 14 | const DR_FETCH: i64 = 2 |
| 15 | const DR_EXTRACT: i64 = 3 |
| 16 | const DR_VERIFY: i64 = 4 |
| 17 | const DR_SYNTH: i64 = 5 |
| 18 | const DR_TASK: i64 = 6 |
| 20 | const DR_TEAM: i64 = 1 // sovereign NishiLang -> ~0 LLM tokens |
| 21 | const DR_LLM: i64 = 2 // an LLM-intercession gap (fetch / extract) -> bounded LLM tokens |
functions
| 26 | func dr_stage_owner(stage: i64) -> i64 |
| 32 | func dr_stage_cost(stage: i64, angles: i64, claims: i64, spa: i64) -> i64 |
| 43 | func dr_cost_full_llm(angles: i64, claims: i64, spa: i64) -> i64 |
| 50 | func dr_cost_team_assisted(angles: i64, claims: i64, spa: i64) -> i64 |
| 57 | func dr_saving_permil(full: i64, assisted: i64) -> i64 called by 1: main |
| 63 | func dr_team_stage_count() -> i64 |