code wiki / _hdl_build / nx_dedupe_source.nx

nx_dedupe_source.nx

buildroot/runtime/_hdl_build/nx_dedupe_source.nx

4064 B73 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_dedupe_source.nx -- CLI: resolve a seq207/seq169 dual-copy source divergence the sovereign way. The RESOLUTION half of the mgmt build guard's DETECTION (ma_build_dup_divergent). Reusable ecosystem-wide. usage: nx_dedupe_source --kat (self-test: reconcile/no-op/refuse/idempotent oracle) nx_dedupe_source <target> [canonical_dir] [shadow_dir] nx_dedupe_source check <target> [canonical_dir] [shadow_dir] The directory pair is OPTIONAL and defaults to the historical _hdl_build <- runtime pair, so every existing caller is unchanged. It exists because the DETECTOR (nx_dup_source_check) discovers ~13 source trees while this reconciler knew only two -- hazards in bin/, _retired/ or a nested runtime/runtime/ reported dual_copy:0 and could never be cleared, leaving the board permanently RED. license_tier: ORIGINAL expect_exit: 0 genealogy: seq207 dual-copy class

dependencies 1 imports · 0 importers

nx_dedupe_source_lib.nx nx_dedupe_source.nx

imports: nx_dedupe_source_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ds_w sys_write ds_selftest sys_mmap ds_write_kat sys_openat_wr sys_write ↻ sys_close ds_reconcile ds_exists sys_openat_rd sys_close ↻ ds_cat sys_renameat ds_exists ↻ ds_w_num sys_mmap ↻ ds_catn sys_mmap ↻ sys_write ↻ ds_sanitize ds_namec ds_cat ↻ ds_exists ↻ ds_catn ↻ ds_filesize sys_openat_rd ↻ sys_mmap ↻ sys_read sys_close ↻ ds_resolve_pair sys_mmap ↻ ds_cat ↻ ds_filesize ↻ ds_reconcile ↻ ds_catn ↻ sys_write ↻

structs

none

consts

none

functions

13func main(argc: i64, argv: *i64) -> i64