Skip to content

docs: add parameters step to workflow creation prompt#491

Merged
jamesadevine merged 1 commit into
mainfrom
docs/fix-workflow-prompt-parameters-step-524428b75d6a0ea6
May 10, 2026
Merged

docs: add parameters step to workflow creation prompt#491
jamesadevine merged 1 commit into
mainfrom
docs/fix-workflow-prompt-parameters-step-524428b75d6a0ea6

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Documentation Freshness Audit

This audit compared all documentation files against the actual codebase (src/, docs/, AGENTS.md, README.md, prompts/).

Findings

Area Issue File(s)
Workflow authoring prompt parameters: front matter field was absent from all 14 steps prompts/create-ado-agentic-workflow.md

All other documentation areas passed the audit:

  • Architecture tree (AGENTS.md) — every source file listed is present; no new files are missing from the tree
  • CLI commands (docs/cli.md, README.md) — match main.rs Commands enum exactly (all 7 subcommands, all flags)
  • Front matter fields (docs/front-matter.md, README.md) — match FrontMatter struct in types.rs; env: correctly noted as reserved/unimplemented
  • Template markers (docs/template-markers.md) — all 44 markers in base.yml / 1es-base.yml are documented; removed markers (\{\{ mcp_client_config }}, \{\{ copilot_version }}) documented as removed
  • Safe output tools (docs/safe-outputs.md, README.md) — all 23 tools in src/safeoutputs/ are documented
  • Network allowlist (docs/network.md) — every entry in CORE_ALLOWED_HOSTS is in the docs table
  • Engine defaultsDEFAULT_COPILOT_MODEL = "claude-opus-4.7" matches all docs and the prompt model table
  • Schedule syntax — valid hour intervals [1, 2, 3, 4, 6, 8, 12] match fuzzy_schedule.rs

Details

prompts/create-ado-agentic-workflow.md is the primary guide AI agents use when generating new workflow files. Its 14 steps cover all front matter fields except parameters:. The parameters: field is fully implemented in FrontMatter (src/compile/types.rs:658) and emits a top-level parameters: ADO YAML block. The compiler also auto-injects a clearMemory parameter when tools.cache-memory is enabled (src/compile/common.rs:430-437).

Without guidance in the prompt, agents creating workflows won't know to suggest parameters: even when context makes it appropriate (e.g., when the user wants a boolean flag to control agent behavior at queue time).

Applied Fixes

  • Added Step 15 — Parameters (optional) to prompts/create-ado-agentic-workflow.md covering: purpose, YAML example with string dropdown and boolean parameters, full field reference table, and a note about the auto-injected clearMemory parameter.

This pull request was created by the automated documentation freshness check.

Generated by Documentation Freshness Check · ● 7.5M ·

The `parameters:` front matter field was implemented but absent from
the 14-step workflow creation guide in prompts/create-ado-agentic-workflow.md.
Agents reading that prompt had no guidance on declaring ADO runtime
parameters (surfaced in the queue UI) or the auto-injected `clearMemory`
parameter that cache-memory emits.

Add Step 15 covering:
- When to use `parameters:`
- Full field reference table (name, displayName, type, default, values)
- Example with string (dropdown) and boolean parameters
- Note about the auto-injected `clearMemory` parameter

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jamesadevine jamesadevine marked this pull request as ready for review May 10, 2026 05:57
@jamesadevine jamesadevine merged commit 4be7ab2 into main May 10, 2026
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