A step is id/type/settings with when and on_failure; the five kinds become
the types agent.run (inline mission), connector.action, approval.wait,
run.notify and workflow.sleep. Documents declare inputs, repository,
instructions, identity and profile; references are {{ task|inputs|steps }}
checked at save. Any number of approval steps, each asking only about what
was held since; actions still held at the end are put to people before the
run finishes. Triggers are refused for a workflow they can't start, and the
workflows API lists, reads and saves documents beside a step-type catalog.
Copied from internal/domain/workflow: definition.go, step_refs.go,
step_flow.go's checks, control_steps.go's when parser, vocabulary.go and
task/interface.go. stableid moves to internal/platform.
66 lines
2.4 KiB
YAML
66 lines
2.4 KiB
YAML
identity: 6f129e29-0e26-5246-99bd-74cb4496203b
|
|
steps:
|
|
- type: repo.prepare
|
|
- type: repo.tooling
|
|
- type: gate.repository
|
|
settings:
|
|
repair: true
|
|
- id: analyse
|
|
type: agent.run
|
|
settings:
|
|
read_only: true
|
|
mission: |
|
|
Analyse this {{ task.kind }} for the repository {{ task.repository }} and determine the problem surface.
|
|
|
|
{{ task.prompt }}
|
|
|
|
Explore the code read-only and call finish with status "passed" and a summary containing: the root cause (file and function), the exact conditions that trigger it, the expected vs actual behaviour, and which test cases would prove the bug. Call finish with status "blocked" if you cannot locate a plausible cause.
|
|
- id: repro
|
|
type: agent.run
|
|
settings:
|
|
gate: test-failure
|
|
mission: |
|
|
Write tests that REPRODUCE this bug in the repository {{ task.repository }}. Do NOT fix the bug yet.
|
|
|
|
{{ task.prompt }}
|
|
|
|
<analysis>
|
|
{{ steps.analyse.summary }}
|
|
</analysis>
|
|
|
|
Add tests that pass once the bug is fixed but FAIL today because of it. The gate is inverted for this step: every gate command must pass except the test command, which must FAIL. Do not touch non-test files. Call finish with status "passed" once the failing repro is in place, summarising which tests capture the bug.
|
|
- id: proof
|
|
type: gate.repository
|
|
settings:
|
|
expect: test-failure
|
|
- id: commit-repro
|
|
type: repo.commit
|
|
settings:
|
|
message: "test: failing repro"
|
|
reference: Refs
|
|
- id: fix
|
|
type: agent.run
|
|
settings:
|
|
gate: repository
|
|
protect_tests: true
|
|
extra_rules: The repro tests written earlier are the bug's specification. Test files are write-protected in this step; make them pass by fixing the code they exercise.
|
|
mission: |
|
|
Fix the bug in the repository {{ task.repository }}. Failing repro tests are already committed; make them pass.
|
|
|
|
{{ task.prompt }}
|
|
|
|
<analysis>
|
|
{{ steps.analyse.summary }}
|
|
</analysis>
|
|
|
|
The full quality gate must pass. Make the smallest fix that makes the repro tests pass without changing them. Call finish with status "passed" and a summary for the PR reviewer: root cause, the fix, and verification.
|
|
- id: commit-fix
|
|
type: repo.commit
|
|
settings:
|
|
message: "fix: {{ task.title }} (archie)"
|
|
reference: Fixes
|
|
push: true
|
|
- type: repo.open-pr
|
|
settings:
|
|
body: "{{ steps.fix.summary }}"
|