You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
O3: fail closed on missing broker evidence once SUPPLY-B broker reconciliation lands #10
build_fuse_validated_inputs() in src/shadow/fuse_adapter.py fills in missing broker observations with modelled values:
Field
Substituted value
broker_position
q_pre
broker_value
modelled position value
broker_cash
bankroll
positions_cash
bankroll
As a result, the vendored evaluate_O3() reconciles the model against itself and returns NORMAL.
This is intentional for Stage N. SH-2 has no broker connections, so no mode has independent broker evidence, including the production forward clock. Failing closed now would HALT every CLK-01 run.
Because of that, O3 NORMAL in Stage N is a model self-reconciliation, not reconciliation evidence. A code comment at the substitution site documents this (#9).
Required change
Once SUPPLY-B delivers independent broker reconciliation evidence:
When broker_position, broker_value, broker_cash or positions_cash are missing, pass them through as missing so evaluate_O3() returns HALT / missing_input. Stop substituting them.
Add regression tests showing a missing broker observation halts O3.
Review any ledger, demo or acceptance fixtures that rely on the substitution.
Activity