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

推荐订阅源

J
Java Code Geeks
月光博客
月光博客
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
B
Blog
博客园_首页
G
Google Developers Blog
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI

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
test(qa-lab): add runtime parity depth scenarios · opencl...
vincentkoc · 2026-05-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

77

### Changes

88
99

- Proxy: support HTTPS managed forward-proxy endpoints and scoped `proxy.tls.caFile` CA trust for proxy endpoint TLS. (#79171) Thanks @jesse-merhi.

10+

- QA-Lab: add first-hour 20-turn and optional 100-turn runtime parity scenarios, with tier metadata for standard and soak QA gates. (#80323) Thanks @100yenadmin.

1011
1112

### Fixes

1213
Original file line numberDiff line numberDiff line change

@@ -103,6 +103,19 @@ describe("qa scenario catalog", () => {

103103

expect(scenario.gatewayRuntime?.forwardHostHome).toBe(true);

104104

});

105105
106+

it("loads runtime parity tier metadata for first-hour and soak lanes", () => {

107+

const firstHour = readQaScenarioById("runtime-first-hour-20-turn");

108+

const soak = readQaScenarioById("runtime-soak-100-turn");

109+
110+

expect(firstHour.runtimeParityTier).toBe("standard");

111+

expect(readQaScenarioExecutionConfig(firstHour.id)).toMatchObject({

112+

runtimeParityComparison: "outcome-only",

113+

turnCount: 20,

114+

});

115+

expect(soak.runtimeParityTier).toBe("soak");

116+

expect(readQaScenarioExecutionConfig(soak.id)).toMatchObject({ turnCount: 100 });

117+

});

118+
106119

it("keeps the character eval scenario natural and task-shaped", () => {

107120

const characterConfig = readQaScenarioExecutionConfig("character-vibes-gollum") as

108121

| {

Original file line numberDiff line numberDiff line change

@@ -93,6 +93,8 @@ const qaScenarioGatewayRuntimeSchema = z.object({

9393

forwardHostHome: z.boolean().optional(),

9494

});

9595
96+

const qaRuntimeParityTierSchema = z.enum(["standard", "optional", "live-only", "soak"]);

97+
9698

const qaFlowCallActionSchema = z.object({

9799

call: z.string().trim().min(1),

98100

args: z.array(z.unknown()).optional(),

@@ -176,6 +178,7 @@ const qaSeedScenarioSchema = z.object({

176178

title: z.string().trim().min(1),

177179

surface: z.string().trim().min(1),

178180

category: z.string().trim().min(1).optional(),

181+

runtimeParityTier: qaRuntimeParityTierSchema.optional(),

179182

coverage: qaScenarioCoverageSchema.optional(),

180183

surfaces: z.array(z.string().trim().min(1)).min(1).optional(),

181184

risk: z.enum(["low", "medium", "high"]).optional(),

@@ -206,6 +209,7 @@ const qaScenarioPackSchema = z.object({

206209
207210

export type QaScenarioExecution = z.infer<typeof qaScenarioExecutionSchema>;

208211

export type QaScenarioFlow = z.infer<typeof qaFlowSchema>;

212+

export type QaRuntimeParityTier = z.infer<typeof qaRuntimeParityTierSchema>;

209213

export type QaSeedScenario = z.infer<typeof qaSeedScenarioSchema>;

210214

export type QaSeedScenarioWithSource = QaSeedScenario & {

211215

sourcePath: string;

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,7 @@ Single source of truth for repo-backed QA suite bootstrap data.

66

- `index.md` defines pack-level bootstrap data

77

- each nested `*.md` scenario defines one runnable test via `qa-scenario` + `qa-flow`

88

- scenario markdown may also define coverage IDs, category metadata, required plugins,

9-

lane filters, and gateway config patching

9+

lane filters, runtime parity tiers, and gateway config patching

1010
1111

- kickoff mission

1212

- QA operator identity

@@ -20,6 +20,8 @@ Coverage tracking:

2020

- prefer reusing an existing feature ID over minting a scenario-shaped ID

2121

- avoid copying the scenario title into coverage IDs

2222

- use `pnpm openclaw qa coverage` to render the current inventory

23+

- use `runtimeParityTier` for runtime-pair gate membership: `standard`,

24+

`optional`, `live-only`, or `soak`

2325

- treat the old `coverage: ["id"]` / `coverage: - id` list shape as invalid

2426

- keep source-path tracking in the report, not in the scenario schema

2527
Original file line numberDiff line numberDiff line change

@@ -0,0 +1,69 @@

1+

# First-hour 20-turn runtime parity

2+
3+

```yaml qa-scenario

4+

id: runtime-first-hour-20-turn

5+

title: First-hour 20-turn runtime parity

6+

surface: runtime

7+

runtimeParityTier: standard

8+

coverage:

9+

primary:

10+

- runtime.first-hour-20

11+

secondary:

12+

- runtime.long-context

13+

objective: Verify both runtimes preserve a same-session conversation across the required 20-turn maintainer gate.

14+

successCriteria:

15+

- The same QA session accepts 20 sequential user turns.

16+

- Every turn receives the requested marker reply without losing session state.

17+

- Runtime parity captures wall-clock and token data for the whole 20-turn cell.

18+

docsRefs:

19+

- docs/concepts/qa-e2e-automation.md

20+

- qa/scenarios/index.md

21+

codeRefs:

22+

- extensions/qa-lab/src/suite.ts

23+

- extensions/qa-lab/src/runtime-parity.ts

24+

execution:

25+

kind: flow

26+

summary: Run 20 deterministic same-session marker turns through the runtime pair.

27+

config:

28+

runtimeParityComparison: outcome-only

29+

sessionKey: agent:qa:first-hour-20-turn

30+

turnCount: 20

31+

```

32+
33+

```yaml qa-flow

34+

steps:

35+

- name: runs 20 same-session marker turns

36+

actions:

37+

- call: waitForGatewayHealthy

38+

args:

39+

- ref: env

40+

- 60000

41+

- call: reset

42+

- set: turns

43+

value:

44+

expr: "Array.from({ length: config.turnCount }, (_entry, index) => ({ index, marker: `FIRST-HOUR-20-${String(index + 1).padStart(2, '0')}` }))"

45+

- forEach:

46+

items:

47+

ref: turns

48+

item: turn

49+

actions:

50+

- set: cursor

51+

value:

52+

expr: state.getSnapshot().messages.length

53+

- call: runAgentPrompt

54+

args:

55+

- ref: env

56+

- sessionKey:

57+

expr: config.sessionKey

58+

message:

59+

expr: "'first-hour 20-turn marker check ' + (turn.index + 1) + ': reply exactly `' + turn.marker + '`'"

60+

timeoutMs:

61+

expr: liveTurnTimeoutMs(env, 60000)

62+

- call: waitForCondition

63+

args:

64+

- lambda:

65+

expr: "state.getSnapshot().messages.slice(cursor).some((candidate) => candidate.direction === 'outbound' && candidate.conversation.id === 'qa-operator' && normalizeLowercaseStringOrEmpty(candidate.text).includes(normalizeLowercaseStringOrEmpty(turn.marker)))"

66+

- expr: liveTurnTimeoutMs(env, 60000)

67+

- expr: "env.providerMode === 'mock-openai' ? 100 : 250"

68+

detailsExpr: "`completed ${turns.length} first-hour depth turns`"

69+

```

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,68 @@

1+

# 100-turn runtime parity soak

2+
3+

```yaml qa-scenario

4+

id: runtime-soak-100-turn

5+

title: 100-turn runtime parity soak

6+

surface: runtime

7+

runtimeParityTier: soak

8+

coverage:

9+

primary:

10+

- runtime.soak-100

11+

secondary:

12+

- runtime.long-context

13+

objective: Provide an optional long-run soak that can be scheduled or run in Testbox without entering the maintainer default gate.

14+

successCriteria:

15+

- The same QA session accepts 100 sequential user turns.

16+

- Every turn receives the requested marker reply without losing session state.

17+

- Runtime parity captures token estimate or live token usage for the full soak cell.

18+

docsRefs:

19+

- docs/concepts/qa-e2e-automation.md

20+

- qa/scenarios/index.md

21+

codeRefs:

22+

- extensions/qa-lab/src/suite.ts

23+

- extensions/qa-lab/src/runtime-parity.ts

24+

execution:

25+

kind: flow

26+

summary: Run the optional 100-turn same-session runtime soak.

27+

config:

28+

sessionKey: agent:qa:runtime-soak-100

29+

turnCount: 100

30+

```

31+
32+

```yaml qa-flow

33+

steps:

34+

- name: runs 100 same-session marker turns

35+

actions:

36+

- call: waitForGatewayHealthy

37+

args:

38+

- ref: env

39+

- 60000

40+

- call: reset

41+

- set: turns

42+

value:

43+

expr: "Array.from({ length: config.turnCount }, (_entry, index) => ({ index, marker: `SOAK-100-${String(index + 1).padStart(3, '0')}` }))"

44+

- forEach:

45+

items:

46+

ref: turns

47+

item: turn

48+

actions:

49+

- set: cursor

50+

value:

51+

expr: state.getSnapshot().messages.length

52+

- call: runAgentPrompt

53+

args:

54+

- ref: env

55+

- sessionKey:

56+

expr: config.sessionKey

57+

message:

58+

expr: "'runtime 100-turn soak marker check ' + (turn.index + 1) + ': reply exactly `' + turn.marker + '`'"

59+

timeoutMs:

60+

expr: liveTurnTimeoutMs(env, 60000)

61+

- call: waitForCondition

62+

args:

63+

- lambda:

64+

expr: "state.getSnapshot().messages.slice(cursor).some((candidate) => candidate.direction === 'outbound' && candidate.conversation.id === 'qa-operator' && normalizeLowercaseStringOrEmpty(candidate.text).includes(normalizeLowercaseStringOrEmpty(turn.marker)))"

65+

- expr: liveTurnTimeoutMs(env, 60000)

66+

- expr: "env.providerMode === 'mock-openai' ? 100 : 250"

67+

detailsExpr: "`completed ${turns.length} soak turns`"

68+

```