feat(playbook): version generated playbooks
All checks were successful
CD Pipeline / tests (push) Successful in 1m34s
Code Review / ai-code-review (push) Successful in 28s
Type Sync Check / check-type-sync (push) Successful in 1m10s
CD Pipeline / build-and-deploy (push) Successful in 10m19s
CD Pipeline / post-deploy-checks (push) Successful in 3m1s
All checks were successful
CD Pipeline / tests (push) Successful in 1m34s
Code Review / ai-code-review (push) Successful in 28s
Type Sync Check / check-type-sync (push) Successful in 1m10s
CD Pipeline / build-and-deploy (push) Successful in 10m19s
CD Pipeline / post-deploy-checks (push) Successful in 3m1s
This commit is contained in:
@@ -197,6 +197,10 @@ class Playbook(BaseModel):
|
||||
default_factory=list,
|
||||
description="萃取來源的 Incident ID",
|
||||
)
|
||||
version: int = Field(default=1, ge=1, description="Playbook lineage version")
|
||||
parent_playbook_id: str | None = Field(None, description="Root Playbook ID for this lineage")
|
||||
supersedes_playbook_id: str | None = Field(None, description="Previous Playbook version superseded by this one")
|
||||
version_reason: str | None = Field(None, description="Why this version was created")
|
||||
ai_confidence: float = Field(
|
||||
default=0.0,
|
||||
ge=0.0,
|
||||
@@ -234,6 +238,10 @@ class Playbook(BaseModel):
|
||||
default=False,
|
||||
description="執行前是否需要 Pre-flight 備份檢查",
|
||||
)
|
||||
review_required: bool = Field(
|
||||
default=False,
|
||||
description="KM/治理累積觸發人工或 AI 複審信號",
|
||||
)
|
||||
|
||||
# === 時間軸 ===
|
||||
created_at: datetime = Field(default_factory=now_taipei)
|
||||
|
||||
Reference in New Issue
Block a user