code wiki / _hdl_build / nx_lcimport_test.nx
nx_lcimport_test.nx
buildroot/runtime/_hdl_build/nx_lcimport_test.nx
about
nx_lcimport_test.nx -- PERMANENT PROPERTY WITNESS for the estate's target-imports-target rule.
WHY THIS IS A TEST AND NOT A COMMENT: nx_sourcing_path's ENTIRE composition strategy rests on one
language property -- a NishiLang target may `import` another TARGET (a file that itself defines
main()), the importing main() wins, and every imported symbol resolves. That property was
MEASURED on 2026-08-06 rather than assumed, and measuring it killed a planned lib-extraction
refactor of a freshly promoted organ. If it ever regresses, nx_sourcing_path silently loses its
duty core and the estate grows a SECOND duty implementation -- exactly the duplication the
operator called out. A property that load-bearing must be defended by something that RUNS, so
this file is named *_test and is therefore reachable by /api/gate_run (which fail-closed refuses
any target not ending in gate/test/kat).
Supersedes the throwaway nx_lcimport_probe. license_tier: ORIGINAL No hw writes (Rule 26).
expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_landed_cost.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 19 | func main(argc: i64, argv: *i64) -> i64 |