ddev/ai: replace agent YAML block with Markdown front matter files#24183
Draft
lucia-sb wants to merge 10 commits into
Draft
ddev/ai: replace agent YAML block with Markdown front matter files#24183lucia-sb wants to merge 10 commits into
lucia-sb wants to merge 10 commits into
Conversation
|
Replace goal_path with goal_ref in TaskConfig to align with the prompt/prompt_ref pattern. Update validators to check goal_ref, skip task-level goal validation in _validate_files (deferred to Task 3), and update tests accordingly. All 40 tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rator passes prompts/goals
…es; remove render_prompt
13975b7 to
0205992
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Validation ReportAll 21 validations passed. Show details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Replaces the two-part agent configuration (an
agents:block inflow.yamlplus a separateprompts/{name}.mdsystem-prompt file) with self-contained Markdown files that use YAML front matter for config and a plain-text body for the prompt.Two file types are introduced:
agents/{name}.md— front matter holds agent config (provider,model,max_tokens,tools); the body is the system prompt.prompts/{name}.md—type: promptfor task prompts,type: goalfor goal verification text. Tasks reference them by name viaprompt_ref/goal_ref.FlowConfig.from_yaml()scans both directories eagerly, validates all cross-references, and surfacesagents,prompts, andgoalsdictionaries to the runtime.ResourceProvidergainsprompt(name)andgoal(name)methods.render_prompt()(path-based) is removed; everything usesrender_inline().Motivation
Having agent config split across
flow.yamland a loose.mdfile made it awkward to move or rename an agent. A single self-contained.mdfile per agent keeps all its configuration co-located, is easier to read, and aligns with how prompt files already work.Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged