fix(os): read nested execution health fields

This commit is contained in:
冰朔 2026-08-07 15:49:44 +08:00
commit d430811e77
2 changed files with 8 additions and 5 deletions

View file

@ -65,7 +65,11 @@ done
grep -Fq 'https://guanghulab.com/code/' "${acceptance}"
grep -Fq 'https://guanghulab.com/api/ai/v1/anchor' "${acceptance}"
grep -Fq '"phase" == "RUNNING_COMPANION"' "${acceptance}"
grep -Fq '"execution_substrate.state" == "PASS_100"' "${acceptance}"
grep -Fq '.execution_substrate.state == "PASS_100"' "${acceptance}"
grep -Fq '.execution_substrate.linux_role == "COOPERATIVE_EXECUTION_SUBSTRATE"' \
"${acceptance}"
grep -Fq '.execution_substrate.arbitrary_shell == false' "${acceptance}"
! grep -Fq '."execution_substrate.state"' "${acceptance}"
grep -Fq 'boot_changed: false' "${acceptance}"
grep -Fq 'install_world_version' "${installer}"

View file

@ -45,9 +45,9 @@ for _attempt in $(seq 1 30); do
if test "${services_ready}" = 1 &&
jq -e '
."phase" == "RUNNING_COMPANION"
and ."execution_substrate.state" == "PASS_100"
and ."execution_substrate.linux_role" == "COOPERATIVE_EXECUTION_SUBSTRATE"
and ."execution_substrate.arbitrary_shell" == false
and .execution_substrate.state == "PASS_100"
and .execution_substrate.linux_role == "COOPERATIVE_EXECUTION_SUBSTRATE"
and .execution_substrate.arbitrary_shell == false
' <<<"${controller_json}" >/dev/null 2>&1 &&
jq -e '
.ok == true
@ -104,4 +104,3 @@ chmod 0600 "${receipt}.tmp"
mv "${receipt}.tmp" "${receipt}"
printf 'GUANGHU_LANGUAGE_PRIMARY_BOOT_PASS_100 receipt=%s\n' "${receipt}"