Merge remote-tracking branch 'gitea/main' into codex/delivery-workbench-release-20260626-ffsync

This commit is contained in:
ogt
2026-06-26 23:57:36 +08:00
6 changed files with 127 additions and 3 deletions

View File

@@ -5973,9 +5973,15 @@ def _repair_candidate_promotion_summary(contract: Mapping[str, Any]) -> str:
total = _safe_int(contract.get("total_count"))
blocked = _safe_int(contract.get("blocked_count"))
status_value = str(contract.get("status") or "unknown")
runtime_state = (
"controlled"
if contract.get("runtime_execution_authorized") is True
or contract.get("runtime_write_allowed") is True
else "false"
)
return (
f"route={route}; promotion={ready}/{total}; "
f"blocked={blocked}; status={status_value}; runtime=false"
f"blocked={blocked}; status={status_value}; runtime={runtime_state}"
)

View File

@@ -867,9 +867,15 @@ class RepairCandidateService:
total = int(contract.get("total_count") or 0)
blocked = int(contract.get("blocked_count") or 0)
status = str(contract.get("status") or "unknown")
runtime_state = (
"controlled"
if contract.get("runtime_execution_authorized") is True
or contract.get("runtime_write_allowed") is True
else "false"
)
return (
f"route={route}; promotion={ready}/{total}; "
f"blocked={blocked}; status={status}; runtime=false"
f"blocked={blocked}; status={status}; runtime={runtime_state}"
)
def _draft_summary_for_operator(self, template: dict[str, Any]) -> str: