Turn two State Hub sync failures into clean outcomes.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Multi-Context Image / build-and-push (push) Successful in 31s

An over-long blocked_on now returns a 422 instead of a 500, and decided decision records such as 'approved' map onto the hub's made type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 57383@bnt-lap001
Assistant-Session: ef71febe-2a37-4c34-a979-2508ca973c91
This commit is contained in:
tegwick 2026-10-06 11:16:00 +02:00
parent 2b5d8f90f8
commit 7d992821fb
5 changed files with 79 additions and 4 deletions

View file

@ -0,0 +1,10 @@
import pytest
from pydantic import ValidationError
from api.schemas.task import TaskUpdate
def test_blocked_on_longer_than_column_is_rejected_not_a_500():
TaskUpdate(blocked_on="x" * 200)
with pytest.raises(ValidationError, match="blocked_on"):
TaskUpdate(blocked_on="x" * 201)