code wiki / (root) / nx_aposematism.nx

nx_aposematism.nx

buildroot/runtime/nx_aposematism.nx

9225 B208 linesdepth 2pulls 2 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_aposematism.nx -- warning coloration / Batesian mimicry. Biology: aposematism is conspicuous warning advertising of unprofitability. Monarch butterflies' orange-black, coral snake red-yellow-black, poison dart frog colors -- all signal "eating me costs more than skipping me." Batesian mimicry is the harmless species adopting the same pattern (hoverfly looks like wasp). SUBSTRATE EQUIVALENT, per user 2026-05-19: "make sure that we have the system designed with mimicry and obsfucation so these predatory programs get nonsense or get scared off (you cant scare the state but you can scare the machine with fooling) think how the stick figure bugs and the bugs pretend to be wasps." THE CRITICAL INSIGHT: state actors are humans with decision-making power and goals; they don't get "scared." Their MACHINES -- the automated scanners, the ML-trained surveillance heuristics, the rule-based escalation pipelines -- DO pattern-match and skip high-cost targets. A cell that LOOKS LIKE a high-cost target gets passed over by the machine even when no human reviewer is in the loop yet. By the time the human is escalated, the target has moved. Warning displays shipped V1 (modeled on real targets the machines have been trained to AVOID): - SIEM_MONITORED "this host is monitored by Splunk-class" - CLASSIFIED_TIER "this host bears classified markings" - FORENSIC_LOGGED "all reads to this host are journaled" - HONEYPOT_SUSPECT "this host might be a honeypot" - HIGH_VALUE_TARGET "this host is a defended asset" - COMPLIANCE_AUDITED "this host runs reg-compliance audits" - INCIDENT_RESPONSE_ON "this host has active IR -- tripping fires" Composes: nx_xenocell -- when xenocell observes the predator response (back-off after warning) we have evidence the mimicry worked nx_decoy -- decoys CARRY aposematism warnings so vendor scanners read "this is a high-value target" and either back off OR trip the decoy

dependencies 2 imports · 3 importers

nx_syscalls.nx nx_tier.nx nx_aposematism.nx nx_aposematism_test.nx nx_mimicry_compose_test.nx nx_tier1_immune_compose_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_aposematism_test.nxnx_mimicry_compose_test.nxnx_tier1_immune_compose_test.nx

structs

107struct NxWarningPattern

consts

79const NX_MAGIC_1024: i64 = 1024
83const NX_AP_NONE: nx_int = 0
84const NX_AP_SIEM_MONITORED: nx_int = 1
85const NX_AP_CLASSIFIED_TIER: nx_int = 2
86const NX_AP_FORENSIC_LOGGED: nx_int = 3
87const NX_AP_HONEYPOT_SUSPECT: nx_int = 4
88const NX_AP_HIGH_VALUE_TARGET: nx_int = 5
89const NX_AP_COMPLIANCE_AUDITED: nx_int = 6
90const NX_AP_INCIDENT_RESPONSE: nx_int = 7
91const NX_AP_N_DISPLAYS: nx_int = 8
95const NX_AP_OK: nx_int = 0
96const NX_AP_ERR_BAD_DISPLAY: nx_int = 1
97const NX_AP_BACKOFF_DETECTED: nx_int = 2 // predator backed off

functions

116func nx_ap_display_is_valid(d: nx_int) -> nx_int
called by 1: main
133func nx_ap_display_backoff_q10(d: nx_int) -> nx_int
151func nx_ap_pattern_new(display: nx_int,
172func nx_ap_combined_backoff_q10(patterns: **NxWarningPattern,
called by 3: mainmainmain
197func nx_ap_emit_warning_bytes(p: *NxWarningPattern,
called by 1: main