code wiki / _hdl_build / sites.nx
sites.nx source
↩ module page · 10 lines · 1014 B
1// sites.nx -- INTENTIONALLY NON-BUILDABLE PLACEHOLDER (do not build target=sites yet).
2// 2026-07-24: a bare `import "nx_sites_daemon_v2.nx"` re-export was tried as a build alias so the edge
3// could build+deploy under one name (build target=sites -> sites.sov.elf.new -> /api/deploy target=sites).
4// It FAILS TO COMPILE: nxasm reports `UNDEFINED label: main` -- NishiLang adopts a `main` only from the
5// ROOT compilation unit, never from an import. Making the alias work needs the daemon's `func main`
6// (nx_sites_daemon_v2.nx:1013) extracted into a callable `sd2_main` so this file can define the real
7// `main` that calls it -- a focused edge-build refactor, NOT tail-work (see the api-first doctrine:
8// the edge is a crown-jewel change requiring a carefully-tested arc + never-brick deploy).
9// The live edge builds as target=nx_sites_daemon_v2. This stub is comment-only ON PURPOSE: a build
10// attempt fails LOUD (never silently deploys a no-op sites.elf). Tracked as debt (edge security-header deploy).