code wiki / _hdl_build / nx_lineage_archive.nx

nx_lineage_archive.nx

buildroot/runtime/_hdl_build/nx_lineage_archive.nx

2397 B42 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind librarytopic lineage
docsdependenciesstructsconstsfunctions

about

nx_lineage_archive.nx -- the BRANCHING lineage archive for the hub-spoke Naruto loop (Darwin Gödel Machine evidence, /deep-research wfb7jkc6h): keep a branching ARCHIVE of ALL clones -- even low-scoring or rejected ones -- because open-ended branching beat single-track hill-climbing (50% vs 23% on SWE-bench) and LOW-performing ancestors later seeded breakthroughs. So a clone is never deleted; a future clone may branch from ANY archived ancestor, not just the current best. Additive-only -> the Librarian/Archivist owns it. license_tier: ORIGINAL Upgrades nx_hub_spoke (integrate-or-discard -> integrate-and-archive).

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_lineage_archive.nx nx_lineage_archive_test.nx nx_orchestration2_test.nx

imports: nx_syscalls.nx

imported by: nx_lineage_archive_test.nxnx_orchestration2_test.nx

structs

none

consts

none

functions

11func la_archive(parents: *i64, scores: *i64, n: i64, parent: i64, score: i64) -> i64
called by 2: mainmain
18func la_best(scores: *i64, n: i64) -> i64
called by 2: mainmain
24func la_can_branch_from(idx: i64, n: i64) -> i64 { if idx < 0 { return 0 } if idx >= n { return 0 } return 1 }
called by 2: mainmain
27func la_frontier(scores: *i64, n: i64) -> i64
called by 2: mainmain
35func la_seeded_breakthrough(parent_score: i64, child_score: i64, prior_frontier: i64) -> i64
called by 2: mainmain
42func la_no_deletion(count_before: i64, count_after: i64) -> i64 { if count_after >= count_before { return 1 } return 0 }
called by 2: mainmain