From d0b4d3d4dd26644bdaf4ac08af74dff0faedbea4 Mon Sep 17 00:00:00 2001 From: weichen Date: Thu, 24 Sep 2026 11:45:54 +0000 Subject: [PATCH] =?UTF-8?q?fix(arch):=20allow=20server=E2=86=92supplementi?= =?UTF-8?q?mpact=20and=20tighten=20HTTP=20batch=20ExpiresAt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .doc/system-design/module-boundaries.yaml | 1 + internal/supplementimpact/http_adapter.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.doc/system-design/module-boundaries.yaml b/.doc/system-design/module-boundaries.yaml index c3711a3d..1c86a2c7 100644 --- a/.doc/system-design/module-boundaries.yaml +++ b/.doc/system-design/module-boundaries.yaml @@ -259,6 +259,7 @@ imports: - workflowdef - workflowscope - workspace + - supplementimpact squad: - agent - config diff --git a/internal/supplementimpact/http_adapter.go b/internal/supplementimpact/http_adapter.go index b34e7d38..39138b55 100644 --- a/internal/supplementimpact/http_adapter.go +++ b/internal/supplementimpact/http_adapter.go @@ -3,6 +3,7 @@ package supplementimpact import ( "context" "fmt" + "time" ) // HTTPBatchView is the JSON shape expected by server supplement-impact handlers. @@ -18,7 +19,7 @@ type HTTPBatchView struct { DecisionNonce string `json:"decision_nonce"` DecisionDigest string `json:"decision_digest,omitempty"` Revision int64 `json:"revision"` - ExpiresAt interface{} `json:"expires_at"` + ExpiresAt time.Time `json:"expires_at"` Items []HTTPItemView `json:"items,omitempty"` }