code wiki / _hdl_build / nx_research_freshness.nx
nx_research_freshness.nx
buildroot/runtime/_hdl_build/nx_research_freshness.nx
about
nx_research_freshness.nx -- AUTONOMOUS FRESHNESS REVIEW on a cadence. Previously-researched veins get
re-checked: is the content MOVING (changed since last review) or STATIC? Maintains freshness_state.txt
(<path> <fp> <stable> <reviews>) over the registered veins. Each review cycle re-fingerprints the source and
compares to the last-recorded fingerprint:
- new source -> BASELINE (first sight)
- fingerprint changed -> MOVING (reset stable=0; flag for re-mine -> the vein is active)
- fingerprint unchanged -> STATIC (stable++); once stable >= RF_CONST_LIMIT -> CONSTANT (it has hit its
limit / is a constant -> recommend BACKING OFF the review cadence)
The monthly/other CADENCE is how often this organ is RUN (cron/schedule); CONSTANT veins are flagged so the
scheduler can review them less. v1 compares the on-disk .raw fingerprint (detects movement whenever the corpus
is re-fetched fresh); production active-refetch needs source-URL persistence (the named next gap). Offline,
deterministic, gateable. expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_search_inverted_persist.nxnx_itoa_lib.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
| 16 | const RF_CAP: i64 = 65536 |
| 17 | const RF_CONST_LIMIT: i64 = 3 // consecutive STATIC reviews before a vein is declared a CONSTANT (settled) |
functions
| 19 | func rf_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 |
| 24 | func rf_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 25 | func rf_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[off+i]=s[i];i=i+1} return off+i } called by 1: main |
| 26 | func rf_catbuf(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var i: i64=0; while i<n { dst[off+i]=src[i]; i=i+1 } return off+n } called by 1: main |
| 27 | func rf_catnum(dst: *u8, off: i64, v: i64) -> i64 called by 1: main |
| 34 | func rf_field_end(buf: *u8, i: i64, end: i64) -> i64 called by 1: main |
| 39 | func rf_parse_dec(buf: *u8, start: i64, fend: i64) -> i64 called by 1: main |
| 44 | func rf_streq_rng(buf: *u8, a_off: i64, a_len: i64, b: *u8, b_len: i64) -> i64 called by 1: main |
| 52 | func rf_fp(buf: *u8, len: i64) -> i64 called by 1: main |
| 60 | func main() -> i64 |