Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-brain-core / sub_brains/hypothalamus/heal_all.sh |
| Date | Not specified in source |
| Repository | Janady13/ai-brain-core |
| Revision | f7275582f13ada80bfb3b1008089800ca26f4a23 |
| Branch | main |
| Path or archive member | sub_brains/hypothalamus/heal_all.sh |
| Original SHA-256 | 2d5474a62d1a839da90db0ed882bc4cda76d731cf8d875867311d8d5ffe3071b |
| Git blob SHA | 3d7bb439c0fa052555adf6f0dd4ebc4c2f92d626 |
| Reading-copy SHA-256 | 2d5474a62d1a839da90db0ed882bc4cda76d731cf8d875867311d8d5ffe3071b |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/ai-brain-core / sub_brains/hypothalamus/heal_all.sh | main | f7275582f13ada80bfb3b1008089800ca26f4a23 | Open original |
| Janady13/ai-brain-core / sub_brains/hypothalamus/heal_all.sh | claude/agi-architecture-diagram-01GJ7CohfKvLb77yiKpHqd6d | 365850e27004318edd582881225024026b118c2d | Open original |
| Janady13/ai-brain-core / sub_brains/hypothalamus/heal_all.sh | healer-core | 0fe4cbbaa91912149f1a8e32205371ff67017268 | Open original |
Recovered source transcript
Download complete source text ↓43 lines · 1.3 KB
#!/usr/bin/env bash
set -euo pipefail
ROOT="$HOME/Desktop/AI_Brain"
BRAIN="$ROOT/sub_brains/hypothalamus"
LOG="$ROOT/logs/hypothalamus.log"
say(){ echo "🔧 $1" | tee -a "$LOG"; }
say "Hypothalamus scanning logs with heal_map.json…"
MAP="$BRAIN/heal_map.json"
ERRSCAN="$ROOT/logs/error_scan.tmp"
grep -H -i -E "error|❌|traceback|no such file|command not found|failed|refused" "$ROOT/logs/"*.log 2>/dev/null > "$ERRSCAN" || true
# helper to lookup layer
get_layer() {
local line="$1"
while read -r key rest; do
# skip if not keyword list
[[ "$key" == "{" || "$key" == "}" ]] && continue
layer=$(echo "$key" | sed 's/"//g' | sed 's/://')
words=$(jq -r --arg l "$layer" '.[$l][]?' "$MAP")
for w in $words; do
if echo "$line" | grep -qi "$w"; then echo "$layer"; return; fi
done
done < <(jq -c 'to_entries[] | "\(.key): \(.value)"' "$MAP")
}
while read -r line; do
[[ -z "$line" ]] && continue
LAYER=$(get_layer "$line" || true)
case "$LAYER" in
bios) bash "$BRAIN/heal_bios.sh" ;;
os) bash "$BRAIN/heal_os.sh" ;;
apps) bash "$BRAIN/heal_apps.sh" ;;
files) bash "$BRAIN/heal_files.sh" ;;
network) bash "$BRAIN/heal_network.sh" ;;
*) echo "ℹ️ No match for: $line" | tee -a "$LOG" ;;
esac
done < "$ERRSCAN"
say "Healing pass complete."