code wiki / _hdl_build / nx_trusted_flag.nx
nx_trusted_flag.nx
buildroot/runtime/_hdl_build/nx_trusted_flag.nx
about
nx_trusted_flag.nx -- the TRUSTED scope's write side (operator's 3-scope model 2026-07-04): a client
FLAGS an external web resource as a GOOD reference. Fetches the exact page (sovereign TLS, NO crawl --
trusted = curated, not discovered), extracts text, and ingests it into the shared "trusted" seg_store
shard (dp-trusted-pub-): doc:<cid> = text, url:<cid> = the real url, trust:<cid> = the flagging client(s)
(append-only provenance; a second flagger's name is appended, never clobbered). Idempotent by content cid.
usage: nx_trusted_flag <url> <flagger>
The READ side is scope=trusted in dss_serve/dss_api_search (a plain shard swap -- same engine).
license_tier: ORIGINAL
dependencies 4 imports · 1 importers
imports: nx_corpus_ingest.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx
imported by: nx_trusted_flag_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 13 | const K_MAGIC_4194304: i64 = 4194304 |
| 14 | const K_MAGIC_4096: i64 = 4096 |
| 15 | const K_MAGIC_8388608: i64 = 8388608 |
| 16 | const K_MAGIC_1048576: i64 = 1048576 |
| 17 | const K_MAGIC_4090: i64 = 4090 |
functions
| 19 | func tf_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } called by 1: main |
| 20 | func tf_num(v: i64) -> i64 called by 1: main |
| 29 | func tf_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 31 | func tf_mktrustkey(cid: i64, out: *u8) -> i64 |
| 45 | func tf_has_flagger(val: *u8, vl: i64, flagger: *u8, fl: i64) -> i64 |
| 64 | func main(argc: i64, argv: *i64) -> i64 |