Skip to content

🧠 Introduce spec-driven development workflow#74

Merged
szmyty merged 2 commits intomainfrom
copilot/introduce-spec-driven-workflow
Apr 3, 2026
Merged

🧠 Introduce spec-driven development workflow#74
szmyty merged 2 commits intomainfrom
copilot/introduce-spec-driven-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

The repository lacked a structured way to define feature behavior before implementation, leaving AI agents and developers to interpret intent from issues and PRs. This introduces a spec-driven layer that acts as the authoritative behavior contract for each feature.

New: specs/ directory

  • specs/README.md — workflow documentation: why specs exist, the 5-step lifecycle (write → issue → implement → review → close loop), status states (draft / approved / implemented / superseded), file naming rules, and how specs relate to ARCHITECTURE.md, issues, and ai/factory/workflow/
  • specs/_template.md — canonical template with YAML frontmatter (feature, status, issue, pr, created, updated) and sections for Objective, Behavior (checkbox criteria + Given/When/Then scenarios), Non-Goals, Architecture Notes, and References

ARCHITECTURE.md

  • specs/ added to the Repository Layout tree
  • New Spec-Driven Development section (ToC item 21): purpose, lifecycle table, workflow diagram, agent rules, spec format summary
  • Adding a New Feature checklist updated: writing a spec is now step 1; updating spec status to implemented is the final step

README.md

  • New Spec-Driven Development section summarising the 5-step flow with links to specs/README.md and ARCHITECTURE.md#spec-driven-development

.github/copilot-instructions.md

  • New When implementing a feature block: agents must locate and read specs/<feature-name>.md before writing code, treat each acceptance criterion as a hard requirement, not deviate without updating the spec first, and confirm all criteria are met at the end
Original prompt

This section details on the original issue you should resolve

<issue_title>🧠 Introduce spec-driven development workflow into flutter-foundation</issue_title>
<issue_description>Objective

Introduce a spec-driven development workflow into the flutter-foundation repository.

Context

The repository currently uses architecture-driven development combined with AI agents and issue-based workflows. To improve clarity, consistency, and AI reliability, a spec-driven layer should be introduced.

Specs will act as structured contracts that define feature behavior before implementation.

Scope

  • Define how specs integrate into the existing workflow
  • Establish specs as a source of truth for feature behavior
  • Define how specs relate to ARCHITECTURE.md, issues, and agents
  • Ensure compatibility with the AI workflow system in ai/factory/

Acceptance Criteria

  • Spec-driven workflow is defined and documented
  • Relationship between specs, issues, and agents is clear
  • Workflow integrates with existing architecture and issue system
  • Documentation updated to reflect the new workflow</issue_description>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 18, 2026

@szmyty Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository and had to close this PR. The error I am seeing is:

no `copilot-setup-steps` job found in your `copilot-setup-steps.yml` workflow file. Please ensure you have a single job named `copilot-setup-steps`. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please unassign and then reassign issue #0 to me and I'll retry. Thanks!

Co-authored-by: szmyty <14865041+szmyty@users.noreply.github.com>
Copilot AI changed the title [WIP] Introduce spec-driven development workflow into flutter-foundation 🧠 Introduce spec-driven development workflow Mar 18, 2026
Copilot AI requested a review from szmyty March 18, 2026 20:16
@szmyty szmyty marked this pull request as ready for review April 3, 2026 03:43
@szmyty szmyty merged commit 7d586d4 into main Apr 3, 2026
@szmyty szmyty deleted the copilot/introduce-spec-driven-workflow branch April 3, 2026 03:43
@devactivity-app
Copy link
Copy Markdown

Pull Request Summary by devActivity

Metrics

Cycle Time: 15d 7h 32m Pickup Time: 15d 7h 26m Review Time: < 1 min Comments: 1

Achievements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧠 Introduce spec-driven development workflow into flutter-foundation

2 participants