Skip to content

docs: fix on-timeout value in create-ado-agentic-workflow prompt#1297

Merged
jamesadevine merged 1 commit into
mainfrom
docs/fix-on-timeout-value-in-create-prompt-b1bc2da640c00669
Jul 2, 2026
Merged

docs: fix on-timeout value in create-ado-agentic-workflow prompt#1297
jamesadevine merged 1 commit into
mainfrom
docs/fix-on-timeout-value-in-create-prompt-b1bc2da640c00669

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Agent Documentation Update

Findings

Area Issue File(s)
accuracy on-timeout comment lists "approve" as a valid value — the correct value is "resume" prompts/create-ado-agentic-workflow.md

Applied Fixes

  • Changed # "reject" (default) or "approve"# "reject" (default) or "resume" in the require-approval example block

Notes

How verified:

  • src/compile/types.rs defines ApprovalOnTimeout with #[serde(rename_all = "kebab-case")] and two variants: Reject"reject" and Resume"resume". There is no "approve" variant.
  • Tests at line 2952 of types.rs assert ApprovalOnTimeout::Resume round-trips as resume.
  • docs/safe-outputs.md correctly documents the values as reject (default, fail-closed) | resume (not approve).

An agent following the old create prompt and writing on-timeout: approve would produce front matter that the compiler rejects at parse time, since serde denies unknown variants.


Created by the agent-documentation maintainer workflow.

Generated by Agent Documentation Maintainer · 160.9 AIC · ⌖ 12 AIC · ⊞ 8.3K ·

The valid values for `on-timeout` are `reject` and `resume`, not
`reject` and `approve`. This matches the `ApprovalOnTimeout` enum
in `src/compile/types.rs` which has `Reject` and `Resume` variants
(serialized via `#[serde(rename_all = "kebab-case")]`), and the
correct values are already documented in `docs/safe-outputs.md`.

An agent following the create prompt and writing `on-timeout: approve`
would produce invalid front matter that the compiler would reject.

Co-authored-by: Copilot <[email protected]>
@jamesadevine jamesadevine marked this pull request as ready for review July 2, 2026 06:34
@jamesadevine jamesadevine merged commit 105e11b into main Jul 2, 2026
@jamesadevine jamesadevine deleted the docs/fix-on-timeout-value-in-create-prompt-b1bc2da640c00669 branch July 2, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant