惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
The Cloudflare Blog
博客园 - 聂微东
博客园 - 司徒正美
量子位
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
A
About on SuperTechFans

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(qa-lab): add scenario pack selector · openclaw/openc...
vincentkoc · 2026-05-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -22,6 +22,7 @@ Docs: https://docs.openclaw.ai

2222

- Gateway: add opt-in restart trace logs for restart signal, active-work drain, close, next-start, ready, and memory spans. (#82396) Thanks @samzong.

2323

- Gateway/performance: split startup benchmark HTTP-listen timing from full gateway-ready timing and add post-bind plugin and sidecar diagnostics to restart-readiness traces. (#82603) Thanks @samzong.

2424

- QA-Lab: add a deterministic local personal-agent scenario pack covering reminders, threaded replies, scoped memory recall, redaction, and safe tool followthrough. (#78219) Thanks @iFiras-Max1.

25+

- QA-Lab: add `--pack personal-agent` for `openclaw qa suite` so maintainers can run the accepted personal-agent scenario pack by selector. (#82760) Thanks @iFiras-Max1.

2526

- QA-Lab: add a private Codex-vs-Pi runtime parity axis with runtime-pair suite runs, parity reports, and release-check wiring. (#80238) Thanks @100yenadmin.

2627

- Slack: add Slack assistant thread lifecycle support with assistant view manifest entries, suggested prompts, thread-scoped assistant sessions, and Slack-provided assistant context. Fixes #80787. Thanks @mobybot27.

2728
Original file line numberDiff line numberDiff line change

@@ -25,20 +25,20 @@ The first pack is intentionally narrow:

2525

## Scenarios

2626
2727

The machine-readable pack metadata lives in

28-

`extensions/qa-lab/src/scenario-packs.ts`. The initial pack does not add a CLI

29-

pack selector, so run the scenarios explicitly:

28+

`extensions/qa-lab/src/scenario-packs.ts`. Run the pack with

29+

`--pack personal-agent`:

3030
3131

```bash

3232

OPENCLAW_ENABLE_PRIVATE_QA_CLI=1 pnpm openclaw qa suite \

3333

--provider-mode mock-openai \

34-

--scenario personal-reminder-roundtrip \

35-

--scenario personal-channel-thread-reply \

36-

--scenario personal-memory-preference-recall \

37-

--scenario personal-redaction-no-secret-leak \

38-

--scenario personal-tool-safety-followthrough \

34+

--pack personal-agent \

3935

--concurrency 1

4036

```

4137
38+

`--pack` is additive with repeated `--scenario` flags. Explicit scenarios run

39+

first, then the pack scenarios run in `QA_PERSONAL_AGENT_SCENARIO_IDS` order with

40+

duplicates removed.

41+
4242

The pack is designed for `qa-channel` with `mock-openai` or another local QA

4343

provider lane. It should not be pointed at live chat services or real personal

4444

accounts.

Original file line numberDiff line numberDiff line change

@@ -231,6 +231,9 @@ Host and Multipass suite runs execute multiple selected scenarios in parallel

231231

with isolated gateway workers by default. `qa-channel` defaults to concurrency

232232

4, capped by the selected scenario count. Use `--concurrency <count>` to tune

233233

the worker count, or `--concurrency 1` for serial execution.

234+

Use `--pack personal-agent` to run the personal assistant benchmark pack. The

235+

pack selector is additive with repeated `--scenario` flags: explicit scenarios

236+

run first, then pack scenarios run in pack order with duplicates removed.

234237

The command exits non-zero when any scenario fails. Use `--allow-failures` when

235238

you want artifacts without a failing exit code.

236239

Live runs forward the supported QA auth inputs that are practical for the

Original file line numberDiff line numberDiff line change

@@ -761,6 +761,35 @@ describe("qa cli runtime", () => {

761761

});

762762

});

763763
764+

it("expands the personal-agent pack onto the suite scenario list", async () => {

765+

await runQaSuiteCommand({

766+

repoRoot: "/tmp/openclaw-repo",

767+

pack: "personal-agent",

768+

scenarioIds: ["channel-chat-baseline"],

769+

});

770+
771+

expectFields(mockFirstObjectArg(runQaSuiteFromRuntime), {

772+

repoRoot: path.resolve("/tmp/openclaw-repo"),

773+

scenarioIds: [

774+

"channel-chat-baseline",

775+

"personal-reminder-roundtrip",

776+

"personal-channel-thread-reply",

777+

"personal-memory-preference-recall",

778+

"personal-redaction-no-secret-leak",

779+

"personal-tool-safety-followthrough",

780+

],

781+

});

782+

});

783+
784+

it("rejects unknown suite packs", async () => {

785+

await expect(

786+

runQaSuiteCommand({

787+

repoRoot: "/tmp/openclaw-repo",

788+

pack: "personal-admin",

789+

}),

790+

).rejects.toThrow('--pack must be one of personal-agent, got "personal-admin"');

791+

});

792+
764793

it("rejects unknown suite CLI auth modes", async () => {

765794

await expect(

766795

runQaSuiteCommand({

Original file line numberDiff line numberDiff line change

@@ -43,6 +43,7 @@ import {

4343

} from "./run-config.js";

4444

import type { RuntimeId } from "./runtime-parity.js";

4545

import { readQaScenarioPack } from "./scenario-catalog.js";

46+

import { resolveQaScenarioPackScenarioIds } from "./scenario-packs.js";

4647

import { runQaSuiteFromRuntime } from "./suite-launch.runtime.js";

4748

import { readQaSuiteFailedScenarioCountFromSummary } from "./suite-summary.js";

4849

@@ -496,6 +497,7 @@ export async function runQaSuiteCommand(opts: {

496497

thinking?: string;

497498

cliAuthMode?: string;

498499

parityPack?: string;

500+

pack?: string;

499501

scenarioIds?: string[];

500502

concurrency?: number;

501503

allowFailures?: boolean;

@@ -510,9 +512,12 @@ export async function runQaSuiteCommand(opts: {

510512

const repoRoot = path.resolve(opts.repoRoot ?? process.cwd());

511513

const transportId = normalizeQaTransportId(opts.transportId);

512514

const runner = (opts.runner ?? "host").trim().toLowerCase();

513-

const scenarioIds = resolveQaParityPackScenarioIds({

514-

parityPack: opts.parityPack,

515-

scenarioIds: opts.scenarioIds,

515+

const scenarioIds = resolveQaScenarioPackScenarioIds({

516+

pack: opts.pack,

517+

scenarioIds: resolveQaParityPackScenarioIds({

518+

parityPack: opts.parityPack,

519+

scenarioIds: opts.scenarioIds,

520+

}),

516521

});

517522

const allowFailures = opts.allowFailures === true;

518523

if (runner !== "host" && runner !== "multipass") {

Original file line numberDiff line numberDiff line change

@@ -537,6 +537,13 @@ describe("qa cli registration", () => {

537537

expect(options.allowFailures).toBe(true);

538538

});

539539
540+

it("forwards --pack for suite runs", async () => {

541+

await program.parseAsync(["node", "openclaw", "qa", "suite", "--pack", "personal-agent"]);

542+
543+

const options = requireQaSuiteOptions();

544+

expect(options.pack).toBe("personal-agent");

545+

});

546+
540547

it("routes credential add flags into the qa runtime command", async () => {

541548

await program.parseAsync([

542549

"node",

Original file line numberDiff line numberDiff line change

@@ -41,6 +41,7 @@ async function runQaSuite(opts: {

4141

enabledPluginIds?: string[];

4242

cliAuthMode?: string;

4343

parityPack?: string;

44+

pack?: string;

4445

scenarioIds?: string[];

4546

concurrency?: number;

4647

runner?: string;

@@ -253,6 +254,7 @@ export function registerQaLabCli(program: Command) {

253254

"CLI backend auth mode for live Claude CLI runs: auto, api-key, or subscription",

254255

)

255256

.option("--parity-pack <name>", 'Preset scenario pack; currently only "agentic" is supported')

257+

.option("--pack <id>", 'Scenario pack id; currently only "personal-agent" is supported')

256258

.option("--scenario <id>", "Run only the named QA scenario (repeatable)", collectString, [])

257259

.option(

258260

"--enable-plugin <id>",

@@ -290,6 +292,7 @@ export function registerQaLabCli(program: Command) {

290292

altModel?: string;

291293

cliAuthMode?: string;

292294

parityPack?: string;

295+

pack?: string;

293296

scenario?: string[];

294297

enablePlugin?: string[];

295298

concurrency?: number;

@@ -315,6 +318,7 @@ export function registerQaLabCli(program: Command) {

315318

thinking: opts.thinking,

316319

cliAuthMode: opts.cliAuthMode,

317320

parityPack: opts.parityPack,

321+

pack: opts.pack,

318322

scenarioIds: opts.scenario,

319323

enabledPluginIds: opts.enablePlugin,

320324

concurrency: opts.concurrency,

Original file line numberDiff line numberDiff line change

@@ -227,6 +227,7 @@ export type QaBootstrapScenarioCatalog = {

227227

export {

228228

QA_PERSONAL_AGENT_SCENARIO_IDS,

229229

QA_SCENARIO_PACKS,

230+

resolveQaScenarioPackScenarioIds,

230231

type QaScenarioPackDefinition,

231232

} from "./scenario-packs.js";

232233
Original file line numberDiff line numberDiff line change

@@ -1,5 +1,10 @@

11

import { describe, expect, it } from "vitest";

2-

import { QA_SCENARIO_PACKS, readQaScenarioById } from "./scenario-catalog.js";

2+

import {

3+

QA_PERSONAL_AGENT_SCENARIO_IDS,

4+

QA_SCENARIO_PACKS,

5+

readQaScenarioById,

6+

resolveQaScenarioPackScenarioIds,

7+

} from "./scenario-catalog.js";

38
49

describe("qa scenario packs", () => {

510

it("points every pack scenario id at a loadable markdown scenario", () => {

@@ -41,6 +46,27 @@ describe("qa scenario packs", () => {

4146

}

4247

});

4348
49+

it("expands the personal-agent pack in pack order", () => {

50+

expect(resolveQaScenarioPackScenarioIds({ pack: "personal-agent" })).toEqual([

51+

...QA_PERSONAL_AGENT_SCENARIO_IDS,

52+

]);

53+

});

54+
55+

it("combines explicit scenarios with pack scenarios", () => {

56+

expect(

57+

resolveQaScenarioPackScenarioIds({

58+

pack: "personal-agent",

59+

scenarioIds: ["channel-chat-baseline", "personal-reminder-roundtrip"],

60+

}),

61+

).toEqual(["channel-chat-baseline", ...QA_PERSONAL_AGENT_SCENARIO_IDS]);

62+

});

63+
64+

it("rejects unknown scenario packs", () => {

65+

expect(() => resolveQaScenarioPackScenarioIds({ pack: "personal-admin" })).toThrow(

66+

'--pack must be one of personal-agent, got "personal-admin"',

67+

);

68+

});

69+
4470

it("keeps personal pack mock debug assertions scoped to each reviewed scenario", () => {

4571

const redactionFlow = JSON.stringify(

4672

readQaScenarioById("personal-redaction-no-secret-leak").execution.flow,

Original file line numberDiff line numberDiff line change

@@ -22,3 +22,21 @@ export const QA_SCENARIO_PACKS = [

2222

scenarioIds: QA_PERSONAL_AGENT_SCENARIO_IDS,

2323

},

2424

] as const satisfies readonly QaScenarioPackDefinition[];

25+
26+

export function resolveQaScenarioPackScenarioIds(params: {

27+

pack?: string;

28+

scenarioIds?: string[];

29+

}): string[] {

30+

const normalizedPack = params.pack?.trim().toLowerCase();

31+

const explicitScenarioIds = [...new Set(params.scenarioIds ?? [])];

32+

if (!normalizedPack) {

33+

return explicitScenarioIds;

34+

}

35+

const pack = QA_SCENARIO_PACKS.find((candidate) => candidate.id === normalizedPack);

36+

if (!pack) {

37+

throw new Error(

38+

`--pack must be one of ${QA_SCENARIO_PACKS.map((candidate) => candidate.id).join(", ")}, got "${params.pack}"`,

39+

);

40+

}

41+

return [...new Set([...explicitScenarioIds, ...pack.scenarioIds])];

42+

}