code wiki / (root) / nx_competitive_intel.nx

nx_competitive_intel.nx

buildroot/runtime/nx_competitive_intel.nx

7350 B211 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic competitive
docsdependenciesstructsconstsfunctions

about

nx_competitive_intel.nx -- continuous competitive-intelligence ledger. Cardinal: feedback-always-racing-out-compete-by-default. The substrate's standing job: track every named incumbent on every competition track + record honest delta-to-incumbent so the roadmap is driven by real position, not aspiration. Per-record schema (64 bytes / 8 i64): [0] incumbent_tag (FNV-1a hash of incumbent name) [1] track_tag (which competition axis) [2] their_version_hash (snapshot of public version surveyed) [3] their_strength_q10 (substrate's read of their position, 0..1024) [4] our_gap_q10 (substrate position vs theirs) [5] our_plan_sessions (sized arc to close gap) [6] last_surveyed_iso (epoch-day since 2026-01-01) [7] next_survey_due_iso (epoch-day; default last + 90)

dependencies 1 imports · 0 importers

syscalls.nx nx_competitive_intel.nx

imports: syscalls.nx

imported by: nobody (leaf or entry point)

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

main nx_cint_init nx_cint_disable nx_cint_record nx_cint_init ↻ nx_cint_n_records nx_cint_init ↻ nx_cint_enable nx_cint_lookup nx_cint_init ↻ nx_cint_field nx_cint_init ↻ nx_cint_largest_gap nx_cint_init ↻ nx_cint_due_for_survey nx_cint_init ↻ nx_cint_set_next_due nx_cint_init ↻

structs

none

consts

20const NX_MAGIC_1024: i64 = 1024
27const NX_CINT_REC_SIZE: i64 = 64
28const NX_CINT_CHUNK_BYTES: i64 = 32768

functions

30func nx_cint_init() -> i64
42func nx_cint_enable() -> i64 { NX_CINT_ACTIVE = 1; return 0 }
called by 1: main
43func nx_cint_disable() -> i64 { NX_CINT_ACTIVE = 0; return 0 }
called by 1: main
44func nx_cint_is_active() -> i64 { return NX_CINT_ACTIVE }
49func nx_cint_record(incumbent_tag: i64, track_tag: i64,
called by 1: main calls 1: nx_cint_init
73func nx_cint_set_next_due(slot: i64, due_day: i64) -> i64
called by 1: main calls 1: nx_cint_init
85func nx_cint_lookup(incumbent_tag: i64, track_tag: i64) -> i64
called by 1: main calls 1: nx_cint_init
100func nx_cint_field(slot: i64, field: i64) -> i64
called by 1: main calls 1: nx_cint_init
112func nx_cint_due_for_survey(now_day: i64) -> i64
called by 1: main calls 1: nx_cint_init
127func nx_cint_largest_gap() -> i64
called by 1: main calls 1: nx_cint_init
145func nx_cint_n_records() -> i64
called by 1: main calls 1: nx_cint_init
153func main() -> i64