nx_adversarial_pattern_audit_test.nx
buildroot/runtime/nx_adversarial_pattern_audit_test.nx
about
nx_adversarial_pattern_audit_test.nx -- end-to-end smoke.
Exercises:
1. nx_apa_count_substring on canned needle/haystack pairs
(positive + negative + multi-match + edge cases)
2. nx_apa_scan_file_returns on three known runtime files via
sys_read_file:
a) runtime/nx_canary_value.nx (FULLY_WIRED, 0 STUB)
b) runtime/nx_threat_model.nx (FULLY_WIRED, 0 STUB)
c) runtime/nx_adversarial_pattern_audit.nx (self-scan;
file MUST contain its own NX_APA_STUB_NOT_WIRED
sealed-enum decl + verdict_name resolver)
3. nx_apa_judge_file_consistency on each scan -> CONSISTENT.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_adversarial_pattern_audit.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 21 | const NX_TEST_NOW_UNIX: i64 = 1747436400 |
functions
| 25 | func test_count_substring() -> i64 |
| 71 | func make_path_canary(out: *u8) called by 1: main |
| 82 | func make_path_threat(out: *u8) called by 1: main |
| 93 | func make_path_apa(out: *u8) called by 1: main |
| 107 | func scan_path(path: *u8, path_len: i64) -> *ApaFileScanCounts |
| 117 | func main() -> i64 |