Skip to content

Commit 1d010d5

Browse files
committed
Merge remote-tracking branch 'origin/main' into HEAD
2 parents c8d207d + 8f8895c commit 1d010d5

559 files changed

Lines changed: 21196 additions & 5712 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/skills/openclaw-pr-maintainer/SKILL.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ gh search issues --repo openclaw/openclaw --match title,body --limit 50 \
355355
or release-generation mechanics, not a correctness finding.
356356
- If bot review conversations exist on your PR, address them and resolve them yourself once fixed.
357357
- Leave a review conversation unresolved only when reviewer or maintainer judgment is still needed.
358-
- Interpret CODEOWNERS as ownership routing, not an automatic independent-approval gate. Before calling an owner review missing, resolve the authenticated GitHub writer and check whether that login is an active member/maintainer of every matched owner team (or is the directly listed owner). An owner-authored change plus the lead's completed review satisfies a plain "owner ask/review" requirement. A pending team review request, empty `reviewDecision`, or `mergeStateStatus=UNSTABLE` alone does not prove that a second party is required.
359-
- Require independent approval only when an explicit source says so: branch/ruleset protection, a SHA-bound dependency/security guard, a named security policy, or the user's instruction. The dependency and security-sensitive guards already classify a PR author who is a repository admin or active secops member as trusted; do not invent an additional self-approval requirement after those exact-head checks pass. If an explicit independent gate really remains and the author cannot self-approve, state the distinction once and ask whether to wait or use an available maintainer/admin override—never create a repetitive polling loop.
358+
- Separate repository authorization from GitHub merge enforcement. `CODEOWNERS` routes review requests; a pending request or zero submitted reviews does not prove that approval is mandatory. Restricted/security paths require listed-owner authorship, review, or direction. For governance changes to ownership/review policy itself, explicit direction from an organization owner also satisfies repository policy only when live `GET /orgs/{org}/memberships/{username}` evidence shows `state: active` and `role: admin`. Repository `ADMIN`, `viewerCanAdminister`, and bypass permission do not establish organization ownership. Neither route waives a live GitHub-enforced review rule.
359+
- Before reporting a mandatory approval blocker, inspect live branch protection and every matching ruleset, the PR review decision/requests, and the authenticated actor's permission and bypass state. If using the organization-owner governance route, record the live organization-membership result separately. Name the exact enforced rule and whether it is satisfied. Bypass state is evidence about the likely server outcome, never authorization. If no review rule is enforced, do not stop before native prepare/merge solely because a requested team has not reviewed.
360+
- Explicit user direction resolves this repository-policy question only from the applicable listed owner or through the verified organization-owner governance route; it cannot override server enforcement. If GitHub requires an independent approval and it remains unsatisfied, stop with the exact blocker even when the actor has bypass permission. Otherwise continue through the native landing flow and let its verified merge command exercise the live rule.
360361
- Before landing any PR with non-trivial code changes, run fresh `$autoreview` until no accepted/actionable findings remain; prior CI, ClawSweeper, or manual review is not a substitute. Skip only for truly trivial/docs-only changes or when the user explicitly opts out.
361362
- When an agent is landing or merging a PR targeting `main`, use only the repo-native `scripts/pr` wrapper: run `scripts/pr review-init <PR>`, follow its emitted checkout/guard guidance, initialize and complete review artifacts with `scripts/pr review-artifacts-init <PR>`, validate them with `scripts/pr review-validate-artifacts <PR>`, then run `OPENCLAW_TESTBOX=1 scripts/pr prepare-run <PR>` and `scripts/pr merge-run <PR>`. The Testbox flag is mandatory for agents: it verifies hosted CI/Testbox on the current head or reuses a patch-identical pre-rebase run green within 24 hours instead of running full `pnpm` gates locally. `prepare-run` fails fast; invoke only after exact-head CI is complete and green, and do not idle on `auto-response` or `check-docs`. For owner-approved reviewed fork code without hosted Testbox, use `OPENCLAW_PR_GATES_REMOTE=testbox` instead. Do not rebase only because `main` advanced; behind-main drift is advisory unless strict drift is explicitly enabled, while GitHub still blocks conflicts.
362363
- `scripts/pr` gotchas: subcommands require a PR number (no subcommand `--help` placeholder). Artifacts preserve template enum values with evidence detail in summaries; validate before prepare, from PR-head mode (moving main invalidates the main-baseline guard). Review flow: checkout main baseline, then PR, before artifact validation. After every PR push, rerun `scripts/pr review-init`; checkout alone leaves a stale guard SHA. Locally unset `GITHUB_TOKEN`, `GH_TOKEN`, `HOMEBREW_GITHUB_API_TOKEN`; ambient tokens can select an exhausted or wrong identity. Review JSON: land-ready recommendation `READY FOR /prepare-pr`, `issueValidation.status=valid`; never `APPROVE`. After `scripts/pr merge-run` removes its worktree, `cd` to a persistent repo before follow-up commands.

‎.agents/skills/openclaw-testing/SKILL.md‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,12 @@ editing. Only a confirmed product failure changes the Code SHA. Use one
366366
diagnosis, one fix when needed, and one narrow retry with
367367
`-f rerun_group=<group>`, then reassess.
368368
Supported umbrella groups are `all`, `ci`, `plugin-prerelease`,
369-
`release-checks`, `install-smoke`, `cross-os`, `live-e2e`, `package`, `qa`,
370-
`qa-parity`, `qa-live`, and `npm-telegram`. Use the narrowest group that covers
371-
the failed box. Do not automatically dispatch `all` after a narrow retry. For a
372-
single failed live/E2E shard, use
369+
`install-smoke`, `cross-os`, `live-e2e`, `package`, `qa-parity`, `qa-live`,
370+
`npm-telegram`, and `performance`. The old `release-checks` aggregate retry
371+
handle is invalid because it silently selected every release-check lane. `qa`
372+
is a direct-child manual aggregate, not an umbrella/controller retry API. Use
373+
the narrowest concrete group that covers the failed box. Do not automatically
374+
dispatch `all` after a narrow retry. For a single failed live/E2E shard, use
373375
`-f rerun_group=live-e2e -f live_suite_filter=<suite_id>` so the Blacksmith
374376
workflow only spends setup and queue time on that suite.
375377

@@ -426,11 +428,16 @@ gh workflow run openclaw-release-checks.yml \
426428
-f provider=openai \
427429
-f mode=both \
428430
-f release_profile=stable \
429-
-f rerun_group=all
431+
-f rerun_group=<concrete-group>
430432
```
431433

432-
Release-check rerun groups are `all`, `install-smoke`, `cross-os`, `live-e2e`,
433-
`package`, `qa`, `qa-parity`, and `qa-live`.
434+
Concrete release-check rerun groups are `install-smoke`, `cross-os`,
435+
`live-e2e`, `package`, `qa-parity`, and `qa-live`. Direct manual dispatch may
436+
use `qa` to aggregate parity and live QA, but controllers must select one of
437+
those two concrete groups. Reserve `all` for an intentional whole-child
438+
validation, never automatic recovery. Non-empty live or cross-OS filters must
439+
match their owning group; mismatches fail before scheduling and never widen to
440+
an unfiltered run.
434441
`OpenClaw Release Checks` uses the trusted workflow ref to resolve the selected
435442
ref once as `release-package-under-test` and passes that artifact into cross-OS
436443
release checks, release-path Docker live/E2E checks, and Package Acceptance.

‎.agents/skills/release-openclaw-ci/SKILL.md‎

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ Use this with `$release-openclaw-maintainer` and `$openclaw-testing` when a rele
1919
Tooling SHA + rerun group**. Validation SHA maps to the Code SHA for product validation or
2020
the Release SHA for changelog-only validation; it is not a third release
2121
identity. A branch or temporary ref is context and transport.
22+
- Freeze the candidate SHA/ref and Tooling SHA/ref once. Main lineage authorizes
23+
the initial Tooling SHA selection; it does not authorize replacing that
24+
tooling after `main` advances.
2225
- Apply a release firebreak after the Code SHA is frozen. Admit only confirmed
2326
product defects, package/provenance defects in the bytes to publish, security
2427
defects, or failures that make publication impossible. Queue other findings
2528
for postpublish confidence or the next beta.
2629
- Use trusted `main` workflow revisions as immutable dispatch sources. Do not
2730
adopt newer main code, repair unrelated main CI, wait for broad main health,
2831
or expand a release fix because the workflow source lives on `main`.
32+
- Once publication binds the Tooling SHA to an exact protected lightweight
33+
`release-publish/<12sha>-<provenance-run>` tag, that live tag-to-SHA mapping
34+
remains authoritative when `main` advances. The suffix records tag-creation
35+
provenance; it is not the current parent run id.
2936
- Touch `main` only for an operator-requested change or the smallest critical
3037
main-owned blocker that prevents this release and cannot be handled from the
3138
release branch. If the required main landing policy is blocked by unrelated
@@ -79,9 +86,18 @@ Use this with `$release-openclaw-maintainer` and `$openclaw-testing` when a rele
7986

8087
## Run identity and retry budget
8188

82-
Record Validation SHA, Tooling SHA, target context ref, parent run id, attempt,
83-
and phase before watching or recovering Full Release Validation. Keep Code SHA
84-
and Release SHA separately in the lifecycle ledger.
89+
Record Validation SHA, Tooling SHA/ref, target context ref, parent run id,
90+
attempt, and phase before watching or recovering Full Release Validation. Keep
91+
Code SHA and Release SHA separately in the lifecycle ledger. Record the
92+
immutable Release Publish parent receipt separately from tag provenance.
93+
94+
For the core and plugin npm mutations enforced by this foundation, re-read the
95+
exact protected lightweight tag and revalidate the exact parent run tuple
96+
immediately before each publish or dist-tag mutation. Reject a missing, moved,
97+
annotated, or wrong-SHA tag; a repository, workflow, run id, attempt, tooling
98+
identity, or parent-state mismatch; and any same-name branch. Never refresh
99+
either identity from current `main`. Treat other privileged writers as blocked
100+
until their dependent enforcement changes land.
85101

86102
- Conceptual phases map to current inputs as follows:
87103
- `beta-publish`: `release_profile=beta`, `run_release_soak=false`
@@ -96,6 +112,12 @@ and Release SHA separately in the lifecycle ledger.
96112
- Recover one failed surface with one diagnosis, one fix when needed, and one
97113
narrow retry. Then reassess the release decision. Do not automatically
98114
dispatch `rerun_group=all`.
115+
- Controller retries are `ci`, `plugin-prerelease`, `install-smoke`,
116+
`cross-os`, `live-e2e`, `package`, `qa-parity`, `qa-live`, `npm-telegram`,
117+
or `performance`. Never use the removed `release-checks` handle. `qa` is
118+
only a direct-child manual aggregate, not a controller retry API.
119+
- Filtered retries fail closed unless the filter belongs to the selected group.
120+
Never turn an empty derived filter into an unfiltered broad run.
99121
- A new all-group parent is justified only when shared orchestration changed,
100122
earlier evidence is invalid for the selected tuple, or the operator explicitly
101123
requests it. Record the invalidating event.

‎.agents/skills/release-openclaw-ci/references/release-ci-notes.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
- Classify one failed surface, make one fix when needed, and retry the narrowest
2626
failed group once. Then reassess whether to ship, explicitly waive, or block
2727
instead of creating another verification loop.
28+
- Release-check recovery uses one concrete group. The removed `release-checks`
29+
aggregate handle must never be substituted with `all`.
30+
- Controller recovery uses `qa-parity` or `qa-live`; `qa` is reserved for a
31+
deliberate direct-child manual aggregate. Filters that do not belong to the
32+
selected group fail closed.
2833
- Preserve successful exact-tuple evidence when the documented finalization
2934
rules allow reuse. Narrow evidence does not become publish authorization by
3035
itself, and there is no standalone rerunnable finalizer today.

‎.github/CODEOWNERS‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
# WARNING: GitHub CODEOWNERS uses last-match-wins semantics.
55
# If you add overlapping rules below the secops block, include @openclaw/openclaw-secops
6-
# on those entries too or you can silently remove required secops review.
7-
# Security-sensitive code, config, and docs require secops review.
6+
# on those entries too or you can silently remove secops review routing.
7+
# Security-sensitive code, config, and docs require secops owner involvement
8+
# under repository policy. Live branch/ruleset settings decide merge enforcement.
89
/SECURITY.md @openclaw/openclaw-secops
910
/.github/dependabot.yml @openclaw/openclaw-secops
1011
/.github/codeql/ @openclaw/openclaw-secops

0 commit comments

Comments
 (0)