From 0583a8ffae6ea57ef6692c220e57f7afc52c8811 Mon Sep 17 00:00:00 2001 From: funman300 Date: Fri, 10 Jul 2026 14:18:35 -0700 Subject: [PATCH] test(e2e): read v4 recording.instructions in cycle regression gate The cycle regression gate still read payload.moves, which schema v4 removed in favour of recording.instructions, so every game reported replay_history_mismatch:0/N and games_with_issues tripped the --require-zero-issues gate on master (runs 587/594/596). Verified locally: 12-game gate run reports 0 issues. Co-Authored-By: Claude Fable 5 --- solitaire_server/e2e/scripts/cycle_metrics.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solitaire_server/e2e/scripts/cycle_metrics.js b/solitaire_server/e2e/scripts/cycle_metrics.js index 40d2156..ca4f4b7 100644 --- a/solitaire_server/e2e/scripts/cycle_metrics.js +++ b/solitaire_server/e2e/scripts/cycle_metrics.js @@ -206,7 +206,9 @@ async function main() { invariant_ok: !!snap?.invariants?.state_ok, history_len: Array.isArray(snap?.move_history) ? snap.move_history.length : null, replay_payload_present: payload !== null, - replay_moves_len: Array.isArray(payload?.moves) ? payload.moves.length : 0, + replay_moves_len: Array.isArray(payload?.recording?.instructions) + ? payload.recording.instructions.length + : 0, }; }, { stepCap: maxSteps, policyName: policy, maxVisits: maxVisitsPerState }); -- 2.47.3