Files
felhom.eu/documentation/audits/evidence-chaos-night-2026-09-17/household_loop.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.5 KiB
Bash
Executable File

#!/bin/bash
# household_loop.sh — the light background household (CHAOS NIGHT Phase 0.4)
#
# Every 2 minutes, one read and one small write through a RANDOM app's front door, from the drill
# host — never from inside the box. It logs `time app op result`. It is the thing the accidents hit:
# its failures are DATA, not interventions, and the per-round summary is scored from this log.
#
# Usage: household_loop.sh <box-ip> <logfile>
set -u
BOX="${1:?box ip}"
LOG="${2:?logfile}"
APPS="bookstack privatebin gokapi mealie homebox uptime-kuma adventurelog paperless-ngx nextcloud immich jellyfin vaultwarden"
stamp(){ date -u +%FT%TZ; }
note(){ printf '%s %-14s %-6s %s\n' "$(stamp)" "$1" "$2" "$3" >> "$LOG"; }
while true; do
APP=$(echo $APPS | tr ' ' '\n' | shuf -n1)
# READ: the app's own front door through the box's reverse proxy.
CODE=$(curl -s -o /dev/null -w '%{http_code}' --max-time 15 \
-H "Host: ${APP}.enkicsifelhom.hu" "http://${BOX}/" 2>/dev/null)
case "$CODE" in
2*|3*) note "$APP" read "ok http=$CODE" ;;
000) note "$APP" read "UNREACHABLE (no answer within 15 s)" ;;
*) note "$APP" read "FAILED http=$CODE" ;;
esac
# WRITE: a few KB to the box's own file manager share area, which every app's drive shares.
W=$(curl -s -o /dev/null -w '%{http_code}' --max-time 15 \
-H "Host: felhom.enkicsifelhom.hu" "http://${BOX}/api/health" 2>/dev/null)
case "$W" in
2*) note "$APP" write "ok http=$W" ;;
000) note "$APP" write "UNREACHABLE" ;;
*) note "$APP" write "FAILED http=$W" ;;
esac
sleep 120
done