From 0de726ed481b7b99f6d6cdf8d1a3c476bf39d8ec Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 6 Jul 2026 18:18:46 -0400 Subject: [PATCH] =?UTF-8?q?test(ml):=20bump=20auto-apply=20test=20head=20n?= =?UTF-8?q?=5Fpos=20default=2030=E2=86=9260=20past=20the=20new=20floor=20(?= =?UTF-8?q?m139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stricter head_auto_apply_min_positives (30→50, migration 0081) dropped the _head helper's default n_pos=30 below the support floor, so the "supported head" sweep tests saw the head as ineligible (n_applied 0). Move the default to 60; the explicit n_pos=5 under-supported test stays correct. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01CDgx8bQS5YrGRK76v8HUnM --- tests/test_head_auto_apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_head_auto_apply.py b/tests/test_head_auto_apply.py index 91314ce..0d345e0 100644 --- a/tests/test_head_auto_apply.py +++ b/tests/test_head_auto_apply.py @@ -35,7 +35,7 @@ def _img(db, sha: str, emb) -> ImageRecord: return img -def _head(db, tag_id: int, slot: int, *, threshold=0.5, n_pos=30): +def _head(db, tag_id: int, slot: int, *, threshold=0.5, n_pos=60): s = db.execute(select(MLSettings).where(MLSettings.id == 1)).scalar_one() w = [0.0] * 1152 w[slot] = 1.0