nx_vacuole.nx
buildroot/runtime/nx_vacuole.nx
about
nx_vacuole.nx -- sealed content-addressed storage.
Per [[feedback-naming-discipline-no-industry-competitor-overlap]]:
"nx_vacuole" replaces the "vault" semantic (HashiCorp trademark
avoidance). Biology: vacuoles are membrane-bound storage organelles
inside the cell -- isolated from cytoplasm, content-addressed by
what they contain.
EACH ENTRY content-addressed by BLAKE3 hash. Cell can store + read
+ delete entries. Entries can be methyl-marked for cross-cell
transfer authenticity.
Composes:
nx_cell -- each cell owns its vacuole
nx_methyl -- entries sealed with cell's methyl mark
nx_brane -- read/write to vacuole gated by capability tokens
nx_chromatin -- chromatin captures vacuole state pre-failover
dependencies 3 imports · 2 importers
imports: nx_syscalls.nxnx_tier.nxnx_methyl.nx
imported by: nx_cell_anatomy_compose_test.nxnx_vacuole_test.nx
structs
| 28 | struct NxVacuoleEntry |
| 36 | struct NxVacuole |
consts
| 23 | const NX_VAC_OK: nx_int = 0 |
| 24 | const NX_VAC_ERR_FULL: nx_int = 1 |
| 25 | const NX_VAC_ERR_NOT_FOUND: nx_int = 2 |
| 26 | const NX_VAC_ERR_BAD_MARK: nx_int = 3 |
| 42 | const NX_VAC_ENTRY_BYTES: nx_size = 40 |
functions
| 44 | func nx_vacuole_new(capacity: nx_size) -> *NxVacuole |
| 53 | func _vac_at(v: *NxVacuole, idx: nx_size) -> *NxVacuoleEntry |
| 57 | func _vac_find(v: *NxVacuole, content_hash: nx_size) -> nx_int |
| 73 | func nx_vacuole_put(v: *NxVacuole, |
| 94 | func nx_vacuole_get(v: *NxVacuole, content_hash: nx_size) -> *NxVacuoleEntry |
| 102 | func nx_vacuole_delete(v: *NxVacuole, content_hash: nx_size) -> nx_int |
| 121 | func nx_vacuole_count(v: *NxVacuole) -> nx_size called by 1: main |
| 125 | func nx_vacuole_contains(v: *NxVacuole, content_hash: nx_size) -> nx_int |