nx_tier1_immune_compose_test.nx
buildroot/runtime/nx_tier1_immune_compose_test.nx
about
nx_tier1_immune_compose_test.nx -- the complete judo loop.
Exercises every Tier-1 immune primitive (methyl + pamp + crispr +
pamp_meta + antibody + lysis) together with the mimicry trio
(aposematism + crypsis + decoy) in a single scenario. Per
[[feedback-unified-immune-architecture-three-tier]] this is the
FULL unified-architecture verification.
The scenario:
1. Substrate boots; methyl-marked self cells; antibody array
initialized
2. Aposematism warning advertised (SIEM_MONITORED, COMPLIANCE_
AUDITED) -- combined backoff > 90%
3. Decoy planted with tripwire token + decoy methyl mark
4. Foreign byte buffer arrives at IO boundary
a. nx_pamp scans: homoglyph detected (single-channel hit)
b. nx_pamp_meta cross-validates: 3 channels say legit, 1
says fake -> HIGH_DECEPTION (mimic caught)
c. nx_crispr remembers signature
d. nx_antibody_generate creates naive antibody
5. Second arrival of same signature:
a. nx_antibody_match HITS (O(1) recall)
b. nx_antibody_affinity_mature bumps to 972 Q10
c. nx_lysis_select picks CAPABILITY_REVOKE for MED severity
6. Third arrival escalates to HIGH severity:
a. nx_lysis_select picks PROCESS_PAUSE (reversible-only)
b. nx_lysis_emit + nx_lysis_log -> evict_journal
7. After 10 successful matches:
a. antibody promotes to MEMORY state
b. federation-readiness predicate fires
All 8 immune primitives exercised; ~30 assertions; complete loop.
dependencies 12 imports · 0 importers
diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_tier.nxnx_attention_class.nxnx_evict_journal.nxnx_methyl.nxnx_pamp.nxnx_pamp_meta.nxnx_crispr.nxnx_antibody.nxnx_lysis.nxnx_aposematism.nxnx_decoy.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
| none |
functions
| 47 | func main() -> i64 |