From 9add426a932011d40dcce3c7e53aa76a74d07884 Mon Sep 17 00:00:00 2001 From: claude Date: Thu, 16 Jul 2026 15:32:11 +0200 Subject: [PATCH] =?UTF-8?q?fieldtest:=20executor-throughput=20complex=20(#?= =?UTF-8?q?268/#276/#277)=20=E2=80=94=205=20examples,=207=20findings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Downstream-consumer fieldtest over the public surface at the close of the maximize-throughput complex: a 4-instrument campaign authored, validated, run and read back through the normal verbs; determinism probed across --parallel-instruments 1/2/4/10 and a same-K repeat (byte-identical modulo the run-counter suffix); duplicate-instrument refusal and faulted-cell isolation (exit 3, healthy cells persist) confirmed under the parallel loop. 5 working, 0 bugs, 1 friction (the zero-bound diagnostic leaks clap's NonZeroUsize wording), 1 spec_gap (gate-emptied cell exit semantics undocumented) — both resolved in the follow-up tidy. refs #277 --- .../lab/.gitignore | 1 + .../lab/Aura.toml | 4 ++++ .../lab/CLAUDE.md | 14 ++++++++++++ .../lab/blueprints/signal.json | 1 + .../p277_1_campaign_multi.json | 22 +++++++++++++++++++ .../p277_3_campaign_dup_instrument.json | 22 +++++++++++++++++++ .../p277_4_campaign_faultcell.json | 22 +++++++++++++++++++ .../p277_process_sweep_gate.json | 10 +++++++++ .../p277_strategy_smacross_open.json | 12 ++++++++++ 9 files changed, 108 insertions(+) create mode 100644 fieldtests/cycle-277-parallel-cell-loop/lab/.gitignore create mode 100644 fieldtests/cycle-277-parallel-cell-loop/lab/Aura.toml create mode 100644 fieldtests/cycle-277-parallel-cell-loop/lab/CLAUDE.md create mode 100644 fieldtests/cycle-277-parallel-cell-loop/lab/blueprints/signal.json create mode 100644 fieldtests/cycle-277-parallel-cell-loop/p277_1_campaign_multi.json create mode 100644 fieldtests/cycle-277-parallel-cell-loop/p277_3_campaign_dup_instrument.json create mode 100644 fieldtests/cycle-277-parallel-cell-loop/p277_4_campaign_faultcell.json create mode 100644 fieldtests/cycle-277-parallel-cell-loop/p277_process_sweep_gate.json create mode 100644 fieldtests/cycle-277-parallel-cell-loop/p277_strategy_smacross_open.json diff --git a/fieldtests/cycle-277-parallel-cell-loop/lab/.gitignore b/fieldtests/cycle-277-parallel-cell-loop/lab/.gitignore new file mode 100644 index 0000000..306cbf0 --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/lab/.gitignore @@ -0,0 +1 @@ +/runs diff --git a/fieldtests/cycle-277-parallel-cell-loop/lab/Aura.toml b/fieldtests/cycle-277-parallel-cell-loop/lab/Aura.toml new file mode 100644 index 0000000..d45dade --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/lab/Aura.toml @@ -0,0 +1,4 @@ +# Static project context only (C17); paths only. +[paths] +runs = "runs" +# data = "/path/to/archive" # the recorded-data root; defaults to the built-in path diff --git a/fieldtests/cycle-277-parallel-cell-loop/lab/CLAUDE.md b/fieldtests/cycle-277-parallel-cell-loop/lab/CLAUDE.md new file mode 100644 index 0000000..e314dcb --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/lab/CLAUDE.md @@ -0,0 +1,14 @@ +# lab — an aura research project (data-only) + +This directory is an aura project: blueprints + research documents over the +std vocabulary, anchored by `Aura.toml`. There is no crate and no build step. + +- Run: `aura run blueprints/signal.json` (the starter is closed — all + params bound; bound values are defaults — any `--axis` may override them + (#246)) +- Sweep: `aura sweep blueprints/signal.json --axis lab_signal.fast.length=2,4,8` + (`aura sweep --list-axes` lists the open + bound-overridable axes) +- Native nodes: when the project needs its first project-specific node, + `aura nodes new ` scaffolds a node crate beside this project and + attaches it via `[nodes]` in `Aura.toml` (build it with `cargo build`). +- Topology is data (`blueprints/*.json`); results land in `runs/`. diff --git a/fieldtests/cycle-277-parallel-cell-loop/lab/blueprints/signal.json b/fieldtests/cycle-277-parallel-cell-loop/lab/blueprints/signal.json new file mode 100644 index 0000000..bba653b --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/lab/blueprints/signal.json @@ -0,0 +1 @@ +{"format_version":1,"blueprint":{"name":"lab_signal","nodes":[{"primitive":{"type":"SMA","name":"fast","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":2}}]}},{"primitive":{"type":"SMA","name":"slow","bound":[{"pos":0,"name":"length","kind":"I64","value":{"I64":4}}]}},{"primitive":{"type":"Sub"}},{"primitive":{"type":"Bias","name":"bias","bound":[{"pos":0,"name":"scale","kind":"F64","value":{"F64":0.5}}]}}],"edges":[{"from":0,"to":2,"slot":0,"from_field":0},{"from":1,"to":2,"slot":1,"from_field":0},{"from":2,"to":3,"slot":0,"from_field":0}],"input_roles":[{"name":"price","targets":[{"node":0,"slot":0},{"node":1,"slot":0}],"source":"F64"}],"output":[{"node":3,"field":0,"name":"bias"}]}} \ No newline at end of file diff --git a/fieldtests/cycle-277-parallel-cell-loop/p277_1_campaign_multi.json b/fieldtests/cycle-277-parallel-cell-loop/p277_1_campaign_multi.json new file mode 100644 index 0000000..2d5ed2a --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/p277_1_campaign_multi.json @@ -0,0 +1,22 @@ +{ + "format_version": 1, + "kind": "campaign", + "name": "p277-four-instrument-smacross", + "seed": 42, + "data": { + "instruments": ["GER40", "FRA40", "US500", "EURUSD"], + "windows": [ { "from_ms": 1725148800000, "to_ms": 1727740800000 } ] + }, + "strategies": [ + { + "ref": { "content_id": "597d719b7ac607158cda3e68cd497387620397a5e93087e23da512876dafba9a" }, + "axes": { + "fast.length": { "kind": "I64", "values": [2, 4] }, + "slow.length": { "kind": "I64", "values": [8, 16] }, + "bias.scale": { "kind": "F64", "values": [0.5] } + } + } + ], + "process": { "ref": { "content_id": "1733ead3e5d83e4d1bee329bd0d897175b23a555becdf712bb991a942b42404a" } }, + "presentation": { "persist_taps": ["r_equity"], "emit": ["family_table", "selection_report"] } +} diff --git a/fieldtests/cycle-277-parallel-cell-loop/p277_3_campaign_dup_instrument.json b/fieldtests/cycle-277-parallel-cell-loop/p277_3_campaign_dup_instrument.json new file mode 100644 index 0000000..a002135 --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/p277_3_campaign_dup_instrument.json @@ -0,0 +1,22 @@ +{ + "format_version": 1, + "kind": "campaign", + "name": "p277-duplicate-instrument", + "seed": 42, + "data": { + "instruments": ["GER40", "FRA40", "GER40"], + "windows": [ { "from_ms": 1725148800000, "to_ms": 1727740800000 } ] + }, + "strategies": [ + { + "ref": { "content_id": "597d719b7ac607158cda3e68cd497387620397a5e93087e23da512876dafba9a" }, + "axes": { + "fast.length": { "kind": "I64", "values": [2, 4] }, + "slow.length": { "kind": "I64", "values": [8, 16] }, + "bias.scale": { "kind": "F64", "values": [0.5] } + } + } + ], + "process": { "ref": { "content_id": "1733ead3e5d83e4d1bee329bd0d897175b23a555becdf712bb991a942b42404a" } }, + "presentation": { "persist_taps": [], "emit": ["family_table", "selection_report"] } +} diff --git a/fieldtests/cycle-277-parallel-cell-loop/p277_4_campaign_faultcell.json b/fieldtests/cycle-277-parallel-cell-loop/p277_4_campaign_faultcell.json new file mode 100644 index 0000000..974ac03 --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/p277_4_campaign_faultcell.json @@ -0,0 +1,22 @@ +{ + "format_version": 1, + "kind": "campaign", + "name": "p277-fault-cell-partial-coverage", + "seed": 42, + "data": { + "instruments": ["EURUSD", "GER40"], + "windows": [ { "from_ms": 1338508800000, "to_ms": 1341100800000 } ] + }, + "strategies": [ + { + "ref": { "content_id": "597d719b7ac607158cda3e68cd497387620397a5e93087e23da512876dafba9a" }, + "axes": { + "fast.length": { "kind": "I64", "values": [2, 4] }, + "slow.length": { "kind": "I64", "values": [8, 16] }, + "bias.scale": { "kind": "F64", "values": [0.5] } + } + } + ], + "process": { "ref": { "content_id": "1733ead3e5d83e4d1bee329bd0d897175b23a555becdf712bb991a942b42404a" } }, + "presentation": { "persist_taps": [], "emit": ["family_table", "selection_report"] } +} diff --git a/fieldtests/cycle-277-parallel-cell-loop/p277_process_sweep_gate.json b/fieldtests/cycle-277-parallel-cell-loop/p277_process_sweep_gate.json new file mode 100644 index 0000000..a4761e1 --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/p277_process_sweep_gate.json @@ -0,0 +1,10 @@ +{ + "format_version": 1, + "kind": "process", + "name": "p277-sweep-gate", + "description": "Fieldtest process: rank the axis grid by sqn (deflated), then keep only members with positive expectancy_r.", + "pipeline": [ + { "block": "std::sweep", "metric": "sqn", "select": "argmax", "deflate": true }, + { "block": "std::gate", "all": [ { "metric": "expectancy_r", "cmp": "gt", "value": 0.0 } ] } + ] +} diff --git a/fieldtests/cycle-277-parallel-cell-loop/p277_strategy_smacross_open.json b/fieldtests/cycle-277-parallel-cell-loop/p277_strategy_smacross_open.json new file mode 100644 index 0000000..ccbeb1a --- /dev/null +++ b/fieldtests/cycle-277-parallel-cell-loop/p277_strategy_smacross_open.json @@ -0,0 +1,12 @@ +[ + {"op": "source", "role": "price", "kind": "F64"}, + {"op": "add", "type": "SMA", "name": "fast"}, + {"op": "add", "type": "SMA", "name": "slow"}, + {"op": "feed", "role": "price", "into": ["fast.series", "slow.series"]}, + {"op": "add", "type": "Sub", "name": "sub"}, + {"op": "connect", "from": "fast.value", "to": "sub.lhs"}, + {"op": "connect", "from": "slow.value", "to": "sub.rhs"}, + {"op": "add", "type": "Bias", "name": "bias"}, + {"op": "connect", "from": "sub.value", "to": "bias.signal"}, + {"op": "expose", "from": "bias.bias", "as": "bias"} +]