mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-17 19:30:48 +08:00
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
67 lines
2.3 KiB
Markdown
67 lines
2.3 KiB
Markdown
# Build Lobster Invaders
|
|
|
|
```yaml qa-scenario
|
|
id: lobster-invaders-build
|
|
title: Build Lobster Invaders
|
|
surface: workspace
|
|
coverage:
|
|
primary:
|
|
- workspace.artifacts
|
|
secondary:
|
|
- workspace.builds
|
|
objective: Verify the agent can read the repo, create a tiny playable artifact, and report what changed.
|
|
successCriteria:
|
|
- Agent inspects source before coding.
|
|
- Agent builds a tiny playable Lobster Invaders artifact.
|
|
- Agent explains how to run or view the artifact.
|
|
docsRefs:
|
|
- docs/help/testing.md
|
|
- docs/web/dashboard.md
|
|
codeRefs:
|
|
- extensions/qa-lab/src/report.ts
|
|
- extensions/qa-lab/web/src/app.ts
|
|
execution:
|
|
kind: flow
|
|
summary: Verify the agent can read the repo, create a tiny playable artifact, and report what changed.
|
|
config:
|
|
prompt: Read the QA kickoff context first, then build a tiny Lobster Invaders HTML game at ./lobster-invaders.html in this workspace and tell me where it is.
|
|
```
|
|
|
|
```yaml qa-flow
|
|
steps:
|
|
- name: creates the artifact after reading context
|
|
actions:
|
|
- call: reset
|
|
- call: runAgentPrompt
|
|
args:
|
|
- ref: env
|
|
- sessionKey: agent:qa:lobster-invaders
|
|
message:
|
|
expr: config.prompt
|
|
timeoutMs:
|
|
expr: liveTurnTimeoutMs(env, 30000)
|
|
- call: waitForOutboundMessage
|
|
args:
|
|
- ref: state
|
|
- lambda:
|
|
params: [candidate]
|
|
expr: "candidate.conversation.id === 'qa-operator'"
|
|
- set: artifactPath
|
|
value:
|
|
expr: "path.join(env.gateway.workspaceDir, 'lobster-invaders.html')"
|
|
- call: waitForCondition
|
|
saveAs: artifact
|
|
args:
|
|
- lambda:
|
|
async: true
|
|
expr: "((await fs.readFile(artifactPath, 'utf8').catch(() => null))?.includes('Lobster Invaders') ? await fs.readFile(artifactPath, 'utf8').catch(() => null) : undefined)"
|
|
- expr: liveTurnTimeoutMs(env, 20000)
|
|
- 250
|
|
- assert:
|
|
expr: "artifact.includes('Lobster Invaders')"
|
|
message: missing Lobster Invaders artifact
|
|
- assert:
|
|
expr: "!env.mock || (await fetchJson(`${env.mock.baseUrl}/debug/requests`)).some((request) => (request.toolOutput ?? '').includes('QA mission'))"
|
|
message: expected pre-write read evidence
|
|
detailsExpr: "'lobster-invaders.html'"
|
|
```
|