feat(sre): enforce typed controlled automation
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 2m38s
CD Pipeline / build-and-deploy (push) Failing after 24m19s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
ogt
2026-07-16 17:32:01 +08:00
parent dfec0c9f7f
commit 541a32a9cb
130 changed files with 14849 additions and 1738 deletions

View File

@@ -486,6 +486,20 @@ class Settings(BaseSettings):
le=3600,
description="Gemini failed generation work-item cooldown seconds",
)
GEMINI_EXECUTION_MODE: str = Field(
default="shadow",
pattern="^(shadow|canary|production)$",
description=(
"Gemini route mode: shadow performs no API call; canary uses a "
"deterministic run bucket; production enables the final fallback"
),
)
GEMINI_CANARY_PERCENT: int = Field(
default=0,
ge=0,
le=100,
description="Deterministic Gemini canary percentage when mode=canary",
)
CLAUDE_MODEL: str = Field(
default="claude-sonnet-5",
min_length=1,