#!/usr/bin/env bash
# Master-native SCR capture bench — pos3 only.
#
# Run Local Net Test SCR from the Master UI on pos3 copper only.
# Blocks relayed 0x03 ETH→inject so pos4 slave traffic cannot pollute the capture.
#
# Prereq: stop pos4 bridge (and pos1/2 if attached). Only pos3 runs this session.
#
# Usage (pos3):
#   cd ~/EtherGold/4-Board\ Test\ Fixture/fixture-timing
#   bash run_scr_master_diag_pos3.sh
#
# After 3–5 Master SCR attempts, end-session and on PC:
#   python analyze_scr.py --master-native --anchor-pos 3 ../3/data

set -euo pipefail

export FIXTURE_POS=3
export CHANNEL=machine
export FIXTURE_SCR_DIAG=1
export FIXTURE_SCR_MASTER_NATIVE_ONLY=1
# Gameplay synth not needed for SCR-only bench; reduces log noise.
export FIXTURE_STATUS_0D_SYNTH=0
export FIXTURE_STATUS_0D_BLOCK_ALL=0

exec bash "$(dirname "${BASH_SOURCE[0]}")/run_bridge_jun11_good.sh"
