8000 Install spectacles agentic workflow suite by norrietaylor · Pull Request #255 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: Bug
about: Report defective behavior for the SDD pipeline to spec a fix and build it.
title: "bug: "
labels:
- kind:bug
- sdd:spec
---

## Summary

One or two sentences describing the defect.

## Expected behavior

What should happen.

## Actual behavior

What happens instead. Include error output or a `file:line` reference where
you can.

## Reproduction

The smallest set of steps that reliably reproduces the defect.

## Scope notes

Anything in or out of scope, constraints, or related work the agents should
know. Leave blank if there is nothing to add.

## One-session fix? (optional)

If this looks like a one-file bugfix, a typo, or similarly small,
comment `/fastpath` on this issue after opening it. The agent will
compress spec, architecture, and plan into one short run and gate
execution on a single `/approve`. The full pipeline runs by default;
`/fastpath` is opt-in. The agent will also propose fast-path on its
own when the issue body looks like a single-session change.

---

<!-- SDD command vocabulary. Do not edit this footer. -->

This issue is the tracking issue for the fix. It carries the `sdd:spec`
lifecycle label, so `sdd-spec` will draft a spec PR from it automatically.

Steer the pipeline with these comment commands. Each is gated to commenters
with write access to the repository.

| Command | Where | Effect |
|---|---|---|
| `/spec` | this tracking issue | re-run `sdd-spec` to draft or revise the spec |
| `/fastpath` | this tracking issue | confirm a single-session change; `sdd-spec` produces a stub spec PR and an execution plan comment in one run (ADR 0012) |
| `/triage` | this tracking issue, after the spec PR is merged | start `sdd-triage` phase A (architecture) |
| `/approve` | this tracking issue | full path: confirm the proposed plan so `sdd-triage` creates the Unit and task sub-issues. Fast path: dispatch the execution plan against `sdd-execute-{tier}` |
| `/dispatch` | this tracking issue (full path only) | arm the cascade across the task tree |
| `/revise <note>` | a spec, architecture, or implementation PR, or this tracking issue | re-run the owning agent with the note as an added instruction |
| `/execute` | a task sub-issue | run `sdd-execute` for that task ahead of the schedule |

Merging the spec PR advances to the architecture phase; merging the
architecture PR advances to a plan-comment phase, where `sdd-triage` posts
the proposed plan as one comment on this tracking issue. When an agent needs
a human decision it applies the `needs-human` label and posts one comment;
clear the label once you have answered and the agent resumes.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/chore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Chore
about: Track maintenance, refactor, or internal work that is not a feature or bug.
title: "chore: "
labels:
- kind:chore
---

## Summary

One or two sentences describing the work.

## Motivation

Why this is worth doing now.

## Scope

What is in scope and what is explicitly not.

---

<!-- A chore is tracked, not specced. -->

A chore does not enter the SDD spec pipeline, so this template applies no
`sdd:spec` label. If the work turns out to need a spec, open a feature or bug
issue instead and let `sdd-spec` draft it.
61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
name: Feature
about: Propose a new feature or capability for the SDD pipeline to spec and build.
title: "feature: "
labels:
- kind:feature
- sdd:spec
---

## Summary

One or two sentences describing the feature and who it is for.

## Problem

What is missing or painful today? Describe the situation, not the solution.

## Desired outcome

What should be true once this ships? Describe behavior a person could observe,
not an implementation.

## Scope notes

Anything in or out of scope, constraints, or related work the agents should
know. Leave blank if there is nothing to add.

## One-session change? (optional)

If this looks like a one-file copy change, a single-symbol bugfix, or
similarly small, comment `/fastpath` on this issue after opening it. The
agent will compress spec, architecture, and plan into one short run and
gate execution on a single `/approve`. The full pipeline runs by
default; `/fastpath` is opt-in. The agent will also propose fast-path on
its own when the issue body looks like a single-session change.

---

<!-- SDD command vocabulary. Do not edit this footer. -->

This issue is the tracking issue for the feature. It carries the `sdd:spec`
lifecycle label, so `sdd-spec` will draft a spec PR from it automatically.

Steer the pipeline with these comment commands. Each is gated to commenters
with write access to the repository.

| Command | Where | Effect |
|---|---|---|
| `/spec` | this tracking issue | re-run `sdd-spec` to draft or revise the spec |
| `/fastpath` | this tracking issue | confirm a single-session change; `sdd-spec` produces a stub spec PR and an execution plan comment in one run (ADR 0012) |
| `/triage` | this tracking issue, after the spec PR is merged | start `sdd-triage` phase A (architecture) |
| `/approve` | this tracking issue | full path: confirm the proposed plan so `sdd-triage` creates the Unit and task sub-issues. Fast path: dispatch the execution plan against `sdd-execute-{tier}` |
| `/dispatch` | this tracking issue (full path only) | arm the cascade across the task tree |
| `/revise <note>` | a spec, architecture, or implementation PR, or this tracking issue | re-run the owning agent with the note as an added instruction |
| `/execute` | a task sub-issue | run `sdd-execute` for that task ahead of the schedule |

Merging the spec PR advances to the architecture phase; merging the
architecture PR advances to a plan-comment phase, where `sdd-triage` posts
the proposed plan as one comment on this tracking issue. When an agent needs
a human decision it applies the `needs-human` label and posts one comment;
clear the label once you have answered and the agent resumes.
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: Specification (from Claude plan)
about: Hand a Claude plan document to the pipeline to translate into a spec and build.
title: "feature: "
labels:
- sdd:spec
- kind:feature
- plan:provided
---

## Plan

Paste the full Claude plan document here. The plan is the authoritative
input: `sdd-spec` translates it into a structured spec and `sdd-triage`
translates its architecture/design section into the architecture record,
rather than authoring either from scratch. Keep the plan's own structure —
context, design, the implementation steps, and a verification section.

## Verification

If your plan already has a verification section, leave it above and remove
this one. Otherwise list, per step, how a person could observe the behavior
the step produces. `sdd-spec` lifts these into proof artifacts (one to three
per demoable unit), so prefer behavioral checks over health checks: a plan
verification that only says "tests pass" or "build succeeds" is dropped, and
if no step yields a behavioral artifact the agent hands off via `needs-human`.

## Scope notes

Anything in or out of scope, constraints, or related work the agents should
know. Leave blank if there is nothing to add.

---

<!-- SDD command vocabulary. Do not edit this footer. -->

This issue is the tracking issue for the feature. It carries the `sdd:spec`
lifecycle label, so `sdd-spec` will draft a spec PR from it automatically.
The `plan:provided` marker puts `sdd-spec` and `sdd-triage` into translation
mode: `sdd-spec` translates the plan above into a structured spec, and
` F438 sdd-triage` translates the plan's architecture/design section into
`architecture.md`. The marker is cleared once the architecture PR opens (or,
on the fast path, once the stub spec PR opens).

Steer the pipeline with these comment commands. Each is gated to commenters
with write access to the repository.

| Command | Where | Effect |
|---|---|---|
| `/spec` | this tracking issue | re-run `sdd-spec` to draft or revise the spec |
| `/fastpath` | this tracking issue | confirm a single-session change; `sdd-spec` produces a stub spec PR and an execution plan comment in one run (ADR 0012) |
| `/triage` | this tracking issue, after the spec PR is merged | start `sdd-triage` phase A (architecture) |
| `/approve` | this tracking issue | full path: confirm the proposed plan so `sdd-triage` creates the Unit and task sub-issues. Fast path: dispatch the execution plan against `sdd-execute-{tier}` |
| `/dispatch` | this tracking issue (full path only) | arm the cascade across the task tree |
| `/revise <note>` | a spec, architecture, or implementation PR, or this tracking issue | re-run the owning agent with the note as an added instruction |
| `/execute` | a task sub-issue | run `sdd-execute` for that task ahead of the schedule |

Merging the spec PR advances to the architecture phase; merging the
architecture PR advances to a plan-comment phase, where `sdd-triage` posts
the proposed plan as one comment on this tracking issue. When an agent needs
a human decision it applies the `needs-human` label and posts one comment;
clear the label once you have answered and the agent resumes.
44 changes: 44 additions & 0 deletions .github/workflows/distillery-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: distillery-sync

# Thin wrapper for the distillery-sync agent.
#
# The agent itself is the reusable workflow
# .github/workflows/distillery-sync.lock.yml in the spectacles repository,
# compiled from distillery-sync.md (which declares on: workflow_call). This
# wrapper carries the real triggers — a daily schedule and manual dispatch —
# and calls the hosted reusable workflow by pinned ref. A consumer repository
# installs this wrapper unchanged; scripts/quick-setup.sh rewrites the @ref
# when --ref is supplied.
#
# distillery-sync had no wrapper before the uses: distribution model (ADR
# 0004): it was a standalone scheduled workflow whose compiled lock the
# installer copied directly. Under the uses: model every agent — scheduled or
# event-driven — is a hosted reusable workflow, so distillery-sync gains a
# wrapper that owns its schedule, exactly as the sdd-* wrappers own their
# event triggers.

on:
# Daily, off the top of the hour to avoid GitHub scheduler congestion.
schedule:
- cron: "17 7 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
distillery-sync:
uses: norrietaylor/spectacles/.github/workflows/distillery-sync.lock.yml@main
# Mapped explicitly, not `secrets: inherit`: inherit does not pass secrets
# to a reusable workflow in a different owner than the caller.
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
DISTILLERY_OAUTH_TOKEN: ${{ secrets.DISTILLERY_OAUTH_TOKEN }}
# Ceiling for the called reusable workflow. Must cover the union of every
# nested job's permissions: the gh-aw conclusion and safe_outputs jobs
# need issues: write, and activation needs actions: read.
permissions:
actions: read
contents: read
issues: write
pull-requests: read
Loading
Loading
0