From e6be1beb22521f14ae1915755e05a17ee16621a0 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 27 Apr 2026 00:24:33 +0700 Subject: [PATCH] refactor(folio-spec): export login as setup, remove from action pool Login is deterministic and yields no actions once the app is past the login screen; sitting at weight 50 in the action pool wasted half of step picks on a no-op. Promote it to setup so the runner only consults it while it has work to do, and rebalance remaining weights to round numbers (addAccount 50, addTxn 40, back 10). --- examples/folio/sanderling/spec.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/folio/sanderling/spec.ts b/examples/folio/sanderling/spec.ts index 42634ad..d08f056 100644 --- a/examples/folio/sanderling/spec.ts +++ b/examples/folio/sanderling/spec.ts @@ -175,12 +175,14 @@ export const properties = { newTxnChangesBalance, }; +export const setup = login; + export const actionsRoot = weighted( - [50, login], - [30, addAccount], - [30, addTxn], - [5, back], + [50, addAccount], + [40, addTxn], + [10, back], ); -(globalThis as { actions?: unknown; properties?: unknown }).actions = actionsRoot; +(globalThis as { actions?: unknown; properties?: unknown; setup?: unknown }).actions = actionsRoot; (globalThis as { properties?: unknown }).properties = properties; +(globalThis as { setup?: unknown }).setup = setup;