#!/bin/bash
# Summarize lab gameplay pilot from leftover debug capture (if still present).
EV=~/EtherGold/dev/data/events.jsonl
LOG=~/EtherGold/logs/lab_gameplay_pilot/bridge.log
echo "=== session starts ==="
grep lab_gameplay_session_start "$EV" 2>/dev/null | tail -5 || echo "(no events)"
echo "=== wager samples (full) ==="
grep lab_gameplay_synth_wager "$EV" 2>/dev/null | head -6
echo "=== stale E001 ==="
grep 'trunk_round_stale_abandon.*"tid": "E001"' "$EV" 2>/dev/null | wc -l
echo "=== wager count / tiers ==="
echo -n "wagers="; grep -c lab_gameplay_synth_wager "$EV" 2>/dev/null || echo 0
grep lab_gameplay_synth_wager "$EV" 2>/dev/null | grep -oE '"tier":[0-9],"tier_label":"[^"]+"' | sort | uniq -c
echo "=== first eth_tx E001 ==="
grep '"tid": "E001"' "$EV" 2>/dev/null | grep eth_tx | head -3
