code wiki / (root) / nx_gather_compost.nx

nx_gather_compost.nx

buildroot/runtime/nx_gather_compost.nx

5824 B171 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind librarytopic gather
docsdependenciesstructsconstsfunctions

about

nx_gather_compost.nx -- prior-arc knowledge recycling. Per [[feedback-hunter-gatherer-meta-primitives-outward-inward-axes]]: "nx_gather_compost (recycled-prior-arc knowledge informing current)." When a prior arc (Argon2id implementation, browser CSS phase 2, vision-triangulation, etc.) has shipped + closed, the lessons it produced become COMPOST -- mineral-rich knowledge that informs future arcs without being re-derived from scratch. Distinct from nx_aerobic (cleanup discipline): aerobic is "release stale data with stewardship"; compost is "re-apply old wisdom to new fields." Composes: nx_gatherer -- compost is a field kind that can be sown nx_gather_journal -- COMPOSTED event records re-application nx_hunt_evidence -- prior hunt evidence forms the compost (e.g., a fix from Argon2id arc informs a current TLS arc)

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_tier.nx nx_gather_compost.nx nx_gather_compost_test.nx nx_substrate_closure_compose_test.

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_gather_compost_test.nxnx_substrate_closure_compose_test.nx

structs

45struct NxCompostEntry
55struct NxCompostPile

consts

24const NX_GC_OK: nx_int = 0
25const NX_GC_ERR_FULL: nx_int = 1
26const NX_GC_ERR_NOT_FOUND: nx_int = 2
27const NX_GC_ERR_BAD_SOURCE: nx_int = 3
31const NX_CS_HUNT_EVIDENCE: nx_int = 0 // prior hunt's kill receipt
32const NX_CS_GATHER_YIELD: nx_int = 1 // prior gather's measured yield
33const NX_CS_CARDINAL_TEXT: nx_int = 2 // doctrine learned earlier
34const NX_CS_BUG_TAPE_LESSON: nx_int = 3 // bug-tape entry archived
35const NX_CS_PR_RESEARCH: nx_int = 4 // prior research arc artifact
36const NX_CS_N_SOURCES: nx_int = 5
61const NX_GC_ENTRY_BYTES: nx_size = 56

functions

63func nx_cs_source_is_valid(s: nx_int) -> nx_int
69func nx_compost_pile_new(capacity: nx_size) -> *NxCompostPile
called by 2: mainmain calls 1: sys_mmap
78func _gc_at(p: *NxCompostPile, idx: nx_size) -> *NxCompostEntry
82func _gc_find(p: *NxCompostPile, entry_id: nx_int) -> nx_int
98func nx_compost_deposit(p: *NxCompostPile,
124func nx_compost_apply(p: *NxCompostPile,
called by 2: mainmain calls 2: _gc_find_gc_at
135func nx_compost_count(p: *NxCompostPile) -> nx_size
139func nx_compost_count_by_source(p: *NxCompostPile, source: nx_int) -> nx_int
called by 1: main calls 1: _gc_at
155func nx_compost_total_applications(p: *NxCompostPile) -> nx_int
called by 2: mainmain calls 1: _gc_at
166func nx_compost_applied_count(p: *NxCompostPile, entry_id: nx_int) -> nx_int
called by 1: main calls 2: _gc_find_gc_at