From 7daf90f41e1b295513046a3299b57b58bdc64bbf Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 7 Jun 2026 20:48:43 -0400 Subject: [PATCH] =?UTF-8?q?fix(allowlist):=20lower=20default=20auto-apply?= =?UTF-8?q?=20threshold=200.95=20=E2=86=92=200.90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Operator evidence 2026-06-07: 0.95 was too strict, skipping confident-enough auto-applications of accepted tags. Newly-accepted tags now allowlist at 0.90; existing entries keep their stored value and per-tag thresholds stay tunable in the allowlist table. No migration — min_confidence has no DB server_default, so the Python insert default governs new rows only. Co-Authored-By: Claude Opus 4.8 (1M context) --- backend/app/models/tag_allowlist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app/models/tag_allowlist.py b/backend/app/models/tag_allowlist.py index 75bd0f2..3bbbc7a 100644 --- a/backend/app/models/tag_allowlist.py +++ b/backend/app/models/tag_allowlist.py @@ -22,7 +22,11 @@ class TagAllowlist(Base): tag_id: Mapped[int] = mapped_column( ForeignKey("tag.id", ondelete="CASCADE"), primary_key=True ) - min_confidence: Mapped[float] = mapped_column(Float, nullable=False, default=0.95) + # Default auto-apply threshold for a newly-accepted tag. 0.90 (lowered from + # 0.95 on operator evidence 2026-06-07: 0.95 was too strict and skipped + # confident-enough applications). Per-tag value is still tunable in the + # allowlist table; existing rows keep whatever they were stored with. + min_confidence: Mapped[float] = mapped_column(Float, nullable=False, default=0.90) added_at: Mapped[datetime] = mapped_column( DateTime(timezone=True), nullable=False, server_default=func.now() )