#!/bin/bash
set -e
echo "=== FIXTURE_POS sources ==="
grep -E "FIXTURE_POS|PI_LABEL" /etc/fixture/fixture-pos.env 2>/dev/null || echo "(no fixture-pos.env match)"
grep -E "FIXTURE_POS|PI_LABEL" ~/EtherGold/dev/fixture-bridge.env 2>/dev/null || echo "(no fixture-bridge.env)"
echo "=== lab events ==="
tail -c 200000 ~/EtherGold/dev/data/events.jsonl 2>/dev/null | grep -E "lab_gameplay|local_slave_tid_learned" | tail -40
echo "=== errors sample ==="
tail -c 200000 ~/EtherGold/dev/data/events.jsonl 2>/dev/null | grep '"ev": "error"' | tail -5
echo "=== E001 sample ==="
tail -c 400000 ~/EtherGold/dev/data/events.jsonl 2>/dev/null | grep E001 | tail -15
echo "=== bridge alive ==="
pgrep -af pog422_fixture_bridge | head -2
