fix(agent): cast evidence health for durable gate
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m41s
CD Pipeline / build-and-deploy (push) Successful in 5m6s
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
ogt
2026-07-10 21:33:17 +08:00
parent 49bc1a2845
commit ea4d78088f
2 changed files with 43 additions and 1 deletions

View File

@@ -193,7 +193,9 @@ async def verify_ansible_candidate_pre_decision_evidence(
AND NULLIF(recent_logs, '') IS NOT NULL
AND EXISTS (
SELECT 1
FROM jsonb_each(coalesce(mcp_health, '{}'::jsonb)) health
FROM jsonb_each(
coalesce(CAST(mcp_health AS jsonb), '{}'::jsonb)
) health
WHERE health.value = 'true'::jsonb
)
)