An approval, ask or park can be resolved by an operator, a rule, a classifier or automatically, so the vocabulary stops naming a person: - step type human.approve -> workflow.approve - park class needs_human -> needs_decision (ParkNeedsDecision) - event kinds human_* -> operator_* - alert kind task.needs_human -> task.needs_decision - status grouping "needs you" -> "needs attention" 0061 rewrites the stored values, including the approval step type in the workflow-definitions resource and each task's pinned definition, with the digest recomputed so resumed tasks still match.
91 lines
3.3 KiB
YAML
91 lines
3.3 KiB
YAML
id: feasibility
|
|
identity: 6f129e29-0e26-5246-99bd-74cb4496203b
|
|
steps:
|
|
- type: repo.prepare
|
|
- id: assess
|
|
type: agent.run
|
|
settings:
|
|
read_only: true
|
|
mission: |
|
|
Assess whether this feature request fits the project {{ task.repository }}.
|
|
|
|
{{ task.prompt }}
|
|
|
|
Read the repository's AGENT.md, ROADMAP.md and README (whichever exist) plus enough code to judge scope and architectural fit. Return your result exactly once, then call finish with status "passed" summarising the assessment.
|
|
result:
|
|
type: object
|
|
properties:
|
|
fit:
|
|
type: boolean
|
|
description: "true: fits the project and is worth a PRD. false: close as won't-do."
|
|
reasons:
|
|
type: string
|
|
description: The rationale, written for the person who filed the request.
|
|
required: [fit, reasons]
|
|
- id: verdict
|
|
switch:
|
|
on: steps.assess.result.fit
|
|
cases:
|
|
"false":
|
|
- type: forge.close-issue
|
|
- type: workflow.finish
|
|
settings:
|
|
status: declined
|
|
detail: "{{ steps.assess.result.reasons }}"
|
|
- id: prd
|
|
type: agent.run
|
|
settings:
|
|
read_only: true
|
|
mission: |
|
|
Write a PRD for this accepted feature request on {{ task.repository }}.
|
|
|
|
{{ task.prompt }}
|
|
|
|
<assessment>
|
|
{{ steps.assess.result.reasons }}
|
|
</assessment>
|
|
|
|
Explore the affected code surface, then return the PRD exactly once and call finish with status "passed" and a one-line summary. It will be read by whoever decides whether to green-light implementation, and the approved PRD is what the implementation is built from.
|
|
result:
|
|
type: object
|
|
properties:
|
|
title:
|
|
type: string
|
|
description: What is being decided, in a few words.
|
|
problem:
|
|
type: string
|
|
description: The problem, in Markdown, grounded in the code you read.
|
|
solution:
|
|
type: string
|
|
description: The proposed solution, in Markdown. Include proposed signatures as fenced code.
|
|
files:
|
|
type: array
|
|
description: The files the change adds, modifies or deletes.
|
|
items:
|
|
type: object
|
|
properties:
|
|
path: {type: string}
|
|
change: {type: string, enum: [added, modified, deleted]}
|
|
note: {type: string, description: How the change touches the file.}
|
|
required: [path, change]
|
|
acceptance:
|
|
type: array
|
|
description: Acceptance criteria, each independently checkable.
|
|
items: {type: string}
|
|
non_goals:
|
|
type: array
|
|
description: What this change explicitly does not do.
|
|
items: {type: string}
|
|
diff_estimate:
|
|
type: string
|
|
description: The estimated diff size, e.g. "~40 lines across 2 files".
|
|
risks:
|
|
type: array
|
|
description: Risks and open questions the reader must weigh. Empty when there are none.
|
|
items: {type: string}
|
|
required: [title, problem, solution, files, acceptance, non_goals, diff_estimate]
|
|
- type: workflow.approve
|
|
settings:
|
|
document: "{{ steps.prd.result }}"
|
|
then: implement
|