From 72be547b2f76a9c949cf340ddb426c3269432c77 Mon Sep 17 00:00:00 2001 From: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> Date: Tue, 3 Nov 2026 13:17:10 +0800 Subject: [PATCH] fix(presentation): expect the settled machine stride default in the smoke The replan-cadence browser smoke still required a fresh machine configuration to render stride strategy `off`. The settled capability default is `evidence_conditioned_v1`: that is what `default_replan_cadence_configuration()` returns, what `tests/capabilities/test_machine_configuration_goal_defaults.py` pins, and what the capability catalog describes as enabled by default. Because the expectation kept the earlier opt-in default, the `dashboard-browser`, `chat-bundle-browser` and `build` lanes failed on `Stride must default off` while the product behaved as intended. Require the settled strategy instead. The remaining `off` assertions in the scenario are explicit opt-outs and the legacy-migration meaning, so they stay unchanged. Validation: node --check examples/personal-workspace-browser/ replan-cadence.mjs. The browser lanes need Playwright and chromium, so the end-to-end run stays with the hosted dashboard lanes. Scope: one assertion, no product default, rendering or migration change. Signed-off-by: ChengLong GU <88359731+gcl-coder@users.noreply.github.com> --- examples/personal-workspace-browser/replan-cadence.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/personal-workspace-browser/replan-cadence.mjs b/examples/personal-workspace-browser/replan-cadence.mjs index 6fc1f43519..bf7d4ff63b 100644 --- a/examples/personal-workspace-browser/replan-cadence.mjs +++ b/examples/personal-workspace-browser/replan-cadence.mjs @@ -83,7 +83,10 @@ export const replanCadenceScenario = { const count = page.getByLabel("两次复核间的数量", { exact: true }); const strategy = page.getByLabel(/^步幅策略/); await waitForInputValue(count, "6"); - if (await strategy.inputValue() !== "off") throw new Error("Stride must default off"); + // A fresh machine configuration settles the inherited stride strategy; + // the earlier opt-in default is no longer the product default. + if (await strategy.inputValue() !== "evidence_conditioned_v1") + throw new Error("Machine stride default is not evidence-conditioned"); if (await unit.inputValue() !== "effective_turns") throw new Error("Product default is not settled work Turns"); const horizonGoal = page.getByLabel(/^在规划视野中显示 Goal/); const advanced = page.getByText("高级设置", {exact: true});