Low-Context Execution Packet
Use branch stage/d3-08-bridge-recon.
This stage is benchmarking only. Do not permanently modify the D3-07 mockup or Hermes core.
Create isolated test files under:
bench/bridge/
Benchmark at least two outbound paths:
- emulator/dbgio/stdout or log tail to Pi listener
- UDP from Dreamcast/KOS or emulator host to Pi
- virtual serial/socket path if D3-01 proved it
Benchmark at least two inbound paths:
- non-blocking UDP receive in the frontend test harness
- background receive thread feeding a lock-free or fixed ring buffer
- log/socket injection path if D3-01 proved it
Search Dreamcast/KOS networking constraints before designing tests:
scripts/intel/query-shachi-atoms.sh search "KOS UDP"
scripts/intel/query-shachi-atoms.sh search "Broadband Adapter"
Metrics CSV schema:
trial_id,path,direction,payload_bytes,count_sent,count_received,loss_percent,min_ms,p50_ms,p95_ms,max_ms,fps_min,fps_avg,notes
Required load cases:
- idle scene
- D3-07 scene rendering with logo/snow active
- short payload: 32 bytes
- medium payload: 256 bytes
- large payload: 1024 bytes or the largest safe size before fragmentation
Process lifecycle research must be limited to prototypes and notes:
systemd-run --user --scope --property=RuntimeMaxSec=30s sleep 60
python3 - <<'PY'
import subprocess, time, os, signal
p = subprocess.Popen(['sleep','60'], start_new_session=True)
print(p.pid)
os.killpg(p.pid, signal.SIGKILL)
PY
docs/BRIDGE_TELEMETRY_BENCHMARKS.md must end with a
recommendation, but that recommendation is not an implementation. D3-09
owns architecture.