code wiki / (root) / nx_tmplstale.nx

nx_tmplstale.nx

buildroot/runtime/nx_tmplstale.nx

4717 B90 linesdepth 9pulls 15 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_tmplstale.nx -- THE CLERK DESK CLI/MCP organ: self-verifying demo over nx_tmplstale_lib. Seeds a clause library and two templates (each put snapshots its clause CIDs), assembles two client documents with LINEAGE, proves the desk reads CURRENT (0 stale), then revises ONE clause and prints the worklist: the template that carries it and the document built from it are named; the template and document that do not carry it stay silent (the fresh control). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_tmplstale_lib.nx nx_tmplstale.nx

imports: nx_tmplstale_lib.nx

imported by: nobody (leaf or entry point)

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

main dg_clause_put reg_put reg_put_x sts_lock sts_mm sys_mmap sts_werr sys_exit ss_cat sys_openat_append sts_werr ↻ sys_flock reg_key reg_cat ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist reg_strlen reg_id_present sts_unlock sys_flock ↻ sys_close ss_next_segid ss_max_segid sys_mmap ↻ ss_cat ↻ ss_readall ss_segid_ok ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok ↻

structs

none

consts

8const TSD_DOCBUF: i64 = 4096
9const TSD_WORKBUF: i64 = 8192
10const TSD_OUTBUF: i64 = 2048
11const TSD_EPOCH: i64 = 1787100000
12const TSD_TINYCAP: i64 = 8

functions

14func tsd_has(hay: *u8, needle: *u8) -> i64
called by 1: main
29func main() -> i64