nx_hunt_evidence.nx
buildroot/runtime/nx_hunt_evidence.nx
about
nx_hunt_evidence.nx -- content-addressed kill receipts.
Per [[feedback-hunter-gatherer-meta-primitives-outward-inward-axes]]:
"nx_hunt_evidence (content-addressed per
[[feedback-end-to-end-bit-traceability-architecture]])." When
nx_hunter records a KILL, the evidence backing the kill (e.g.,
the bug-fix commit hash, the EXCEED-axis benchmark output, the
threat-hardening test fixture, the cardinal-text absorbed) is
captured as a content-addressed receipt so the kill can be audited
later.
Composes:
nx_hunter -- kills point to evidence rows
nx_provenance_chain -- evidence rows chain-link
nx_methyl -- each evidence row signed
nx_pollinate -- evidence shareable with community
dependencies 3 imports · 2 importers
imports: nx_syscalls.nxnx_tier.nxnx_hunter.nx
imported by: nx_hunt_evidence_test.nxnx_substrate_closure_compose_test.nx
structs
| 37 | struct NxHuntEvidence |
| 46 | struct NxHuntEvidenceLog |
consts
| 22 | const NX_HEV_OK: nx_int = 0 |
| 23 | const NX_HEV_ERR_FULL: nx_int = 1 |
| 24 | const NX_HEV_ERR_NOT_FOUND: nx_int = 2 |
| 28 | const NX_EK_COMMIT_HASH: nx_int = 0 // bug-fix commit |
| 29 | const NX_EK_BENCHMARK_OUTPUT: nx_int = 1 // EXCEED-axis measurement |
| 30 | const NX_EK_TEST_FIXTURE: nx_int = 2 // threat-hardening test |
| 31 | const NX_EK_CARDINAL_TEXT: nx_int = 3 // cardinal absorbed |
| 32 | const NX_EK_FORENSIC_RECORD: nx_int = 4 // signed xenocell observation |
| 33 | const NX_EK_N_KINDS: nx_int = 5 |
| 52 | const NX_HEV_ROW_BYTES: nx_size = 40 |
functions
| 54 | func nx_ek_is_valid(k: nx_int) -> nx_int |
| 60 | func nx_hunt_evidence_log_new(capacity: nx_size) -> *NxHuntEvidenceLog |
| 69 | func _hev_at(l: *NxHuntEvidenceLog, idx: nx_size) -> *NxHuntEvidence |
| 73 | func nx_hunt_evidence_record(l: *NxHuntEvidenceLog, |
| 93 | func nx_hunt_evidence_count_for_target(l: *NxHuntEvidenceLog, target_id: nx_int) -> nx_int |
| 104 | func nx_hunt_evidence_count_by_kind(l: *NxHuntEvidenceLog, kind: nx_int) -> nx_int |
| 115 | func nx_hunt_evidence_count(l: *NxHuntEvidenceLog) -> nx_size |