Skip to content

Commit cf42d95

Browse files
committed
merge: update PR branch from main
2 parents d177032 + d15f570 commit cf42d95

850 files changed

Lines changed: 32775 additions & 10549 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.

‎.agents/resume‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5+
node_bin="$HOME/.local/share/openclaw-orb/node/current/bin"
6+
7+
cd "$repo_root"
8+
9+
if [[ ! -x "$node_bin/node" ]]; then
10+
echo "[orb resume] Node toolchain is missing; run .agents/setup" >&2
11+
exit 1
12+
fi
13+
14+
export PATH="$node_bin:$PATH"
15+
16+
if [[ ! -x "$node_bin/pnpm" ]]; then
17+
"$node_bin/corepack" enable --install-directory "$node_bin"
18+
fi
19+
20+
node --input-type=module -e '
21+
import { isSupportedOpenClawNodeVersion } from "./node-version.mjs";
22+
if (!isSupportedOpenClawNodeVersion(process.version)) process.exit(1);
23+
'
24+
25+
package_manager="$(node -p 'require("./package.json").packageManager')"
26+
expected_pnpm="${package_manager#pnpm@}"
27+
expected_pnpm="${expected_pnpm%%+*}"
28+
actual_pnpm="$(pnpm --version)"
29+
if [[ "$actual_pnpm" != "$expected_pnpm" ]]; then
30+
echo "[orb resume] Expected pnpm $expected_pnpm, found $actual_pnpm; run .agents/setup" >&2
31+
exit 1
32+
fi
33+
34+
printf '[orb resume] Ready: Node %s, pnpm %s\n' "$(node --version)" "$actual_pnpm"

‎.agents/setup‎

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5+
node_toolchain_root="$HOME/.local/share/openclaw-orb/node"
6+
node_bin="$node_toolchain_root/current/bin"
7+
profile_marker="# OpenClaw orb toolchain"
8+
9+
cd "$repo_root"
10+
11+
run_step() {
12+
local label="$1"
13+
shift
14+
local started_at=$SECONDS
15+
printf '[orb setup] %s\n' "$label"
16+
"$@"
17+
printf '[orb setup] %s completed in %ss\n' "$label" "$((SECONDS - started_at))"
18+
}
19+
20+
install_system_packages() {
21+
local packages=(build-essential ca-certificates cmake curl git python3 xz-utils)
22+
local missing=()
23+
local package
24+
for package in "${packages[@]}"; do
25+
if ! dpkg-query -W -f='${Status}\n' "$package" 2>/dev/null | grep -Fqx 'install ok installed'; then
26+
missing+=("$package")
27+
fi
28+
done
29+
30+
if ((${#missing[@]} == 0)); then
31+
echo "[orb setup] System packages already installed"
32+
return
33+
fi
34+
35+
if ((EUID == 0)); then
36+
apt-get update
37+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "${missing[@]}"
38+
else
39+
sudo apt-get update
40+
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "${missing[@]}"
41+
fi
42+
}
43+
44+
install_node() {
45+
if [[ -x "$node_bin/node" ]]; then
46+
export PATH="$node_bin:$PATH"
47+
fi
48+
export OPENCLAW_NODE_TOOLCHAIN_ROOT="$node_toolchain_root"
49+
# Reuse the repository's Node release-floor and download contract used by CI.
50+
# shellcheck disable=SC1091
51+
source "$repo_root/.github/actions/setup-pnpm-store-cache/ensure-node.sh"
52+
openclaw_ensure_node "24.x"
53+
54+
local node_prefix
55+
node_prefix="$(dirname "$(dirname "$(readlink -f "$(node -p 'process.execPath')")")")"
56+
mkdir -p "$node_toolchain_root"
57+
ln -sfn "$node_prefix" "$node_toolchain_root/current"
58+
export PATH="$node_bin:$PATH"
59+
}
60+
61+
install_pnpm() {
62+
local package_manager
63+
package_manager="$(node -p 'require("./package.json").packageManager')"
64+
65+
if [[ ! -x "$node_bin/corepack" ]]; then
66+
echo "[orb setup] Node toolchain does not include Corepack; remove $node_toolchain_root and rerun setup" >&2
67+
return 1
68+
fi
69+
"$node_bin/corepack" enable --install-directory "$node_bin"
70+
71+
local attempt
72+
for attempt in 1 2 3; do
73+
if COREPACK_ENABLE_DOWNLOAD_PROMPT=0 "$node_bin/corepack" prepare "$package_manager" --activate; then
74+
break
75+
fi
76+
if ((attempt == 3)); then
77+
return 1
78+
fi
79+
sleep $((attempt * 5))
80+
done
81+
82+
local expected_version="${package_manager#pnpm@}"
83+
expected_version="${expected_version%%+*}"
84+
local actual_version
85+
actual_version="$(pnpm --version)"
86+
if [[ "$actual_version" != "$expected_version" ]]; then
87+
echo "[orb setup] Expected pnpm $expected_version, found $actual_version" >&2
88+
return 1
89+
fi
90+
}
91+
92+
install_dependencies() {
93+
CI=true pnpm install \
94+
--frozen-lockfile \
95+
--prefer-offline \
96+
--ignore-scripts=false \
97+
--config.engine-strict=false \
98+
--config.enable-pre-post-scripts=true \
99+
--config.side-effects-cache=true
100+
}
101+
102+
configure_login_shell() {
103+
touch "$HOME/.bash_profile"
104+
if grep -Fqx "$profile_marker" "$HOME/.bash_profile"; then
105+
return
106+
fi
107+
108+
cat >> "$HOME/.bash_profile" <<EOF
109+
110+
$profile_marker
111+
if [[ "\${PWD}" == "$repo_root" || "\${PWD}" == "$repo_root/"* ]]; then
112+
export PATH="$node_bin:\${PATH}"
113+
fi
114+
EOF
115+
}
116+
117+
run_step "Checking system packages" install_system_packages
118+
run_step "Preparing Node 24" install_node
119+
run_step "Activating the repository pnpm version" install_pnpm
120+
run_step "Installing workspace dependencies" install_dependencies
121+
run_step "Configuring login shells" configure_login_shell
122+
123+
printf '[orb setup] Ready: Node %s, pnpm %s\n' "$(node --version)" "$(pnpm --version)"

‎.agents/skills/openclaw-live-updater/SKILL.md‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,17 @@ Load `$release-openclaw-ci` and `$openclaw-testing`. This is validation only, ne
5959

6060
```bash
6161
MAIN_SHA="<exact-main-sha>"
62-
gh workflow run full-release-validation.yml \
63-
--repo openclaw/openclaw \
64-
--ref main \
65-
-f ref="$MAIN_SHA" \
66-
-f expected_sha="$MAIN_SHA" \
62+
pnpm ci:full-release \
63+
--sha "$MAIN_SHA" \
64+
--workflow-sha "$MAIN_SHA" \
6765
-f provider=openai \
6866
-f mode=both \
6967
-f release_profile=full \
7068
-f rerun_group=all
7169
```
7270

73-
3. Watch the parent with `release-ci-summary.mjs`; require its recorded target SHA and children to match the dispatch snapshot. Fetch logs only for failed or blocking jobs. Do not cancel unrelated release checks.
74-
4. For a code or harness failure, repair and land from the Codex worktree as above. Then target new exact `main` with the narrowest supported `rerun_group` that covers the failed child; use `live_suite_filter` for one live/E2E shard. A targeted recovery run does not create a second full/all cadence dispatch.
71+
3. Let the helper watch the parent to terminal and verify its release evidence. Retain its parent URL and require the recorded target SHA and children to match the dispatch snapshot. Fetch logs only for failed or blocking jobs. Do not cancel unrelated release checks.
72+
4. For a code or harness failure, repair and land from the Codex worktree as above. Then invoke the same helper with a new frozen exact-main tuple and the narrowest supported `rerun_group` that covers the failed child; use `live_suite_filter` for one live/E2E shard. A targeted recovery run does not create a second full/all cadence dispatch.
7573
5. Report exact SHA, parent and child run URLs/IDs, conclusions, repairs and landed PRs, targeted reruns, and any genuine proof gap. Do not write release evidence or publish artifacts unless separately authorized.
7674

7775
## Failure Discipline

‎.github/codex/prompts/mantis-telegram-desktop-proof.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ Iterate within the three-attempt budget; all attempts remain recorded.
8787
Build `mantis-evidence.json` with
8888
`scripts/mantis/build-telegram-desktop-proof-evidence.mts` as before, using each
8989
lane's generated `telegram-user-crabbox-session-summary.json`. Edit only the
90-
human summary/expected wording. A failure or block sets `comparison.pass: false`
91-
and names the concrete product defect or missing primitive.
90+
human summary/expected wording. Name the concrete product defect or missing
91+
primitive when a lane fails or blocks; the workflow derives the outcome from
92+
trusted lane facts.
9293

9394
```bash
9495
node --import tsx scripts/mantis/build-telegram-desktop-proof-evidence.mts \

‎.github/workflows/ci.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ jobs:
8787
docs_only: ${{ steps.manifest.outputs.docs_only }}
8888
docs_changed: ${{ steps.manifest.outputs.docs_changed }}
8989
run_node: ${{ steps.manifest.outputs.run_node }}
90+
# docker-seed-e2e-contract-v1: frozen targets without this marker skip the lane.
91+
run_docker_seed_e2e: ${{ steps.manifest.outputs.run_docker_seed_e2e }}
92+
docker_seed_lanes: ${{ steps.manifest.outputs.docker_seed_lanes }}
9093
run_macos: ${{ steps.manifest.outputs.run_macos }}
9194
run_android: ${{ steps.manifest.outputs.run_android }}
9295
run_skills_python: ${{ steps.manifest.outputs.run_skills_python }}
@@ -636,6 +639,7 @@ jobs:
636639
: "";
637640
const supportsOpenClawKitTests = targetWorkflow.includes("openclawkit-tests-contract-v1");
638641
const supportsCurrentAndroidCi = targetWorkflow.includes("android-ci-contract-v2");
642+
const supportsDockerSeedE2e = targetWorkflow.includes("docker-seed-e2e-contract-v1");
639643
const useCompatibleAndroidCi = compatibilityTarget && !supportsCurrentAndroidCi;
640644
const supportsFormatCheck =
641645
targetWorkflow.split("pnpm format:check").length - 1 >= 2;
@@ -671,6 +675,13 @@ jobs:
671675
}
672676
673677
const compactPullRequest = isCanonicalRepository && eventName === "pull_request";
678+
const dockerSeedLanes =
679+
compactPullRequest &&
680+
changedPaths &&
681+
supportsDockerSeedE2e &&
682+
typeof changedNodeTestPlan.resolveChangedDockerSeedLanes === "function"
683+
? changedNodeTestPlan.resolveChangedDockerSeedLanes(changedPaths)
684+
: [];
674685
// Canonical pushes also use compact bins: 80+ single-group jobs
675686
// drain the runner pool for minutes, and per-shard check names on
676687
// main have no branch-protection consumers. Dispatch (release
@@ -808,6 +819,8 @@ jobs:
808819
docs_only: docsOnly,
809820
docs_changed: docsChanged,
810821
run_node: runNode,
822+
run_docker_seed_e2e: dockerSeedLanes.length > 0,
823+
docker_seed_lanes: dockerSeedLanes.join(" "),
811824
run_macos: runMacos,
812825
run_android: runAndroid,
813826
run_skills_python: runSkillsPython,
@@ -4060,6 +4073,33 @@ jobs:
40604073
;;
40614074
esac
40624075
4076+
docker-seed-e2e:
4077+
permissions:
4078+
contents: read
4079+
name: docker-seed-e2e
4080+
needs: [preflight]
4081+
if: needs.preflight.outputs.run_docker_seed_e2e == 'true'
4082+
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.event_name == 'pull_request' && (github.run_attempt > 1 || github.event.pull_request.head.repo.full_name != github.repository)) && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || contains(fromJSON('["OWNER","MEMBER","COLLABORATOR","CONTRIBUTOR"]'), github.event.pull_request.author_association)) && 'blacksmith-16vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
4083+
timeout-minutes: 60
4084+
steps:
4085+
- *linux_node_checkout_step
4086+
- name: Setup Node environment
4087+
uses: ./.github/actions/setup-node-env
4088+
with:
4089+
node-version: "24.x"
4090+
install-bun: "false"
4091+
dependency-cache: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'false' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false') }}
4092+
use-actions-cache: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.run_attempt > 1)) && 'true' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true') }}
4093+
4094+
- name: Run changed Docker seed owner lanes
4095+
env:
4096+
OPENCLAW_DOCKER_ALL_LANES: ${{ needs.preflight.outputs.docker_seed_lanes }}
4097+
OPENCLAW_DOCKER_ALL_LIVE_MODE: skip
4098+
OPENCLAW_DOCKER_E2E_ALLOW_UNRELEASED_CHANGELOG: "1"
4099+
OPENCLAW_DOCKER_ALL_PARALLELISM: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && github.event_name == 'pull_request' && github.run_attempt == 1 && github.event.pull_request.head.repo.full_name == github.repository && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR","CONTRIBUTOR"]'), github.event.pull_request.author_association) && 3 || 1 }}
4100+
OPENCLAW_DOCKER_ALL_TAIL_PARALLELISM: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND != 'github' && github.event_name == 'pull_request' && github.run_attempt == 1 && github.event.pull_request.head.repo.full_name == github.repository && contains(fromJSON('["OWNER","MEMBER","COLLABORATOR","CONTRIBUTOR"]'), github.event.pull_request.author_association) && 3 || 1 }}
4101+
run: pnpm test:docker:all
4102+
40634103
ci-gate:
40644104
permissions:
40654105
contents: read
@@ -4092,6 +4132,7 @@ jobs:
40924132
- macos-swift
40934133
- ios-build
40944134
- android
4135+
- docker-seed-e2e
40954136
if: ${{ always() && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
40964137
runs-on: ubuntu-24.04
40974138
timeout-minutes: 5
@@ -4128,6 +4169,7 @@ jobs:
41284169
macos-swift=${{ needs.macos-swift.result }}
41294170
ios-build=${{ needs.ios-build.result }}
41304171
android=${{ needs.android.result }}
4172+
docker-seed-e2e=${{ needs.docker-seed-e2e.result }}
41314173
run: |
41324174
set -euo pipefail
41334175

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ jobs:
223223
context_ref="${context_ref#refs/heads/}"
224224
context_ref="${context_ref#refs/tags/}"
225225
target_version="$(jq -er '.version | select(type == "string")' target/package.json)"
226+
extended_stable_line=""
226227
release_version_pattern=""
227228
expected_version=""
228229
identity_kind=""
@@ -236,7 +237,7 @@ jobs:
236237
exit 1
237238
fi
238239
elif [[ "$context_ref" =~ ^extended-stable/([0-9]{4}\.([1-9]|1[0-2])\.33)$ ]]; then
239-
expected_version="${BASH_REMATCH[1]}"
240+
extended_stable_line="${BASH_REMATCH[1]%.33}"
240241
identity_kind="extended-stable branch"
241242
elif [[ "$context_ref" =~ ^v([0-9]{4}\.([1-9]|1[0-2])\.[1-9][0-9]*(-(alpha|beta)\.[1-9][0-9]*)?)$ ]]; then
242243
expected_version="${BASH_REMATCH[1]}"
@@ -245,7 +246,14 @@ jobs:
245246
echo "target_context_ref must be a canonical OpenClaw release branch or tag." >&2
246247
exit 1
247248
fi
248-
if [[ -n "$expected_version" &&
249+
if [[ "$identity_kind" == "extended-stable branch" ]]; then
250+
if [[ ! "$target_version" =~ ^([0-9]{4}\.([1-9]|1[0-2]))\.([1-9][0-9]*)$ ]] ||
251+
[[ "${BASH_REMATCH[1]}" != "$extended_stable_line" ]] ||
252+
(( 10#${BASH_REMATCH[3]} < 33 )); then
253+
echo "Target package version ${target_version} does not belong to extended-stable branch ${context_ref}; expected a final ${extended_stable_line}.PATCH version with PATCH >= 33." >&2
254+
exit 1
255+
fi
256+
elif [[ -n "$expected_version" &&
249257
"$identity_kind" != "release branch" &&
250258
"$target_version" != "$expected_version" ]]; then
251259
echo "Target package version ${target_version} does not match ${identity_kind} ${context_ref}; expected ${expected_version}." >&2

0 commit comments

Comments
 (0)