fbfd31a042
CI / check (pull_request) Successful in 2m27s
BREAKING: All workflow YAML files must update $START._ to $START.new + $START.resume. The resume edge prompt replaces the previously hardcoded resume message. - evaluate.ts: remove START_ROLE/START_STATUS special case, use $status like all nodes - thread.ts: resolveEvaluateArgs passes 'new', cmdThreadResume passes 'resume' - validate.ts: reject '_' everywhere (no longer valid) - validate-semantic.ts: require 'new' and 'resume' edges on $START - All workflow YAMLs and test fixtures updated Fixes #101
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: eval-simple
|
|
description: "Single-role eval workflow: fixer takes prompt, fixes code, done."
|
|
roles:
|
|
fixer:
|
|
description: "Fixes the code based on the prompt"
|
|
goal: |
|
|
You are a code fixer. Read the prompt, understand the bug, fix it, and verify by running the tests.
|
|
capabilities:
|
|
- code-editing
|
|
- test-running
|
|
procedure: |
|
|
1. Read the prompt to understand what needs to be fixed
|
|
2. Fix the bug in the source code
|
|
3. Run the tests mentioned in the prompt to verify
|
|
4. Output $status=done when tests pass
|
|
output: "Describe what you fixed and confirm tests pass. Set $status to done."
|
|
frontmatter:
|
|
type: object
|
|
properties:
|
|
$status:
|
|
type: string
|
|
enum: [done]
|
|
summary:
|
|
type: string
|
|
required: [$status, summary]
|
|
graph:
|
|
$START:
|
|
new: { role: "fixer", prompt: "Fix the code issue described in the task prompt." }
|
|
resume: { role: "fixer", prompt: "Review the previous run output and continue fixing the code issue." }
|
|
fixer:
|
|
done: { role: "$END", prompt: "Fix complete." }
|