Files
felhom.eu/documentation/audits/evidence-chaos-night-2026-09-17/round.sh
T
adminandClaude Opus 5 9fae6dfa98
gates / gates (push) Successful in 23s
CHAOS NIGHT phase 0: golden 0.245.0, a self-installing box, and R-546
The schedule was drawn from seed 20260917 and written into the findings document
BEFORE round 1, with its re-draw log.

Phase 0 measured:
- golden 0.245.0 baked, published (registry 200, not an exit code) and vouched;
  the box installed itself from the published ISO 1.28.0 and landed on it with
  no hand upgrade (controller 0.245.0, agent 0.131.0).
- ZERO operator presses: the waiting self-bind mail worked, and the acknowledged
  -delete path re-issued off-site AND PBS-DR credentials by itself
  (pbsdr_auto_reissue) - the F-14 half nobody had watched happen live.
- R-546 filed (P2): tonight's own guide sends the household to create the
  recovery code ~17 minutes before the box can do it. It self-heals; the bar
  urges them there the whole time. Measured on both sides, not inferred.
- R-543 proven through its whole lifecycle on a fresh box: bar present while
  paused, gone for good once escrowed.
- Known rows met and recorded, not re-filed: R-542, R-536's failure events.

Also recorded honestly: three harness errors of mine (a script that announced
"all twelve deploys ACCEPTED" without checking, a "login ok (csrf 0)" that
turned eleven of my own 401s into what looked like product refusals, and a
head -12 that hid a disk), and a near-miss where I almost filed a defect
against a drive gate that was working and logging at DEBUG.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-09-16 22:56:08 +02:00

37 lines
1.8 KiB
Bash
Executable File

#!/bin/bash
# round.sh — run ONE chaos round and record the same five things.
# Usage: round.sh <n> <action> <app> <accident>
set -u
N="$1"; X="$2"; Y="$3"; Z="$4"
E=/mnt/5_hdd/felhom.eu/git/felhom.eu/documentation/audits/evidence-chaos-night-2026-09-17
OUT="$E/round-${N}.txt"
SC=/tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/adc14dfe-fc6c-4014-9378-d580d29d3595/scratchpad/chaos
say(){ echo "$(date -u +%FT%TZ) $*" | tee -a "$OUT"; }
export SSHPASS=$(cat $SC/boxroot.pw)
SSHO="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=8 -o NumberOfPasswordPrompts=1"
BOX(){ sshpass -e ssh $SSHO root@192.168.0.115 "$@" 2>/dev/null | grep -v "Warning: Permanently"; }
say "================ ROUND $N : $X on $Y, while: $Z ================"
say "--- BEFORE: is the box steady? (every app up, hub ONLINE, no active alarm) ---"
BOX 'pct exec 9201 -- docker ps --format "{{.Names}} {{.Status}}"' | sed 's/^/ /' | tee -a "$OUT"
say " events before this round:"
bash "$E/events.sh" 3 | tee -a "$OUT"
say "--- ACTION: $X on $Y ---"
# the action itself is driven per-round by the caller's follow-up; this records the start moment
say " action start marker"
say "--- ACCIDENT: $Z (injected 10-60 s after the action starts) ---"
if [ "$Z" != "nothing" ]; then
bash "$E/inject.sh" "$Z" "$N" | sed 's/^/ /' | tee -a "$OUT"
else
say " control round — no accident, deliberately"
fi
say "--- AFTER: what the box did by itself ---"
BOX 'pct exec 9201 -- docker ps --format "{{.Names}} {{.Status}}"' | sed 's/^/ /' | tee -a "$OUT"
BOX 'pvesm status; df -h /mnt/felhom-drives/hdd_1 2>/dev/null | tail -1' | sed 's/^/ /' | tee -a "$OUT"
say "--- alarms in this round's window ---"
bash "$E/events.sh" 8 | tee -a "$OUT"
say "================ END ROUND $N ================"