# Runway milestone fieldtest — scenario 4: run-registry coherence (#73/#82)
#
# The task: a downstream researcher confirms the dead-end 'runs list'/'rank'
# surface is RETIRED (clean diagnostic, non-zero exit) while 'runs families'/
# 'runs family' still work, and the two-store Registry behaviour is discoverable
# from the public docs.
#
# Consumer form: the canonical CLI invocation itself. Built/run via 'cargo run'.

## top-level usage (note: no 'runs list', no 'runs rank')
$ aura
aura: usage: aura run [--macd] | aura run --real <SYMBOL> [--from <ms>] [--to <ms>] | aura graph | aura sweep [--name <n>] | aura mc [--name <n>] | aura walkforward [--name <n>] | aura runs families | aura runs family <id> [rank <metric>]
exit=2

## RETIRED surface — must refuse
$ aura runs list
aura: usage: aura run [--macd] | aura run --real <SYMBOL> [--from <ms>] [--to <ms>] | aura graph | aura sweep [--name <n>] | aura mc [--name <n>] | aura walkforward [--name <n>] | aura runs families | aura runs family <id> [rank <metric>]
exit=2

$ aura runs rank total_pips
aura: usage: aura run [--macd] | aura run --real <SYMBOL> [--from <ms>] [--to <ms>] | aura graph | aura sweep [--name <n>] | aura mc [--name <n>] | aura walkforward [--name <n>] | aura runs families | aura runs family <id> [rank <metric>]
exit=2

## LIVE surface — must work (after a sweep persisted family 'ft-coherence-0')
$ aura runs families
{"family_id":"ft-coherence-0","kind":"Sweep","members":4}
exit=0

$ aura runs family ft-coherence-0 rank total_pips   # (first member shown; full list in run output)
{"manifest":{"commit":"0d185fb4c3d2be3002760dbb9d9a8a2ceed795e0","params":[["signals.trend.fast.length",{"I64":2}],["signals.trend.slow.length",{"I64":4}],["signals.momentum.fast.length",{"I64":2}],["signals.momentum.slow.length",{"I64":4}],["signals.momentum.signal.length",{"I64":3}],["signals.blend.weights[0]",{"F64":1.0}],["signals.blend.weights[1]",{"F64":1.0}],["exposure.scale",{"F64":0.5}]],"window":[1,18],"seed":0,"broker":"sim-optimal(pip_size=0.0001)"},"metrics":{"total_pips":0.26428361277333234,"max_drawdown":0.15423679012344482,"exposure_sign_flips":2}}
... (3 more members) ... exit=0

## edge: a BOGUS family id
$ aura runs family nope-99
exit=0   <-- NB: empty output + exit 0, NOT a 'no such family' diagnostic (see findings)
