Skip to content

Commit d7ffc70

Browse files
Merge branch 'main' into aiden/fix-profile-identity-sync
2 parents 1e4fd73 + ed760cb commit d7ffc70

67 files changed

Lines changed: 2944 additions & 864 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-changelog-update/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ every human `Thanks @...` attribution.
5959
--write-ledger
6060
```
6161

62+
Add repeatable `--release-provenance '<40sha> -> #PR[, #PR]'` inputs when
63+
release commits cannot carry provenance metadata. These use the same exact
64+
marker grammar and current-main validation as commit-body markers.
65+
6266
The verifier automatically reuses public GitHub GraphQL responses from an
6367
exact base/target SHA snapshot under the worktree's git metadata. Iterative
6468
rewrites at the same target avoid repeated network discovery. Use

‎.agents/skills/openclaw-changelog-update/scripts/verify-release-notes.mjs‎

Lines changed: 48 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,19 @@ Options:
9696
--main-ref <ref> Canonical mainline used to replace backport PRs.
9797
--seed-ref <ref> Use an existing release section as editorial input.
9898
--shipped-ref <tag> Exclude PRs already recorded by this shipped tag; repeatable.
99+
--release-provenance <sha -> #PR[, #PR]>
100+
Supply an exact provenance marker; repeatable.
99101
--write-ledger Write the verified ledger back into CHANGELOG.md.
100102
--release-tag <tag> GitHub release tag to compare; repeatable with --check-github.
101103
--check-github Require each supplied GitHub release body to match.
102104
--json Emit machine-readable verification output.
103105
--help Show this help text.`);
104106
}
105107

106-
function parseArgs(argv) {
108+
export function parseArgs(argv) {
107109
const options = {
108110
releaseTags: [],
111+
releaseProvenance: [],
109112
checkGithub: false,
110113
help: false,
111114
json: false,
@@ -150,6 +153,7 @@ function parseArgs(argv) {
150153
arg === "--target" ||
151154
arg === "--version" ||
152155
arg === "--release-tag" ||
156+
arg === "--release-provenance" ||
153157
arg === "--shipped-ref" ||
154158
arg === "--github-snapshot" ||
155159
arg === "--main-ref" ||
@@ -162,6 +166,8 @@ function parseArgs(argv) {
162166
}
163167
if (arg === "--release-tag") {
164168
options.releaseTags.push(value);
169+
} else if (arg === "--release-provenance") {
170+
options.releaseProvenance.push(value);
165171
} else if (arg === "--shipped-ref") {
166172
options.shippedRefs.push(value);
167173
} else if (arg === "--manifest") {
@@ -851,38 +857,47 @@ function backportPullRequestOrigins(message) {
851857
].map((match) => Number(match[1]));
852858
}
853859

854-
export function releaseProvenanceMarkers(message) {
855-
const markers = [];
856-
for (const line of message.split("\n")) {
857-
if (!/^Release provenance:/i.test(line)) {
858-
continue;
859-
}
860-
const match = line.match(/^Release provenance: ([0-9a-f]{40}) -> (#\d+(?:,\s*#\d+)*)\.?\s*$/i);
861-
if (!match) {
862-
fail(`invalid release provenance marker: ${line}`);
863-
}
864-
markers.push({
865-
commit: match[1].toLowerCase(),
866-
pullRequests: [...match[2].matchAll(/#(\d+)/g)].map((reference) => Number(reference[1])),
867-
});
860+
function releaseProvenanceMarker(line) {
861+
const match = line.match(/^Release provenance: ([0-9a-f]{40}) -> (#\d+(?:,\s*#\d+)*)\.?\s*$/i);
862+
if (!match) {
863+
fail(`invalid release provenance marker: ${line}`);
868864
}
869-
return markers;
865+
return {
866+
commit: match[1].toLowerCase(),
867+
pullRequests: [...match[2].matchAll(/#(\d+)/g)].map((reference) => Number(reference[1])),
868+
};
869+
}
870+
871+
export function releaseProvenanceMarkers(message) {
872+
return message
873+
.split("\n")
874+
.filter((line) => /^Release provenance:/i.test(line))
875+
.map(releaseProvenanceMarker);
870876
}
871877

872-
export function collectReleaseProvenanceOverrides(activeCommits) {
878+
export function collectReleaseProvenanceOverrides(activeCommits, releaseProvenance = []) {
873879
const activeCommitHashes = new Set(activeCommits.map((commit) => commit.hash));
874880
const overrides = new Map();
881+
const addMarker = (marker) => {
882+
if (!activeCommitHashes.has(marker.commit)) {
883+
fail(`release provenance marker targets commit outside the active range: ${marker.commit}`);
884+
}
885+
const existing = overrides.get(marker.commit);
886+
if (existing && existing.join(",") !== marker.pullRequests.join(",")) {
887+
fail(`conflicting release provenance markers for ${marker.commit}`);
888+
}
889+
overrides.set(marker.commit, marker.pullRequests);
890+
};
875891
for (const commit of activeCommits) {
876892
for (const marker of releaseProvenanceMarkers(commit.body)) {
877-
if (!activeCommitHashes.has(marker.commit)) {
878-
fail(`release provenance marker targets commit outside the active range: ${marker.commit}`);
879-
}
880-
const existing = overrides.get(marker.commit);
881-
if (existing && existing.join(",") !== marker.pullRequests.join(",")) {
882-
fail(`conflicting release provenance markers for ${marker.commit}`);
883-
}
884-
overrides.set(marker.commit, marker.pullRequests);
893+
addMarker(marker);
894+
}
895+
}
896+
for (const value of releaseProvenance) {
897+
if (/[\r\n]/u.test(value)) {
898+
fail(`invalid release provenance marker: Release provenance: ${value}`);
885899
}
900+
addMarker(releaseProvenanceMarker(`Release provenance: ${value}`));
886901
}
887902
return overrides;
888903
}
@@ -1017,7 +1032,7 @@ function canonicalMainCommits(base, mainRef) {
10171032
return commits;
10181033
}
10191034

1020-
function sourceCommits(base, target, mainRef) {
1035+
function sourceCommits(base, target, mainRef, releaseProvenance = []) {
10211036
const targetCommit = git(["rev-parse", `${target}^{commit}`]);
10221037
if (!gitIsAncestor(base, targetCommit)) {
10231038
fail(`release range base ${base} must be an ancestor of target ${target}`);
@@ -1193,7 +1208,7 @@ function sourceCommits(base, target, mainRef) {
11931208
activeCommits.map((commit) => commit.hash),
11941209
targetTimestamp,
11951210
);
1196-
const provenanceOverrides = collectReleaseProvenanceOverrides(activeCommits);
1211+
const provenanceOverrides = collectReleaseProvenanceOverrides(activeCommits, releaseProvenance);
11971212
const mainCommits = canonicalMainCommits(base, mainRef);
11981213
const mainCommit = provenanceOverrides.size > 0 ? gitCommit(mainRef, true) : undefined;
11991214
const mainCommitsByHash = new Map(mainCommits.map((commit) => [commit.hash, commit]));
@@ -2412,7 +2427,12 @@ function main() {
24122427
githubSnapshotState = initializeGithubSnapshot(options);
24132428
const changelog = readFileSync("CHANGELOG.md", "utf8");
24142429
const section = sectionFor(changelog, options.version);
2415-
const source = sourceCommits(options.base, options.target, options.mainRef ?? "origin/main");
2430+
const source = sourceCommits(
2431+
options.base,
2432+
options.target,
2433+
options.mainRef ?? "origin/main",
2434+
options.releaseProvenance,
2435+
);
24162436
const committedSection = optionalSectionFor(
24172437
git(["show", `${source.target}:CHANGELOG.md`]),
24182438
options.version,

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Skills own workflows; root owns hard policy and routing. Product direction and m
233233
- PR create/refresh: keep PR branches takeover-ready. Use a branch maintainers can push to, or for fork PRs ensure `maintainer_can_modify` / GitHub's `Allow edits by maintainers` is enabled unless explicitly told otherwise or GitHub's Actions/secrets warning makes that unsafe.
234234
- GitHub issue/PR create: read `$agent-transcript`; ask about sanitized transcript logs when available.
235235
- Contributor PRs: parsed context requires authored `What Problem This Solves` and `Evidence` sections. Do not require field-level proof forms; reviewers inspect code, tests, and CI for correctness.
236-
- PR artifacts/screenshots: attach to PR/comment/external artifact store. Never push screenshots, videos, proof images, or proof assets to OpenClaw or any product repo branch, including temp artifact branches. Use Crabbox artifact publishing plus the manifest URL. Do not commit `.github/pr-assets`.
236+
- PR/issue images/video: `curl -s "https://uploads.github.com/user-attachments/assets?name=<f>&content_type=<mime>&repository_id=<id>" -X POST -H "Authorization: Bearer $(gh auth token)" -H "Accept: application/json" --data-binary @<f>`; embed returned `.url` as markdown. Same CDN as drag-drop; inherits repo visibility; no browser/computer use. 422 = unsupported type; 404 = bad repo id/no push. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL. Never push proof assets to any product repo branch; do not commit `.github/pr-assets`.
237237
- CI polling: exact SHA, relevant checks only, minimal fields. Skip routine noise (`Auto response`, `Labeler`, docs agents, performance/stale). Logs only after failure/completion or concrete need. Never `gh run watch`; its 3s polling exhausts API quota. Use sparse GraphQL rollups. Filter `gh run list` by workflow/branch/commit; broad JSON lists can exceed relay caps. Exact-SHA fallback dispatches require the full 40-character SHA.
238238
- CI waits: `node scripts/watch-pr-ci.mjs <pr> <head-sha>` — prechecks mergeable (CONFLICTING = pull_request CI cannot attach) and run attachment before polling; watchers emit every terminal state; no unbounded polls.
239239
- Trusted-workflow release-branch CI: pass `target_ref` + `release_candidate_ref`; never `release_gate` (requires workflow head == target).

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Docs: https://docs.openclaw.ai
6565

6666
### Fixes
6767

68+
- **Control UI appearance accessibility:** keep the unavailable custom-theme card announced as an Import command while preserving selected-state semantics for selectable themes and text sizes. Thanks @shakkernerd.
6869
- **Control UI dashboard index refresh:** keep an open Dashboards page current after session changes, agent-scope updates, and Gateway reconnects while preserving the last safe list until replacement hydration completes. Fixes #120602. Thanks @shakkernerd.
6970
- **Browser extension relay security:** require canonical 64-character relay secrets and safe WebSocket pairing URLs, and recheck OpenClaw tab-group consent at the extension edge before every authority-bearing existing-tab command.
7071
- **Control UI debug diagnostics:** keep last-good status, health, model, and heartbeat snapshots visible when refreshes fail, show the failure inside Snapshots, isolate it from Manual RPC state, and prevent older manual calls from overwriting newer ones. Thanks @shakkernerd.

0 commit comments

Comments
 (0)