14c43474ab
Source-blind consumer run over the #271 surface: a NY first-bar- momentum Session authored purely as data and run e2e over --real US500; a LinComb{arity:3} blend binding the arity-unlocked weights with the Session period swept (4 members, reproduced 4/4 bit-identically); eight strict-form refusal probes (all exit 1, actionable prose); an args composite registered and use-spliced into a consumer (v2 propagates, ids stable, C29 doc gate holds). Findings routed: Count lexical form + asymmetry ratified into glossary/guide (follow-up commit); introspect dead-end on arg-bearing ports and the missing CostSum wiring path absorbed into #341. refs #271
20 lines
1.2 KiB
JSON
20 lines
1.2 KiB
JSON
[
|
|
{"op": "doc", "text": "consumer: splice the NY session anchor by name, go long 1.0 on the first session bar, flat otherwise"},
|
|
{"op": "source", "role": "price", "kind": "F64"},
|
|
{"op": "use", "ref": {"name": "ny_anchor"}, "name": "anchor"},
|
|
{"op": "feed", "role": "price", "into": ["anchor.price"]},
|
|
{"op": "add", "type": "EqConst", "name": "isfirst", "bind": {"target": {"I64": 1}}},
|
|
{"op": "connect", "from": "anchor.bars", "to": "isfirst.value"},
|
|
{"op": "add", "type": "Const", "name": "one", "bind": {"value": {"F64": 1.0}}},
|
|
{"op": "feed", "role": "price", "into": ["one.clock"]},
|
|
{"op": "add", "type": "Const", "name": "zero", "bind": {"value": {"F64": 0.0}}},
|
|
{"op": "feed", "role": "price", "into": ["zero.clock"]},
|
|
{"op": "add", "type": "Select", "name": "sel"},
|
|
{"op": "connect", "from": "isfirst.value", "to": "sel.cond"},
|
|
{"op": "connect", "from": "one.value", "to": "sel.then"},
|
|
{"op": "connect", "from": "zero.value", "to": "sel.otherwise"},
|
|
{"op": "add", "type": "Bias", "name": "bias", "bind": {"scale": {"F64": 1.0}}},
|
|
{"op": "connect", "from": "sel.value", "to": "bias.signal"},
|
|
{"op": "expose", "from": "bias.bias", "as": "bias"}
|
|
]
|