Skip to content

O3: fail closed on missing broker evidence once SUPPLY-B broker reconciliation lands #10

Backlog

Description

@Pigbibi

Follow-up from the Codex review on #9: #9 (comment)

Current behaviour (Stage N / SH-2)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions