fix(km): expose degraded readback reason
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m25s
CD Pipeline / build-and-deploy (push) Successful in 5m0s
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Failing after 1m48s
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
ogt
2026-07-09 18:10:20 +08:00
parent 57046c9360
commit 2997e2d9ca
3 changed files with 55 additions and 4 deletions

View File

@@ -22,7 +22,6 @@ from pydantic import BaseModel, Field
from src.utils.timezone import now_taipei
# =============================================================================
# Enums
# =============================================================================
@@ -135,6 +134,8 @@ class KnowledgeListResponse(BaseModel):
categories: list[CategoryCount] = Field(default_factory=list)
asset_taxonomy: list[KnowledgeAssetTaxonomyCount] = Field(default_factory=list)
readback_status: str = "ready"
primary_readback_ready: bool = True
degraded_reason_code: str | None = None
operator_stage: str | None = None
next_step: str | None = None
writes_on_read: bool = False