nx_gather_compost.nx
buildroot/runtime/nx_gather_compost.nx
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
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_gather_compost_test.nxnx_substrate_closure_compose_test.nx
structs
| 45 | struct NxCompostEntry |
| 55 | struct NxCompostPile |
consts
| 24 | const NX_GC_OK: nx_int = 0 |
| 25 | const NX_GC_ERR_FULL: nx_int = 1 |
| 26 | const NX_GC_ERR_NOT_FOUND: nx_int = 2 |
| 27 | const NX_GC_ERR_BAD_SOURCE: nx_int = 3 |
| 31 | const NX_CS_HUNT_EVIDENCE: nx_int = 0 // prior hunt's kill receipt |
| 32 | const NX_CS_GATHER_YIELD: nx_int = 1 // prior gather's measured yield |
| 33 | const NX_CS_CARDINAL_TEXT: nx_int = 2 // doctrine learned earlier |
| 34 | const NX_CS_BUG_TAPE_LESSON: nx_int = 3 // bug-tape entry archived |
| 35 | const NX_CS_PR_RESEARCH: nx_int = 4 // prior research arc artifact |
| 36 | const NX_CS_N_SOURCES: nx_int = 5 |
| 61 | const NX_GC_ENTRY_BYTES: nx_size = 56 |
functions
| 63 | func nx_cs_source_is_valid(s: nx_int) -> nx_int |
| 69 | func nx_compost_pile_new(capacity: nx_size) -> *NxCompostPile |
| 78 | func _gc_at(p: *NxCompostPile, idx: nx_size) -> *NxCompostEntry |
| 82 | func _gc_find(p: *NxCompostPile, entry_id: nx_int) -> nx_int |
| 98 | func nx_compost_deposit(p: *NxCompostPile, |
| 124 | func nx_compost_apply(p: *NxCompostPile, |
| 135 | func nx_compost_count(p: *NxCompostPile) -> nx_size |
| 139 | func nx_compost_count_by_source(p: *NxCompostPile, source: nx_int) -> nx_int |
| 155 | func nx_compost_total_applications(p: *NxCompostPile) -> nx_int |
| 166 | func nx_compost_applied_count(p: *NxCompostPile, entry_id: nx_int) -> nx_int |