nx_docportal_search_gate.nx
buildroot/runtime/_retired/nx_docportal_search_gate.nx
about
nx_docportal_search_gate.nx -- END-TO-END measured gate: a document UPLOADED through the portal is findable on
the site's onsite search, and a PRIVATE upload is NOT -- proven through the REAL production search engine
(nx_search_inverted_persist inverted index, the same one nx_onsite_index/nx_onsite_search use), not a stand-in.
Self-contained per the sovereign-exec doctrine (in-process; no forked CLI, no /tmp staging):
1. dp_ingest 2 PUBLIC docs + 1 PRIVATE doc into a throwaway domain (dpsearch).
2. build the inverted index from the portal-generated search source (knowledge/index/dpsearch_src.tsv) and
round-trip it through save+load (the exact proven onsite_index/onsite_search path).
3. query the live index:
T1 the search source has exactly 2 docs -> the private upload never entered it
T2 "probate" is found -> public upload #0 is searchable
T3 "divorce" is found -> public upload #1 is searchable
T4 "retainer" is NOT found -> private upload is invisible to the public search BY CONSTRUCTION
Verdict MEASURED from real query results. GREEN iff 4/4. Appends knowledge/status/docportal_search_gate.log.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_docportal_lib.nxnx_search_inverted_persist.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
| 18 | func s_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 |
| 19 | func s_num(v: i64) -> i64 called by 1: main |
| 27 | func s_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } called by 1: main |
| 28 | func s_wn(fd: i64, v: i64) -> i64 called by 1: main |
| 36 | func s_qcount(idx: *NxInvIndex, term: *u8, tl: i64) -> i64 |
| 43 | func main() -> i64 |