Skip to content

Commit bc859e4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix/issue-84583-cron-mirror-session-lock-race
2 parents 118338c + 67b2612 commit bc859e4

1,263 files changed

Lines changed: 46248 additions & 14249 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/claw-score/SKILL.md‎

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ committed `inventory/` report tree.
1515
This skill owns the operational workflow for:
1616

1717
- `taxonomy.yaml`
18-
- `docs/maturity-scores.yaml`
18+
- `qa/maturity-scores.yaml`
1919
- `docs/concepts/qa-e2e-automation.md`
2020
- `qa/scenarios/index.yaml`
2121

@@ -37,28 +37,35 @@ out of this repo. If a score needs private evidence, use the redacted
3737
coverage IDs. Do not promote generic IDs into standalone feature names.
3838
- Avoid duplicate coverage-ID bundles under different feature names in one
3939
category.
40-
- `docs/maturity-scores.yaml` is the aggregate score source committed in this
41-
repo. It is the only committed score data; do not add generated inventory
42-
directories.
43-
- There is no committed maturity-doc renderer or `pnpm maturity:*` script in
44-
this repo. Do not invent generated scorecard files; update the source YAML
45-
and current docs directly.
46-
- `qa-evidence.json` artifacts provide per-run QA scorecard evidence. They can
47-
enrich generated artifact docs, but they are not committed as inventory.
40+
- `qa/maturity-scores.yaml` is the committed aggregate source for Quality,
41+
Completeness, and LTS review state.
42+
- `extensions/qa-lab/src/scorecard-taxonomy.ts` exports
43+
`qaMaturityScoresSchema` and `readValidatedQaMaturityScoreSources`; use those
44+
QA Lab utilities to validate score output.
45+
- Generated public docs are `docs/maturity/scorecard.md` and
46+
`docs/maturity/taxonomy.md`; both come from `pnpm maturity:render`. Do not
47+
hand-edit generated Markdown to change score results.
48+
- `qa-evidence.json` artifacts provide per-run QA scorecard evidence. Release
49+
profile artifacts are the source of truth for Coverage. They can enrich
50+
generated artifact docs, but they are not committed as inventory.
4851

4952
## Commands
5053

5154
Run from the openclaw repo root.
5255

53-
Validate YAML structure after source edits:
56+
Validate taxonomy YAML structure and the maturity score schema after source
57+
edits:
5458

5559
```bash
56-
node <<'NODE'
57-
const fs = require("node:fs");
58-
const YAML = require("yaml");
59-
for (const file of ["taxonomy.yaml", "docs/maturity-scores.yaml", "qa/scenarios/index.yaml"]) {
60+
node --import tsx --input-type=module <<'NODE'
61+
import fs from "node:fs";
62+
import YAML from "yaml";
63+
import { readValidatedQaMaturityScoreSources } from "./extensions/qa-lab/src/scorecard-taxonomy.ts";
64+
65+
for (const file of ["taxonomy.yaml", "qa/scenarios/index.yaml"]) {
6066
YAML.parse(fs.readFileSync(file, "utf8"));
6167
}
68+
readValidatedQaMaturityScoreSources();
6269
NODE
6370
```
6471

@@ -83,17 +90,17 @@ When asked to score or refresh a surface:
8390
`.agents/skills/claw-score/references/completeness/`.
8491
3. Gather public repo evidence from docs, source, tests, and QA scenario
8592
metadata.
86-
4. Prefer existing `qa-evidence.json` artifacts for executed proof. Do not use
87-
discrawl or unredacted private archives.
88-
5. Update `docs/maturity-scores.yaml` only when the score change is backed by
89-
public or redacted artifact evidence.
90-
6. Run the YAML validation command from this skill.
93+
4. Prefer existing release profile `qa-evidence.json` artifacts for executed
94+
proof.
95+
5. Update `qa/maturity-scores.yaml` only for Quality, Completeness, and LTS
96+
review state backed by public or redacted artifact evidence.
97+
6. Run the schema validation command from this skill.
9198
7. Run `pnpm check:docs` if docs prose changed, and focused QA coverage checks
9299
if coverage IDs or profile membership changed.
93100

94101
For subjective score changes, make the smallest defensible edit and leave the
95102
evidence path in the PR or task summary. Keep manual prose in current docs and
96-
keep score data in `docs/maturity-scores.yaml`.
103+
keep score data in `qa/maturity-scores.yaml`.
97104

98105
## Default Completeness Process
99106

@@ -139,7 +146,7 @@ Default guidance:
139146

140147
Default Completeness bands:
141148

142-
- `Lovable` (95-100): complete across expected workflows, variants, and
149+
- `Clawesome` (95-100): complete across expected workflows, variants, and
143150
recovery branches, with only minor polish gaps.
144151
- `Stable` (80-95): the expected workflow set is broadly present, with only
145152
bounded missing branches.
@@ -152,19 +159,20 @@ Default Completeness bands:
152159

153160
## Score Semantics
154161

155-
- Coverage: public or redacted proof that the feature is exercised by docs,
156-
tests, QA scenarios, live lanes, or release evidence.
162+
- Coverage: deterministic release validation coverage derived from the release
163+
profile `qa-evidence.json.scorecard` feature fulfillment data.
157164
- Quality: reliability, maintainability, operator safety, and regression
158165
confidence for the category.
159166
- Completeness: how much of the intended operator-visible workflow exists for
160167
the category. Use the default completeness process plus any surface-specific
161168
variation before changing this score.
162-
- LTS: derived from score thresholds and `human_lts_override`; do not hand-edit
163-
generated Markdown to change LTS status.
169+
- LTS: derived from Quality, release-evidence Coverage, and
170+
`human_lts_override`; do not hand-edit generated Markdown to change LTS
171+
status.
164172

165173
Bands:
166174

167-
- `Lovable`: 95-100
175+
- `Clawesome`: 95-100
168176
- `Stable`: 80-95
169177
- `Beta`: 70-80
170178
- `Alpha`: 50-70
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Docs bug report
2+
description: Report documentation defects (incorrect, missing, outdated, or contradictory docs).
3+
title: "[Docs Bug]: "
4+
labels:
5+
- bug
6+
- docs
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Report a documentation defect with concrete evidence from current docs behavior/content.
12+
Please only report one documentation defect per submission.
13+
- type: textarea
14+
id: summary
15+
attributes:
16+
label: Summary
17+
description: One-sentence statement of what is wrong in the docs.
18+
placeholder: The WhatsApp config example defines duplicate top-level keys in one JSON5 block.
19+
validations:
20+
required: true
21+
- type: input
22+
id: doc_paths
23+
attributes:
24+
label: Affected docs path(s) or URL(s)
25+
description: Repo-relative docs file path(s) or published docs URL(s).
26+
placeholder: docs/gateway/config-channels.md or https://docs.openclaw.ai/gateway/config-channels
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: repro
31+
attributes:
32+
label: Steps to reproduce / verify
33+
description: Minimal steps to observe the docs defect in the current docs.
34+
placeholder: |
35+
1. Open docs/gateway/config-channels.md
36+
2. Go to the WhatsApp example block
37+
3. Observe duplicate top-level key definitions
38+
validations:
39+
required: true
40+
- type: textarea
41+
id: expected
42+
attributes:
43+
label: Expected docs behavior/content
44+
description: What the docs should say/show instead.
45+
placeholder: The example should use a single merged top-level object with no duplicate keys.
46+
validations:
47+
required: true
48+
- type: textarea
49+
id: actual
50+
attributes:
51+
label: Actual docs behavior/content
52+
description: What the docs currently say/show.
53+
placeholder: The snippet defines the same top-level key twice in one object.
54+
validations:
55+
required: true
56+
- type: textarea
57+
id: impact
58+
attributes:
59+
label: Impact
60+
description: Who is affected and practical consequence.
61+
placeholder: Users who copy-paste the snippet can end up with ambiguous config behavior.
62+
validations:
63+
required: true
64+
- type: textarea
65+
id: evidence
66+
attributes:
67+
label: Evidence
68+
description: Links/snippets/screenshots proving the docs defect.
69+
placeholder: Include exact file links and line ranges.
70+
validations:
71+
required: true
72+
- type: textarea
73+
id: additional_information
74+
attributes:
75+
label: Additional information
76+
description: Optional context, related issues/PRs, or constraints.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenClaw Maturity Scorecard Agent
2+
3+
You are refreshing the OpenClaw maturity score source for a release scorecard.
4+
5+
Goal: use the `$claw-score` skill to refresh `qa/maturity-scores.yaml` for every active surface in `taxonomy.yaml`, using the current repository and the release evidence artifacts in `.artifacts/maturity-evidence`.
6+
7+
Allowed tracked paths:
8+
9+
- `qa/maturity-scores.yaml`
10+
11+
Hard limits:
12+
13+
- Do not edit generated docs, taxonomy, workflows, scripts, package metadata, lockfiles, tests, or application code.
14+
- Do not render docs. The workflow renders docs after validating the score source.
15+
- Keep the score source schema valid for QA Lab maturity score validation.
16+
17+
Required workflow:
18+
19+
1. Use the `$claw-score` skill before editing.
20+
2. Read `taxonomy.yaml`, any existing maturity score file, and the release evidence artifacts.
21+
3. Refresh scores for every active surface in `taxonomy.yaml`.
22+
4. Run the QA Lab maturity score validation used by this repository.
23+
5. If no defensible score update is possible, leave a valid `qa/maturity-scores.yaml` and explain the uncertainty in the final message.

‎.github/workflows/ci-build-artifacts-testbox.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,6 @@ jobs:
261261

262262
- name: Run Testbox
263263
uses: useblacksmith/run-testbox@3f60ff9ceb2c10c3feefa87dc0c6490cffae059d
264-
if: success()
264+
if: always()
265265
env:
266266
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

‎.github/workflows/ci-check-arm-testbox.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ jobs:
179179

180180
- name: Run Testbox
181181
uses: useblacksmith/run-testbox@5ca05834db1d3813554d1dd109e5f2087a8d7cbc
182-
if: success()
182+
if: always()
183183
env:
184184
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

‎.github/workflows/ci-check-testbox.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
contents: read
3434
name: "check"
3535
runs-on: blacksmith-32vcpu-ubuntu-2404
36-
timeout-minutes: ${{ fromJSON(inputs.timeout_minutes || '30') }}
36+
timeout-minutes: ${{ fromJSON(inputs.timeout_minutes || '120') }}
3737
steps:
3838
- name: Begin Testbox
3939
uses: useblacksmith/begin-testbox@233448af4bfdc6fca509a7f0974411ac6d8a8043
@@ -168,6 +168,6 @@ jobs:
168168

169169
- name: Run Testbox
170170
uses: useblacksmith/run-testbox@3f60ff9ceb2c10c3feefa87dc0c6490cffae059d
171-
if: success()
171+
if: always()
172172
env:
173173
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

‎.github/workflows/ci.yml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ jobs:
305305
shard_name: shard.shardName,
306306
groups: shard.groups,
307307
configs: shard.configs,
308+
env: shard.env,
308309
includePatterns: shard.includePatterns,
309310
requires_dist: shard.requiresDist,
310311
runner: shard.runner,
@@ -1176,7 +1177,9 @@ jobs:
11761177
timeout-minutes: ${{ matrix.timeout_minutes || 60 }}
11771178
strategy:
11781179
fail-fast: false
1179-
max-parallel: 12
1180+
# The canonical main path waits for the admission debounce above, so
1181+
# modestly widen this large matrix without recreating registration bursts.
1182+
max-parallel: 16
11801183
matrix: ${{ fromJson(needs.preflight.outputs.checks_node_core_nondist_matrix) }}
11811184
steps:
11821185
- name: Checkout
@@ -1237,6 +1240,7 @@ jobs:
12371240
NODE_OPTIONS: --max-old-space-size=8192
12381241
OPENCLAW_NODE_TEST_GROUPS_JSON: ${{ toJson(matrix.groups || null) }}
12391242
OPENCLAW_NODE_TEST_CONFIGS_JSON: ${{ toJson(matrix.configs) }}
1243+
OPENCLAW_NODE_TEST_ENV_JSON: ${{ toJson(matrix.env) }}
12401244
OPENCLAW_NODE_TEST_INCLUDE_PATTERNS_JSON: ${{ toJson(matrix.includePatterns) }}
12411245
OPENCLAW_VITEST_SHARD_NAME: ${{ matrix.shard_name }}
12421246
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "300000"
@@ -1255,6 +1259,7 @@ jobs:
12551259
? groups
12561260
: [{
12571261
configs: JSON.parse(process.env.OPENCLAW_NODE_TEST_CONFIGS_JSON ?? "[]"),
1262+
env: JSON.parse(process.env.OPENCLAW_NODE_TEST_ENV_JSON ?? "null"),
12581263
includePatterns: JSON.parse(
12591264
process.env.OPENCLAW_NODE_TEST_INCLUDE_PATTERNS_JSON ?? "null",
12601265
),
@@ -1270,6 +1275,13 @@ jobs:
12701275
...process.env,
12711276
...(plan.shard_name ? { OPENCLAW_VITEST_SHARD_NAME: plan.shard_name } : {}),
12721277
};
1278+
if (plan.env && typeof plan.env === "object" && !Array.isArray(plan.env)) {
1279+
for (const [key, value] of Object.entries(plan.env)) {
1280+
if (typeof value === "string") {
1281+
childEnv[key] = value;
1282+
}
1283+
}
1284+
}
12731285
if (Array.isArray(plan.includePatterns) && plan.includePatterns.length > 0) {
12741286
const includeFile = join(
12751287
process.env.RUNNER_TEMP ?? ".",
@@ -2223,7 +2235,7 @@ jobs:
22232235
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
22242236
with:
22252237
path: ~/.android-sdk
2226-
key: ${{ runner.os }}-android-sdk-v1-cmdline-14742923-platform-37.0-build-tools-36.0.0
2238+
key: ${{ runner.os }}-android-sdk-v1-cmdline-14742923-platform-36-build-tools-36.0.0
22272239
restore-keys: |
22282240
${{ runner.os }}-android-sdk-v1-
22292241
@@ -2253,7 +2265,7 @@ jobs:
22532265
yes | sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" --licenses >/dev/null
22542266
sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" --install \
22552267
"platform-tools" \
2256-
"platforms;android-37.0" \
2268+
"platforms;android-36" \
22572269
"build-tools;36.0.0"
22582270
22592271
- name: Run Android ${{ matrix.task }}

‎.github/workflows/codeql.yml‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ on:
2222
push:
2323
branches:
2424
- main
25-
paths:
26-
- ".github/actions/**"
27-
- ".github/codeql/**"
28-
- ".github/workflows/**"
29-
- "packages/**"
30-
- "src/**"
3125
schedule:
3226
- cron: "0 6 * * *"
3327

@@ -55,32 +49,32 @@ jobs:
5549
include:
5650
- language: javascript-typescript
5751
category: core-auth-secrets
58-
runs_on: blacksmith-8vcpu-ubuntu-2404
52+
runs_on: ubuntu-24.04
5953
timeout_minutes: 25
6054
config_file: ./.github/codeql/codeql-core-auth-secrets-critical-security.yml
6155
- language: javascript-typescript
6256
category: channel-runtime-boundary
63-
runs_on: blacksmith-8vcpu-ubuntu-2404
57+
runs_on: ubuntu-24.04
6458
timeout_minutes: 25
6559
config_file: ./.github/codeql/codeql-channel-runtime-boundary-critical-security.yml
6660
- language: javascript-typescript
6761
category: network-ssrf-boundary
68-
runs_on: blacksmith-4vcpu-ubuntu-2404
62+
runs_on: ubuntu-24.04
6963
timeout_minutes: 25
7064
config_file: ./.github/codeql/codeql-network-ssrf-boundary-critical-security.yml
7165
- language: javascript-typescript
7266
category: mcp-process-tool-boundary
73-
runs_on: blacksmith-4vcpu-ubuntu-2404
67+
runs_on: ubuntu-24.04
7468
timeout_minutes: 25
7569
config_file: ./.github/codeql/codeql-mcp-process-tool-boundary-critical-security.yml
7670
- language: javascript-typescript
7771
category: plugin-trust-boundary
78-
runs_on: blacksmith-4vcpu-ubuntu-2404
72+
runs_on: ubuntu-24.04
7973
timeout_minutes: 25
8074
config_file: ./.github/codeql/codeql-plugin-trust-boundary-critical-security.yml
8175
- language: actions
8276
category: actions
83-
runs_on: blacksmith-8vcpu-ubuntu-2404
77+
runs_on: ubuntu-24.04
8478
timeout_minutes: 10
8579
config_file: ./.github/codeql/codeql-actions-critical-security.yml
8680
steps:

‎.github/workflows/crabbox-hydrate.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ jobs:
490490
if (-not $env:CRABBOX_ID -or $env:CRABBOX_ID -notmatch '^[A-Za-z0-9._-]+$') {
491491
Write-Error "Invalid crabbox_id"
492492
}
493-
$actionsRoot = Join-Path $HOME ".crabbox\actions"
493+
$actionsRoot = "C:\ProgramData\crabbox\actions"
494494
New-Item -ItemType Directory -Force $actionsRoot | Out-Null
495495
$state = Join-Path $actionsRoot "$env:CRABBOX_ID.env"
496496
$envFile = Join-Path $actionsRoot "$env:CRABBOX_ID.env.ps1"
@@ -546,7 +546,7 @@ jobs:
546546
if ($env:CRABBOX_KEEP_ALIVE_MINUTES -match '^[0-9]+$') {
547547
$minutes = [int]$env:CRABBOX_KEEP_ALIVE_MINUTES
548548
}
549-
$stop = Join-Path $HOME ".crabbox\actions\$env:CRABBOX_ID.stop"
549+
$stop = Join-Path "C:\ProgramData\crabbox\actions" "$env:CRABBOX_ID.stop"
550550
$deadline = (Get-Date).AddMinutes($minutes)
551551
while ((Get-Date) -lt $deadline) {
552552
if (Test-Path $stop) {

0 commit comments

Comments
 (0)