Reference / Trade execution

The mapping this record accepts and its neighbours do not

One record on this side asks for a mapping of any kind where two of its neighbours ask for a dictionary and turn back anything else.

Contents

The two rules

The configuration's per-strategy caps are refused unless what was handed in is a mapping — any object that behaves as one will do.

A predictor's signal and a strategy's settings are refused unless what was handed in is a dictionary. A mapping built on something else is turned back.

What the difference lets through

A mapping that is not a dictionary reaches the configuration and is turned back by the other two. Running all three with such a mapping shows it: the configuration takes it and normalises it, and each of the other two refuses it by name.

So the same intent is written two ways on one side, and which objects a caller may hand over depends on which record it is handing them to.

Source evidence
---
row: N17-02
baseline: 49aa659
created: 2026-11-08 10:35 UTC
modified: 2026-11-08 10:35 UTC
evidence:
  - claim: "The per-strategy caps are refused unless what was handed in is a mapping of any kind"
    source: "`nexus/instance_config.py` 145-150"
  - claim: "A predictor's signal is refused unless what was handed in for its values is a dictionary, and a mapping that is not one is turned back"
    source: "`nexus/strategy/signal.py` 36-38"
  - claim: "A strategy's settings are refused on the same terms as the signal's values"
    source: "`nexus/strategy/params.py` 27-29"
---

Edit this sourceCheckout revision · 7381aa49
Reference / keep your place
Find a passage