From a3dc61a05a85e144e1210ac004106b1adfc7d45e Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Sat, 23 May 2026 17:15:23 +0200 Subject: [PATCH] fix(rl): per-fold OUT_DIR so multi-fold G8 submissions don't collide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Concurrent submissions at the same SHA (one workflow per fold_idx for the walk-forward G8 gate) would overwrite each other's eval_summary.json. Adds a /foldN suffix to the output path so the aggregator can collect 3+ distinct eval_summary.json files from /feature-cache/alpha-rl-runs//fold0,fold1,fold2/. Single-fold smokes (n_folds=1) still write to //fold0/ directly — backwards-compatible for the prior smoke pattern, just one level deeper than before. Co-Authored-By: Claude Opus 4.7 --- infra/k8s/argo/alpha-rl-template.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/infra/k8s/argo/alpha-rl-template.yaml b/infra/k8s/argo/alpha-rl-template.yaml index 7c868aad4..3c61f315c 100644 --- a/infra/k8s/argo/alpha-rl-template.yaml +++ b/infra/k8s/argo/alpha-rl-template.yaml @@ -373,7 +373,11 @@ spec: BIN="/data/bin/$SHA/alpha_rl_train" MBP10_DIR="/data/futures-baseline-mbp10/ES.FUT" PREDECODED_DIR="/feature-cache/predecoded" - OUT_DIR="/feature-cache/alpha-rl-runs/$SHA" + # Per-fold output dir so concurrent multi-fold G8 submissions + # don't clobber each other's eval_summary.json. Single-fold + # smokes (n_folds=1) still land under the SHA dir directly + # since fold_idx=0 → suffix "fold0". + OUT_DIR="/feature-cache/alpha-rl-runs/$SHA/fold{{workflow.parameters.fold-idx}}" mkdir -p "$OUT_DIR" "$PREDECODED_DIR" if [ ! -x "$BIN" ]; then