Skip to content

Commit 7dd1929

Browse files
committed
chore: merge main into cron read maintenance fix
* origin/main: (55 commits) test: include v2026.8.1 release navigation (#133581) fix: stop cloud work before unrelated provider inspection finishes (#133476) fix(e2e): keep delete fixture target-compatible (#133526) fix(release): detect optional target E2E capability (#133525) fix(package): publish readable dist inventory (#133549) docs: add complete v2026.8.1 maintainer change index (#133585) fix(browser): preserve contextless worker and iframe sessions (#133571) fix(voice): discover configured provider candidates (#133507) refactor(ui): simplify chat rendering and lifecycle state (#133567) test: reduce maturity fixture cleanup time (#133566) improve: speed up legacy imports and transcript replacement (#133546) docs: add draft v2026.8.1 release notes (#133557) test: guard multi-project Vitest cache ownership (#133554) fix(memory): clarify default agent scope in command help (#133560) fix(clawdock): keep credentials out of diagnostic output (#133547) refactor(ui): avoid redundant presence work in avatar lists (#133548) fix(agents): recognize internal requester completion replies (#133543) fix: prevent duplicate queued user messages in chat clients (#133542) chore(ui): refresh control ui locales (#133544) fix(beam): restart delivery when the receiver changes (#133533) ...
2 parents 5c22988 + 7504a3b commit 7dd1929

519 files changed

Lines changed: 33990 additions & 9546 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/android-release.yml‎

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,27 @@ on:
1212
required: true
1313
type: string
1414
release_publish_branch:
15-
description: Branch used by the approving OpenClaw Release Publish run
15+
description: Branch or protected tag used by the approving OpenClaw Release Publish run
16+
required: true
17+
type: string
18+
release_publish_run_attempt:
19+
description: Exact approving OpenClaw Release Publish run attempt
20+
required: true
21+
type: string
22+
release_publish_full_ref:
23+
description: Exact approving workflow full ref, including refs/heads/ or refs/tags/
24+
required: true
25+
type: string
26+
release_publish_workflow_sha:
27+
description: Frozen approving workflow commit SHA
1628
required: true
1729
type: string
1830
release_target_sha:
1931
description: Exact release tag commit resolved by OpenClaw Release Publish
2032
required: true
2133
type: string
2234
direct_release_recovery:
23-
description: Allow a completed parent run and published release for explicit backfill or recovery
35+
description: Allow a failed completed parent run for explicit backfill or recovery
2436
required: true
2537
default: false
2638
type: boolean
@@ -45,6 +57,15 @@ jobs:
4557
runs-on: ubuntu-latest
4658
timeout-minutes: 45
4759
environment: android-release
60+
env:
61+
DIRECT_RELEASE_RECOVERY: ${{ inputs.direct_release_recovery && 'true' || 'false' }}
62+
EXPECTED_WORKFLOW_BRANCH: ${{ inputs.release_publish_branch }}
63+
EXPECTED_RUN_ATTEMPT: ${{ inputs.release_publish_run_attempt }}
64+
EXPECTED_WORKFLOW_FULL_REF: ${{ inputs.release_publish_full_ref }}
65+
EXPECTED_WORKFLOW_SHA: ${{ inputs.release_publish_workflow_sha }}
66+
RELEASE_PUBLISH_RUN_ID: ${{ inputs.release_publish_run_id }}
67+
RELEASE_TAG: ${{ inputs.tag }}
68+
RELEASE_TARGET_SHA: ${{ inputs.release_target_sha }}
4869
steps:
4970
- name: Checkout release tag
5071
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -66,23 +87,13 @@ jobs:
6687
id: release_approval
6788
env:
6889
APPROVAL_PATH: ${{ runner.temp }}/android-release-approval/approval.json
69-
DIRECT_RELEASE_RECOVERY: ${{ inputs.direct_release_recovery && 'true' || 'false' }}
70-
EXPECTED_WORKFLOW_BRANCH: ${{ inputs.release_publish_branch }}
7190
GH_TOKEN: ${{ github.token }}
72-
RELEASE_PUBLISH_RUN_ID: ${{ inputs.release_publish_run_id }}
73-
RELEASE_TAG: ${{ inputs.tag }}
74-
RELEASE_TARGET_SHA: ${{ inputs.release_target_sha }}
7591
run: |
7692
set -euo pipefail
7793
if [[ ! "${RELEASE_TAG}" =~ ^v[0-9]{4}\.[1-9][0-9]*\.[1-9][0-9]*(-[1-9][0-9]*)?$ ]]; then
7894
echo "Android APK publishing requires a final or correction OpenClaw release tag: ${RELEASE_TAG}" >&2
7995
exit 1
8096
fi
81-
if [[ "${EXPECTED_WORKFLOW_BRANCH}" != "main" && ! "${EXPECTED_WORKFLOW_BRANCH}" =~ ^release/[0-9]{4}\.[1-9][0-9]*\.[1-9][0-9]*$ ]]; then
82-
echo "release_publish_branch must be main or release/YYYY.M.PATCH." >&2
83-
exit 1
84-
fi
85-
8697
expected_source_ref="refs/tags/${RELEASE_TAG}"
8798
if [[ "${GITHUB_REF}" != "${expected_source_ref}" ]]; then
8899
echo "Android publication must run from ${expected_source_ref}, got ${GITHUB_REF}." >&2
@@ -96,36 +107,11 @@ jobs:
96107
gh attestation verify "${APPROVAL_PATH}" \
97108
--repo "${GITHUB_REPOSITORY}" \
98109
--signer-workflow "${GITHUB_REPOSITORY}/.github/workflows/openclaw-release-publish.yml" \
99-
--source-ref "refs/heads/${EXPECTED_WORKFLOW_BRANCH}" \
110+
--source-ref "${EXPECTED_WORKFLOW_FULL_REF}" \
111+
--source-digest "${EXPECTED_WORKFLOW_SHA}" \
100112
--deny-self-hosted-runners
101-
run_json="$(gh run view "${RELEASE_PUBLISH_RUN_ID}" --repo "${GITHUB_REPOSITORY}" --json workflowName,headBranch,event,status,conclusion,url)"
102-
printf '%s' "${run_json}" | node scripts/validate-release-publish-approval.mjs
103-
tag_sha="$(git rev-parse "${RELEASE_TAG}^{commit}")"
104-
if [[ "${RELEASE_TARGET_SHA}" != "${tag_sha}" ]]; then
105-
echo "Release target SHA ${RELEASE_TARGET_SHA} does not match ${RELEASE_TAG} (${tag_sha})." >&2
106-
exit 1
107-
fi
108-
109-
release_json="$(gh release view "${RELEASE_TAG}" --repo "${GITHUB_REPOSITORY}" --json tagName,isDraft,isPrerelease,createdAt,assets,url)"
110-
if [[ "$(printf '%s' "${release_json}" | jq -r '.tagName')" != "${RELEASE_TAG}" ]]; then
111-
echo "GitHub release tag does not match ${RELEASE_TAG}." >&2
112-
exit 1
113-
fi
114-
if [[ "$(printf '%s' "${release_json}" | jq -r '.isPrerelease')" == "true" ]]; then
115-
echo "Android APK publishing requires a stable GitHub release." >&2
116-
exit 1
117-
fi
118-
if [[ "${DIRECT_RELEASE_RECOVERY}" != "true" && "$(printf '%s' "${release_json}" | jq -r '.isDraft')" != "true" ]]; then
119-
echo "Normal Android promotion requires the target GitHub release to remain a draft." >&2
120-
exit 1
121-
fi
122-
release_created_at="$(printf '%s' "${release_json}" | jq -er '.createdAt')"
123-
build_timestamp="$(date -u -d "${release_created_at}" +%Y-%m-%dT%H:%M:%SZ)"
113+
build_timestamp="$(node scripts/validate-release-publish-approval.mjs)"
124114
echo "build_timestamp=${build_timestamp}" >> "${GITHUB_OUTPUT}"
125-
unexpected_assets="$(printf '%s' "${release_json}" | jq -r '[.assets[]? | select(.name | startswith("OpenClaw-Android")) | .name] | join(", ")')"
126-
if [[ -n "${unexpected_assets}" ]]; then
127-
echo "Target release already contains Android assets: ${unexpected_assets}. Immutable recovery accepts them only after rebuilding identical bytes." >&2
128-
fi
129115
130116
- name: Verify release source and Android version
131117
id: release_source
@@ -351,6 +337,12 @@ jobs:
351337
fi
352338
fi
353339
340+
- name: Revalidate release approval before Android provenance
341+
env:
342+
APPROVAL_PATH: ${{ runner.temp }}/android-release-approval/approval.json
343+
GH_TOKEN: ${{ github.token }}
344+
run: node scripts/validate-release-publish-approval.mjs > /dev/null
345+
354346
- name: Attest Android APK provenance
355347
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
356348
with:
@@ -359,7 +351,7 @@ jobs:
359351
- name: Upload immutable Android release assets
360352
env:
361353
GH_TOKEN: ${{ github.token }}
362-
RELEASE_TAG: ${{ inputs.tag }}
354+
APPROVAL_PATH: ${{ runner.temp }}/android-release-approval/approval.json
363355
run: |
364356
set -euo pipefail
365357
attach_or_verify_asset() {
@@ -378,6 +370,9 @@ jobs:
378370
}
379371
return
380372
fi
373+
# Each irreversible write needs fresh authority after any awaited
374+
# asset lookup. This is a boundary recheck, not an atomic API guard.
375+
node scripts/validate-release-publish-approval.mjs > /dev/null || return 1
381376
gh release upload "${RELEASE_TAG}" "${source_path}#${asset_name}" --repo "${GITHUB_REPOSITORY}"
382377
}
383378

‎.github/workflows/full-release-validation.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ jobs:
10921092
CHILD_WORKFLOW_KIND: plugin-prerelease
10931093
PHASE: independent
10941094
TARGET_REF: ${{ inputs.ref }}
1095+
TARGET_CONTEXT_REF: ${{ inputs.target_context_ref }}
10951096
TARGET_SHA: ${{ needs.resolve_target.outputs.sha }}
10961097
CHILD_WORKFLOW_REF: ${{ github.ref_name }}
10971098
PARENT_WORKFLOW_SHA: ${{ github.sha }}
@@ -1117,6 +1118,7 @@ jobs:
11171118
CHILD_WORKFLOW_KIND: plugin-prerelease
11181119
PHASE: candidate
11191120
TARGET_REF: ${{ inputs.ref }}
1121+
TARGET_CONTEXT_REF: ${{ inputs.target_context_ref }}
11201122
TARGET_SHA: ${{ needs.resolve_target.outputs.sha }}
11211123
CHILD_WORKFLOW_REF: ${{ github.ref_name }}
11221124
PARENT_WORKFLOW_SHA: ${{ github.sha }}

‎.github/workflows/openclaw-live-and-e2e-checks-reusable.yml‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ jobs:
10651065
command: pnpm test:ui:e2e --shard=4/4
10661066
- name: Agent plugin Gateway
10671067
command: pnpm test:e2e:agent-plugin-gateway
1068+
target_script: test:e2e:agent-plugin-gateway
10681069
env:
10691070
OPENCLAW_BUILD_PRIVATE_QA: "1"
10701071
OPENCLAW_ENABLE_PRIVATE_QA_CLI: "1"
@@ -1099,7 +1100,21 @@ jobs:
10991100
env:
11001101
OPENCLAW_E2E_WORKERS: "2"
11011102
OPENCLAW_E2E_USE_PREBUILT_DIST: "1"
1102-
run: ${{ matrix.command }}
1103+
TARGET_REQUIRED_SCRIPT: ${{ matrix.target_script || '' }}
1104+
run: |
1105+
set -euo pipefail
1106+
if [[ -n "$TARGET_REQUIRED_SCRIPT" ]] && ! node -e '
1107+
const packageJson = JSON.parse(require("node:fs").readFileSync("package.json", "utf8"));
1108+
if (typeof packageJson.scripts?.[process.argv[1]] !== "string") process.exit(1);
1109+
' "$TARGET_REQUIRED_SCRIPT"; then
1110+
if [[ "$OPENCLAW_ALLOW_FROZEN_TARGET_SCENARIO_OMISSIONS" != "1" ]]; then
1111+
echo "::error::Selected target does not provide required repo E2E capability: $TARGET_REQUIRED_SCRIPT."
1112+
exit 1
1113+
fi
1114+
echo "::notice::Skipping $TARGET_REQUIRED_SCRIPT: selected target does not provide this newer repo E2E capability."
1115+
exit 0
1116+
fi
1117+
${{ matrix.command }}
11031118
11041119
validate_special_e2e:
11051120
needs: validate_selected_ref

‎.github/workflows/openclaw-release-publish.yml‎

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ on:
8484
default: true
8585
type: boolean
8686
publish_docker_only:
87-
description: Publish Docker only after independently verifying an already-published beta or extended-stable npm package
87+
description: Publish Docker only after independently verifying an already-published beta, stable, or extended-stable npm package
8888
required: true
8989
default: false
9090
type: boolean
@@ -239,11 +239,16 @@ jobs:
239239
echo "publish_docker_only requires publish_openclaw_npm=false." >&2
240240
exit 1
241241
fi
242-
if [[ "${RELEASE_NPM_DIST_TAG}" != "beta" && "${RELEASE_NPM_DIST_TAG}" != "extended-stable" ]]; then
243-
echo "publish_docker_only supports already-published beta or extended-stable releases only." >&2
242+
if [[ "${RELEASE_NPM_DIST_TAG}" != "beta" && "${RELEASE_NPM_DIST_TAG}" != "extended-stable" && "${RELEASE_NPM_DIST_TAG}" != "latest" ]]; then
243+
echo "publish_docker_only supports already-published beta, stable, or extended-stable releases only." >&2
244244
exit 1
245245
fi
246246
fi
247+
# Before checkout, admit latest only for the regular stable train (patches 1-32).
248+
if [[ "${PUBLISH_DOCKER_ONLY}" == "true" && "${RELEASE_NPM_DIST_TAG}" == "latest" && ! "${RELEASE_TAG}" =~ ^v[0-9]{4}\.([1-9]|1[0-2])\.([1-9]|[12][0-9]|3[0-2])(-[1-9][0-9]*)?$ ]]; then
249+
echo "Docker-only latest recovery requires a regular stable release tag." >&2
250+
exit 1
251+
fi
247252
if [[ "${RELEASE_NPM_DIST_TAG}" == "extended-stable" && "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
248253
echo "Extended-stable core npm publication stays on the canonical extended-stable release flow; use publish_docker_only=true only after its registry readback." >&2
249254
exit 1
@@ -1187,6 +1192,9 @@ jobs:
11871192
if: ${{ inputs.publish_openclaw_npm && !contains(inputs.tag, '-alpha.') && !contains(inputs.tag, '-beta.') }}
11881193
env:
11891194
RELEASE_PUBLISH_BRANCH: ${{ github.ref_name }}
1195+
RELEASE_PUBLISH_FULL_REF: ${{ github.ref }}
1196+
RELEASE_PUBLISH_WORKFLOW_SHA: ${{ github.workflow_sha }}
1197+
RELEASE_PUBLISH_RUN_ATTEMPT: ${{ github.run_attempt }}
11901198
RELEASE_PUBLISH_RUN_ID: ${{ github.run_id }}
11911199
RELEASE_TAG: ${{ inputs.tag }}
11921200
TARGET_SHA: ${{ needs.resolve_release_target.outputs.sha }}
@@ -1199,11 +1207,14 @@ jobs:
11991207
import { join } from "node:path";
12001208
12011209
const approval = {
1202-
version: 1,
1210+
version: 2,
12031211
repository: process.env.GITHUB_REPOSITORY,
12041212
workflow: "OpenClaw Release Publish",
12051213
parentRunId: process.env.RELEASE_PUBLISH_RUN_ID,
1214+
parentRunAttempt: Number(process.env.RELEASE_PUBLISH_RUN_ATTEMPT),
12061215
workflowBranch: process.env.RELEASE_PUBLISH_BRANCH,
1216+
workflowFullRef: process.env.RELEASE_PUBLISH_FULL_REF,
1217+
parentWorkflowSha: process.env.RELEASE_PUBLISH_WORKFLOW_SHA,
12071218
releaseTag: process.env.RELEASE_TAG,
12081219
targetSha: process.env.TARGET_SHA,
12091220
};
@@ -2147,21 +2158,22 @@ jobs:
21472158
# publish run's verified APK promotion is reused instead of
21482159
# re-running the Android child workflow.
21492160
if verify_android_release_asset_contract >/dev/null 2>&1; then
2150-
echo "- Android APK: assets already promoted and verified; skipping dispatch" >> "${GITHUB_STEP_SUMMARY}"
2161+
android_release_note="- Android APK: previously published assets verified; https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/OpenClaw-Android.apk"
2162+
echo "${android_release_note}" >> "${GITHUB_STEP_SUMMARY}"
21512163
return 0
21522164
fi
21532165
21542166
android_release_run_id="$(dispatch_workflow_at_ref "${RELEASE_TAG}" "${TARGET_SHA}" android-release.yml \
21552167
-f tag="${RELEASE_TAG}" \
21562168
-f release_publish_run_id="${GITHUB_RUN_ID}" \
2169+
-f release_publish_run_attempt="${GITHUB_RUN_ATTEMPT}" \
21572170
-f release_publish_branch="${PARENT_WORKFLOW_BRANCH}" \
2171+
-f release_publish_full_ref="${PARENT_WORKFLOW_FULL_REF}" \
2172+
-f release_publish_workflow_sha="${PARENT_WORKFLOW_SHA}" \
21582173
-f release_target_sha="${TARGET_SHA}" \
2159-
-f direct_release_recovery=false)"
2160-
# Promotion runs in a background subshell; hand the run id to the
2161-
# parent shell for the release proof links.
2162-
printf '%s' "${android_release_run_id}" > "${RUNNER_TEMP}/android-release-run-id.txt"
2163-
echo "- Android release run ID: \`${android_release_run_id}\`" >> "${GITHUB_STEP_SUMMARY}"
2164-
wait_for_run android-release.yml "${android_release_run_id}" "${TARGET_SHA}"
2174+
-f direct_release_recovery=false)" || return 1
2175+
android_release_note="- Android APK publication dispatched (completion not awaited): https://github.com/${GITHUB_REPOSITORY}/actions/runs/${android_release_run_id}"
2176+
echo "${android_release_note}" >> "${GITHUB_STEP_SUMMARY}"
21652177
}
21662178
21672179
upload_dependency_evidence_release_asset() {
@@ -2437,10 +2449,7 @@ jobs:
24372449
if [[ -n "${windows_node_run_id// }" ]]; then
24382450
windows_line="- Windows Hub promotion: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${windows_node_run_id} from openclaw/openclaw-windows-node@${WINDOWS_NODE_TAG}"
24392451
fi
2440-
android_line=""
2441-
if [[ -n "${android_release_run_id// }" ]]; then
2442-
android_line="- Android APK: https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/OpenClaw-Android.apk (https://github.com/${GITHUB_REPOSITORY}/actions/runs/${android_release_run_id})"
2443-
fi
2452+
android_line="${android_release_note}"
24442453
proof_label="full release validation"
24452454
proof_run_id="${FULL_RELEASE_VALIDATION_RUN_ID}"
24462455
if [[ "${RELEASE_EVIDENCE_MODE}" == "authorized-beta-focused-v1" ]]; then
@@ -2531,7 +2540,7 @@ jobs:
25312540
echo "- OpenClaw npm publish: skipped by input"
25322541
fi
25332542
if is_android_release && [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
2534-
echo "- Android APK: promoted concurrently with the OpenClaw npm publish; required before the GitHub release can be published"
2543+
echo "- Android APK: dispatched alongside the OpenClaw npm publish; monitor and approve its run separately, completion does not block core publication"
25352544
fi
25362545
if is_stable_release && [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
25372546
echo "- Windows Hub promotion: promoted concurrently with the OpenClaw npm publish; required before the GitHub release can be published"
@@ -2709,22 +2718,18 @@ jobs:
27092718
openclaw_pid="${wait_run_pid}"
27102719
fi
27112720
2712-
# Windows/Android promotion only needs the draft release page, so it
2713-
# runs concurrently with the core npm publish instead of after it.
2714-
android_promote_result=""
2715-
android_promote_pid=""
2721+
# Android owns its terminal publication independently. Windows remains
2722+
# a required core release gate and is joined below.
2723+
android_release_run_id=""
2724+
android_release_note=""
27162725
windows_promote_result=""
27172726
windows_promote_pid=""
27182727
if [[ "${PUBLISH_OPENCLAW_NPM}" == "true" ]]; then
2719-
android_promote_result="$RUNNER_TEMP/android-promote-result.txt"
2720-
(
2721-
if promote_android_release_asset; then
2722-
echo "success" > "${android_promote_result}"
2723-
else
2724-
echo "failed" > "${android_promote_result}"
2725-
fi
2726-
) &
2727-
android_promote_pid=$!
2728+
if ! promote_android_release_asset; then
2729+
android_release_note="- Android APK publication dispatch could not be confirmed; inspect Android Release runs before retrying."
2730+
echo "::warning::Android publication dispatch could not be confirmed; core publication will continue."
2731+
echo "${android_release_note}" >> "${GITHUB_STEP_SUMMARY}"
2732+
fi
27282733
windows_promote_result="$RUNNER_TEMP/windows-promote-result.txt"
27292734
(
27302735
if promote_windows_release_assets; then
@@ -2765,20 +2770,13 @@ jobs:
27652770
clawhub_failed=1
27662771
fi
27672772
2768-
if [[ -n "${android_promote_pid}" ]]; then
2769-
wait "${android_promote_pid}" || true
2770-
if [[ ! -f "${android_promote_result}" || "$(cat "${android_promote_result}")" != "success" ]]; then
2771-
failed=1
2772-
fi
2773-
fi
27742773
if [[ -n "${windows_promote_pid}" ]]; then
27752774
wait "${windows_promote_pid}" || true
27762775
if [[ ! -f "${windows_promote_result}" || "$(cat "${windows_promote_result}")" != "success" ]]; then
27772776
failed=1
27782777
fi
27792778
fi
27802779
windows_node_run_id="$(cat "${RUNNER_TEMP}/windows-node-run-id.txt" 2>/dev/null || true)"
2781-
android_release_run_id="$(cat "${RUNNER_TEMP}/android-release-run-id.txt" 2>/dev/null || true)"
27822780
27832781
if [[ ( -n "${openclaw_npm_run_id}" && "${openclaw_failed}" == "0" ) || "${openclaw_npm_already_published}" == "true" ]]; then
27842782
# Only a ClawHub failure skips ClawHub verification; unrelated

0 commit comments

Comments
 (0)