feat(stage): honor per-stage reasoning effort across native harnesses
This commit is contained in:
@@ -79,7 +79,22 @@ authentication and inference require `pipelines provider-check` on the execution
|
||||
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 cover retryable transport failures and
|
||||
`30m` or `90s`.
|
||||
|
||||
Optional `reasoning_effort=high` selects a model's reasoning/thinking level for
|
||||
this stage. Values are `default`, `none` (alias `off`), `minimal`, `low`, `medium`,
|
||||
`high`, `xhigh`, or `max`. Omission or `default` preserves the harness/model
|
||||
default; never add a level automatically to existing workflows. Availability is
|
||||
model-specific: OpenCode V2 selects the corresponding named model variant and
|
||||
rejects unavailable variants; Pi uses its native thinking level (`none` becomes
|
||||
`off`) and verifies the effective level before prompting, rejecting unsupported
|
||||
or silently clamped levels. Explicit effort on OpenCode V1 is unsupported.
|
||||
Do not instruct the agent to “think harder” as a substitute for this native
|
||||
setting. Effort is not a token budget or a guaranteed quality improvement; keep
|
||||
usage budgets/provider spending limits separate. Both text-only and tool-using
|
||||
model stages honor the setting, without changing their tools or permissions.
|
||||
|
||||
Automatic retries cover retryable transport failures and
|
||||
timeouts; an explicit read-only stage may additionally retry a post-admission
|
||||
deadline or transport failure, while a stage with `edit`/`shell` (or no tools
|
||||
block) never replays admitted work. Optional `budget_usd=1.50` and
|
||||
@@ -89,7 +104,7 @@ to this stage in the same run. Omit either budget to leave that resource unlimit
|
||||
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.
|
||||
In current source, budgeted OpenCode V2 text-only calls use tracked prompting with
|
||||
In current source, all OpenCode V2 text-only calls use tracked prompting with
|
||||
all tools denied, rather than the usage-less `/generate` path. Completed
|
||||
token-budgeted responses reporting zero tokens fail closed. This is an execution
|
||||
implementation detail, not a new Markdown field: never add backend/format/API
|
||||
|
||||
Reference in New Issue
Block a user