Add stage execution limits and result-first workflow views
This commit is contained in:
@@ -24,7 +24,8 @@ Perform the task supplied in input.prompt. Return evidence, not invented success
|
||||
type=model
|
||||
provider=opencode-go
|
||||
model=deepseek-v4.1-flash
|
||||
retries=0
|
||||
retries=2
|
||||
timeout=1h
|
||||
```
|
||||
|
||||
```tools
|
||||
@@ -48,8 +49,22 @@ Use the exact provider/model IDs validated during server setup. New drafts/templ
|
||||
inherit that selection; do not assume the host's login matches the container's.
|
||||
Other OpenCode provider/model IDs are accepted syntactically; actual availability,
|
||||
authentication and inference require `pipelines provider-check` on the execution
|
||||
computer/container. Retries are
|
||||
integers 0–100. Explicit empty `tools` denies all; allowed tools are `read`, `glob`,
|
||||
computer/container. Optional `retries` defaults to 2 (three total attempts),
|
||||
and accepts integers 0–100; explicit 0 disables execution retries. Optional
|
||||
`timeout` defaults to `1h` per attempt and accepts positive durations such as
|
||||
`30m` or `90s`. Automatic retries only cover retryable transport failures and
|
||||
timeouts; admitted tool work is never replayed automatically. Optional
|
||||
`budget_usd=1.50` and `budget_tokens=50000` independently cap reported usage.
|
||||
They accumulate across attempts, format repair sessions, and repeated visits
|
||||
to this stage in the same run. Omit either budget to leave that resource unlimited.
|
||||
Both budgets must be positive; tokens include input, output, reasoning and cache
|
||||
reads/writes. Accounting failures stop budget-limited stages. In-flight requests
|
||||
may exceed limits before usage is reported; these are not provider-side hard caps.
|
||||
The run has no additional wall-clock deadline; step/visit caps and cancellation
|
||||
still apply. A native ntfy stage accepts `timeout` but never automatically retries
|
||||
delivery and has no model budget.
|
||||
|
||||
Explicit empty `tools` denies all; allowed tools are `read`, `glob`,
|
||||
`grep`, `webfetch`, `websearch`, `edit`, `shell`, one per line. No wildcards,
|
||||
delegation, or browser tools. Tools are per-stage and automatically enabled by
|
||||
starting a run. `edit` supports any file type and creating files/directories in the
|
||||
|
||||
Reference in New Issue
Block a user