Problem Statement
Spec Kit gate steps require operator interaction. There's no way
to express "auto-fire this gate's <verdict> branch when condition
X holds, otherwise prompt the operator." This blocks any workflow
where downstream steps should auto-rerun based on detected state
without prompting on the no-op path.
Proposed Solution
- id: my-gate
type: gate-on-condition
conditions:
- if: "{{ context.has_pending_work }}"
then_route: regenerate
- if: "{{ context.is_clean }}"
then_route: continue
fallback_prompt:
message: "Ambiguous — approve, regenerate, or abort?"
choices: ["approve", "regenerate", "abort"]
Conditions evaluated in declaration order; first match wins. No
match → operator gets fallback_prompt. Existing gate kind
unchanged. Opt-in per workflow author.
Component
Other
AI Agent (if applicable)
All agents
Acceptance Criteria
Additional Context
Possible objection — "auto-firing gates undermines
human-in-the-loop": opt-in per gate. Workflows that want strict
human approval don't use this kind.
Long-shot, low-priority. Fine to close politely if not aligned with
the project's direction.
AI disclosure: drafted with Claude Opus, human-reviewed.
Problem Statement
Spec Kit gate steps require operator interaction. There's no way
to express "auto-fire this gate's
<verdict>branch when conditionX holds, otherwise prompt the operator." This blocks any workflow
where downstream steps should auto-rerun based on detected state
without prompting on the no-op path.
Proposed Solution
Conditions evaluated in declaration order; first match wins. No
match → operator gets
fallback_prompt. Existinggatekindunchanged. Opt-in per workflow author.
Component
Other
AI Agent (if applicable)
All agents
Acceptance Criteria
gate-on-conditionstep kind in workflow YAML schema.expressions.evaluate_condition.fallback_prompt(if declared) used; otherwiserun aborts with a clear error.
gatekind preserved.Additional Context
Possible objection — "auto-firing gates undermines
human-in-the-loop": opt-in per gate. Workflows that want strict
human approval don't use this kind.
Long-shot, low-priority. Fine to close politely if not aligned with
the project's direction.
AI disclosure: drafted with Claude Opus, human-reviewed.