# Runway milestone fieldtest — scenario 1: per-instrument pip honesty (#22)
#
# The task: a downstream researcher runs a real backtest on a VETTED index and
# on an UN-VETTED instrument, and must get an honest pip on the first, a clean
# REFUSAL (non-zero exit, no silent mis-scaled output) on the second.
#
# Consumer form: the canonical CLI invocation itself (aura run --real).
# Built/run via 'cargo run' so HEAD is what runs.

$ aura run --real GER40 --from 1420070400000 --to 1422748800000
{"manifest":{"commit":"0d185fb4c3d2be3002760dbb9d9a8a2ceed795e0","params":[["sma_fast",{"I64":2}],["sma_slow",{"I64":4}],["exposure_scale",{"F64":0.5}]],"window":[1420156800000000000,1422648780000000000],"seed":0,"broker":"sim-optimal(pip_size=1)"},"metrics":{"total_pips":977.3799999994587,"max_drawdown":654.9300000000931,"exposure_sign_flips":8155}}
exit=0

# ^ VETTED INDEX: broker label reports sim-optimal(pip_size=1) — the correct
#   index point, NOT the FX default 0.0001. Honest PnL.

$ aura run --real EURUSD --from 1420070400000 --to 1422748800000
{"manifest":{"commit":"0d185fb4c3d2be3002760dbb9d9a8a2ceed795e0","params":[["sma_fast",{"I64":2}],["sma_slow",{"I64":4}],["exposure_scale",{"F64":0.5}]],"window":[1420156800000000000,1422654780000000000],"seed":0,"broker":"sim-optimal(pip_size=0.0001)"},"metrics":{"total_pips":-0.8768415000001664,"max_drawdown":0.9156020000001746,"exposure_sign_flips":8503}}
exit=0

# ^ VETTED FX MAJOR: broker label reports sim-optimal(pip_size=0.0001) — the
#   correct forex pip, NOT the index point 1. total_pips=-0.8768 is FX-scaled
#   (sub-pip on this window), NOT a mis-scaled index number (~977 on GER40 above
#   over the same window). The pip promise's SECOND positive face holds: index
#   point AND forex pip both demonstrated end-to-end, each at its own scale.

$ aura run --real AAPL.US --from 1420070400000 --to 1422748800000   # un-vetted (instrument_spec -> None)
aura: no vetted pip/instrument spec for symbol 'AAPL.US' — refusing to run a real instrument with a guessed pip (add it to the instrument table)
exit=2   (stdout above is the stderr diagnostic only — no mis-scaled stdout leak)

$ aura run --real FOOBAR --from 1420070400000 --to 1422748800000   # un-vetted AND no archive
aura: no vetted pip/instrument spec for symbol 'FOOBAR' — refusing to run a real instrument with a guessed pip (add it to the instrument table)
exit=2   (pip-refusal fires at the lookup, BEFORE any data access)
