Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/helix/rsi-loop1.sh # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / helix / rsi-loop1.sh` 91 lines ยท 5528 bytes Raw Blame History 1 #!/bin/sh 2 # seed/helix/rsi-loop1.sh -- Four-Wall Loop-1 Helical RSI Containment & Generational Cold-Regrowth Gate. 3 # 4 # Snaps ALL FOUR containment walls together in 100% pure seeded Omega + Lean 4 (zero C, zero Python, zero CUDA): 5 # Wall 1 (The Proposer -- Untrusted): 6 # Predator + Arboris running in an isolated ephemeral sandbox, proposing candidate SM121 schedules 7 # and EGP2 kernel-IR optimizations. 8 # Wall 2 (The Formal & Chaos Gauntlet -- Correctness Gate): 9 # Strand A Monk (CFG fixed-point dataflow + rawFloor=6 + BB-Leader #13 + I2FP #15 + anchor RAW #16) 10 # + EGP2 structural dual-checker + 16/16 Antibodies + 46-kernel SM121 sweep + all 5 Lean 4 11 # proof files (HelixSoundness, HelixAntibodies, HelixKernelIR, UorGpuWorld, HelixBFT; 0 sorry). 12 # Wall 3 (The Sealed Judge -- Performance & Capability Gate): 13 # Pure-OM-2 spark-rsi evaluator (core/rsi/om/eval/evaluator.om + canary + rollback) + dual-strand 14 # Proof-Carrying SM121 Evolutionary JIT binaries (q36-helix-native & q36-helix-decode) 15 # + `seed/helix/strand_cap/helix_cap_gate.sh` (effects.om `mem` split, verifier allowlists, W^X, Wall-1 seccomp cBPF). 16 # Wall 4 (The Cryptographic Ratchet -- Promotion Authority): 17 # Pure-OM-2 RSI V2 ECDSA P-256 promotion gate (core/rsi/om/governance/v2_main.om, dual-strand 18 # compiled identically by Strand A & Strand B; selfcheck + v2_test negative controls: same-key 19 # refusal, protected-path refusal, bad-signature refusal) + RFC 8032 Ed25519 receipt verification 20 # + 4-Strand Byzantine Self-Healing Braid (1,612 B stem cells) + Compiler Mitosis + Arboris 21 # Predator <-> Ascetic thermal/power hot-swap! 22 # 23 # Usage (from repository root on AArch64 Linux): 24 # sh seed/helix/rsi-loop1.sh [--lean] 25 set -eu 26 R=$(CDPATH= cd -- "$(dirname "$0")/../.." && pwd) 27 cd "$R" 28 LEAN_ARG="" 29 for arg in "$@"; do 30 case "$arg" in 31 --lean) LEAN_ARG="--lean" ;; 32 *) printf 'usage: rsi-loop1.sh [--lean]\n' >&2; exit 2 ;; 33 esac 34 done 35 36 B=build/rsi-loop1 37 rm -rf "$B" 38 mkdir -p "$B/sandbox" "$B/ratchet" "$B/jit" 39 40 bad() { printf 'RSI_LOOP1 FAIL: %s\n' "$*" >&2; exit 1; } 41 sha() { sha256sum "$1" | cut -d' ' -f1; } 42 43 printf '========================================================================\n' 44 printf '=== WALL 1 & 2: COLD REGROWTH + MONK + EGP2 + 12+ ANTIBODIES + LEAN4 ===\n' 45 printf '========================================================================\n' 46 sh seed/helix/cold-regrowth.sh $LEAN_ARG 47 OMC_A=build/cold-regrowth/omc_A 48 OMC_B=build/cold-regrowth/omc_B_fast 49 50 printf '\n========================================================================\n' 51 printf '=== WALL 3: SEALED JUDGE EVALUATOR + DUAL-STRAND EVOLUTIONARY JIT ===\n' 52 printf '========================================================================\n' 53 # Build pure-Omega spark-rsi evaluator suite identically with Strand A & Strand B 54 EVAL_SRCS="si/directives/om2.om core/rsi/om/eval/evaluator.om om/tls/sha2.om core/rsi/om/eval/canary.om core/rsi/om/eval/rollback.om core/rsi/om/eval/eval_test.om" 55 cat $EVAL_SRCS | "$OMC_A" > "$B/ratchet/rsi_eval_test_A" 56 cat $EVAL_SRCS | "$OMC_B" > "$B/ratchet/rsi_eval_test_B" 57 cmp -s "$B/ratchet/rsi_eval_test_A" "$B/ratchet/rsi_eval_test_B" || bad "rsi_eval_test diverged across strands" 58 chmod +x "$B/ratchet/rsi_eval_test_A" 59 "$B/ratchet/rsi_eval_test_A" 60 printf 'PASS Wall 3 Sealed Judge evaluator bit-for-bit dual-strand identical (%s)\n' "$(sha "$B/ratchet/rsi_eval_test_A")" 61 62 # Build dual-strand Proof-Carrying SM121 Evolutionary JIT binaries (Monk/Predator/Trickster/Ascetic) 63 sh seed/helix/helix-build-jit.sh "$OMC_A" "$OMC_B" "$B/jit" 64 65 printf '\n========================================================================\n' 66 printf '=== WALL 4: CRYPTOGRAPHIC RATCHET (RSI V2 ECDSA P-256 + 4-STRAND BFT)===\n' 67 printf '========================================================================\n' 68 P256_GATE_SRCS="core/rsi/om/p256/sha256.om core/rsi/om/p256/p256.om core/rsi/om/governance/receipt_v2.om core/rsi/om/governance/v2_main.om" 69 cat $P256_GATE_SRCS | "$OMC_A" > "$B/ratchet/rsi_v2_gate_A" 70 cat $P256_GATE_SRCS | "$OMC_B" > "$B/ratchet/rsi_v2_gate_B" 71 cmp -s "$B/ratchet/rsi_v2_gate_A" "$B/ratchet/rsi_v2_gate_B" || bad "rsi_v2_gate diverged across strands" 72 chmod +x "$B/ratchet/rsi_v2_gate_A" 73 "$B/ratchet/rsi_v2_gate_A" version 74 "$B/ratchet/rsi_v2_gate_A" selfcheck 75 printf 'PASS Wall 4 RSI V2 P-256 gate dual-strand identical + selfcheck PASS (%s)\n' "$(sha "$B/ratchet/rsi_v2_gate_A")" 76 77 # Wall 3 Capability Containment Gate (effects.om mem split, verifier allowlists, W^X seeds/ELFs, Wall-1 seccomp cBPF) 78 sh seed/helix/strand_cap/helix_cap_gate.sh "$OMC_A" "$OMC_B" build/cold-regrowth "$B" 79 80 P256_TEST_SRCS="core/rsi/om/p256/sha256.om core/rsi/om/p256/p256.om core/rsi/om/governance/receipt_v2.om core/rsi/om/governance/v2_test.om" 81 cat $P256_TEST_SRCS | "$OMC_A" > "$B/ratchet/rsi_v2_test_A" 82 cat $P256_TEST_SRCS | "$OMC_B" > "$B/ratchet/rsi_v2_test_B" 83 cmp -s "$B/ratchet/rsi_v2_test_A" "$B/ratchet/rsi_v2_test_B" || bad "rsi_v2_test diverged across strands" 84 chmod +x "$B/ratchet/rsi_v2_test_A" 85 "$B/ratchet/rsi_v2_test_A" 86 printf 'PASS Wall 4 RSI V2 P-256 negative controls (same-key, protected-path, tamper) PASS (%s)\n' "$(sha "$B/ratchet/rsi_v2_test_A")" 87 88 # Generational 4-Strand BFT Cold Regrowth + Quarantine Auto-Heal + Compiler Mitosis + Hot-Swap + HelixBFT.lean 89 sh seed/helix/braid4-verify.sh 90 91 printf '\nRSI_LOOP1_FOUR_WALL PASS walls=4/4 strands=4(1612B) sm121_kernels=46 cap_gate=PASS p256_ratchet=PASS `ed25519`_ddc=PASS bft_heal=2/2 mitosis=PASS hotswap=PASS\n'