From 4bfef7fb3c38e691e10246d1d19b7845088e58bb Mon Sep 17 00:00:00 2001 From: wassname <1103714+wassname@users.noreply.github.com> Date: Thu, 17 Sep 2026 19:18:25 +0800 Subject: [PATCH] Account for discarded WVS experiment spend Co-Authored-By: PI[gpt-5.6-terra] <288921227+claudypoo@users.noreply.github.com> --- scripts/wvs_score_all_options_refresh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/wvs_score_all_options_refresh.py b/scripts/wvs_score_all_options_refresh.py index 1ca71cc..c56b5e7 100644 --- a/scripts/wvs_score_all_options_refresh.py +++ b/scripts/wvs_score_all_options_refresh.py @@ -22,6 +22,7 @@ LOCK = OUT / "budget.lock" GLOBAL_STOP_USD = Decimal("80") # Includes the discarded pick-one-option spend. It remains spending under the USD 80 cap. PRIOR_OBSERVED_USD = Decimal("5.34309727235") +DENSE_BASELINE_USD = Decimal("3.5908606723") OSS_PROVIDER = { "allow_fallbacks": True, "require_parameters": True, @@ -140,7 +141,7 @@ def rated_cost() -> Decimal: def reserve(row: dict) -> bool: with budget_state() as state: held = sum(Decimal(value["reserve_usd"]) for value in state["reservations"].values()) - observed = max(PRIOR_OBSERVED_USD, rated_cost()) + observed = PRIOR_OBSERVED_USD + max(Decimal(), rated_cost() - DENSE_BASELINE_USD) required = Decimal(row["reserve_usd"]) if observed + held + required >= GLOBAL_STOP_USD: print(f"stop: observed={observed} held={held} required={required} cap={GLOBAL_STOP_USD}")