Skip to content

feat: add workflow phase boundaries and externalize speckit commands (closes #92 + #94) - #96

Merged
jflowers merged 1 commit into
mainfrom
opsx/workflow-phase-boundaries
Apr 13, 2026
Merged

jflowers merged 1 commit into
mainfrom
opsx/workflow-phase-boundaries

Conversation

@jflowers

Copy link
Copy Markdown
Contributor

Summary

Adds workflow phase boundary enforcement and externalizes 9 Speckit command files from scaffold assets. Closes #92 (phase boundary guardrails) and #94 (/unleash skips code review).

Phase Boundaries (Issue #92)

  • Constitution: Added "Phase Discipline" MUST rule to Development Workflow — specification phases may only write spec artifacts, never source code
  • AGENTS.md: Added "Workflow Phase Boundaries" subsection to Behavioral Constraints mapping phases to allowed outputs
  • Guardrails: Applied via /uf-init AI-assisted injection into all 9 speckit.*.md files (idempotent, checks for existing section)

Code Review Marker (Issue #94)

  • /unleash Step 6 now writes <!-- code-review: passed --> marker to tasks.md after review council approves
  • Step 2 resumability detection checks for this marker instead of inferring from CI pass/fail
  • Prevents code review from being silently skipped

Speckit Command Externalization

  • Removed 9 speckit.*.md files from internal/scaffold/assets/ (embedded count 42 → 33)
  • 5 upstream commands created by specify init (specify, plan, tasks, implement, constitution)
  • 4 UF-custom commands created by /uf-init (analyze, checklist, clarify, taskstoissues)
  • /uf-init gets 3 new sections: custom command creation + guardrail injection + UF customization verification

Stray Cleanup

  • Deleted ~74 stray files from internal/scaffold/.opencode/, internal/scaffold/.uf/, cmd/unbound-force/.opencode/, cmd/unbound-force/.uf/
  • Added .gitignore patterns to prevent recurrence (cmd/**/.opencode/, internal/**/.uf/, etc.)

Test Updates

  • expectedAssetPaths: 42 → 33 (removed 9 speckit entries)
  • knownNonEmbeddedFiles: added 9 speckit command entries
  • File count assertion: 42 → 33
  • No new Go logic — Markdown + test assertion changes only

…loses #92 + #94)

- Externalize 9 speckit.*.md command files from scaffold assets
  (embedded asset count 42 → 33). Created by specify init + /uf-init.
- Add "Phase Discipline" MUST rule to constitution Development
  Workflow section
- Add "Workflow Phase Boundaries" subsection to AGENTS.md
  Behavioral Constraints
- Add <!-- code-review: passed --> marker to /unleash Step 6 with
  matching resumability detection in Step 2
- Add 3 new sections to /uf-init: "Speckit Custom Commands"
  (creates 4 UF-custom commands), "Speckit Command Guardrails"
  (injects ## Guardrails into all 9 speckit commands),
  "Speckit UF Customizations" (verifies Dewey/constitution/
  review-council references)
- Delete stray tool directories from internal/scaffold/ and
  cmd/unbound-force/ (~74 files)
- Add .gitignore patterns to prevent stray recurrence
  (cmd/**/.opencode/, internal/**/.uf/, etc.)
- Update expectedAssetPaths (42 → 33), add 9 entries to
  knownNonEmbeddedFiles, update file count assertion (42 → 33)
- Synchronize 2 scaffold asset copies (unleash.md, uf-init.md)
- No new Go logic -- Markdown + test assertion changes only
@jflowers
jflowers merged commit 641a5af into main Apr 13, 2026
1 check passed
@jflowers
jflowers deleted the opsx/workflow-phase-boundaries branch April 13, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

fix: add workflow phase boundary guardrails to prevent spec-phase code changes

1 participant