code wiki / _hdl_build / nx_office_gate.nx

nx_office_gate.nx

buildroot/runtime/_hdl_build/nx_office_gate.nx

1485 B21 linesdepth 9pulls 25 transitivereach 0 importersview sourcekind gate/prooftopic office
docsdependenciesstructsconstsfunctions

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

nx_office_serve.nx nx_gate_verdict.nx nx_office_gate.nx

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

main of_cat of_catn nxi_buf gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ of_selftest_gv of_selftest p of_handle of_handle_auth of_meref of_cat ↻ of_slen of_seq of_hdr_get of_slen ↻ of_memhas of_slen ↻ of_atoi of_ct_boundary of_hdr_get ↻ of_starts multipart_parse sys_mmap ↻ mp_find

structs

none

consts

none

functions

13func main() -> i64