code wiki / _hdl_build / nx_lineage_archive.nx
nx_lineage_archive.nx
buildroot/runtime/_hdl_build/nx_lineage_archive.nx
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
imports: nx_syscalls.nx
imported by: nx_lineage_archive_test.nxnx_orchestration2_test.nx
structs
| none |
consts
| none |
functions
| 11 | func la_archive(parents: *i64, scores: *i64, n: i64, parent: i64, score: i64) -> i64 |
| 18 | func la_best(scores: *i64, n: i64) -> i64 |
| 24 | func la_can_branch_from(idx: i64, n: i64) -> i64 { if idx < 0 { return 0 } if idx >= n { return 0 } return 1 } |
| 27 | func la_frontier(scores: *i64, n: i64) -> i64 |
| 35 | func la_seeded_breakthrough(parent_score: i64, child_score: i64, prior_frontier: i64) -> i64 |
| 42 | func la_no_deletion(count_before: i64, count_after: i64) -> i64 { if count_after >= count_before { return 1 } return 0 } |