69 lines
1.6 KiB
Markdown
69 lines
1.6 KiB
Markdown
# stage prepare
|
|
|
|
```output
|
|
{ mode: "success" | "failure", title, summary, markdown }
|
|
markdown is a short report containing explicitly labeled notification test data.
|
|
```
|
|
|
|
```prompt
|
|
This is a notification smoke test, not web research. Read input.prompt. If it
|
|
contains the standalone word FAIL (case-insensitive), set mode="failure";
|
|
otherwise set mode="success". Write a brief Markdown report containing
|
|
two example test results, explicitly labeled TEST DATA. Include a
|
|
heading, a bulleted list, and a description of the selected test mode. Do not
|
|
claim real releases, searches, file creation, or tool execution. Produce title
|
|
and summary as short single-line strings, and the complete Markdown as markdown.
|
|
Always return success to pass this prepared fixture to the result stage.
|
|
```
|
|
|
|
```tools
|
|
```
|
|
|
|
```notify
|
|
on=failure
|
|
```
|
|
|
|
```edges
|
|
success -> result
|
|
error -> #failure
|
|
```
|
|
|
|
```configs
|
|
provider=opencode-go
|
|
model=deepseek-v4.1-flash
|
|
retries=0
|
|
```
|
|
|
|
# stage result
|
|
|
|
```output
|
|
{ mode, title, summary, markdown }
|
|
Preserve the fixture report unchanged for the notification attachment.
|
|
```
|
|
|
|
```prompt
|
|
Preserve the preceding stage's mode, title, summary, and markdown verbatim. If
|
|
mode="failure", return error with those same fields; this is an intentional,
|
|
controlled test failure, not a tool or provider failure. Otherwise return
|
|
success with the same fields. Do not fetch, write, edit, or invent anything.
|
|
```
|
|
|
|
```tools
|
|
```
|
|
|
|
```notify
|
|
on=success,failure
|
|
artifacts=markdown
|
|
```
|
|
|
|
```edges
|
|
success -> #success
|
|
error -> #failure
|
|
```
|
|
|
|
```configs
|
|
provider=opencode-go
|
|
model=deepseek-v4.1-flash
|
|
retries=0
|
|
```
|