code wiki / _hdl_build / nx_office_gate.nx
nx_office_gate.nx
buildroot/runtime/_hdl_build/nx_office_gate.nx
about
nx_office_gate.nx -- the OFFLINE gate for Nishi Office v1 (consumes the pure core nx_office_serve, no sockets).
Runs the full selftest against a FRESH throwaway root (/tmp, unique by now_us): create doc/sheet/deck through
of_handle with real HTTP request bytes, prove additive versioning (v1 bytes untouched after v2), byte-identical
downloads, computed spreadsheet formulas in the preview, and LOUD refusals (bad name / kind flip / missing
version / cross-origin POST). GREEN = exit 0. Runs the REAL format organs (_offc/nx_docx|nx_xlsx|nx_pptx.elf)
via fork+exec, so it must run from the nxc2 root. license_tier: ORIGINAL expect_exit: 0
D001 (2026-09-02): every tooth is a gv_check through the selftest's one ruler (of_ck) and the verdict is
gv_verdict, emitted LAST, so /api/gate_run and the compare referee read the outcome from the exit code
and the canonical tally line instead of a hand-rolled PASS/FAIL print nothing could judge.
dependencies 2 imports · 0 importers
imports: nx_office_serve.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
| 13 | func main() -> i64 |