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

推荐订阅源

Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
博客园_首页
T
Tailwind CSS Blog
The Cloudflare Blog
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
D
Docker
Microsoft Azure Blog
Microsoft Azure Blog

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 long-context watchdog scenario · opencl...
vincentkoc · 2026-05-22 · via Recent Commits to openclaw:main

@@ -0,0 +1,156 @@

1+

# Long-context progress watchdog

2+3+

```yaml qa-scenario

4+

id: long-context-progress-watchdog

5+

title: Long-context progress watchdog

6+

surface: runtime

7+

runtimeParityTier: live-only

8+

coverage:

9+

primary:

10+

- runtime.gateway-log-sentinel.codex-progress

11+

secondary:

12+

- runtime.long-context

13+

- runtime.codex-app-server

14+

objective: Fail live proof when long-context activity triggers Codex app-server timeout or stalled-progress sentinels.

15+

successCriteria:

16+

- Gateway config routes the selected QA model through the Codex app-server runtime.

17+

- Agent reads through the seeded long-context fixture and replies with the marker found at the tail.

18+

- Gateway logs since the scenario cursor contain no app-server timeout or stalled-progress sentinel.

19+

docsRefs:

20+

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

21+

- qa/scenarios/index.md

22+

codeRefs:

23+

- extensions/qa-lab/src/gateway-log-sentinel.ts

24+

- extensions/codex/src/app-server

25+

execution:

26+

kind: flow

27+

summary: Seed a large workspace fixture, complete a read turn, and scan for Codex app-server progress failures.

28+

config:

29+

requiredProviderMode: live-frontier

30+

harnessRuntime: codex

31+

fixtureFile: LONG_CONTEXT_SENTINEL_FIXTURE.txt

32+

expectedMarker: LONG-CONTEXT-WATCHDOG-OK

33+

repeatCount: 2000

34+

```

35+36+

```yaml qa-flow

37+

steps:

38+

- name: catches app-server timeout or stalled progress during long-context activity

39+

actions:

40+

- call: waitForGatewayHealthy

41+

args:

42+

- ref: env

43+

- 60000

44+

- call: waitForQaChannelReady

45+

args:

46+

- ref: env

47+

- 60000

48+

- call: readConfigSnapshot

49+

saveAs: originalSnapshot

50+

args:

51+

- ref: env

52+

- set: originalModelEntry

53+

value:

54+

expr: originalSnapshot.config.agents?.defaults?.models?.[env.primaryModel]

55+

- set: originalPluginAllow

56+

value:

57+

expr: originalSnapshot.config.plugins?.allow

58+

- set: originalCodexPluginEntry

59+

value:

60+

expr: originalSnapshot.config.plugins?.entries?.codex

61+

- try:

62+

actions:

63+

- call: patchConfig

64+

args:

65+

- env:

66+

ref: env

67+

patch:

68+

plugins:

69+

allow:

70+

expr: "Array.from(new Set([...(Array.isArray(originalPluginAllow) ? originalPluginAllow : []), 'codex']))"

71+

entries:

72+

codex:

73+

expr: "({ ...((originalCodexPluginEntry && typeof originalCodexPluginEntry === 'object') ? originalCodexPluginEntry : {}), enabled: true })"

74+

agents:

75+

defaults:

76+

models:

77+

expr: "({ [env.primaryModel]: { agentRuntime: { id: config.harnessRuntime } } })"

78+

- call: waitForGatewayHealthy

79+

args:

80+

- ref: env

81+

- 60000

82+

- call: waitForQaChannelReady

83+

args:

84+

- ref: env

85+

- 60000

86+

- call: readConfigSnapshot

87+

saveAs: snapshot

88+

args:

89+

- ref: env

90+

- assert:

91+

expr: "snapshot.config.agents?.defaults?.models?.[env.primaryModel]?.agentRuntime?.id === config.harnessRuntime"

92+

message:

93+

expr: "`expected ${env.primaryModel} agentRuntime.id=${config.harnessRuntime}, got ${JSON.stringify(snapshot.config.agents?.defaults?.models?.[env.primaryModel]?.agentRuntime)}`"

94+

- call: reset

95+

- set: logCursor

96+

value:

97+

expr: markGatewayLogCursor()

98+

- set: fixturePath

99+

value:

100+

expr: "path.join(env.gateway.workspaceDir, config.fixtureFile)"

101+

- call: fs.writeFile

102+

args:

103+

- ref: fixturePath

104+

- expr: "`START LONG-CONTEXT-WATCHDOG\\n${Array.from({ length: config.repeatCount }, (_entry, index) => `context row ${index + 1}: alpha beta gamma`).join('\\n')}\\nTAIL ${config.expectedMarker}\\n`"

105+

- utf8

106+

- set: startIndex

107+

value:

108+

expr: state.getSnapshot().messages.length

109+

- call: runAgentPrompt

110+

args:

111+

- ref: env

112+

- sessionKey:

113+

expr: "`agent:qa:long-context-watchdog:${randomUUID().slice(0, 8)}`"

114+

message:

115+

expr: "`Read ${fixturePath}, find the marker on the TAIL line, and reply with that marker only.`"

116+

timeoutMs:

117+

expr: liveTurnTimeoutMs(env, 90000)

118+

- call: waitForOutboundMessage

119+

saveAs: outbound

120+

args:

121+

- ref: state

122+

- lambda:

123+

params: [candidate]

124+

expr: "candidate.conversation.id === 'qa-operator' && normalizeLowercaseStringOrEmpty(candidate.text).includes(normalizeLowercaseStringOrEmpty(config.expectedMarker))"

125+

- expr: liveTurnTimeoutMs(env, 45000)

126+

- sinceIndex:

127+

ref: startIndex

128+

- call: assertNoGatewayLogSentinels

129+

args:

130+

- since:

131+

ref: logCursor

132+

kinds:

133+

- codex-app-server-timeout

134+

- stalled-agent-run

135+

finally:

136+

- call: patchConfig

137+

args:

138+

- env:

139+

ref: env

140+

patch:

141+

plugins:

142+

allow:

143+

expr: "originalPluginAllow === undefined ? null : originalPluginAllow"

144+

entries:

145+

codex:

146+

expr: "originalCodexPluginEntry === undefined ? null : { ...originalCodexPluginEntry, enabled: originalCodexPluginEntry.enabled === undefined ? null : originalCodexPluginEntry.enabled }"

147+

agents:

148+

defaults:

149+

models:

150+

expr: "({ [env.primaryModel]: originalModelEntry === undefined ? null : { ...originalModelEntry, agentRuntime: originalModelEntry.agentRuntime === undefined ? null : originalModelEntry.agentRuntime } })"

151+

- call: waitForGatewayHealthy

152+

args:

153+

- ref: env

154+

- 60000

155+

detailsExpr: outbound.text

156+

```